sinch.domains.conversation.models.v1.messages.response.message_response module

class sinch.domains.conversation.models.v1.messages.response.message_response.AppMessageResponse(
*,
accept_time: datetime | None = None,
channel_identity: ChannelIdentity | None = None,
contact_id: Annotated[str, Strict(strict=True)] | None = None,
conversation_id: Annotated[str, Strict(strict=True)] | None = None,
direction: Literal['TO_APP', 'TO_CONTACT'] | Annotated[str, Strict(strict=True)] | None = None,
id: Annotated[str, Strict(strict=True)] | None = None,
metadata: Annotated[str, Strict(strict=True)] | None = None,
injected: Annotated[bool, Strict(strict=True)] | None = None,
sender_id: Annotated[str, Strict(strict=True)] | None = None,
processing_mode: Literal['CONVERSATION', 'DISPATCH'] | Annotated[str, Strict(strict=True)] | None = None,
app_message: CardAppMessage | CarouselAppMessage | ChoiceAppMessage | ContactInfoAppMessage | ListAppMessage | LocationAppMessage | MediaAppMessage | TemplateAppMessage | TextAppMessage,
**extra_data: Any,
)[source]

Bases: MessageCommonProps, SnakeCaseExtrasModel

Parameters:
  • accept_time (datetime | None)

  • channel_identity (ChannelIdentity | None)

  • contact_id (Annotated[str, Strict(strict=True)] | None)

  • conversation_id (Annotated[str, Strict(strict=True)] | None)

  • direction (Literal['TO_APP', 'TO_CONTACT'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • id (Annotated[str, Strict(strict=True)] | None)

  • metadata (Annotated[str, Strict(strict=True)] | None)

  • injected (Annotated[bool, Strict(strict=True)] | None)

  • sender_id (Annotated[str, Strict(strict=True)] | None)

  • processing_mode (Literal['CONVERSATION', 'DISPATCH'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • app_message (CardAppMessage | CarouselAppMessage | ChoiceAppMessage | ContactInfoAppMessage | ListAppMessage | LocationAppMessage | MediaAppMessage | TemplateAppMessage | TextAppMessage)

  • extra_data (Any)

app_message: CardAppMessage | CarouselAppMessage | ChoiceAppMessage | ContactInfoAppMessage | ListAppMessage | LocationAppMessage | MediaAppMessage | TemplateAppMessage | TextAppMessage
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sinch.domains.conversation.models.v1.messages.response.message_response.ContactMessageResponse(
*,
accept_time: datetime | None = None,
channel_identity: ChannelIdentity | None = None,
contact_id: Annotated[str, Strict(strict=True)] | None = None,
conversation_id: Annotated[str, Strict(strict=True)] | None = None,
direction: Literal['TO_APP', 'TO_CONTACT'] | Annotated[str, Strict(strict=True)] | None = None,
id: Annotated[str, Strict(strict=True)] | None = None,
metadata: Annotated[str, Strict(strict=True)] | None = None,
injected: Annotated[bool, Strict(strict=True)] | None = None,
sender_id: Annotated[str, Strict(strict=True)] | None = None,
processing_mode: Literal['CONVERSATION', 'DISPATCH'] | Annotated[str, Strict(strict=True)] | None = None,
contact_message: ChannelSpecificContactMessage | ChoiceResponseContactMessage | FallbackContactMessage | LocationContactMessage | MediaCardContactMessage | MediaContactMessage | ProductResponseContactMessage | TextContactMessage,
**extra_data: Any,
)[source]

Bases: MessageCommonProps, SnakeCaseExtrasModel

Parameters:
contact_message: ChannelSpecificContactMessage | ChoiceResponseContactMessage | FallbackContactMessage | LocationContactMessage | MediaCardContactMessage | MediaContactMessage | ProductResponseContactMessage | TextContactMessage
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].