sinch.domains.conversation.models.v1.messages.types.contact_message_dict module

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

Bases: TypedDict

name: Literal['flow', 'address_message'] | Annotated[str, Strict(strict=True)]
response_json: str
body: str
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.WhatsAppInteractiveNfmReplyMessageDict[source]

Bases: TypedDict

type: Literal['nfm_reply'] | str
nfm_reply: WhatsAppInteractiveNfmReplyDict
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ChannelSpecificContactMessageDict[source]

Bases: TypedDict

message_type: Literal['nfm_reply'] | str
message: WhatsAppInteractiveNfmReplyMessageDict
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ChoiceResponseMessageDict[source]

Bases: TypedDict

message_id: str
postback_data: str
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ReasonDict[source]

Bases: TypedDict

code: NotRequired[Literal['UNKNOWN', 'INTERNAL_ERROR', 'RATE_LIMITED', 'RECIPIENT_INVALID_CHANNEL_IDENTITY', 'RECIPIENT_NOT_REACHABLE', 'RECIPIENT_NOT_OPTED_IN', 'OUTSIDE_ALLOWED_SENDING_WINDOW', 'CHANNEL_FAILURE', 'CHANNEL_BAD_CONFIGURATION', 'CHANNEL_CONFIGURATION_MISSING', 'MEDIA_TYPE_UNSUPPORTED', 'MEDIA_TOO_LARGE', 'MEDIA_NOT_REACHABLE', 'NO_CHANNELS_LEFT', 'TEMPLATE_NOT_FOUND', 'TEMPLATE_INSUFFICIENT_PARAMETERS', 'TEMPLATE_NON_EXISTING_LANGUAGE_OR_VERSION', 'DELIVERY_TIMED_OUT', 'DELIVERY_REJECTED_DUE_TO_POLICY', 'CONTACT_NOT_FOUND', 'BAD_REQUEST', 'UNKNOWN_APP', 'NO_CHANNEL_IDENTITY_FOR_CONTACT', 'CHANNEL_REJECT', 'NO_PERMISSION', 'NO_PROFILE_AVAILABLE', 'UNSUPPORTED_OPERATION'] | Annotated[str, Strict(strict=True)]]
description: NotRequired[str]
sub_code: NotRequired[Literal['UNSPECIFIED_SUB_CODE', 'ATTACHMENT_REJECTED', 'MEDIA_TYPE_UNDETERMINED', 'INACTIVE_SENDER'] | Annotated[str, Strict(strict=True)]]
channel_code: NotRequired[str]
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.FallbackMessageDict[source]

Bases: TypedDict

raw_message: NotRequired[str]
reason: NotRequired[ReasonDict]
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.MediaCardMessageDict[source]

Bases: TypedDict

url: str
caption: NotRequired[str]
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ProductResponseMessageDict[source]

Bases: TypedDict

products: NotRequired[List[ProductItemDict]]
title: NotRequired[str]
catalog_id: NotRequired[str]
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ReplyToDict[source]

Bases: TypedDict

message_id: str
class sinch.domains.conversation.models.v1.messages.types.contact_message_dict.ContactMessageDict[source]

Bases: TypedDict

channel_specific_message: NotRequired[ChannelSpecificContactMessageDict]
choice_response_message: NotRequired[ChoiceResponseMessageDict]
fallback_message: NotRequired[FallbackMessageDict]
location_message: NotRequired[LocationMessageDict]
media_card_message: NotRequired[MediaCardMessageDict]
media_message: NotRequired[MediaPropertiesDict]
product_response_message: NotRequired[ProductResponseMessageDict]
text_message: NotRequired[TextMessageDict]
reply_to: NotRequired[ReplyToDict]