inttegro.broadcast
Models, requests, and enums for the Inttegro broadcast resource.
The primary returned object is inttegro.broadcast.Broadcast. 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 broadcast resource. 2 3The primary returned object is ``inttegro.broadcast.Broadcast``. 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 .broadcast import Broadcast as Broadcast 10 from .cancel_detail import CancelDetail as CancelDetail 11 from .cancel_request import CancelRequest as CancelRequest 12 from .cancel_response import CancelResponse as CancelResponse 13 from .creation_detail import CreationDetail as CreationDetail 14 from .error import Error as Error 15 from .lookup_request import LookupRequest as LookupRequest 16 from .lookup_response import LookupResponse as LookupResponse 17 from .request import Request as Request 18 from .request_request_meta import RequestRequestMeta as RequestRequestMeta 19 from .response import Response as Response 20 21 22_EXPORTS: dict[str, tuple[str, str]] = { 23 "Broadcast": ("inttegro.broadcast.broadcast", "Broadcast"), 24 "CancelDetail": ("inttegro.broadcast.cancel_detail", "CancelDetail"), 25 "CancelRequest": ("inttegro.broadcast.cancel_request", "CancelRequest"), 26 "CancelResponse": ("inttegro.broadcast.cancel_response", "CancelResponse"), 27 "CreationDetail": ("inttegro.broadcast.creation_detail", "CreationDetail"), 28 "Error": ("inttegro.broadcast.error", "Error"), 29 "LookupRequest": ("inttegro.broadcast.lookup_request", "LookupRequest"), 30 "LookupResponse": ("inttegro.broadcast.lookup_response", "LookupResponse"), 31 "Request": ("inttegro.broadcast.request", "Request"), 32 "RequestRequestMeta": ("inttegro.broadcast.request_request_meta", "RequestRequestMeta"), 33 "Response": ("inttegro.broadcast.response", "Response"), 34} 35 36__all__ = [ 37 "Broadcast", 38 "CancelDetail", 39 "CancelRequest", 40 "CancelResponse", 41 "CreationDetail", 42 "Error", 43 "LookupRequest", 44 "LookupResponse", 45 "Request", 46 "RequestRequestMeta", 47 "Response", 48] 49 50 51def __getattr__(name: str) -> Any: 52 """Load a public resource type on first access.""" 53 try: 54 module_name, attribute_name = _EXPORTS[name] 55 except KeyError: 56 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 57 value = getattr(import_module(module_name), attribute_name) 58 globals()[name] = value 59 return value
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Broadcast(ApiModel): 15 """Typed broadcast data in the broadcast 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: ``BroadcastDetail``. 24 """ 25 chime_ids: list[str] | None = field(init=False) 26 """The chime ids associated with this broadcast. Optional; nullable. Python type: ``list[str] | None``; wire name: ``chime_ids``; JSON type: array of string values""" 27 content: str = field(init=False) 28 """The content associated with this broadcast. Required. Python type: ``str``; wire name: ``content``; JSON type: string""" 29 created_at: datetime = field(init=False) 30 """When the broadcast was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 31 customer_ids: list[str] | None = field(init=False) 32 """The customer ids associated with this broadcast. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values""" 33 email: ChimeEmailMessage | None = field(init=False) 34 """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)""" 35 errors: list[BroadcastError] | None = field(init=False) 36 """The errors associated with this broadcast. Optional; nullable. Python type: ``list[BroadcastError] | None``; wire name: ``errors``; JSON type: array of object (BroadcastError) values""" 37 executed_at: datetime | None = field(init=False) 38 """When execution of the broadcast began. Optional; nullable. Python type: ``datetime | None``; wire name: ``executed_at``; JSON type: string (date-time)""" 39 id: str = field(init=False) 40 """Unique identifier for this broadcast. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 41 idempotency_key: str | None = field(init=False) 42 """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""" 43 purpose: str | None = field(init=False) 44 """The purpose associated with this broadcast. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string""" 45 recipients: list[str] = field(init=False) 46 """The recipients associated with this broadcast. Required. Python type: ``list[str]``; wire name: ``recipients``; JSON type: array of string values""" 47 send_after: datetime = field(init=False) 48 """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)""" 49 sender_id: str = field(init=False) 50 """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
Typed broadcast data in the broadcast 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: BroadcastDetail.
The chime ids associated with this broadcast. Optional; nullable. Python type: list[str] | None; wire name: chime_ids; JSON type: array of string values
The content associated with this broadcast. Required. Python type: str; wire name: content; JSON type: string
When the broadcast was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
The customer ids associated with this broadcast. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values
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)
The errors associated with this broadcast. Optional; nullable. Python type: list[BroadcastError] | None; wire name: errors; JSON type: array of object (BroadcastError) values
When execution of the broadcast began. Optional; nullable. Python type: datetime | None; wire name: executed_at; JSON type: string (date-time)
Unique identifier for this broadcast. 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 broadcast. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string
The recipients associated with this broadcast. Required. Python type: list[str]; wire name: recipients; JSON type: array of string values
Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)
Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class CancelDetail(ApiModel): 15 """Typed cancel detail data in the broadcast 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: ``BroadcastCancelDetail``. 24 """ 25 chime_ids: list[str] | None = field(init=False) 26 """The chime ids associated with this cancel detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``chime_ids``; JSON type: array of string values""" 27 content: str = field(init=False) 28 """The content associated with this cancel detail. Required. Python type: ``str``; wire name: ``content``; JSON type: string""" 29 created_at: datetime = field(init=False) 30 """When the cancel detail was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 31 customer_ids: list[str] | None = field(init=False) 32 """The customer ids associated with this cancel detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values""" 33 email: ChimeEmailMessage | None = field(init=False) 34 """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)""" 35 errors: list[BroadcastError] | None = field(init=False) 36 """The errors associated with this cancel detail. Optional; nullable. Python type: ``list[BroadcastError] | None``; wire name: ``errors``; JSON type: array of object (BroadcastError) values""" 37 executed_at: datetime | None = field(init=False) 38 """When execution of the cancel detail began. Optional; nullable. Python type: ``datetime | None``; wire name: ``executed_at``; JSON type: string (date-time)""" 39 id: str = field(init=False) 40 """Unique identifier for this cancel detail. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 41 idempotency_key: str | None = field(init=False) 42 """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""" 43 purpose: str | None = field(init=False) 44 """The purpose associated with this cancel detail. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string""" 45 recipients: list[str] = field(init=False) 46 """The recipients associated with this cancel detail. Required. Python type: ``list[str]``; wire name: ``recipients``; JSON type: array of string values""" 47 send_after: datetime = field(init=False) 48 """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)""" 49 sender_id: str = field(init=False) 50 """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string""" 51 canceled_at: datetime | None = field(init=False) 52 """When the cancel detail was canceled. Optional; nullable. Python type: ``datetime | None``; wire name: ``canceled_at``; JSON type: string (date-time)"""
Typed cancel detail data in the broadcast 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: BroadcastCancelDetail.
The chime ids associated with this cancel detail. Optional; nullable. Python type: list[str] | None; wire name: chime_ids; JSON type: array of string values
The content associated with this cancel detail. Required. Python type: str; wire name: content; JSON type: string
When the cancel detail was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
The customer ids associated with this cancel detail. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values
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)
The errors associated with this cancel detail. Optional; nullable. Python type: list[BroadcastError] | None; wire name: errors; JSON type: array of object (BroadcastError) values
When execution of the cancel detail began. Optional; nullable. Python type: datetime | None; wire name: executed_at; JSON type: string (date-time)
Unique identifier for this cancel detail. 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 cancel detail. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string
The recipients associated with this cancel detail. Required. Python type: list[str]; wire name: recipients; JSON type: array of string values
Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)
Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string
When the cancel detail was canceled. Optional; nullable. Python type: datetime | None; wire name: canceled_at; JSON type: string (date-time)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class CancelRequest(ApiRequest): 14 """Parameters accepted by the cancel request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``CancelBroadcastRequest``. 21 """ 22 broadcast_id: str 23 """Identifier of the related broadcast. Required. Python type: ``str``; wire name: ``broadcast_id``; JSON type: string"""
Parameters accepted by the cancel request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CancelBroadcastRequest.
Identifier of the related broadcast. Required. Python type: str; wire name: broadcast_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class CancelResponse(ApiModel): 14 """Typed response returned by the cancel operation. 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: ``BroadcastCancelResponse``. 23 """ 24 broadcast: BroadcastCancelDetail | None = field(init=False) 25 """The broadcast associated with this cancel response. Optional; nullable. Python type: ``BroadcastCancelDetail | None``; wire name: ``broadcast``; JSON type: object (BroadcastCancelDetail)"""
Typed response returned by the cancel operation.
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: BroadcastCancelResponse.
The broadcast associated with this cancel response. Optional; nullable. Python type: BroadcastCancelDetail | None; wire name: broadcast; JSON type: object (BroadcastCancelDetail)
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class CreationDetail(ApiModel): 15 """Typed creation detail data in the broadcast 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: ``BroadcastCreationDetail``. 24 """ 25 content: str = field(init=False) 26 """The content associated with this creation detail. Required. Python type: ``str``; wire name: ``content``; JSON type: string""" 27 created_at: datetime = field(init=False) 28 """When the creation detail was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 29 customer_ids: list[str] | None = field(init=False) 30 """The customer ids associated with this creation detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values""" 31 email: ChimeEmailMessage | None = field(init=False) 32 """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)""" 33 id: str = field(init=False) 34 """Unique identifier for this creation detail. 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 creation detail. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string""" 39 recipients: list[str] = field(init=False) 40 """The recipients associated with this creation detail. Required. Python type: ``list[str]``; wire name: ``recipients``; JSON type: array of string values""" 41 send_after: datetime = field(init=False) 42 """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)""" 43 sender_id: str = field(init=False) 44 """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
Typed creation detail data in the broadcast 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: BroadcastCreationDetail.
The content associated with this creation detail. Required. Python type: str; wire name: content; JSON type: string
When the creation detail was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
The customer ids associated with this creation detail. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values
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)
Unique identifier for this creation detail. 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 creation detail. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string
The recipients associated with this creation detail. Required. Python type: list[str]; wire name: recipients; JSON type: array of string values
Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)
Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Error(ApiModel): 14 """Error encountered when broadcasting to a specific recipient. 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: ``BroadcastError``. 23 """ 24 recipient: str | None = field(init=False) 25 """Recipient address that caused the error. Optional; nullable. Python type: ``str | None``; wire name: ``recipient``; JSON type: string""" 26 fix_code: str | None = field(init=False) 27 """Code indicating how to fix this error. Optional; nullable. Python type: ``str | None``; wire name: ``fix_code``; JSON type: string""" 28 type: str | None = field(init=False) 29 """Error type classification. Optional; nullable. Python type: ``str | None``; wire name: ``type``; JSON type: string"""
Error encountered when broadcasting to a specific 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.
API contract schema: BroadcastError.
Recipient address that caused the error. Optional; nullable. Python type: str | None; wire name: recipient; JSON type: string
Code indicating how to fix this error. Optional; nullable. Python type: str | None; wire name: fix_code; JSON type: string
Error type classification. Optional; nullable. Python type: str | None; wire name: type; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class LookupRequest(ApiRequest): 14 """Parameters accepted by the lookup request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``LookupBroadcastRequest``. 21 """ 22 broadcast_id: str 23 """Identifier of the related broadcast. Required. Python type: ``str``; wire name: ``broadcast_id``; JSON type: string"""
Parameters accepted by the lookup request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: LookupBroadcastRequest.
Identifier of the related broadcast. Required. Python type: str; wire name: broadcast_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class LookupResponse(ApiModel): 14 """Typed response returned by the lookup operation. 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: ``LookupBroadcastResponse``. 23 """ 24 broadcast: BroadcastDetail | None = field(init=False) 25 """The broadcast associated with this lookup response. Optional; nullable. Python type: ``BroadcastDetail | None``; wire name: ``broadcast``; JSON type: object (BroadcastDetail)"""
Typed response returned by the lookup operation.
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: LookupBroadcastResponse.
12@dataclass(frozen=True, slots=True, kw_only=True) 13class Request(ApiRequest): 14 """Parameters accepted by the request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``BroadcastRequest``. 21 """ 22 request_meta: BroadcastRequestRequestMeta | UnsetType = field(default=UNSET) 23 """The request meta associated with this request. Optional. Python type: ``BroadcastRequestRequestMeta``; wire name: ``request_meta``; JSON type: object""" 24 message_template: str | MessageTemplateReferenceInput | UnsetType = field(default=UNSET) 25 """Raw SMS content for SMS broadcasts, or a stored message template reference for SMS or email broadcasts. Optional. Python type: ``str | MessageTemplateReferenceInput``; wire name: ``message_template``; JSON type: one of the documented JSON shapes""" 26 email: ChimeEmailMessageInput | UnsetType = field(default=UNSET) 27 """Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ``ChimeEmailMessageInput``; wire name: ``email``; JSON type: object (ChimeEmailMessageInput)""" 28 purpose: str | UnsetType = field(default=UNSET) 29 """Category or intent for this broadcast. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 30 sender: str | UnsetType = field(default=UNSET) 31 """Sender identifier displayed to recipients. Optional. Python type: ``str``; wire name: ``sender``; JSON type: string""" 32 recipients: list[ChimeRecipientInput] 33 """Recipient objects for this broadcast. Each item must include `transport` and either inline contact details or `customer_id`. Required. Python type: ``list[ChimeRecipientInput]``; wire name: ``recipients``; JSON type: array of object (ChimeRecipient) values. Constraints: minimum items 1"""
Parameters accepted by the request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: BroadcastRequest.
The request meta associated with this request. Optional. Python type: BroadcastRequestRequestMeta; wire name: request_meta; JSON type: object
Raw SMS content for SMS broadcasts, or a stored message template reference for SMS or email broadcasts. Optional. Python type: str | MessageTemplateReferenceInput; wire name: message_template; JSON type: one of the documented JSON shapes
Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ChimeEmailMessageInput; wire name: email; JSON type: object (ChimeEmailMessageInput)
Category or intent for this broadcast. Optional. Python type: str; wire name: purpose; JSON type: string
Sender identifier displayed to recipients. Optional. Python type: str; wire name: sender; JSON type: string
Recipient objects for this broadcast. Each item must include transport and either inline contact details or customer_id. Required. Python type: list[ChimeRecipientInput]; wire name: recipients; JSON type: array of object (ChimeRecipient) values. Constraints: minimum items 1
13@dataclass(frozen=True, slots=True, kw_only=True) 14class RequestRequestMeta(ApiRequest): 15 """Parameters accepted by the request request meta 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: ``BroadcastRequestRequestMeta``. 22 """ 23 idempotency_key: str | UnsetType = field(default=UNSET) 24 """Stable retry key. It must match the Idempotency-Key header when both are provided. 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)"""
Parameters accepted by the request request meta 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: BroadcastRequestRequestMeta.
Stable retry key. It must match the Idempotency-Key header when both are provided. Optional. Python type: str; wire name: idempotency_key; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Response(ApiModel): 14 """Typed response returned by the response operation. 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: ``BroadcastResponse``. 23 """ 24 broadcast: BroadcastCreationDetail | None = field(init=False) 25 """The broadcast associated with this response. Optional; nullable. Python type: ``BroadcastCreationDetail | None``; wire name: ``broadcast``; JSON type: object (BroadcastCreationDetail)"""
Typed response returned by the response operation.
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: BroadcastResponse.
The broadcast associated with this response. Optional; nullable. Python type: BroadcastCreationDetail | None; wire name: broadcast; JSON type: object (BroadcastCreationDetail)