inttegro.chime

Models, requests, and enums for the Inttegro chime resource.

The primary returned object is inttegro.chime.Chime. 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 chime resource.
  2
  3The primary returned object is ``inttegro.chime.Chime``. 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 .chime import Chime as Chime
 10    from .email_mailbox import EmailMailbox as EmailMailbox
 11    from .email_mailbox_input import EmailMailboxInput as EmailMailboxInput
 12    from .email_message import EmailMessage as EmailMessage
 13    from .email_message_input import EmailMessageInput as EmailMessageInput
 14    from .email_safety_result import EmailSafetyResult as EmailSafetyResult
 15    from .email_scanned_link import EmailScannedLink as EmailScannedLink
 16    from .email_schema_kind import EmailSchemaKind as EmailSchemaKind
 17    from .email_schema_markup import EmailSchemaMarkup as EmailSchemaMarkup
 18    from .inline_recipient_input import InlineRecipientInput as InlineRecipientInput
 19    from .inline_recipient_input_variant1 import InlineRecipientInputVariant1 as InlineRecipientInputVariant1
 20    from .inline_recipient_input_variant1_phone import InlineRecipientInputVariant1Phone as InlineRecipientInputVariant1Phone
 21    from .inline_recipient_input_variant2 import InlineRecipientInputVariant2 as InlineRecipientInputVariant2
 22    from .inline_recipient_input_variant2_email import InlineRecipientInputVariant2Email as InlineRecipientInputVariant2Email
 23    from .lookup_request import LookupRequest as LookupRequest
 24    from .page import Page as Page
 25    from .page_request import PageRequest as PageRequest
 26    from .page_response import PageResponse as PageResponse
 27    from .recipient import Recipient as Recipient
 28    from .recipient_email import RecipientEmail as RecipientEmail
 29    from .recipient_input import RecipientInput as RecipientInput
 30    from .recipient_phone import RecipientPhone as RecipientPhone
 31    from .recipient_type import RecipientType as RecipientType
 32    from .response import Response as Response
 33    from .saved_customer_recipient_input import SavedCustomerRecipientInput as SavedCustomerRecipientInput
 34    from .send_request import SendRequest as SendRequest
 35    from .send_request_request_meta import SendRequestRequestMeta as SendRequestRequestMeta
 36    from .settings import EmailSettings as EmailSettings
 37    from .settings import Settings as Settings
 38    from .settings import SMSSettings as SMSSettings
 39    from .transmission import Transmission as Transmission
 40    from .transport import Transport as Transport
 41
 42
 43_EXPORTS: dict[str, tuple[str, str]] = {
 44    "Chime": ("inttegro.chime.chime", "Chime"),
 45    "EmailMailbox": ("inttegro.chime.email_mailbox", "EmailMailbox"),
 46    "EmailMailboxInput": ("inttegro.chime.email_mailbox_input", "EmailMailboxInput"),
 47    "EmailMessage": ("inttegro.chime.email_message", "EmailMessage"),
 48    "EmailMessageInput": ("inttegro.chime.email_message_input", "EmailMessageInput"),
 49    "EmailSafetyResult": ("inttegro.chime.email_safety_result", "EmailSafetyResult"),
 50    "EmailScannedLink": ("inttegro.chime.email_scanned_link", "EmailScannedLink"),
 51    "EmailSchemaKind": ("inttegro.chime.email_schema_kind", "EmailSchemaKind"),
 52    "EmailSchemaMarkup": ("inttegro.chime.email_schema_markup", "EmailSchemaMarkup"),
 53    "InlineRecipientInput": ("inttegro.chime.inline_recipient_input", "InlineRecipientInput"),
 54    "InlineRecipientInputVariant1": ("inttegro.chime.inline_recipient_input_variant1", "InlineRecipientInputVariant1"),
 55    "InlineRecipientInputVariant1Phone": ("inttegro.chime.inline_recipient_input_variant1_phone", "InlineRecipientInputVariant1Phone"),
 56    "InlineRecipientInputVariant2": ("inttegro.chime.inline_recipient_input_variant2", "InlineRecipientInputVariant2"),
 57    "InlineRecipientInputVariant2Email": ("inttegro.chime.inline_recipient_input_variant2_email", "InlineRecipientInputVariant2Email"),
 58    "LookupRequest": ("inttegro.chime.lookup_request", "LookupRequest"),
 59    "Page": ("inttegro.chime.page", "Page"),
 60    "PageRequest": ("inttegro.chime.page_request", "PageRequest"),
 61    "PageResponse": ("inttegro.chime.page_response", "PageResponse"),
 62    "Recipient": ("inttegro.chime.recipient", "Recipient"),
 63    "RecipientEmail": ("inttegro.chime.recipient_email", "RecipientEmail"),
 64    "RecipientInput": ("inttegro.chime.recipient_input", "RecipientInput"),
 65    "RecipientPhone": ("inttegro.chime.recipient_phone", "RecipientPhone"),
 66    "RecipientType": ("inttegro.chime.recipient_type", "RecipientType"),
 67    "Response": ("inttegro.chime.response", "Response"),
 68    "SavedCustomerRecipientInput": ("inttegro.chime.saved_customer_recipient_input", "SavedCustomerRecipientInput"),
 69    "SendRequest": ("inttegro.chime.send_request", "SendRequest"),
 70    "SendRequestRequestMeta": ("inttegro.chime.send_request_request_meta", "SendRequestRequestMeta"),
 71    "EmailSettings": ("inttegro.chime.settings", "EmailSettings"),
 72    "Settings": ("inttegro.chime.settings", "Settings"),
 73    "SMSSettings": ("inttegro.chime.settings", "SMSSettings"),
 74    "Transmission": ("inttegro.chime.transmission", "Transmission"),
 75    "Transport": ("inttegro.chime.transport", "Transport"),
 76}
 77
 78__all__ = [
 79    "Chime",
 80    "EmailMailbox",
 81    "EmailMailboxInput",
 82    "EmailMessage",
 83    "EmailMessageInput",
 84    "EmailSafetyResult",
 85    "EmailScannedLink",
 86    "EmailSchemaKind",
 87    "EmailSchemaMarkup",
 88    "InlineRecipientInput",
 89    "InlineRecipientInputVariant1",
 90    "InlineRecipientInputVariant1Phone",
 91    "InlineRecipientInputVariant2",
 92    "InlineRecipientInputVariant2Email",
 93    "LookupRequest",
 94    "Page",
 95    "PageRequest",
 96    "PageResponse",
 97    "Recipient",
 98    "RecipientEmail",
 99    "RecipientInput",
100    "RecipientPhone",
101    "RecipientType",
102    "Response",
103    "SavedCustomerRecipientInput",
104    "SendRequest",
105    "SendRequestRequestMeta",
106    "EmailSettings",
107    "Settings",
108    "SMSSettings",
109    "Transmission",
110    "Transport",
111]
112
113
114def __getattr__(name: str) -> Any:
115    """Load a public resource type on first access."""
116    try:
117        module_name, attribute_name = _EXPORTS[name]
118    except KeyError:
119        raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None
120    value = getattr(import_module(module_name), attribute_name)
121    globals()[name] = value
122    return value
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Chime(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class Chime(ApiModel):
15    """A notification sent to one recipient.
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    created_at: datetime = field(init=False)
24    """When the chime was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
25    custom_data: CustomData | None = field(init=False)
26    """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: ``CustomData | None``; wire name: ``custom_data``; JSON type: object (CustomData)"""
27    customer_id: str | None = field(init=False)
28    """Identifier of the related customer. Optional; nullable. Python type: ``str | None``; wire name: ``customer_id``; JSON type: string"""
29    email: ChimeEmailMessage | None = field(init=False)
30    """Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ``ChimeEmailMessage | None``; wire name: ``email``; JSON type: object (ChimeEmailMessage)"""
31    full_message: str = field(init=False)
32    """Rendered SMS content. Empty for email Chimes. Required. Python type: ``str``; wire name: ``full_message``; JSON type: string"""
33    id: str = field(init=False)
34    """Unique identifier for this chime. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
35    idempotency_key: str | None = field(init=False)
36    """Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: ``str | None``; wire name: ``idempotency_key``; JSON type: string"""
37    purpose: str | None = field(init=False)
38    """The purpose associated with this chime. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string"""
39    recipient: ChimeRecipient = field(init=False)
40    """Recipient information in response. Required. Python type: ``ChimeRecipient``; wire name: ``recipient``; JSON type: object (ChimeRecipientResponse)"""
41    sender_id: str = field(init=False)
42    """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
43    transmission: ChimeTransmission | None = field(init=False)
44    """The transmission associated with this chime. Optional; nullable. Python type: ``ChimeTransmission | None``; wire name: ``transmission``; JSON type: object (ChimeTransmission)"""

A notification sent to one recipient.

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.

created_at: datetime.datetime

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

custom_data: inttegro.CustomData | None

Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: CustomData | None; wire name: custom_data; JSON type: object (CustomData)

customer_id: str | None

Identifier of the related customer. Optional; nullable. Python type: str | None; wire name: customer_id; JSON type: string

email: EmailMessage | None

Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ChimeEmailMessage | None; wire name: email; JSON type: object (ChimeEmailMessage)

full_message: str

Rendered SMS content. Empty for email Chimes. Required. Python type: str; wire name: full_message; JSON type: string

id: str

Unique identifier for this chime. Required. Python type: str; wire name: id; JSON type: string

idempotency_key: str | None

Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: str | None; wire name: idempotency_key; JSON type: string

purpose: str | None

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

recipient: Recipient

Recipient information in response. Required. Python type: ChimeRecipient; wire name: recipient; JSON type: object (ChimeRecipientResponse)

sender_id: str

Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string

transmission: Transmission | None

The transmission associated with this chime. Optional; nullable. Python type: ChimeTransmission | None; wire name: transmission; JSON type: object (ChimeTransmission)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailMailbox(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class EmailMailbox(ApiModel):
14    """Typed email mailbox data in the chime 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: ``ChimeEmailMailbox``.
23    """
24    name: str | None = field(init=False)
25    """Optional display name. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string"""
26    address: str | None = field(init=False)
27    """Email address. Optional; nullable. Python type: ``str | None``; wire name: ``address``; JSON type: string (email)"""

Typed email mailbox data in the chime 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: ChimeEmailMailbox.

name: str | None

Optional display name. Optional; nullable. Python type: str | None; wire name: name; JSON type: string

address: str | None

Email address. Optional; nullable. Python type: str | None; wire name: address; JSON type: string (email)

@dataclass(frozen=True, slots=True, kw_only=True)
class EmailMailboxInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class EmailMailboxInput(ApiRequest):
14    """Parameters accepted by the email 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: ``ChimeEmailMailboxInput``.
21    """
22    name: str | UnsetType = field(default=UNSET)
23    """Optional display name. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
24    address: str | UnsetType = field(default=UNSET)
25    """Email address. Optional. Python type: ``str``; wire name: ``address``; JSON type: string (email)"""

Parameters accepted by the email 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: ChimeEmailMailboxInput.

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

Optional display name. Optional. Python type: str; wire name: name; JSON type: string

address: str | inttegro._request_base.UnsetType

Email address. Optional. Python type: str; wire name: address; JSON type: string (email)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailMessage(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class EmailMessage(ApiModel):
14    """Email content, safety scan result, and system-generated schema markup for email chimes.
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: ``ChimeEmailMessage``.
23    """
24    subject: str | None = field(init=False)
25    """Email subject. Optional; nullable. Python type: ``str | None``; wire name: ``subject``; JSON type: string"""
26    text: str | None = field(init=False)
27    """Plain-text email body. Optional; nullable. Python type: ``str | None``; wire name: ``text``; JSON type: string"""
28    html: str | None = field(init=False)
29    """Optional HTML email body before provider-specific rendering. Optional; nullable. Python type: ``str | None``; wire name: ``html``; JSON type: string"""
30    from_: ChimeEmailMailbox | None = field(init=False, metadata={"wire_name": 'from'})
31    """The from associated with this email message. Optional; nullable. Python type: ``ChimeEmailMailbox | None``; wire name: ``from_``; JSON type: object"""
32    reply_to: ChimeEmailMailbox | None = field(init=False)
33    """The reply to associated with this email message. Optional; nullable. Python type: ``ChimeEmailMailbox | None``; wire name: ``reply_to``; JSON type: object (ChimeEmailMailbox)"""
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: ChimeEmailSafetyResult | None = field(init=False)
37    """Result of the email safety scan. Optional; nullable. Python type: ``ChimeEmailSafetyResult | None``; wire name: ``safety``; JSON type: object (ChimeEmailSafetyResult)"""
38    schema: ChimeEmailSchemaMarkup | None = field(init=False)
39    """Schema.org JSON-LD markup generated at email send time. Optional; nullable. Python type: ``ChimeEmailSchemaMarkup | None``; wire name: ``schema``; JSON type: object (ChimeEmailSchemaMarkup)"""

Email content, safety scan result, and system-generated schema markup for email chimes.

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: ChimeEmailMessage.

subject: str | None

Email subject. Optional; nullable. Python type: str | None; wire name: subject; JSON type: string

text: str | None

Plain-text email body. Optional; nullable. Python type: str | None; wire name: text; JSON type: string

html: str | None

Optional HTML email body before provider-specific rendering. Optional; nullable. Python type: str | None; wire name: html; JSON type: string

from_: EmailMailbox | None

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

reply_to: EmailMailbox | None

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

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: EmailSafetyResult | None

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

schema: EmailSchemaMarkup | None

Schema.org JSON-LD markup generated at email send time. Optional; nullable. Python type: ChimeEmailSchemaMarkup | None; wire name: schema; JSON type: object (ChimeEmailSchemaMarkup)

@dataclass(frozen=True, slots=True, kw_only=True)
class EmailMessageInput(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class EmailMessageInput(ApiRequest):
14    """Email content accepted for email chimes, broadcasts, and schedules.
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: ``ChimeEmailMessageInput``.
21    """
22    html: str | UnsetType = field(default=UNSET)
23    """Optional HTML email body. Unsafe HTML is rejected or sanitized before delivery. Optional. Python type: ``str``; wire name: ``html``; JSON type: string"""
24    reply_to: str | UnsetType = field(default=UNSET)
25    """Optional reply-to email address. Optional. Python type: ``str``; wire name: ``reply_to``; JSON type: string (email)"""
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. Required. Python type: ``str``; wire name: ``subject``; JSON type: string"""
30    text: str
31    """Plain-text email body. Required. Python type: ``str``; wire name: ``text``; JSON type: string"""
32    from_: ChimeEmailMailboxInput = field(metadata={'wire_name': 'from'})
33    """The from associated with this email message input. Required. Python type: ``ChimeEmailMailboxInput``; wire name: ``from_``; JSON type: object"""

Email content accepted for email chimes, broadcasts, and schedules.

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: ChimeEmailMessageInput.

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

Optional HTML email body. Unsafe HTML is rejected or sanitized before delivery. Optional. Python type: str; wire name: html; JSON type: string

reply_to: str | inttegro._request_base.UnsetType

Optional reply-to email address. Optional. Python type: str; wire name: reply_to; JSON type: string (email)

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. Required. Python type: str; wire name: subject; JSON type: string

text: str

Plain-text email body. Required. Python type: str; wire name: text; JSON type: string

The from associated with this email message input. Required. Python type: ChimeEmailMailboxInput; wire name: from_; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailSafetyResult(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class EmailSafetyResult(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: ``ChimeEmailSafetyResult``.
24    """
25    status: Literal['allowed', 'rejected', 'quarantined'] | None = field(init=False)
26    """Safety decision for the email content. Optional; nullable. Python type: ``Literal['allowed', 'rejected', 'quarantined'] | None``; wire name: ``status``; JSON type: string. Constraints: allowed values ``allowed``, ``rejected``, ``quarantined``"""
27    reason_codes: list[str] | None = field(init=False)
28    """Machine-readable reasons for non-allowed results. Optional; nullable. Python type: ``list[str] | None``; wire name: ``reason_codes``; JSON type: array of string values"""
29    sanitized_html: str | None = field(init=False)
30    """Sanitized HTML body used for provider send when present. Optional; nullable. Python type: ``str | None``; wire name: ``sanitized_html``; JSON type: string"""
31    normalized_text: str | None = field(init=False)
32    """Normalized plain-text body used by the scanner. Optional; nullable. Python type: ``str | None``; wire name: ``normalized_text``; JSON type: string"""
33    links: list[ChimeEmailScannedLink] | None = field(init=False)
34    """The links associated with this email safety result. Optional; nullable. Python type: ``list[ChimeEmailScannedLink] | None``; wire name: ``links``; JSON type: array of object (ChimeEmailScannedLink) values"""
35    scanner: str | None = field(init=False)
36    """Safety scanner identifier. Optional; nullable. Python type: ``str | None``; wire name: ``scanner``; JSON type: string"""
37    content_hash: str | None = field(init=False)
38    """Hash of the scanned email content. Optional; nullable. Python type: ``str | None``; wire name: ``content_hash``; JSON type: string"""
39    quarantine_notes: str | None = field(init=False)
40    """The quarantine notes associated with this email safety result. Optional; nullable. Python type: ``str | None``; wire name: ``quarantine_notes``; JSON type: string"""

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: ChimeEmailSafetyResult.

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

Safety decision for the email content. Optional; nullable. Python type: Literal['allowed', 'rejected', 'quarantined'] | None; wire name: status; JSON type: string. Constraints: allowed values allowed, rejected, quarantined

reason_codes: list[str] | None

Machine-readable reasons for non-allowed results. Optional; nullable. Python type: list[str] | None; wire name: reason_codes; JSON type: array of string values

sanitized_html: str | None

Sanitized HTML body used for provider send when present. Optional; nullable. Python type: str | None; wire name: sanitized_html; JSON type: string

normalized_text: str | None

Normalized plain-text body used by the scanner. Optional; nullable. Python type: str | None; wire name: normalized_text; JSON type: string

scanner: str | None

Safety scanner identifier. Optional; nullable. Python type: str | None; wire name: scanner; JSON type: string

content_hash: str | None

Hash of the scanned email content. Optional; nullable. Python type: str | None; wire name: content_hash; JSON type: string

quarantine_notes: str | None

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

class EmailSchemaKind(inttegro._enum_base.WireEnum):
11class EmailSchemaKind(WireEnum):
12    """Classification for the generated markup.
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: ``ChimeEmailSchemaKind``.
18    """
19    GMAIL_VIEW_ACTION = "gmail_view_action"
20    """Wire value ``gmail_view_action`` (gmail view action) for classification for the generated markup"""
21    SCHEMA_ORG_ORDER = "schema_org_order"
22    """Wire value ``schema_org_order`` (schema org order) for classification for the generated markup"""
23    SCHEMA_ORG_INVOICE = "schema_org_invoice"
24    """Wire value ``schema_org_invoice`` (schema org invoice) for classification for the generated markup"""

Classification for the generated markup.

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: ChimeEmailSchemaKind.

GMAIL_VIEW_ACTION = <EmailSchemaKind.GMAIL_VIEW_ACTION: 'gmail_view_action'>

Wire value gmail_view_action (gmail view action) for classification for the generated markup

SCHEMA_ORG_ORDER = <EmailSchemaKind.SCHEMA_ORG_ORDER: 'schema_org_order'>

Wire value schema_org_order (schema org order) for classification for the generated markup

SCHEMA_ORG_INVOICE = <EmailSchemaKind.SCHEMA_ORG_INVOICE: 'schema_org_invoice'>

Wire value schema_org_invoice (schema org invoice) for classification for the generated markup

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailSchemaMarkup(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class EmailSchemaMarkup(ApiModel):
15    """Schema.org JSON-LD markup generated at email send time.
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: ``ChimeEmailSchemaMarkup``.
24    """
25    kind: Literal['gmail_view_action', 'schema_org_order', 'schema_org_invoice'] | None = field(init=False)
26    """Classification for the generated markup. Optional; nullable. Python type: ``Literal['gmail_view_action', 'schema_org_order', 'schema_org_invoice'] | None``; wire name: ``kind``; JSON type: string. Constraints: allowed values ``gmail_view_action``, ``schema_org_order``, ``schema_org_invoice``"""
27    json_ld: dict[str, Any] | None = field(init=False)
28    """Deliberately extensible JSON object whose keys and values are defined by the selected integration or resource subtype. Optional; nullable. Python type: ``dict[str, Any] | None``; wire name: ``json_ld``; JSON type: object (JSONData)"""

Schema.org JSON-LD markup generated at email send time.

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: ChimeEmailSchemaMarkup.

kind: Optional[Literal['gmail_view_action', 'schema_org_order', 'schema_org_invoice']]

Classification for the generated markup. Optional; nullable. Python type: Literal['gmail_view_action', 'schema_org_order', 'schema_org_invoice'] | None; wire name: kind; JSON type: string. Constraints: allowed values gmail_view_action, schema_org_order, schema_org_invoice

json_ld: dict[str, typing.Any] | None

Deliberately extensible JSON object whose keys and values are defined by the selected integration or resource subtype. Optional; nullable. Python type: dict[str, Any] | None; wire name: json_ld; JSON type: object (JSONData)

@dataclass(frozen=True, slots=True, kw_only=True)
class InlineRecipientInputVariant1(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class InlineRecipientInputVariant1(ApiRequest):
15    """Parameters accepted by the inline recipient input variant1 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: ``ChimeInlineRecipientInputVariant1``.
22    """
23    name: str | UnsetType = field(default=UNSET)
24    """Human-readable name of the inline recipient input variant1. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
25    phone: ChimeInlineRecipientInputVariant1Phone
26    """The phone associated with this inline recipient input variant1. Required. Python type: ``ChimeInlineRecipientInputVariant1Phone``; wire name: ``phone``; JSON type: object"""
27    type: Literal['phone', ChimeRecipientType.PHONE]
28    """Discriminator identifying the inline recipient input variant1 type. Required. Python type: ``Literal['phone', ChimeRecipientType.PHONE]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``phone``"""

Parameters accepted by the inline recipient input variant1 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: ChimeInlineRecipientInputVariant1.

InlineRecipientInputVariant1( *, name: str | inttegro._request_base.UnsetType = UNSET, phone: InlineRecipientInputVariant1Phone, type: Literal['phone', <RecipientType.PHONE: 'phone'>])
name: str | inttegro._request_base.UnsetType

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

The phone associated with this inline recipient input variant1. Required. Python type: ChimeInlineRecipientInputVariant1Phone; wire name: phone; JSON type: object

type: Literal['phone', <RecipientType.PHONE: 'phone'>]

Discriminator identifying the inline recipient input variant1 type. Required. Python type: Literal['phone', ChimeRecipientType.PHONE]; wire name: type; JSON type: string. Constraints: allowed values phone

@dataclass(frozen=True, slots=True, kw_only=True)
class InlineRecipientInputVariant1Phone(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class InlineRecipientInputVariant1Phone(ApiRequest):
14    """Parameters accepted by the inline recipient input variant1 phone 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: ``ChimeInlineRecipientInputVariant1Phone``.
21    """
22    number: str
23    """Human-readable number assigned to the inline recipient input variant1 phone. Required. Python type: ``str``; wire name: ``number``; JSON type: string"""

Parameters accepted by the inline recipient input variant1 phone 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: ChimeInlineRecipientInputVariant1Phone.

InlineRecipientInputVariant1Phone(*, number: str)
number: str

Human-readable number assigned to the inline recipient input variant1 phone. Required. Python type: str; wire name: number; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class InlineRecipientInputVariant2(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class InlineRecipientInputVariant2(ApiRequest):
15    """Parameters accepted by the inline recipient input variant2 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: ``ChimeInlineRecipientInputVariant2``.
22    """
23    name: str | UnsetType = field(default=UNSET)
24    """Human-readable name of the inline recipient input variant2. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
25    email: ChimeInlineRecipientInputVariant2Email
26    """The email associated with this inline recipient input variant2. Required. Python type: ``ChimeInlineRecipientInputVariant2Email``; wire name: ``email``; JSON type: object"""
27    type: Literal['email', ChimeRecipientType.EMAIL]
28    """Discriminator identifying the inline recipient input variant2 type. Required. Python type: ``Literal['email', ChimeRecipientType.EMAIL]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``email``"""

Parameters accepted by the inline recipient input variant2 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: ChimeInlineRecipientInputVariant2.

InlineRecipientInputVariant2( *, name: str | inttegro._request_base.UnsetType = UNSET, email: InlineRecipientInputVariant2Email, type: Literal['email', <RecipientType.EMAIL: 'email'>])
name: str | inttegro._request_base.UnsetType

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

The email associated with this inline recipient input variant2. Required. Python type: ChimeInlineRecipientInputVariant2Email; wire name: email; JSON type: object

type: Literal['email', <RecipientType.EMAIL: 'email'>]

Discriminator identifying the inline recipient input variant2 type. Required. Python type: Literal['email', ChimeRecipientType.EMAIL]; wire name: type; JSON type: string. Constraints: allowed values email

@dataclass(frozen=True, slots=True, kw_only=True)
class InlineRecipientInputVariant2Email(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class InlineRecipientInputVariant2Email(ApiRequest):
14    """Parameters accepted by the inline recipient input variant2 email 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: ``ChimeInlineRecipientInputVariant2Email``.
21    """
22    address: str
23    """The address associated with this inline recipient input variant2 email. Required. Python type: ``str``; wire name: ``address``; JSON type: string (email)"""

Parameters accepted by the inline recipient input variant2 email 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: ChimeInlineRecipientInputVariant2Email.

InlineRecipientInputVariant2Email(*, address: str)
address: str

The address associated with this inline recipient input variant2 email. Required. Python type: str; wire name: address; JSON type: string (email)

@dataclass(frozen=True, slots=True, kw_only=True)
class LookupRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class LookupRequest(ApiRequest):
14    """Request to look up a chime by ID.
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: ``LookupChimeRequest``.
21    """
22    chime_id: str
23    """Unique identifier of the chime to look up. Required. Python type: ``str``; wire name: ``chime_id``; JSON type: string"""

Request to look up a chime by ID.

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: LookupChimeRequest.

LookupRequest(*, chime_id: str)
chime_id: str

Unique identifier of the chime to look up. Required. Python type: str; wire name: chime_id; JSON type: string

@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: ``ChimePage``.
23    """
24    number: int = field(init=False)
25    """Page number returned. Required. Python type: ``int``; wire name: ``number``; JSON type: integer"""
26    size: int = field(init=False)
27    """Page size returned. Required. Python type: ``int``; wire name: ``size``; JSON type: integer"""
28    chimes: list[Chime] = field(init=False)
29    """Chimes in this page. Required. Python type: ``list[Chime]``; wire name: ``chimes``; JSON type: array of object (Chime) 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: ChimePage.

number: int

Page number returned. Required. Python type: int; wire name: number; JSON type: integer

size: int

Page size returned. Required. Python type: int; wire name: size; JSON type: integer

chimes: list[Chime]

Chimes in this page. Required. Python type: list[Chime]; wire name: chimes; JSON type: array of object (Chime) values

@dataclass(frozen=True, slots=True, kw_only=True)
class PageRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class PageRequest(ApiRequest):
14    """Request to retrieve a page of chimes.
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: ``PageChimesRequest``.
21    """
22    customer_id: str | UnsetType = field(default=UNSET)
23    """Restrict the page to chimes associated with this customer. Optional. Python type: ``str``; wire name: ``customer_id``; JSON type: string"""
24    page_number: int | UnsetType = field(default=UNSET)
25    """1-based page index to fetch. Optional. Python type: ``int``; wire name: ``page_number``; JSON type: integer. Constraints: minimum 1; maximum 10"""
26    page_size: int | UnsetType = field(default=UNSET)
27    """Number of chimes to return. Optional. Python type: ``int``; wire name: ``page_size``; JSON type: integer. Constraints: minimum 1; maximum 256"""
28    recipient: str | UnsetType = field(default=UNSET)
29    """Restrict the page to chimes whose recipient exactly matches this phone number or email address. Optional. Python type: ``str``; wire name: ``recipient``; JSON type: string"""

Request to retrieve a page of chimes.

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: PageChimesRequest.

PageRequest( *, customer_id: str | inttegro._request_base.UnsetType = UNSET, page_number: int | inttegro._request_base.UnsetType = UNSET, page_size: int | inttegro._request_base.UnsetType = UNSET, recipient: str | inttegro._request_base.UnsetType = UNSET)
customer_id: str | inttegro._request_base.UnsetType

Restrict the page to chimes associated with this customer. Optional. Python type: str; wire name: customer_id; JSON type: string

page_number: int | inttegro._request_base.UnsetType

1-based page index to fetch. Optional. Python type: int; wire name: page_number; JSON type: integer. Constraints: minimum 1; maximum 10

page_size: int | inttegro._request_base.UnsetType

Number of chimes to return. Optional. Python type: int; wire name: page_size; JSON type: integer. Constraints: minimum 1; maximum 256

recipient: str | inttegro._request_base.UnsetType

Restrict the page to chimes whose recipient exactly matches this phone number or email address. Optional. Python type: str; wire name: recipient; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class PageResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class PageResponse(ApiModel):
14    """Response containing a page of chimes.
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: ``PageChimesResponse``.
23    """
24    page: ChimePage | None = field(init=False)
25    """Numeric page used by this operation. Optional; nullable. Python type: ``ChimePage | None``; wire name: ``page``; JSON type: object"""

Response containing a page of chimes.

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: PageChimesResponse.

page: Page | None

Numeric page used by this operation. Optional; nullable. Python type: ChimePage | None; wire name: page; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Recipient(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class Recipient(ApiModel):
15    """Typed recipient data in the chime 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: ``ChimeRecipient``.
24    """
25    type: Literal['phone', 'email'] = field(init=False)
26    """Discriminator identifying the recipient type. Required. Python type: ``Literal['phone', 'email']``; wire name: ``type``; JSON type: string"""
27    name: str | None = field(init=False)
28    """Human-readable name of the recipient. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string"""
29    phone: ChimeRecipientPhone | None = field(init=False)
30    """The phone associated with this recipient. Optional; nullable. Python type: ``ChimeRecipientPhone | None``; wire name: ``phone``; JSON type: object"""
31    email: ChimeRecipientEmail | None = field(init=False)
32    """The email associated with this recipient. Optional; nullable. Python type: ``ChimeRecipientEmail | None``; wire name: ``email``; JSON type: object"""

Typed recipient data in the chime 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: ChimeRecipient.

type: Literal['phone', 'email']

Discriminator identifying the recipient type. Required. Python type: Literal['phone', 'email']; wire name: type; JSON type: string

name: str | None

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

phone: RecipientPhone | None

The phone associated with this recipient. Optional; nullable. Python type: ChimeRecipientPhone | None; wire name: phone; JSON type: object

email: RecipientEmail | None

The email associated with this recipient. Optional; nullable. Python type: ChimeRecipientEmail | None; wire name: email; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class RecipientEmail(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class RecipientEmail(ApiModel):
14    """Typed recipient email data in the chime 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: ``ChimeRecipientEmail``.
23    """
24    address: str = field(init=False)
25    """The address associated with this recipient email. Required. Python type: ``str``; wire name: ``address``; JSON type: string"""

Typed recipient email data in the chime 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: ChimeRecipientEmail.

address: str

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

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class RecipientPhone(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class RecipientPhone(ApiModel):
14    """Typed recipient phone data in the chime 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: ``ChimeRecipientPhone``.
23    """
24    number: str = field(init=False)
25    """Human-readable number assigned to the recipient phone. Required. Python type: ``str``; wire name: ``number``; JSON type: string"""

Typed recipient phone data in the chime 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: ChimeRecipientPhone.

number: str

Human-readable number assigned to the recipient phone. Required. Python type: str; wire name: number; JSON type: string

class RecipientType(inttegro._enum_base.WireEnum):
11class RecipientType(WireEnum):
12    """Contact type.
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: ``ChimeRecipientType``.
18    """
19    PHONE = "phone"
20    """Wire value ``phone`` (phone) for contact type"""
21    EMAIL = "email"
22    """Wire value ``email`` (email) for contact type"""

Contact type.

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: ChimeRecipientType.

PHONE = <RecipientType.PHONE: 'phone'>

Wire value phone (phone) for contact type

EMAIL = <RecipientType.EMAIL: 'email'>

Wire value email (email) for contact type

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Response(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Response(ApiModel):
14    """Response containing chime details.
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: ``ChimeResponse``.
23    """
24    chime: Chime | None = field(init=False)
25    """A notification sent to one recipient. Optional; nullable. Python type: ``Chime | None``; wire name: ``chime``; JSON type: object (Chime)"""

Response containing chime details.

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: ChimeResponse.

chime: Chime | None

A notification sent to one recipient. Optional; nullable. Python type: Chime | None; wire name: chime; JSON type: object (Chime)

@dataclass(frozen=True, slots=True, kw_only=True)
class SavedCustomerRecipientInput(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class SavedCustomerRecipientInput(ApiRequest):
15    """Parameters accepted by the saved customer recipient input 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: ``ChimeSavedCustomerRecipientInput``.
22    """
23    customer_id: str
24    """Identifier of the related customer. Required. Python type: ``str``; wire name: ``customer_id``; JSON type: string"""
25    transport: Literal['sms', 'email', ChimeTransport.SMS, ChimeTransport.EMAIL]
26    """The transport associated with this saved customer recipient input. Required. Python type: ``Literal['sms', 'email', ChimeTransport.SMS, ChimeTransport.EMAIL]``; wire name: ``transport``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""

Parameters accepted by the saved customer recipient 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: ChimeSavedCustomerRecipientInput.

SavedCustomerRecipientInput( *, customer_id: str, transport: Literal['sms', 'email', <Transport.SMS: 'sms'>, <Transport.EMAIL: 'email'>])
customer_id: str

Identifier of the related customer. Required. Python type: str; wire name: customer_id; JSON type: string

transport: Literal['sms', 'email', <Transport.SMS: 'sms'>, <Transport.EMAIL: 'email'>]

The transport associated with this saved customer recipient input. Required. Python type: Literal['sms', 'email', ChimeTransport.SMS, ChimeTransport.EMAIL]; wire name: transport; JSON type: string. Constraints: allowed values sms, email

@dataclass(frozen=True, slots=True, kw_only=True)
class SendRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class SendRequest(ApiRequest):
14    """Request to send a chime to a recipient. SMS recipients accept either `full_message` or `message_template`. Email recipients accept either `email` or `message_template`.
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: ``SendChimeRequest``.
21    """
22    full_message: str | UnsetType = field(default=UNSET)
23    """Complete SMS message content. Use only with SMS recipients. Optional. Python type: ``str``; wire name: ``full_message``; JSON type: string"""
24    email: ChimeEmailMessageInput | UnsetType = field(default=UNSET)
25    """Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ``ChimeEmailMessageInput``; wire name: ``email``; JSON type: object (ChimeEmailMessageInput)"""
26    message_template: MessageTemplateReferenceInput | UnsetType = field(default=UNSET)
27    """The message template associated with this send request. Optional. Python type: ``MessageTemplateReferenceInput``; wire name: ``message_template``; JSON type: object (MessageTemplateReference)"""
28    sender_id: str | UnsetType = field(default=UNSET)
29    """Sender identifier shown to recipient. Uses default sender if not provided. Optional. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
30    purpose: str | UnsetType = field(default=UNSET)
31    """Purpose of this chime for categorization and analytics. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
32    custom_data: CustomData | UnsetType = field(default=UNSET)
33    """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: ``CustomData``; wire name: ``custom_data``; JSON type: object (CustomData)"""
34    request_meta: SendChimeRequestRequestMeta | UnsetType = field(default=UNSET)
35    """Optional metadata controlling request processing. Optional. Python type: ``SendChimeRequestRequestMeta``; wire name: ``request_meta``; JSON type: object"""
36    recipient: ChimeRecipientInput
37    """The recipient associated with this send request. Required. Python type: ``ChimeRecipientInput``; wire name: ``recipient``; JSON type: object (ChimeRecipient)"""

Request to send a chime to a recipient. SMS recipients accept either full_message or message_template. Email recipients accept either email or message_template.

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: SendChimeRequest.

SendRequest( *, full_message: str | inttegro._request_base.UnsetType = UNSET, email: EmailMessageInput | inttegro._request_base.UnsetType = UNSET, message_template: inttegro.message_template.ReferenceInput | inttegro._request_base.UnsetType = UNSET, sender_id: str | inttegro._request_base.UnsetType = UNSET, purpose: str | inttegro._request_base.UnsetType = UNSET, custom_data: inttegro.CustomData | inttegro._request_base.UnsetType = UNSET, request_meta: SendRequestRequestMeta | inttegro._request_base.UnsetType = UNSET, recipient: InlineRecipientInputVariant1 | InlineRecipientInputVariant2 | SavedCustomerRecipientInput)
full_message: str | inttegro._request_base.UnsetType

Complete SMS message content. Use only with SMS recipients. Optional. Python type: str; wire name: full_message; JSON type: string

email: EmailMessageInput | inttegro._request_base.UnsetType

Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ChimeEmailMessageInput; wire name: email; JSON type: object (ChimeEmailMessageInput)

message_template: inttegro.message_template.ReferenceInput | inttegro._request_base.UnsetType

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

sender_id: str | inttegro._request_base.UnsetType

Sender identifier shown to recipient. Uses default sender if not provided. Optional. Python type: str; wire name: sender_id; JSON type: string

purpose: str | inttegro._request_base.UnsetType

Purpose of this chime for categorization and analytics. Optional. Python type: str; wire name: purpose; JSON type: string

custom_data: inttegro.CustomData | inttegro._request_base.UnsetType

Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: CustomData; wire name: custom_data; JSON type: object (CustomData)

request_meta: SendRequestRequestMeta | inttegro._request_base.UnsetType

Optional metadata controlling request processing. Optional. Python type: SendChimeRequestRequestMeta; wire name: request_meta; JSON type: object

The recipient associated with this send request. Required. Python type: ChimeRecipientInput; wire name: recipient; JSON type: object (ChimeRecipient)

@dataclass(frozen=True, slots=True, kw_only=True)
class SendRequestRequestMeta(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class SendRequestRequestMeta(ApiRequest):
15    """Optional metadata controlling request processing.
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: ``SendChimeRequestRequestMeta``.
22    """
23    idempotency_key: str | UnsetType = field(default=UNSET)
24    """Unique key to prevent duplicate sends. Optional. Python type: ``str``; wire name: ``idempotency_key``; JSON type: string"""
25    response: Response | UnsetType = field(default=UNSET)
26    """Optional typed selection of public response properties. Python type: ``Response``; wire name: ``response``; JSON type: object (RequestResponse)"""

Optional metadata controlling request processing.

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: SendChimeRequestRequestMeta.

SendRequestRequestMeta( *, idempotency_key: str | inttegro._request_base.UnsetType = UNSET, response: Response | inttegro._request_base.UnsetType = UNSET)
idempotency_key: str | inttegro._request_base.UnsetType

Unique key to prevent duplicate sends. Optional. Python type: str; wire name: idempotency_key; JSON type: string

response: Response | inttegro._request_base.UnsetType

Optional typed selection of public response properties. Python type: Response; wire name: response; JSON type: object (RequestResponse)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class EmailSettings(inttegro._model_base.ApiModel):
20@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
21class EmailSettings(ApiModel):
22    """Email sender defaults and authorized From addresses."""
23
24    default_from: str = field(init=False)
25    allowed_from: list[str] = field(init=False)

Email sender defaults and authorized From addresses.

default_from: str
allowed_from: list[str]
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Settings(inttegro._model_base.ApiModel):
28@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
29class Settings(ApiModel):
30    """Typed SMS and email delivery settings used by Chimes."""
31
32    sms: SMSSettings = field(init=False)
33    email: EmailSettings = field(init=False)

Typed SMS and email delivery settings used by Chimes.

email: EmailSettings
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class SMSSettings(inttegro._model_base.ApiModel):
11@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
12class SMSSettings(ApiModel):
13    """SMS sender defaults and public length limits."""
14
15    default_sender: str = field(init=False)
16    min_sender_char_len: int = field(init=False)
17    max_sender_char_len: int = field(init=False)

SMS sender defaults and public length limits.

default_sender: str
min_sender_char_len: int
max_sender_char_len: int
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Transmission(inttegro._model_base.ApiModel):
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
15class Transmission(ApiModel):
16    """Public delivery lifecycle for a Chime.
17
18    Instances are immutable API responses; ``from_dict()`` parses timezone-aware
19    ISO-8601 timestamps and ignores undeclared wire fields.
20
21    API contract schema: ``ChimeTransmission``.
22    """
23    address: str = field(init=False)
24    """The address associated with this transmission. Required. Python type: ``str``; wire name: ``address``; JSON type: string"""
25    created_at: datetime = field(init=False)
26    """When the transmission was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
27    delivered_at: datetime | None = field(init=False)
28    """Timestamp for delivered at. Optional; nullable. Python type: ``datetime | None``; wire name: ``delivered_at``; JSON type: string (date-time)"""
29    failed_at: datetime | None = field(init=False)
30    """When the transmission failed. Optional; nullable. Python type: ``datetime | None``; wire name: ``failed_at``; JSON type: string (date-time)"""
31    initialized_at: datetime = field(init=False)
32    """Timestamp for initialized at. Required. Python type: ``datetime``; wire name: ``initialized_at``; JSON type: string (date-time)"""
33    mechanism: Literal['sms', 'email'] = field(init=False)
34    """The mechanism associated with this transmission. Required. Python type: ``Literal['sms', 'email']``; wire name: ``mechanism``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
35    sent_at: datetime | None = field(init=False)
36    """Timestamp for sent at. Optional; nullable. Python type: ``datetime | None``; wire name: ``sent_at``; JSON type: string (date-time)"""
37    sent_via: Literal['sms', 'email'] | None = field(init=False)
38    """The sent via associated with this transmission. Optional; nullable. Python type: ``Literal['sms', 'email'] | None``; wire name: ``sent_via``; JSON type: string. Constraints: allowed values ``sms``, ``email``"""
39    status: str = field(init=False)
40    """Current lifecycle status of the transmission. Required. Python type: ``str``; wire name: ``status``; JSON type: string"""
41    suppressed_at: datetime | None = field(init=False)
42    """Timestamp for suppressed at. Optional; nullable. Python type: ``datetime | None``; wire name: ``suppressed_at``; JSON type: string (date-time)"""

Public delivery lifecycle for a Chime.

Instances are immutable API responses; from_dict() parses timezone-aware ISO-8601 timestamps and ignores undeclared wire fields.

API contract schema: ChimeTransmission.

address: str

The address associated with this transmission. Required. Python type: str; wire name: address; JSON type: string

created_at: datetime.datetime

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

delivered_at: datetime.datetime | None

Timestamp for delivered at. Optional; nullable. Python type: datetime | None; wire name: delivered_at; JSON type: string (date-time)

failed_at: datetime.datetime | None

When the transmission failed. Optional; nullable. Python type: datetime | None; wire name: failed_at; JSON type: string (date-time)

initialized_at: datetime.datetime

Timestamp for initialized at. Required. Python type: datetime; wire name: initialized_at; JSON type: string (date-time)

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

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

sent_at: datetime.datetime | None

Timestamp for sent at. Optional; nullable. Python type: datetime | None; wire name: sent_at; JSON type: string (date-time)

sent_via: Optional[Literal['sms', 'email']]

The sent via associated with this transmission. Optional; nullable. Python type: Literal['sms', 'email'] | None; wire name: sent_via; JSON type: string. Constraints: allowed values sms, email

status: str

Current lifecycle status of the transmission. Required. Python type: str; wire name: status; JSON type: string

suppressed_at: datetime.datetime | None

Timestamp for suppressed at. Optional; nullable. Python type: datetime | None; wire name: suppressed_at; JSON type: string (date-time)

class Transport(inttegro._enum_base.WireEnum):
11class Transport(WireEnum):
12    """Typed transport data in the chime 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: ``ChimeTransport``.
18    """
19    SMS = "sms"
20    """Wire value ``sms`` (sms)"""
21    EMAIL = "email"
22    """Wire value ``email`` (email)"""

Typed transport data in the chime 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: ChimeTransport.

SMS = <Transport.SMS: 'sms'>

Wire value sms (sms)

EMAIL = <Transport.EMAIL: 'email'>

Wire value email (email)