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
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.
When the chime was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
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)
Identifier of the related customer. Optional; nullable. Python type: str | None; wire name: customer_id; JSON type: string
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)
Rendered SMS content. Empty for email Chimes. Required. Python type: str; wire name: full_message; JSON type: string
Unique identifier for this chime. Required. Python type: str; wire name: id; JSON type: string
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
The purpose associated with this chime. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string
Recipient information in response. Required. Python type: ChimeRecipient; wire name: recipient; JSON type: object (ChimeRecipientResponse)
Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string
The transmission associated with this chime. Optional; nullable. Python type: ChimeTransmission | None; wire name: transmission; JSON type: object (ChimeTransmission)
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.
Optional display name. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
Email address. Optional; nullable. Python type: str | None; wire name: address; JSON type: string (email)
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.
Optional display name. Optional. Python type: str; wire name: name; JSON type: string
Email address. Optional. Python type: str; wire name: address; JSON type: string (email)
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.
Email subject. Optional; nullable. Python type: str | None; wire name: subject; JSON type: string
Plain-text email body. Optional; nullable. Python type: str | None; wire name: text; JSON type: string
Optional HTML email body before provider-specific rendering. Optional; nullable. Python type: str | None; wire name: html; JSON type: string
The from associated with this email message. Optional; nullable. Python type: ChimeEmailMailbox | None; wire name: from_; JSON type: object
The reply to associated with this email message. Optional; nullable. Python type: ChimeEmailMailbox | None; wire name: reply_to; JSON type: object (ChimeEmailMailbox)
Validated provider-neutral email headers. Optional; nullable. Python type: dict[str, str] | None; wire name: headers; JSON type: object (MessageHeaders)
Result of the email safety scan. Optional; nullable. Python type: ChimeEmailSafetyResult | None; wire name: safety; JSON type: object (ChimeEmailSafetyResult)
Schema.org JSON-LD markup generated at email send time. Optional; nullable. Python type: ChimeEmailSchemaMarkup | None; wire name: schema; JSON type: object (ChimeEmailSchemaMarkup)
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.
Optional HTML email body. Unsafe HTML is rejected or sanitized before delivery. Optional. Python type: str; wire name: html; JSON type: string
Optional reply-to email address. Optional. Python type: str; wire name: reply_to; JSON type: string (email)
Validated provider-neutral email headers. Optional. Python type: dict[str, str]; wire name: headers; JSON type: object (MessageHeaders)
The from associated with this email message input. Required. Python type: ChimeEmailMailboxInput; wire name: from_; JSON type: object
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.
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
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 body used for provider send when present. Optional; nullable. Python type: str | None; wire name: sanitized_html; JSON type: string
Normalized plain-text body used by the scanner. Optional; nullable. Python type: str | None; wire name: normalized_text; JSON type: string
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
Safety scanner identifier. Optional; nullable. Python type: str | None; wire name: scanner; JSON type: string
Hash of the scanned email content. Optional; nullable. Python type: str | None; wire name: content_hash; JSON type: string
The quarantine notes associated with this email safety result. Optional; nullable. Python type: str | None; wire name: quarantine_notes; JSON type: string
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class EmailScannedLink(ApiModel): 15 """Typed email scanned link 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: ``ChimeEmailScannedLink``. 24 """ 25 raw: str | None = field(init=False) 26 """The raw associated with this email scanned link. Optional; nullable. Python type: ``str | None``; wire name: ``raw``; JSON type: string""" 27 scheme: str | None = field(init=False) 28 """The scheme associated with this email scanned link. Optional; nullable. Python type: ``str | None``; wire name: ``scheme``; JSON type: string""" 29 host: str | None = field(init=False) 30 """The host associated with this email scanned link. Optional; nullable. Python type: ``str | None``; wire name: ``host``; JSON type: string""" 31 status: Literal['allowed', 'rejected', 'quarantined'] | None = field(init=False) 32 """Current lifecycle status of the email scanned link. Optional; nullable. Python type: ``Literal['allowed', 'rejected', 'quarantined'] | None``; wire name: ``status``; JSON type: string. Constraints: allowed values ``allowed``, ``rejected``, ``quarantined``""" 33 reason: str | None = field(init=False) 34 """The reason associated with this email scanned link. Optional; nullable. Python type: ``str | None``; wire name: ``reason``; JSON type: string"""
Typed email scanned link 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: ChimeEmailScannedLink.
The raw associated with this email scanned link. Optional; nullable. Python type: str | None; wire name: raw; JSON type: string
The scheme associated with this email scanned link. Optional; nullable. Python type: str | None; wire name: scheme; JSON type: string
The host associated with this email scanned link. Optional; nullable. Python type: str | None; wire name: host; JSON type: string
Current lifecycle status of the email scanned link. Optional; nullable. Python type: Literal['allowed', 'rejected', 'quarantined'] | None; wire name: status; JSON type: string. Constraints: allowed values allowed, rejected, quarantined
The reason associated with this email scanned link. Optional; nullable. Python type: str | None; wire name: reason; JSON type: string
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.
Wire value gmail_view_action (gmail view action) for classification for the generated markup
Wire value schema_org_order (schema org order) for classification for the generated markup
Wire value schema_org_invoice (schema org invoice) for classification for the generated markup
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.
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
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)
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.
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
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.
Human-readable number assigned to the inline recipient input variant1 phone. Required. Python type: str; wire name: number; JSON type: string
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.
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
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.
The address associated with this inline recipient input variant2 email. Required. Python type: str; wire name: address; JSON type: string (email)
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.
Unique identifier of the chime to look up. Required. Python type: str; wire name: chime_id; JSON type: string
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.
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.
Restrict the page to chimes associated with this customer. Optional. Python type: str; wire name: customer_id; JSON type: string
1-based page index to fetch. Optional. Python type: int; wire name: page_number; JSON type: integer. Constraints: minimum 1; maximum 10
Number of chimes to return. Optional. Python type: int; wire name: page_size; JSON type: integer. Constraints: minimum 1; maximum 256
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
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.
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.
Discriminator identifying the recipient type. Required. Python type: Literal['phone', 'email']; wire name: type; JSON type: string
Human-readable name of the recipient. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The phone associated with this recipient. Optional; nullable. Python type: ChimeRecipientPhone | None; wire name: phone; JSON type: object
The email associated with this recipient. Optional; nullable. Python type: ChimeRecipientEmail | None; wire name: email; JSON type: object
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.
The address associated with this recipient email. Required. Python type: str; wire name: address; JSON type: string
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.
Human-readable number assigned to the recipient phone. Required. Python type: str; wire name: number; JSON type: string
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.
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.
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.
Identifier of the related customer. Required. Python type: str; wire name: customer_id; JSON type: string
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
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.
Complete SMS message content. Use only with SMS recipients. Optional. Python type: str; wire name: full_message; JSON type: string
Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ChimeEmailMessageInput; wire name: email; JSON type: object (ChimeEmailMessageInput)
The message template associated with this send request. Optional. Python type: MessageTemplateReferenceInput; wire name: message_template; JSON type: object (MessageTemplateReference)
Sender identifier shown to recipient. Uses default sender if not provided. Optional. Python type: str; wire name: sender_id; JSON type: string
Purpose of this chime for categorization and analytics. Optional. Python type: str; wire name: purpose; JSON type: string
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)
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)
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.
Unique key to prevent duplicate sends. Optional. Python type: str; wire name: idempotency_key; JSON type: string
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.
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.
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.
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.
The address associated with this transmission. Required. Python type: str; wire name: address; JSON type: string
When the transmission was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
Timestamp for delivered at. Optional; nullable. Python type: datetime | None; wire name: delivered_at; JSON type: string (date-time)
When the transmission failed. Optional; nullable. Python type: datetime | None; wire name: failed_at; JSON type: string (date-time)
Timestamp for initialized at. Required. Python type: datetime; wire name: initialized_at; JSON type: string (date-time)
The mechanism associated with this transmission. Required. Python type: Literal['sms', 'email']; wire name: mechanism; JSON type: string. Constraints: allowed values sms, email
Timestamp for sent at. Optional; nullable. Python type: datetime | None; wire name: sent_at; JSON type: string (date-time)
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
Current lifecycle status of the transmission. Required. Python type: str; wire name: status; JSON type: string
Timestamp for suppressed at. Optional; nullable. Python type: datetime | None; wire name: suppressed_at; JSON type: string (date-time)
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.