inttegro.message_template

Models, requests, and enums for the Inttegro message template resource.

The primary returned object is inttegro.message_template.MessageTemplate. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.

  1"""Models, requests, and enums for the Inttegro message template resource.
  2
  3The primary returned object is ``inttegro.message_template.MessageTemplate``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK."""
  4
  5from importlib import import_module
  6from typing import TYPE_CHECKING, Any
  7
  8if TYPE_CHECKING:
  9    from .attachment_ids import AttachmentIDs as AttachmentIDs
 10    from .attachment_ids_input import AttachmentIDsInput as AttachmentIDsInput
 11    from .channel import Channel as Channel
 12    from .create_email_request import CreateEmailRequest as CreateEmailRequest
 13    from .create_request import CreateRequest as CreateRequest
 14    from .create_sms_request import CreateSMSRequest as CreateSMSRequest
 15    from .email_content import EmailContent as EmailContent
 16    from .email_content_input import EmailContentInput as EmailContentInput
 17    from .envelope import Envelope as Envelope
 18    from .id_request import IDRequest as IDRequest
 19    from .mailbox import Mailbox as Mailbox
 20    from .mailbox_input import MailboxInput as MailboxInput
 21    from .message_template import MessageTemplate as MessageTemplate
 22    from .page import Page as Page
 23    from .page_envelope import PageEnvelope as PageEnvelope
 24    from .page_request import PageRequest as PageRequest
 25    from .preview import Preview as Preview
 26    from .reference_input import ReferenceInput as ReferenceInput
 27    from .render_preview_request import RenderPreviewRequest as RenderPreviewRequest
 28    from .rendered import Rendered as Rendered
 29    from .rendered_email import RenderedEmail as RenderedEmail
 30    from .rendered_sms import RenderedSMS as RenderedSMS
 31    from .sms_content import SMSContent as SMSContent
 32    from .sms_content_input import SMSContentInput as SMSContentInput
 33    from .safety_result import SafetyResult as SafetyResult
 34    from .scanned_link import ScannedLink as ScannedLink
 35    from .status import Status as Status
 36    from .update_request import UpdateRequest as UpdateRequest
 37    from .variable import Variable as Variable
 38    from .variable_input import VariableInput as VariableInput
 39    from .variable_item import VariableItem as VariableItem
 40    from .variable_item_input import VariableItemInput as VariableItemInput
 41    from .variable_item_type import VariableItemType as VariableItemType
 42    from .variable_type import VariableType as VariableType
 43    from .variables_input import VariablesInput as VariablesInput
 44
 45
 46_EXPORTS: dict[str, tuple[str, str]] = {
 47    "AttachmentIDs": ("inttegro.message_template.attachment_ids", "AttachmentIDs"),
 48    "AttachmentIDsInput": ("inttegro.message_template.attachment_ids_input", "AttachmentIDsInput"),
 49    "Channel": ("inttegro.message_template.channel", "Channel"),
 50    "CreateEmailRequest": ("inttegro.message_template.create_email_request", "CreateEmailRequest"),
 51    "CreateRequest": ("inttegro.message_template.create_request", "CreateRequest"),
 52    "CreateSMSRequest": ("inttegro.message_template.create_sms_request", "CreateSMSRequest"),
 53    "EmailContent": ("inttegro.message_template.email_content", "EmailContent"),
 54    "EmailContentInput": ("inttegro.message_template.email_content_input", "EmailContentInput"),
 55    "Envelope": ("inttegro.message_template.envelope", "Envelope"),
 56    "IDRequest": ("inttegro.message_template.id_request", "IDRequest"),
 57    "Mailbox": ("inttegro.message_template.mailbox", "Mailbox"),
 58    "MailboxInput": ("inttegro.message_template.mailbox_input", "MailboxInput"),
 59    "MessageTemplate": ("inttegro.message_template.message_template", "MessageTemplate"),
 60    "Page": ("inttegro.message_template.page", "Page"),
 61    "PageEnvelope": ("inttegro.message_template.page_envelope", "PageEnvelope"),
 62    "PageRequest": ("inttegro.message_template.page_request", "PageRequest"),
 63    "Preview": ("inttegro.message_template.preview", "Preview"),
 64    "ReferenceInput": ("inttegro.message_template.reference_input", "ReferenceInput"),
 65    "RenderPreviewRequest": ("inttegro.message_template.render_preview_request", "RenderPreviewRequest"),
 66    "Rendered": ("inttegro.message_template.rendered", "Rendered"),
 67    "RenderedEmail": ("inttegro.message_template.rendered_email", "RenderedEmail"),
 68    "RenderedSMS": ("inttegro.message_template.rendered_sms", "RenderedSMS"),
 69    "SMSContent": ("inttegro.message_template.sms_content", "SMSContent"),
 70    "SMSContentInput": ("inttegro.message_template.sms_content_input", "SMSContentInput"),
 71    "SafetyResult": ("inttegro.message_template.safety_result", "SafetyResult"),
 72    "ScannedLink": ("inttegro.message_template.scanned_link", "ScannedLink"),
 73    "Status": ("inttegro.message_template.status", "Status"),
 74    "UpdateRequest": ("inttegro.message_template.update_request", "UpdateRequest"),
 75    "Variable": ("inttegro.message_template.variable", "Variable"),
 76    "VariableInput": ("inttegro.message_template.variable_input", "VariableInput"),
 77    "VariableItem": ("inttegro.message_template.variable_item", "VariableItem"),
 78    "VariableItemInput": ("inttegro.message_template.variable_item_input", "VariableItemInput"),
 79    "VariableItemType": ("inttegro.message_template.variable_item_type", "VariableItemType"),
 80    "VariableType": ("inttegro.message_template.variable_type", "VariableType"),
 81    "VariablesInput": ("inttegro.message_template.variables_input", "VariablesInput"),
 82}
 83
 84__all__ = [
 85    "AttachmentIDs",
 86    "AttachmentIDsInput",
 87    "Channel",
 88    "CreateEmailRequest",
 89    "CreateRequest",
 90    "CreateSMSRequest",
 91    "EmailContent",
 92    "EmailContentInput",
 93    "Envelope",
 94    "IDRequest",
 95    "Mailbox",
 96    "MailboxInput",
 97    "MessageTemplate",
 98    "Page",
 99    "PageEnvelope",
100    "PageRequest",
101    "Preview",
102    "ReferenceInput",
103    "RenderPreviewRequest",
104    "Rendered",
105    "RenderedEmail",
106    "RenderedSMS",
107    "SMSContent",
108    "SMSContentInput",
109    "SafetyResult",
110    "ScannedLink",
111    "Status",
112    "UpdateRequest",
113    "Variable",
114    "VariableInput",
115    "VariableItem",
116    "VariableItemInput",
117    "VariableItemType",
118    "VariableType",
119    "VariablesInput",
120]
121
122
123def __getattr__(name: str) -> Any:
124    """Load a public resource type on first access."""
125    try:
126        module_name, attribute_name = _EXPORTS[name]
127    except KeyError:
128        raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None
129    value = getattr(import_module(module_name), attribute_name)
130    globals()[name] = value
131    return value
AttachmentIDs = list[str]
AttachmentIDsInput = list[str]
class Channel(inttegro._enum_base.WireEnum):
11class Channel(WireEnum):
12    """Typed channel data in the message template resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``MessageTemplateChannel``.
18    """
19    SMS = "sms"
20    """Wire value ``sms`` (sms)"""
21    EMAIL = "email"
22    """Wire value ``email`` (email)"""

Typed channel data in the message template resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: MessageTemplateChannel.

SMS = <Channel.SMS: 'sms'>

Wire value sms (sms)

EMAIL = <Channel.EMAIL: 'email'>

Wire value email (email)

