sinch.domains.conversation.models.v1.messages.types package

class sinch.domains.conversation.models.v1.messages.types.ListMessageDict[source]

Bases: TypedDict

title: str
sections: List[ListSectionDict]
description: NotRequired[str]
media: NotRequired[MediaPropertiesDict]
message_properties: NotRequired[ListMessagePropertiesDict]
class sinch.domains.conversation.models.v1.messages.types.MediaPropertiesDict[source]

Bases: TypedDict

url: str
thumbnail_url: NotRequired[str]
filename_override: NotRequired[str]
class sinch.domains.conversation.models.v1.messages.types.CardMessageDict[source]

Bases: TypedDict

choices: NotRequired[List[ChoiceOptionDict]]
description: NotRequired[str]
height: NotRequired[Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | Annotated[str, Strict(strict=True)]]
title: NotRequired[str]
media_message: NotRequired[MediaPropertiesDict]
message_properties: NotRequired[MessagePropertiesDict]
class sinch.domains.conversation.models.v1.messages.types.CarouselMessageDict[source]

Bases: TypedDict

cards: List[CardMessageDict]
choices: NotRequired[List[ChoiceOptionDict]]
class sinch.domains.conversation.models.v1.messages.types.ChoiceMessageDict[source]

Bases: TypedDict

choices: List[ChoiceOptionDict]
text_message: NotRequired[TextMessageDict]
message_properties: NotRequired[ChoiceMessagePropertiesDict]
class sinch.domains.conversation.models.v1.messages.types.ContactInfoMessageDict[source]

Bases: TypedDict

name: NameInfoDict
phone_numbers: List[PhoneNumberInfoDict]
addresses: NotRequired[List[AddressInfoDict]]
email_addresses: NotRequired[List[EmailInfoDict]]
organization: NotRequired[OrganizationInfoDict]
urls: NotRequired[List[UrlInfoDict]]
birthday: NotRequired[date]
class sinch.domains.conversation.models.v1.messages.types.LocationMessageDict[source]

Bases: TypedDict

coordinates: CoordinatesDict
title: str
label: NotRequired[str]
class sinch.domains.conversation.models.v1.messages.types.TemplateMessageDict[source]

Bases: TypedDict

channel_template: NotRequired[Dict[str, TemplateReferenceChannelSpecificDict]]
omni_template: NotRequired[TemplateReferenceOmniChannelDict]
class sinch.domains.conversation.models.v1.messages.types.ChannelRecipientIdentityDict[source]

Bases: TypedDict

channel: Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)]
identity: str
class sinch.domains.conversation.models.v1.messages.types.SendMessageRequestBodyDict[source]

Bases: TypedDict

TypedDict for the message body in send message requests. At least one message type must be provided.

text_message: NotRequired[TextMessageDict]
card_message: NotRequired[CardMessageDict]
carousel_message: NotRequired[CarouselMessageDict]
choice_message: NotRequired[ChoiceMessageDict]
contact_info_message: NotRequired[ContactInfoMessageDict]
list_message: NotRequired[ListMessageDict]
location_message: NotRequired[LocationMessageDict]
media_message: NotRequired[MediaPropertiesDict]
template_message: NotRequired[TemplateMessageDict]