sinch.domains.conversation.models.v1.sinch_events.inbound.inbound_event module
- class sinch.domains.conversation.models.v1.sinch_events.inbound.inbound_event.InboundEvent(
- *,
- id: Annotated[str,
- ~pydantic.types.Strict(strict=True)] | None = None,
- direction: Literal['TO_APP',
- 'TO_CONTACT'] | ~typing.Annotated[str,
- ~pydantic.types.Strict(strict=True)] | None = None,
- contact_event: GenericAppEvent,
- <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1c9e65390>] | None=None,
- contact_message_event: ReactionContactMessageEvent,
- <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1c9e80b90>] | None=None,
- channel_identity: ChannelIdentity | None = None,
- contact_id: Annotated[str,
- ~pydantic.types.Strict(strict=True)] | None = None,
- conversation_id: Annotated[str,
- ~pydantic.types.Strict(strict=True)] | None = None,
- accept_time: datetime | None = None,
- processing_mode: Literal['CONVERSATION',
- 'DISPATCH'] | ~typing.Annotated[str,
- ~pydantic.types.Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
SinchEventInbound event container (contact event + channel/contact info).
- Parameters:
id (Annotated[str, Strict(strict=True)] | None)
direction (Literal['TO_APP', 'TO_CONTACT'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
contact_event (Annotated[ComposingAppEvent | ComposingEndAppEvent | ConversationDeletedContactEvent | CommentContactEvent | GenericAppEvent, <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1c9e65390>] | None)
contact_message_event (Annotated[PaymentStatusUpdateContactMessageEvent | ShortLinkActivatedContactMessageEvent | ReactionContactMessageEvent, <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1c9e80b90>] | None)
channel_identity (ChannelIdentity | None)
contact_id (Annotated[str, Strict(strict=True)] | None)
conversation_id (Annotated[str, Strict(strict=True)] | None)
accept_time (datetime | None)
processing_mode (Literal['CONVERSATION', 'DISPATCH'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
extra_data (Any)
- id: Annotated[str, Strict(strict=True)] | None
- direction: Literal['TO_APP', 'TO_CONTACT'] | Annotated[str, Strict(strict=True)] | None
- contact_event: ResolveUnion object at 0x7ff1c9e65390>] | None
- contact_message_event: ResolveUnion object at 0x7ff1c9e80b90>] | None
- channel_identity: ChannelIdentity | None
- contact_id: Annotated[str, Strict(strict=True)] | None
- conversation_id: Annotated[str, Strict(strict=True)] | None
- accept_time: datetime | None
- processing_mode: Literal['CONVERSATION', 'DISPATCH'] | Annotated[str, Strict(strict=True)] | None
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(_SnakifyExtrasOnInit__context: Any) None
Marks applied non-
Nonedefaults as set.- Parameters:
_SnakifyExtrasOnInit__context (Any)
- Return type:
None