@dataclass(frozen=True, slots=True, kw_only=True)
class CreateEmailRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class CreateEmailRequest(ApiRequest):
15    """Parameters accepted by the create email request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``CreateEmailMessageTemplateRequest``.
22    """
23    about: str | UnsetType = field(default=UNSET)
24    """The about associated with this create email request. Optional. Python type: ``str``; wire name: ``about``; JSON type: string"""
25    attachments: MessageTemplateAttachmentIDsInput | UnsetType = field(default=UNSET)
26    """Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional. Python type: ``MessageTemplateAttachmentIDsInput``; wire name: ``attachments``; JSON type: object (MessageTemplateAttachmentIDs)"""
27    locale: str | UnsetType = field(default=UNSET)
28    """The locale associated with this create email request. Optional. Python type: ``str``; wire name: ``locale``; JSON type: string"""
29    variables: list[MessageTemplateVariableInput] | UnsetType = field(default=UNSET)
30    """The variables associated with this create email request. Optional. Python type: ``list[MessageTemplateVariableInput]``; wire name: ``variables``; JSON type: array of object (MessageTemplateVariableInput) values"""
31    channel: Literal['email', MessageTemplateChannel.EMAIL]
32    """The channel associated with this create email request. Required. Python type: ``Literal['email', MessageTemplateChannel.EMAIL]``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``email``"""
33    email: MessageTemplateEmailContentInput
34    """The email associated with this create email request. Required. Python type: ``MessageTemplateEmailContentInput``; wire name: ``email``; JSON type: object (MessageTemplateEmailContent)"""
35    name: str
36    """Human-readable name of the create email request. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
37    purpose: str
38    """The purpose associated with this create email request. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string"""

Parameters accepted by the create email request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: CreateEmailMessageTemplateRequest.

CreateEmailRequest( *, about: str | inttegro._request_base.UnsetType = UNSET, attachments: list[str] | inttegro._request_base.UnsetType = UNSET, locale: str | inttegro._request_base.UnsetType = UNSET, variables: list[VariableInput] | inttegro._request_base.UnsetType = UNSET, channel: Literal['email', <Channel.EMAIL: 'email'>], email: EmailContentInput, name: str, purpose: str)
about: str | inttegro._request_base.UnsetType

The about associated with this create email request. Optional. Python type: str; wire name: about; JSON type: string

attachments: list[str] | inttegro._request_base.UnsetType

Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional. Python type: MessageTemplateAttachmentIDsInput; wire name: attachments; JSON type: object (MessageTemplateAttachmentIDs)

locale: str | inttegro._request_base.UnsetType

The locale associated with this create email request. Optional. Python type: str; wire name: locale; JSON type: string

variables: list[VariableInput] | inttegro._request_base.UnsetType

The variables associated with this create email request. Optional. Python type: list[MessageTemplateVariableInput]; wire name: variables; JSON type: array of object (MessageTemplateVariableInput) values

channel: Literal['email', <Channel.EMAIL: 'email'>]

The channel associated with this create email request. Required. Python type: Literal['email', MessageTemplateChannel.EMAIL]; wire name: channel; JSON type: string. Constraints: allowed values email

The email associated with this create email request. Required. Python type: MessageTemplateEmailContentInput; wire name: email; JSON type: object (MessageTemplateEmailContent)

name: str

Human-readable name of the create email request. Required. Python type: str; wire name: name; JSON type: string

purpose: str

The purpose associated with this create email request. Required. Python type: str; wire name: purpose; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class CreateSMSRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class CreateSMSRequest(ApiRequest):
15    """Parameters accepted by the create smsrequest operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``CreateSMSMessageTemplateRequest``.
22    """
23    about: str | UnsetType = field(default=UNSET)
24    """The about associated with this create smsrequest. Optional. Python type: ``str``; wire name: ``about``; JSON type: string"""
25    locale: str | UnsetType = field(default=UNSET)
26    """The locale associated with this create smsrequest. Optional. Python type: ``str``; wire name: ``locale``; JSON type: string"""
27    variables: list[MessageTemplateVariableInput] | UnsetType = field(default=UNSET)
28    """The variables associated with this create smsrequest. Optional. Python type: ``list[MessageTemplateVariableInput]``; wire name: ``variables``; JSON type: array of object (MessageTemplateVariableInput) values"""
29    channel: Literal['sms', MessageTemplateChannel.SMS]
30    """The channel associated with this create smsrequest. Required. Python type: ``Literal['sms', MessageTemplateChannel.SMS]``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``sms``"""
31    name: str
32    """Human-readable name of the create smsrequest. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
33    purpose: str
34    """The purpose associated with this create smsrequest. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
35    sms: MessageTemplateSMSContentInput
36    """The sms associated with this create smsrequest. Required. Python type: ``MessageTemplateSMSContentInput``; wire name: ``sms``; JSON type: object (MessageTemplateSMSContent)"""

Parameters accepted by the create smsrequest operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: CreateSMSMessageTemplateRequest.

CreateSMSRequest( *, about: str | inttegro._request_base.UnsetType = UNSET, locale: str | inttegro._request_base.UnsetType = UNSET, variables: list[VariableInput] | inttegro._request_base.UnsetType = UNSET, channel: Literal['sms', <Channel.SMS: 'sms'>], name: str, purpose: str, sms: SMSContentInput)
about: str | inttegro._request_base.UnsetType

The about associated with this create smsrequest. Optional. Python type: str; wire name: about; JSON type: string

locale: str | inttegro._request_base.UnsetType

The locale associated with this create smsrequest. Optional. Python type: str; wire name: locale; JSON type: string

variables: list[VariableInput] | inttegro._request_base.UnsetType

The variables associated with this create smsrequest. Optional. Python type: list[MessageTemplateVariableInput]; wire name: variables; JSON type: array of object (MessageTemplateVariableInput) values

channel: Literal['sms', <Channel.SMS: 'sms'>]

The channel associated with this create smsrequest. Required. Python type: Literal['sms', MessageTemplateChannel.SMS]; wire name: channel; JSON type: string. Constraints: allowed values sms

name: str

Human-readable name of the create smsrequest. Required. Python type: str; wire name: name; JSON type: string

purpose: str

The purpose associated with this create smsrequest. Required. Python type: str; wire name: purpose; JSON type: string

The sms associated with this create smsrequest. Required. Python type: MessageTemplateSMSContentInput; wire name: sms; JSON type: object (MessageTemplateSMSContent)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailContent(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class EmailContent(ApiModel):
14    """Typed email content data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplateEmailContent``.
23    """
24    subject: str = field(init=False)
25    """Email subject template. Required. Python type: ``str``; wire name: ``subject``; JSON type: string"""
26    html: str = field(init=False)
27    """HTML email body template. Required. Python type: ``str``; wire name: ``html``; JSON type: string"""
28    from_: MessageTemplateMailbox | None = field(init=False, metadata={"wire_name": 'from'})
29    """The from associated with this email content. Optional; nullable. Python type: ``MessageTemplateMailbox | None``; wire name: ``from_``; JSON type: object"""
30    reply_to: MessageTemplateMailbox | None = field(init=False)
31    """The reply to associated with this email content. Optional; nullable. Python type: ``MessageTemplateMailbox | None``; wire name: ``reply_to``; JSON type: object (MessageTemplateMailbox)"""
32    headers: dict[str, str] | None = field(init=False)
33    """Validated provider-neutral email headers. Optional; nullable. Python type: ``dict[str, str] | None``; wire name: ``headers``; JSON type: object (MessageHeaders)"""

Typed email content data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateEmailContent.

subject: str

Email subject template. Required. Python type: str; wire name: subject; JSON type: string

html: str

HTML email body template. Required. Python type: str; wire name: html; JSON type: string

from_: Mailbox | None

The from associated with this email content. Optional; nullable. Python type: MessageTemplateMailbox | None; wire name: from_; JSON type: object

reply_to: Mailbox | None

The reply to associated with this email content. Optional; nullable. Python type: MessageTemplateMailbox | None; wire name: reply_to; JSON type: object (MessageTemplateMailbox)

headers: dict[str, str] | None

Validated provider-neutral email headers. Optional; nullable. Python type: dict[str, str] | None; wire name: headers; JSON type: object (MessageHeaders)

@dataclass(frozen=True, slots=True, kw_only=True)
class EmailContentInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class EmailContentInput(ApiRequest):
14    """Parameters accepted by the email content input operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``MessageTemplateEmailContentInput``.
21    """
22    from_: MessageTemplateMailboxInput | UnsetType = field(default=UNSET, metadata={'wire_name': 'from'})
23    """The from associated with this email content input. Optional. Python type: ``MessageTemplateMailboxInput``; wire name: ``from_``; JSON type: object"""
24    reply_to: MessageTemplateMailboxInput | UnsetType = field(default=UNSET)
25    """The reply to associated with this email content input. Optional. Python type: ``MessageTemplateMailboxInput``; wire name: ``reply_to``; JSON type: object (MessageTemplateMailbox)"""
26    headers: dict[str, str] | UnsetType = field(default=UNSET)
27    """Validated provider-neutral email headers. Optional. Python type: ``dict[str, str]``; wire name: ``headers``; JSON type: object (MessageHeaders)"""
28    subject: str
29    """Email subject template. Required. Python type: ``str``; wire name: ``subject``; JSON type: string"""
30    html: str
31    """HTML email body template. Required. Python type: ``str``; wire name: ``html``; JSON type: string"""

Parameters accepted by the email content input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateEmailContentInput.

EmailContentInput( *, from_: MailboxInput | inttegro._request_base.UnsetType = UNSET, reply_to: MailboxInput | inttegro._request_base.UnsetType = UNSET, headers: dict[str, str] | inttegro._request_base.UnsetType = UNSET, subject: str, html: str)
from_: MailboxInput | inttegro._request_base.UnsetType

The from associated with this email content input. Optional. Python type: MessageTemplateMailboxInput; wire name: from_; JSON type: object

reply_to: MailboxInput | inttegro._request_base.UnsetType

The reply to associated with this email content input. Optional. Python type: MessageTemplateMailboxInput; wire name: reply_to; JSON type: object (MessageTemplateMailbox)

headers: dict[str, str] | inttegro._request_base.UnsetType

Validated provider-neutral email headers. Optional. Python type: dict[str, str]; wire name: headers; JSON type: object (MessageHeaders)

subject: str

Email subject template. Required. Python type: str; wire name: subject; JSON type: string

html: str

HTML email body template. Required. Python type: str; wire name: html; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Envelope(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Envelope(ApiModel):
14    """Typed envelope data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplateEnvelope``.
23    """
24    message_template: MessageTemplate = field(init=False)
25    """The message template associated with this envelope. Required. Python type: ``MessageTemplate``; wire name: ``message_template``; JSON type: object (MessageTemplate)"""

Typed envelope data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateEnvelope.

message_template: MessageTemplate

The message template associated with this envelope. Required. Python type: MessageTemplate; wire name: message_template; JSON type: object (MessageTemplate)

@dataclass(frozen=True, slots=True, kw_only=True)
class IDRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class IDRequest(ApiRequest):
14    """Parameters accepted by the idrequest operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``MessageTemplateIDRequest``.
21    """
22    id: str
23    """API-generated message template id. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""

