sinch.domains.conversation.models.v1.conversations.response package
- class sinch.domains.conversation.models.v1.conversations.response.ConversationResponse(
- *,
- active: Annotated[bool, Strict(strict=True)] | None = None,
- active_channel: Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)] | None = None,
- app_id: Annotated[str, Strict(strict=True)] | None = None,
- contact_id: Annotated[str, Strict(strict=True)] | None = None,
- metadata: Annotated[str, Strict(strict=True)] | None = None,
- metadata_json: Dict[str, Any] | None = None,
- correlation_id: Annotated[str, Strict(strict=True)] | None = None,
- id: Annotated[str, Strict(strict=True)] | None = None,
- last_received: datetime | None = None,
- **extra_data: Any,
Bases:
SnakeCaseExtrasModel- Parameters:
active (Annotated[bool, Strict(strict=True)] | None)
active_channel (Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
app_id (Annotated[str, Strict(strict=True)] | None)
contact_id (Annotated[str, Strict(strict=True)] | None)
metadata (Annotated[str, Strict(strict=True)] | None)
metadata_json (Dict[str, Any] | None)
correlation_id (Annotated[str, Strict(strict=True)] | None)
id (Annotated[str, Strict(strict=True)] | None)
last_received (datetime | None)
extra_data (Any)
- active: Annotated[bool, Strict(strict=True)] | None
- active_channel: Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)] | None
- app_id: Annotated[str, Strict(strict=True)] | None
- contact_id: Annotated[str, Strict(strict=True)] | None
- metadata: Annotated[str, Strict(strict=True)] | None
- metadata_json: Dict[str, Any] | None
- correlation_id: Annotated[str, Strict(strict=True)] | None
- id: Annotated[str, Strict(strict=True)] | None
- last_received: datetime | 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
- class sinch.domains.conversation.models.v1.conversations.response.InjectEventResponse(
- *,
- event_id: Annotated[str, Strict(strict=True)] | None = None,
- accepted_time: datetime | None = None,
- **extra_data: Any,
Bases:
SnakeCaseExtrasModel- Parameters:
event_id (Annotated[str, Strict(strict=True)] | None)
accepted_time (datetime | None)
extra_data (Any)
- event_id: Annotated[str, Strict(strict=True)] | None
- accepted_time: datetime | 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
- class sinch.domains.conversation.models.v1.conversations.response.RecentConversationResponse(
- *,
- conversation: ConversationResponse | None = None,
- last_message: ContactMessageResponse,
- <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1ca2c6e10>] | None=None,
- **extra_data: Any,
Bases:
SnakeCaseExtrasModel- Parameters:
conversation (ConversationResponse | None)
last_message (Annotated[AppMessageResponse | ContactMessageResponse, <sinch.core.models.internal.unions.ResolveUnion object at 0x7ff1ca2c6e10>] | None)
extra_data (Any)
- conversation: ConversationResponse | None
- last_message: ResolveUnion object at 0x7ff1ca2c6e10>] | 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,
Marks applied non-
Nonedefaults as set.- Parameters:
_SnakifyExtrasOnInit__context (Any)
- Return type:
None