Parameters accepted by the idrequest operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateIDRequest.

IDRequest(*, id: str)
id: str

API-generated message template id. Required. Python type: str; wire name: id; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Mailbox(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Mailbox(ApiModel):
14    """Typed mailbox data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplateMailbox``.
23    """
24    address: str = field(init=False)
25    """Literal or templated mailbox address, such as `{{recipient_email}}`. Required. Python type: ``str``; wire name: ``address``; JSON type: string"""
26    name: str | None = field(init=False)
27    """Human-readable name of the mailbox. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string"""

Typed mailbox data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateMailbox.

address: str

Literal or templated mailbox address, such as {{recipient_email}}. Required. Python type: str; wire name: address; JSON type: string

name: str | None

Human-readable name of the mailbox. Optional; nullable. Python type: str | None; wire name: name; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class MailboxInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class MailboxInput(ApiRequest):
14    """Parameters accepted by the mailbox input operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``MessageTemplateMailboxInput``.
21    """
22    name: str | UnsetType = field(default=UNSET)
23    """Human-readable name of the mailbox input. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
24    address: str
25    """Literal or templated mailbox address, such as `{{recipient_email}}`. Required. Python type: ``str``; wire name: ``address``; JSON type: string"""

Parameters accepted by the mailbox input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateMailboxInput.

MailboxInput( *, name: str | inttegro._request_base.UnsetType = UNSET, address: str)
name: str | inttegro._request_base.UnsetType

Human-readable name of the mailbox input. Optional. Python type: str; wire name: name; JSON type: string

address: str

Literal or templated mailbox address, such as {{recipient_email}}. Required. Python type: str; wire name: address; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class MessageTemplate(inttegro._model_base.ApiModel):
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
15class MessageTemplate(ApiModel):
16    """Typed message template data in the message template resource namespace.
17
18    Instances are immutable API responses. ``from_dict()`` decodes nested
19    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
20    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
21    Fields not returned by the API remain absent and can still be queried
22    through mapping-style access.
23    """
24    id: str = field(init=False)
25    """API-generated unique template id. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
26    name: str = field(init=False)
27    """Human-readable name of the message template. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
28    about: str | None = field(init=False)
29    """The about associated with this message template. Optional; nullable. Python type: ``str | None``; wire name: ``about``; JSON type: string"""
30    channel: Literal['sms', 'email'] = field(init=False)
31    """The channel associated with this message template. Required. Python type: ``Literal['sms', 'email']``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
32    purpose: str = field(init=False)
33    """The purpose associated with this message template. Required. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
34    locale: str = field(init=False)
35    """The locale associated with this message template. Required. Python type: ``str``; wire name: ``locale``; JSON type: string"""
36    status: Literal['draft', 'published', 'archived'] = field(init=False)
37    """Current lifecycle status of the message template. Required. Python type: ``Literal['draft', 'published', 'archived']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``draft``, ``published``, ``archived``"""
38    version: int = field(init=False)
39    """The version associated with this message template. Required. Python type: ``int``; wire name: ``version``; JSON type: integer"""
40    published_version: int | None = field(init=False)
41    """The published version associated with this message template. Optional; nullable. Python type: ``int | None``; wire name: ``published_version``; JSON type: integer"""
42    draft_version: int = field(init=False)
43    """The draft version associated with this message template. Required. Python type: ``int``; wire name: ``draft_version``; JSON type: integer"""
44    has_unpublished_changes: bool = field(init=False)
45    """Whether has unpublished changes. Required. Python type: ``bool``; wire name: ``has_unpublished_changes``; JSON type: boolean"""
46    variables: list[MessageTemplateVariable] | None = field(init=False)
47    """The variables associated with this message template. Optional; nullable. Python type: ``list[MessageTemplateVariable] | None``; wire name: ``variables``; JSON type: array of object (MessageTemplateVariable) values"""
48    sms: MessageTemplateSMSContent | None = field(init=False)
49    """The sms associated with this message template. Optional; nullable. Python type: ``MessageTemplateSMSContent | None``; wire name: ``sms``; JSON type: object (MessageTemplateSMSContent)"""
50    email: MessageTemplateEmailContent | None = field(init=False)
51    """The email associated with this message template. Optional; nullable. Python type: ``MessageTemplateEmailContent | None``; wire name: ``email``; JSON type: object (MessageTemplateEmailContent)"""
52    attachments: MessageTemplateAttachmentIDs | None = field(init=False)
53    """Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional; nullable. Python type: ``MessageTemplateAttachmentIDs | None``; wire name: ``attachments``; JSON type: object (MessageTemplateAttachmentIDs)"""
54    created_at: datetime = field(init=False)
55    """When the message template was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
56    updated_at: datetime = field(init=False)
57    """When the message template was last updated. Required. Python type: ``datetime``; wire name: ``updated_at``; JSON type: string (date-time)"""
58    published_at: datetime | None = field(init=False)
59    """When the message template was first published. Optional; nullable. Python type: ``datetime | None``; wire name: ``published_at``; JSON type: string (date-time)"""
60    archived_at: datetime | None = field(init=False)
61    """When the message template was archived. Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)"""

Typed message template data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

id: str

API-generated unique template id. Required. Python type: str; wire name: id; JSON type: string

name: str

Human-readable name of the message template. Required. Python type: str; wire name: name; JSON type: string

about: str | None

The about associated with this message template. Optional; nullable. Python type: str | None; wire name: about; JSON type: string

channel: Literal['sms', 'email']

The channel associated with this message template. Required. Python type: Literal['sms', 'email']; wire name: channel; JSON type: string. Constraints: allowed values sms, email

purpose: str

The purpose associated with this message template. Required. Python type: str; wire name: purpose; JSON type: string

locale: str

The locale associated with this message template. Required. Python type: str; wire name: locale; JSON type: string

status: Literal['draft', 'published', 'archived']

Current lifecycle status of the message template. Required. Python type: Literal['draft', 'published', 'archived']; wire name: status; JSON type: string. Constraints: allowed values draft, published, archived

version: int

The version associated with this message template. Required. Python type: int; wire name: version; JSON type: integer

published_version: int | None

The published version associated with this message template. Optional; nullable. Python type: int | None; wire name: published_version; JSON type: integer

draft_version: int

The draft version associated with this message template. Required. Python type: int; wire name: draft_version; JSON type: integer

has_unpublished_changes: bool

Whether has unpublished changes. Required. Python type: bool; wire name: has_unpublished_changes; JSON type: boolean

variables: list[Variable] | None

The variables associated with this message template. Optional; nullable. Python type: list[MessageTemplateVariable] | None; wire name: variables; JSON type: array of object (MessageTemplateVariable) values

sms: SMSContent | None

The sms associated with this message template. Optional; nullable. Python type: MessageTemplateSMSContent | None; wire name: sms; JSON type: object (MessageTemplateSMSContent)

email: EmailContent | None

The email associated with this message template. Optional; nullable. Python type: MessageTemplateEmailContent | None; wire name: email; JSON type: object (MessageTemplateEmailContent)

attachments: list[str] | None

Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional; nullable. Python type: MessageTemplateAttachmentIDs | None; wire name: attachments; JSON type: object (MessageTemplateAttachmentIDs)

created_at: datetime.datetime

When the message template was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

updated_at: datetime.datetime

When the message template was last updated. Required. Python type: datetime; wire name: updated_at; JSON type: string (date-time)

published_at: datetime.datetime | None

When the message template was first published. Optional; nullable. Python type: datetime | None; wire name: published_at; JSON type: string (date-time)

archived_at: datetime.datetime | None

When the message template was archived. Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Page(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Page(ApiModel):
14    """One page of page resources.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplatesPage``.
23    """
24    number: int = field(init=False)
25    """Human-readable number assigned to the page. Required. Python type: ``int``; wire name: ``number``; JSON type: integer"""
26    size: int = field(init=False)
27    """Number of templates returned in this page after filters are applied. Required. Python type: ``int``; wire name: ``size``; JSON type: integer"""
28    message_templates: list[MessageTemplate] = field(init=False)
29    """The message templates associated with this page. Required. Python type: ``list[MessageTemplate]``; wire name: ``message_templates``; JSON type: array of object (MessageTemplate) values"""

One page of page resources.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplatesPage.

number: int

Human-readable number assigned to the page. Required. Python type: int; wire name: number; JSON type: integer

size: int

Number of templates returned in this page after filters are applied. Required. Python type: int; wire name: size; JSON type: integer

message_templates: list[MessageTemplate]

The message templates associated with this page. Required. Python type: list[MessageTemplate]; wire name: message_templates; JSON type: array of object (MessageTemplate) values

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class PageEnvelope(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class PageEnvelope(ApiModel):
14    """Typed page envelope data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplatesPageEnvelope``.
23    """
24    page: MessageTemplatesPage = field(init=False)
25    """Numeric page used by this operation. Required. Python type: ``MessageTemplatesPage``; wire name: ``page``; JSON type: object (MessageTemplatesPage)"""

Typed page envelope data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplatesPageEnvelope.

page: Page

Numeric page used by this operation. Required. Python type: MessageTemplatesPage; wire name: page; JSON type: object (MessageTemplatesPage)

@dataclass(frozen=True, slots=True, kw_only=True)
class PageRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class PageRequest(ApiRequest):
15    """Parameters accepted by the page request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``PageMessageTemplatesRequest``.
22    """
23    page: int | UnsetType = field(default=UNSET)
24    """Numeric page used by this operation. Optional. Python type: ``int``; wire name: ``page``; JSON type: integer. Constraints: minimum 1"""
25    size: int | UnsetType = field(default=UNSET)
26    """Numeric size used by this operation. Optional. Python type: ``int``; wire name: ``size``; JSON type: integer. Constraints: minimum 1"""
27    status: Literal['draft', 'published', 'archived', MessageTemplateStatus.DRAFT, MessageTemplateStatus.PUBLISHED, MessageTemplateStatus.ARCHIVED] | UnsetType = field(default=UNSET)
28    """Current lifecycle status of the page request. Optional. Python type: ``Literal['draft', 'published', 'archived', MessageTemplateStatus.DRAFT, MessageTemplateStatus.PUBLISHED, MessageTemplateStatus.ARCHIVED]``; wire name: ``status``; JSON type: string. Constraints: allowed values ``draft``, ``published``, ``archived``"""
29    channel: Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL] | UnsetType = field(default=UNSET)
30    """The channel associated with this page request. Optional. Python type: ``Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL]``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
31    purpose: str | UnsetType = field(default=UNSET)
32    """The purpose associated with this page request. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
33    locale: str | UnsetType = field(default=UNSET)
34    """The locale associated with this page request. Optional. Python type: ``str``; wire name: ``locale``; JSON type: string"""

Parameters accepted by the page request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: PageMessageTemplatesRequest.

PageRequest( *, page: int | inttegro._request_base.UnsetType = UNSET, size: int | inttegro._request_base.UnsetType = UNSET, status: Union[Literal['draft', 'published', 'archived', <Status.DRAFT: 'draft'>, <Status.PUBLISHED: 'published'>, <Status.ARCHIVED: 'archived'>], inttegro._request_base.UnsetType] = UNSET, channel: Union[Literal['sms', 'email', <Channel.SMS: 'sms'>, <Channel.EMAIL: 'email'>], inttegro._request_base.UnsetType] = UNSET, purpose: str | inttegro._request_base.UnsetType = UNSET, locale: str | inttegro._request_base.UnsetType = UNSET)
page: int | inttegro._request_base.UnsetType

Numeric page used by this operation. Optional. Python type: int; wire name: page; JSON type: integer. Constraints: minimum 1

size: int | inttegro._request_base.UnsetType

Numeric size used by this operation. Optional. Python type: int; wire name: size; JSON type: integer. Constraints: minimum 1

status: Union[Literal['draft', 'published', 'archived', <Status.DRAFT: 'draft'>, <Status.PUBLISHED: 'published'>, <Status.ARCHIVED: 'archived'>], inttegro._request_base.UnsetType]

Current lifecycle status of the page request. Optional. Python type: Literal['draft', 'published', 'archived', MessageTemplateStatus.DRAFT, MessageTemplateStatus.PUBLISHED, MessageTemplateStatus.ARCHIVED]; wire name: status; JSON type: string. Constraints: allowed values draft, published, archived

channel: Union[Literal['sms', 'email', <Channel.SMS: 'sms'>, <Channel.EMAIL: 'email'>], inttegro._request_base.UnsetType]

The channel associated with this page request. Optional. Python type: Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL]; wire name: channel; JSON type: string. Constraints: allowed values sms, email

purpose: str | inttegro._request_base.UnsetType

The purpose associated with this page request. Optional. Python type: str; wire name: purpose; JSON type: string

locale: str | inttegro._request_base.UnsetType

The locale associated with this page request. Optional. Python type: str; wire name: locale; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Preview(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Preview(ApiModel):
14    """Typed preview data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplatePreview``.
23    """
24    message_template: MessageTemplate = field(init=False)
25    """The message template associated with this preview. Required. Python type: ``MessageTemplate``; wire name: ``message_template``; JSON type: object (MessageTemplate)"""
26    rendered: RenderedMessageTemplate = field(init=False)
27    """The rendered associated with this preview. Required. Python type: ``RenderedMessageTemplate``; wire name: ``rendered``; JSON type: object (RenderedMessageTemplate)"""

Typed preview data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplatePreview.

message_template: MessageTemplate

The message template associated with this preview. Required. Python type: MessageTemplate; wire name: message_template; JSON type: object (MessageTemplate)

rendered: Rendered

The rendered associated with this preview. Required. Python type: RenderedMessageTemplate; wire name: rendered; JSON type: object (RenderedMessageTemplate)

@dataclass(frozen=True, slots=True, kw_only=True)
class ReferenceInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class ReferenceInput(ApiRequest):
14    """Parameters accepted by the reference input operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``MessageTemplateReferenceInput``.
21    """
22    variables: MessageTemplateVariablesInput | UnsetType = field(default=UNSET)
23    """Variable values used when rendering a template. Optional. Python type: ``MessageTemplateVariablesInput``; wire name: ``variables``; JSON type: object (MessageTemplateVariables)"""
24    template_id: str
25    """API-generated message template id. Required. Python type: ``str``; wire name: ``template_id``; JSON type: string"""

Parameters accepted by the reference input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateReferenceInput.

ReferenceInput( *, variables: dict[str, typing.Any] | inttegro._request_base.UnsetType = UNSET, template_id: str)
variables: dict[str, typing.Any] | inttegro._request_base.UnsetType

Variable values used when rendering a template. Optional. Python type: MessageTemplateVariablesInput; wire name: variables; JSON type: object (MessageTemplateVariables)

template_id: str

API-generated message template id. Required. Python type: str; wire name: template_id; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class RenderPreviewRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class RenderPreviewRequest(ApiRequest):
14    """Parameters accepted by the render preview request operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``RenderMessageTemplatePreviewRequest``.
21    """
22    message_template: MessageTemplateReferenceInput
23    """The message template associated with this render preview request. Required. Python type: ``MessageTemplateReferenceInput``; wire name: ``message_template``; JSON type: object (MessageTemplateReference)"""

Parameters accepted by the render preview request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: RenderMessageTemplatePreviewRequest.

RenderPreviewRequest( *, message_template: ReferenceInput)
message_template: ReferenceInput

The message template associated with this render preview request. Required. Python type: MessageTemplateReferenceInput; wire name: message_template; JSON type: object (MessageTemplateReference)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Rendered(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class Rendered(ApiModel):
15    """Typed rendered data in the message template resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``RenderedMessageTemplate``.
24    """
25    channel: Literal['sms', 'email'] = field(init=False)
26    """The channel associated with this rendered. Required. Python type: ``Literal['sms', 'email']``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
27    attachments: MessageTemplateAttachmentIDs | None = field(init=False)
28    """Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional; nullable. Python type: ``MessageTemplateAttachmentIDs | None``; wire name: ``attachments``; JSON type: object (MessageTemplateAttachmentIDs)"""
29    sms: RenderedSMSMessageTemplate | None = field(init=False)
30    """The sms associated with this rendered. Optional; nullable. Python type: ``RenderedSMSMessageTemplate | None``; wire name: ``sms``; JSON type: object (RenderedSMSMessageTemplate)"""
31    email: RenderedEmailMessageTemplate | None = field(init=False)
32    """The email associated with this rendered. Optional; nullable. Python type: ``RenderedEmailMessageTemplate | None``; wire name: ``email``; JSON type: object (RenderedEmailMessageTemplate)"""

Typed rendered data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: RenderedMessageTemplate.

channel: Literal['sms', 'email']

The channel associated with this rendered. Required. Python type: Literal['sms', 'email']; wire name: channel; JSON type: string. Constraints: allowed values sms, email

attachments: list[str] | None

Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional; nullable. Python type: MessageTemplateAttachmentIDs | None; wire name: attachments; JSON type: object (MessageTemplateAttachmentIDs)

sms: RenderedSMS | None

The sms associated with this rendered. Optional; nullable. Python type: RenderedSMSMessageTemplate | None; wire name: sms; JSON type: object (RenderedSMSMessageTemplate)

email: RenderedEmail | None

The email associated with this rendered. Optional; nullable. Python type: RenderedEmailMessageTemplate | None; wire name: email; JSON type: object (RenderedEmailMessageTemplate)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class RenderedEmail(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class RenderedEmail(ApiModel):
14    """Typed rendered email data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``RenderedEmailMessageTemplate``.
23    """
24    subject: str = field(init=False)
25    """The subject associated with this rendered email. Required. Python type: ``str``; wire name: ``subject``; JSON type: string"""
26    text: str = field(init=False)
27    """The text associated with this rendered email. Required. Python type: ``str``; wire name: ``text``; JSON type: string"""
28    html: str | None = field(init=False)
29    """The html associated with this rendered email. Optional; nullable. Python type: ``str | None``; wire name: ``html``; JSON type: string"""
30    from_: MessageTemplateMailbox | None = field(init=False, metadata={"wire_name": 'from'})
31    """The from associated with this rendered email. Optional; nullable. Python type: ``MessageTemplateMailbox | None``; wire name: ``from_``; JSON type: object"""
32    reply_to: MessageTemplateMailbox | None = field(init=False)
33    """The reply to associated with this rendered email. Optional; nullable. Python type: ``MessageTemplateMailbox | None``; wire name: ``reply_to``; JSON type: object (MessageTemplateMailbox)"""
34    headers: dict[str, str] | None = field(init=False)
35    """Validated provider-neutral email headers. Optional; nullable. Python type: ``dict[str, str] | None``; wire name: ``headers``; JSON type: object (MessageHeaders)"""
36    safety: MessageTemplateSafetyResult | None = field(init=False)
37    """Result of the email safety scan. Optional; nullable. Python type: ``MessageTemplateSafetyResult | None``; wire name: ``safety``; JSON type: object (MessageTemplateSafetyResult)"""

Typed rendered email data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: RenderedEmailMessageTemplate.

subject: str

The subject associated with this rendered email. Required. Python type: str; wire name: subject; JSON type: string

text: str

The text associated with this rendered email. Required. Python type: str; wire name: text; JSON type: string

html: str | None

The html associated with this rendered email. Optional; nullable. Python type: str | None; wire name: html; JSON type: string

from_: Mailbox | None

The from associated with this rendered email. Optional; nullable. Python type: MessageTemplateMailbox | None; wire name: from_; JSON type: object

reply_to: Mailbox | None

The reply to associated with this rendered email. Optional; nullable. Python type: MessageTemplateMailbox | None; wire name: reply_to; JSON type: object (MessageTemplateMailbox)

headers: dict[str, str] | None

Validated provider-neutral email headers. Optional; nullable. Python type: dict[str, str] | None; wire name: headers; JSON type: object (MessageHeaders)

safety: SafetyResult | None

Result of the email safety scan. Optional; nullable. Python type: MessageTemplateSafetyResult | None; wire name: safety; JSON type: object (MessageTemplateSafetyResult)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class RenderedSMS(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class RenderedSMS(ApiModel):
14    """Typed rendered sms data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``RenderedSMSMessageTemplate``.
23    """
24    full_message: str = field(init=False)
25    """The full message associated with this rendered sm. Required. Python type: ``str``; wire name: ``full_message``; JSON type: string. Constraints: maximum length 120"""

Typed rendered sms data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: RenderedSMSMessageTemplate.

full_message: str

The full message associated with this rendered sm. Required. Python type: str; wire name: full_message; JSON type: string. Constraints: maximum length 120

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class SMSContent(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class SMSContent(ApiModel):
14    """Typed smscontent data in the message template resource namespace.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``MessageTemplateSMSContent``.
23    """
24    message_template: str = field(init=False)
25    """SMS body template. Required. Python type: ``str``; wire name: ``message_template``; JSON type: string"""

Typed smscontent data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateSMSContent.

message_template: str

SMS body template. Required. Python type: str; wire name: message_template; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class SMSContentInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class SMSContentInput(ApiRequest):
14    """Parameters accepted by the smscontent input operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``MessageTemplateSMSContentInput``.
21    """
22    message_template: str
23    """SMS body template. Required. Python type: ``str``; wire name: ``message_template``; JSON type: string"""

Parameters accepted by the smscontent input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateSMSContentInput.

SMSContentInput(*, message_template: str)
message_template: str

SMS body template. Required. Python type: str; wire name: message_template; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class SafetyResult(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class SafetyResult(ApiModel):
15    """Result of the email safety scan.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``MessageTemplateSafetyResult``.
24    """
25    content_hash: str = field(init=False)
26    """The content hash associated with this safety result. Required. Python type: ``str``; wire name: ``content_hash``; JSON type: string"""
27    links: list[MessageTemplateScannedLink] | None = field(init=False)
28    """The links associated with this safety result. Optional; nullable. Python type: ``list[MessageTemplateScannedLink] | None``; wire name: ``links``; JSON type: array of object (MessageTemplateScannedLink) values"""
29    normalized_text: str = field(init=False)
30    """The normalized text associated with this safety result. Required. Python type: ``str``; wire name: ``normalized_text``; JSON type: string"""
31    quarantine_notes: str | None = field(init=False)
32    """The quarantine notes associated with this safety result. Optional; nullable. Python type: ``str | None``; wire name: ``quarantine_notes``; JSON type: string"""
33    reason_codes: list[str] | None = field(init=False)
34    """The reason codes associated with this safety result. Optional; nullable. Python type: ``list[str] | None``; wire name: ``reason_codes``; JSON type: array of string values"""
35    sanitized_html: str | None = field(init=False)
36    """The sanitized html associated with this safety result. Optional; nullable. Python type: ``str | None``; wire name: ``sanitized_html``; JSON type: string"""
37    scanner: str = field(init=False)
38    """The scanner associated with this safety result. Required. Python type: ``str``; wire name: ``scanner``; JSON type: string"""
39    status: Literal['allowed', 'rejected', 'quarantined'] = field(init=False)
40    """Current lifecycle status of the safety result. Required. Python type: ``Literal['allowed', 'rejected', 'quarantined']``; wire name: ``status``; JSON type: string. Constraints: allowed values ``allowed``, ``rejected``, ``quarantined``"""

Result of the email safety scan.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateSafetyResult.

content_hash: str

The content hash associated with this safety result. Required. Python type: str; wire name: content_hash; JSON type: string

normalized_text: str

The normalized text associated with this safety result. Required. Python type: str; wire name: normalized_text; JSON type: string

quarantine_notes: str | None

The quarantine notes associated with this safety result. Optional; nullable. Python type: str | None; wire name: quarantine_notes; JSON type: string

reason_codes: list[str] | None

The reason codes associated with this safety result. Optional; nullable. Python type: list[str] | None; wire name: reason_codes; JSON type: array of string values

sanitized_html: str | None

The sanitized html associated with this safety result. Optional; nullable. Python type: str | None; wire name: sanitized_html; JSON type: string

scanner: str

The scanner associated with this safety result. Required. Python type: str; wire name: scanner; JSON type: string

status: Literal['allowed', 'rejected', 'quarantined']

Current lifecycle status of the safety result. Required. Python type: Literal['allowed', 'rejected', 'quarantined']; wire name: status; JSON type: string. Constraints: allowed values allowed, rejected, quarantined

class Status(inttegro._enum_base.WireEnum):
11class Status(WireEnum):
12    """Typed status data in the message template resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``MessageTemplateStatus``.
18    """
19    DRAFT = "draft"
20    """Wire value ``draft`` (draft)"""
21    PUBLISHED = "published"
22    """Wire value ``published`` (published)"""
23    ARCHIVED = "archived"
24    """Wire value ``archived`` (archived)"""

Typed status data in the message template resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: MessageTemplateStatus.

DRAFT = <Status.DRAFT: 'draft'>

Wire value draft (draft)

PUBLISHED = <Status.PUBLISHED: 'published'>

Wire value published (published)

ARCHIVED = <Status.ARCHIVED: 'archived'>

Wire value archived (archived)

@dataclass(frozen=True, slots=True, kw_only=True)
class UpdateRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class UpdateRequest(ApiRequest):
15    """Parameters accepted by the update request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``UpdateMessageTemplateRequest``.
22    """
23    name: str | UnsetType = field(default=UNSET)
24    """Human-readable template name. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
25    about: str | UnsetType = field(default=UNSET)
26    """Optional description of when this template should be used. Optional. Python type: ``str``; wire name: ``about``; JSON type: string"""
27    channel: Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL] | UnsetType = field(default=UNSET)
28    """Existing template channel. Channels cannot be changed. Optional. Python type: ``Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL]``; wire name: ``channel``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
29    purpose: str | UnsetType = field(default=UNSET)
30    """Caller-defined purpose for filtering and analytics. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
31    locale: str | UnsetType = field(default=UNSET)
32    """The locale associated with this update request. Optional. Python type: ``str``; wire name: ``locale``; JSON type: string"""
33    variables: list[MessageTemplateVariableInput] | UnsetType = field(default=UNSET)
34    """The variables associated with this update request. Optional. Python type: ``list[MessageTemplateVariableInput]``; wire name: ``variables``; JSON type: array of object (MessageTemplateVariableInput) values"""
35    sms: MessageTemplateSMSContentInput | UnsetType = field(default=UNSET)
36    """The sms associated with this update request. Optional. Python type: ``MessageTemplateSMSContentInput``; wire name: ``sms``; JSON type: object (MessageTemplateSMSContent)"""
37    email: MessageTemplateEmailContentInput | UnsetType = field(default=UNSET)
38    """The email associated with this update request. Optional. Python type: ``MessageTemplateEmailContentInput``; wire name: ``email``; JSON type: object (MessageTemplateEmailContent)"""
39    attachments: MessageTemplateAttachmentIDsInput | UnsetType = field(default=UNSET)
40    """Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional. Python type: ``MessageTemplateAttachmentIDsInput``; wire name: ``attachments``; JSON type: object (MessageTemplateAttachmentIDs)"""
41    id: str
42    """API-generated message template id. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""

Parameters accepted by the update request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: UpdateMessageTemplateRequest.

UpdateRequest( *, name: str | inttegro._request_base.UnsetType = UNSET, about: str | inttegro._request_base.UnsetType = UNSET, channel: Union[Literal['sms', 'email', <Channel.SMS: 'sms'>, <Channel.EMAIL: 'email'>], inttegro._request_base.UnsetType] = UNSET, purpose: str | inttegro._request_base.UnsetType = UNSET, locale: str | inttegro._request_base.UnsetType = UNSET, variables: list[VariableInput] | inttegro._request_base.UnsetType = UNSET, sms: SMSContentInput | inttegro._request_base.UnsetType = UNSET, email: EmailContentInput | inttegro._request_base.UnsetType = UNSET, attachments: list[str] | inttegro._request_base.UnsetType = UNSET, id: str)
name: str | inttegro._request_base.UnsetType

Human-readable template name. Optional. Python type: str; wire name: name; JSON type: string

about: str | inttegro._request_base.UnsetType

Optional description of when this template should be used. Optional. Python type: str; wire name: about; JSON type: string

channel: Union[Literal['sms', 'email', <Channel.SMS: 'sms'>, <Channel.EMAIL: 'email'>], inttegro._request_base.UnsetType]

Existing template channel. Channels cannot be changed. Optional. Python type: Literal['sms', 'email', MessageTemplateChannel.SMS, MessageTemplateChannel.EMAIL]; wire name: channel; JSON type: string. Constraints: allowed values sms, email

purpose: str | inttegro._request_base.UnsetType

Caller-defined purpose for filtering and analytics. Optional. Python type: str; wire name: purpose; JSON type: string

locale: str | inttegro._request_base.UnsetType

The locale associated with this update request. Optional. Python type: str; wire name: locale; JSON type: string

variables: list[VariableInput] | inttegro._request_base.UnsetType

The variables associated with this update request. Optional. Python type: list[MessageTemplateVariableInput]; wire name: variables; JSON type: array of object (MessageTemplateVariableInput) values

sms: SMSContentInput | inttegro._request_base.UnsetType

The sms associated with this update request. Optional. Python type: MessageTemplateSMSContentInput; wire name: sms; JSON type: object (MessageTemplateSMSContent)

email: EmailContentInput | inttegro._request_base.UnsetType

The email associated with this update request. Optional. Python type: MessageTemplateEmailContentInput; wire name: email; JSON type: object (MessageTemplateEmailContent)

attachments: list[str] | inttegro._request_base.UnsetType

Stored file IDs returned by previews. Chime send, schedule, and broadcast currently reject stored-template attachments. Optional. Python type: MessageTemplateAttachmentIDsInput; wire name: attachments; JSON type: object (MessageTemplateAttachmentIDs)

id: str

API-generated message template id. Required. Python type: str; wire name: id; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Variable(inttegro._model_base.ApiModel):
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
15class Variable(ApiModel):
16    """Typed variable data in the message template resource namespace.
17
18    Instances are immutable API responses. ``from_dict()`` decodes nested
19    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
20    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
21    Fields not returned by the API remain absent and can still be queried
22    through mapping-style access.
23
24    API contract schema: ``MessageTemplateVariable``.
25    """
26    about: str | None = field(init=False)
27    """The about associated with this variable. Optional; nullable. Python type: ``str | None``; wire name: ``about``; JSON type: string"""
28    default: Any | None = field(init=False)
29    """The default associated with this variable. Optional; nullable. Python type: ``Any | None``; wire name: ``default``; JSON type: object"""
30    items: list[MessageTemplateVariableItem] | None = field(init=False)
31    """The items associated with this variable. Optional; nullable. Python type: ``list[MessageTemplateVariableItem] | None``; wire name: ``items``; JSON type: array of object (MessageTemplateVariableItem) values"""
32    name: str = field(init=False)
33    """Human-readable name of the variable. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
34    required: bool = field(init=False)
35    """Whether required. Required. Python type: ``bool``; wire name: ``required``; JSON type: boolean"""
36    type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array'] = field(init=False)
37    """Discriminator identifying the variable type. Required. Python type: ``Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``string``, ``number``, ``integer``, ``boolean``, ``url``, ``email``, ``phone``, ``date``, ``datetime``, ``array``"""

Typed variable data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateVariable.

about: str | None

The about associated with this variable. Optional; nullable. Python type: str | None; wire name: about; JSON type: string

default: typing.Any | None

The default associated with this variable. Optional; nullable. Python type: Any | None; wire name: default; JSON type: object

items: list[VariableItem] | None

The items associated with this variable. Optional; nullable. Python type: list[MessageTemplateVariableItem] | None; wire name: items; JSON type: array of object (MessageTemplateVariableItem) values

name: str

Human-readable name of the variable. Required. Python type: str; wire name: name; JSON type: string

required: bool

Whether required. Required. Python type: bool; wire name: required; JSON type: boolean

type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array']

Discriminator identifying the variable type. Required. Python type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array']; wire name: type; JSON type: string. Constraints: allowed values string, number, integer, boolean, url, email, phone, date, datetime, array

@dataclass(frozen=True, slots=True, kw_only=True)
class VariableInput(inttegro._request_base.ApiRequest):
14@dataclass(frozen=True, slots=True, kw_only=True)
15class VariableInput(ApiRequest):
16    """Parameters accepted by the variable input operation.
17
18    This is an immutable, keyword-only request object. ``to_dict()`` uses
19    the documented wire names, omits fields left as ``UNSET``, serializes
20    string-backed enums by value, and requires timezone-aware datetimes.
21
22    API contract schema: ``MessageTemplateVariableInput``.
23    """
24    required: bool | UnsetType = field(default=UNSET)
25    """Whether required. Optional. Python type: ``bool``; wire name: ``required``; JSON type: boolean"""
26    default: Any | UnsetType = field(default=UNSET)
27    """Default value used when this variable is omitted. Optional. Python type: ``Any``; wire name: ``default``; JSON type: object"""
28    about: str | UnsetType = field(default=UNSET)
29    """Optional description of the variable. Optional. Python type: ``str``; wire name: ``about``; JSON type: string"""
30    items: list[MessageTemplateVariableItemInput] | UnsetType = field(default=UNSET)
31    """Field schema for array item objects. Nested arrays are not supported. Optional. Python type: ``list[MessageTemplateVariableItemInput]``; wire name: ``items``; JSON type: array of object (MessageTemplateVariableItemInput) values"""
32    name: str
33    """Human-readable name of the variable input. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: pattern ^[a-z][a-z0-9_]{0,63}$"""
34    type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array', MessageTemplateVariableType.STRING, MessageTemplateVariableType.NUMBER, MessageTemplateVariableType.INTEGER, MessageTemplateVariableType.BOOLEAN, MessageTemplateVariableType.URL, MessageTemplateVariableType.EMAIL, MessageTemplateVariableType.PHONE, MessageTemplateVariableType.DATE, MessageTemplateVariableType.DATETIME, MessageTemplateVariableType.ARRAY]
35    """Discriminator identifying the variable input type. Required. Python type: ``Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array', MessageTemplateVariableType.STRING, MessageTemplateVariableType.NUMBER, MessageTemplateVariableType.INTEGER, MessageTemplateVariableType.BOOLEAN, MessageTemplateVariableType.URL, MessageTemplateVariableType.EMAIL, MessageTemplateVariableType.PHONE, MessageTemplateVariableType.DATE, MessageTemplateVariableType.DATETIME, MessageTemplateVariableType.ARRAY]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``string``, ``number``, ``integer``, ``boolean``, ``url``, ``email``, ``phone``, ``date``, ``datetime``, ``array``"""

Parameters accepted by the variable input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateVariableInput.

VariableInput( *, required: bool | inttegro._request_base.UnsetType = UNSET, default: typing.Any | inttegro._request_base.UnsetType = UNSET, about: str | inttegro._request_base.UnsetType = UNSET, items: list[VariableItemInput] | inttegro._request_base.UnsetType = UNSET, name: str, type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array', <VariableType.STRING: 'string'>, <VariableType.NUMBER: 'number'>, <VariableType.INTEGER: 'integer'>, <VariableType.BOOLEAN: 'boolean'>, <VariableType.URL: 'url'>, <VariableType.EMAIL: 'email'>, <VariableType.PHONE: 'phone'>, <VariableType.DATE: 'date'>, <VariableType.DATETIME: 'datetime'>, <VariableType.ARRAY: 'array'>])
required: bool | inttegro._request_base.UnsetType

Whether required. Optional. Python type: bool; wire name: required; JSON type: boolean

default: typing.Any | inttegro._request_base.UnsetType

Default value used when this variable is omitted. Optional. Python type: Any; wire name: default; JSON type: object

about: str | inttegro._request_base.UnsetType

Optional description of the variable. Optional. Python type: str; wire name: about; JSON type: string

items: list[VariableItemInput] | inttegro._request_base.UnsetType

Field schema for array item objects. Nested arrays are not supported. Optional. Python type: list[MessageTemplateVariableItemInput]; wire name: items; JSON type: array of object (MessageTemplateVariableItemInput) values

name: str

Human-readable name of the variable input. Required. Python type: str; wire name: name; JSON type: string. Constraints: pattern ^[a-z][a-z0-9_]{0,63}$

type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array', <VariableType.STRING: 'string'>, <VariableType.NUMBER: 'number'>, <VariableType.INTEGER: 'integer'>, <VariableType.BOOLEAN: 'boolean'>, <VariableType.URL: 'url'>, <VariableType.EMAIL: 'email'>, <VariableType.PHONE: 'phone'>, <VariableType.DATE: 'date'>, <VariableType.DATETIME: 'datetime'>, <VariableType.ARRAY: 'array'>]

Discriminator identifying the variable input type. Required. Python type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', 'array', MessageTemplateVariableType.STRING, MessageTemplateVariableType.NUMBER, MessageTemplateVariableType.INTEGER, MessageTemplateVariableType.BOOLEAN, MessageTemplateVariableType.URL, MessageTemplateVariableType.EMAIL, MessageTemplateVariableType.PHONE, MessageTemplateVariableType.DATE, MessageTemplateVariableType.DATETIME, MessageTemplateVariableType.ARRAY]; wire name: type; JSON type: string. Constraints: allowed values string, number, integer, boolean, url, email, phone, date, datetime, array

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class VariableItem(inttegro._model_base.ApiModel):
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
15class VariableItem(ApiModel):
16    """Typed variable item data in the message template resource namespace.
17
18    Instances are immutable API responses. ``from_dict()`` decodes nested
19    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
20    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
21    Fields not returned by the API remain absent and can still be queried
22    through mapping-style access.
23
24    API contract schema: ``MessageTemplateVariableItem``.
25    """
26    about: str | None = field(init=False)
27    """The about associated with this variable item. Optional; nullable. Python type: ``str | None``; wire name: ``about``; JSON type: string"""
28    default: Any | None = field(init=False)
29    """The default associated with this variable item. Optional; nullable. Python type: ``Any | None``; wire name: ``default``; JSON type: object"""
30    name: str = field(init=False)
31    """Human-readable name of the variable item. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
32    required: bool = field(init=False)
33    """Whether required. Required. Python type: ``bool``; wire name: ``required``; JSON type: boolean"""
34    type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime'] = field(init=False)
35    """Discriminator identifying the variable item type. Required. Python type: ``Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``string``, ``number``, ``integer``, ``boolean``, ``url``, ``email``, ``phone``, ``date``, ``datetime``"""

Typed variable item data in the message template resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: MessageTemplateVariableItem.

about: str | None

The about associated with this variable item. Optional; nullable. Python type: str | None; wire name: about; JSON type: string

default: typing.Any | None

The default associated with this variable item. Optional; nullable. Python type: Any | None; wire name: default; JSON type: object

name: str

Human-readable name of the variable item. Required. Python type: str; wire name: name; JSON type: string

required: bool

Whether required. Required. Python type: bool; wire name: required; JSON type: boolean

type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime']

Discriminator identifying the variable item type. Required. Python type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime']; wire name: type; JSON type: string. Constraints: allowed values string, number, integer, boolean, url, email, phone, date, datetime

@dataclass(frozen=True, slots=True, kw_only=True)
class VariableItemInput(inttegro._request_base.ApiRequest):
14@dataclass(frozen=True, slots=True, kw_only=True)
15class VariableItemInput(ApiRequest):
16    """Parameters accepted by the variable item input operation.
17
18    This is an immutable, keyword-only request object. ``to_dict()`` uses
19    the documented wire names, omits fields left as ``UNSET``, serializes
20    string-backed enums by value, and requires timezone-aware datetimes.
21
22    API contract schema: ``MessageTemplateVariableItemInput``.
23    """
24    about: str | UnsetType = field(default=UNSET)
25    """The about associated with this variable item input. Optional. Python type: ``str``; wire name: ``about``; JSON type: string"""
26    default: Any | UnsetType = field(default=UNSET)
27    """The default associated with this variable item input. Optional. Python type: ``Any``; wire name: ``default``; JSON type: object"""
28    required: bool | UnsetType = field(default=UNSET)
29    """Whether required. Optional. Python type: ``bool``; wire name: ``required``; JSON type: boolean"""
30    name: str
31    """Human-readable name of the variable item input. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: pattern ^[a-z][a-z0-9_]{0,63}$"""
32    type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', MessageTemplateVariableItemType.STRING, MessageTemplateVariableItemType.NUMBER, MessageTemplateVariableItemType.INTEGER, MessageTemplateVariableItemType.BOOLEAN, MessageTemplateVariableItemType.URL, MessageTemplateVariableItemType.EMAIL, MessageTemplateVariableItemType.PHONE, MessageTemplateVariableItemType.DATE, MessageTemplateVariableItemType.DATETIME]
33    """Discriminator identifying the variable item input type. Required. Python type: ``Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', MessageTemplateVariableItemType.STRING, MessageTemplateVariableItemType.NUMBER, MessageTemplateVariableItemType.INTEGER, MessageTemplateVariableItemType.BOOLEAN, MessageTemplateVariableItemType.URL, MessageTemplateVariableItemType.EMAIL, MessageTemplateVariableItemType.PHONE, MessageTemplateVariableItemType.DATE, MessageTemplateVariableItemType.DATETIME]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``string``, ``number``, ``integer``, ``boolean``, ``url``, ``email``, ``phone``, ``date``, ``datetime``"""

Parameters accepted by the variable item input operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: MessageTemplateVariableItemInput.

VariableItemInput( *, about: str | inttegro._request_base.UnsetType = UNSET, default: typing.Any | inttegro._request_base.UnsetType = UNSET, required: bool | inttegro._request_base.UnsetType = UNSET, name: str, type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', <VariableItemType.STRING: 'string'>, <VariableItemType.NUMBER: 'number'>, <VariableItemType.INTEGER: 'integer'>, <VariableItemType.BOOLEAN: 'boolean'>, <VariableItemType.URL: 'url'>, <VariableItemType.EMAIL: 'email'>, <VariableItemType.PHONE: 'phone'>, <VariableItemType.DATE: 'date'>, <VariableItemType.DATETIME: 'datetime'>])
about: str | inttegro._request_base.UnsetType

The about associated with this variable item input. Optional. Python type: str; wire name: about; JSON type: string

default: typing.Any | inttegro._request_base.UnsetType

The default associated with this variable item input. Optional. Python type: Any; wire name: default; JSON type: object

required: bool | inttegro._request_base.UnsetType

Whether required. Optional. Python type: bool; wire name: required; JSON type: boolean

name: str

Human-readable name of the variable item input. Required. Python type: str; wire name: name; JSON type: string. Constraints: pattern ^[a-z][a-z0-9_]{0,63}$

type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', <VariableItemType.STRING: 'string'>, <VariableItemType.NUMBER: 'number'>, <VariableItemType.INTEGER: 'integer'>, <VariableItemType.BOOLEAN: 'boolean'>, <VariableItemType.URL: 'url'>, <VariableItemType.EMAIL: 'email'>, <VariableItemType.PHONE: 'phone'>, <VariableItemType.DATE: 'date'>, <VariableItemType.DATETIME: 'datetime'>]

Discriminator identifying the variable item input type. Required. Python type: Literal['string', 'number', 'integer', 'boolean', 'url', 'email', 'phone', 'date', 'datetime', MessageTemplateVariableItemType.STRING, MessageTemplateVariableItemType.NUMBER, MessageTemplateVariableItemType.INTEGER, MessageTemplateVariableItemType.BOOLEAN, MessageTemplateVariableItemType.URL, MessageTemplateVariableItemType.EMAIL, MessageTemplateVariableItemType.PHONE, MessageTemplateVariableItemType.DATE, MessageTemplateVariableItemType.DATETIME]; wire name: type; JSON type: string. Constraints: allowed values string, number, integer, boolean, url, email, phone, date, datetime

class VariableItemType(inttegro._enum_base.WireEnum):
11class VariableItemType(WireEnum):
12    """Typed variable item type data in the message template resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``MessageTemplateVariableItemType``.
18    """
19    STRING = "string"
20    """Wire value ``string`` (string)"""
21    NUMBER = "number"
22    """Wire value ``number`` (number)"""
23    INTEGER = "integer"
24    """Wire value ``integer`` (integer)"""
25    BOOLEAN = "boolean"
26    """Wire value ``boolean`` (boolean)"""
27    URL = "url"
28    """Wire value ``url`` (url)"""
29    EMAIL = "email"
30    """Wire value ``email`` (email)"""
31    PHONE = "phone"
32    """Wire value ``phone`` (phone)"""
33    DATE = "date"
34    """Wire value ``date`` (date)"""
35    DATETIME = "datetime"
36    """Wire value ``datetime`` (datetime)"""

Typed variable item type data in the message template resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: MessageTemplateVariableItemType.

STRING = <VariableItemType.STRING: 'string'>

Wire value string (string)

NUMBER = <VariableItemType.NUMBER: 'number'>

Wire value number (number)

INTEGER = <VariableItemType.INTEGER: 'integer'>

Wire value integer (integer)

BOOLEAN = <VariableItemType.BOOLEAN: 'boolean'>

Wire value boolean (boolean)

URL = <VariableItemType.URL: 'url'>

Wire value url (url)

EMAIL = <VariableItemType.EMAIL: 'email'>

Wire value email (email)

PHONE = <VariableItemType.PHONE: 'phone'>

Wire value phone (phone)

DATE = <VariableItemType.DATE: 'date'>

Wire value date (date)

DATETIME = <VariableItemType.DATETIME: 'datetime'>

Wire value datetime (datetime)

class VariableType(inttegro._enum_base.WireEnum):
11class VariableType(WireEnum):
12    """Typed variable type data in the message template resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``MessageTemplateVariableType``.
18    """
19    STRING = "string"
20    """Wire value ``string`` (string)"""
21    NUMBER = "number"
22    """Wire value ``number`` (number)"""
23    INTEGER = "integer"
24    """Wire value ``integer`` (integer)"""
25    BOOLEAN = "boolean"
26    """Wire value ``boolean`` (boolean)"""
27    URL = "url"
28    """Wire value ``url`` (url)"""
29    EMAIL = "email"
30    """Wire value ``email`` (email)"""
31    PHONE = "phone"
32    """Wire value ``phone`` (phone)"""
33    DATE = "date"
34    """Wire value ``date`` (date)"""
35    DATETIME = "datetime"
36    """Wire value ``datetime`` (datetime)"""
37    ARRAY = "array"
38    """Wire value ``array`` (array)"""

Typed variable type data in the message template resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: MessageTemplateVariableType.

STRING = <VariableType.STRING: 'string'>

Wire value string (string)

NUMBER = <VariableType.NUMBER: 'number'>

Wire value number (number)

INTEGER = <VariableType.INTEGER: 'integer'>

Wire value integer (integer)

BOOLEAN = <VariableType.BOOLEAN: 'boolean'>

Wire value boolean (boolean)

URL = <VariableType.URL: 'url'>

Wire value url (url)

EMAIL = <VariableType.EMAIL: 'email'>

Wire value email (email)

PHONE = <VariableType.PHONE: 'phone'>

Wire value phone (phone)

DATE = <VariableType.DATE: 'date'>

Wire value date (date)

DATETIME = <VariableType.DATETIME: 'datetime'>

Wire value datetime (datetime)

ARRAY = <VariableType.ARRAY: 'array'>

Wire value array (array)

VariablesInput = dict[str, typing.Any]