sinch.domains.sms.sinch_events.v1.events package
- class sinch.domains.sms.sinch_events.v1.events.MOTextSinchEvent(
- *,
- from_: Annotated[str, Strict(strict=True)],
- id: Annotated[str, Strict(strict=True)],
- received_at: datetime,
- to: Annotated[str, Strict(strict=True)],
- client_reference: Annotated[str, Strict(strict=True)] | None = None,
- operator_id: Annotated[str, Strict(strict=True)] | None = None,
- sent_at: datetime | None = None,
- body: Annotated[str, Strict(strict=True)],
- type: Literal['mo_text'],
- **extra_data: Any,
Bases:
BaseIncomingSMSSinchEvent- Parameters:
from_ (Annotated[str, Strict(strict=True)])
id (Annotated[str, Strict(strict=True)])
received_at (datetime)
to (Annotated[str, Strict(strict=True)])
client_reference (Annotated[str, Strict(strict=True)] | None)
operator_id (Annotated[str, Strict(strict=True)] | None)
sent_at (datetime | None)
body (Annotated[str, Strict(strict=True)])
type (Literal['mo_text'])
extra_data (Any)
- body: Annotated[str, Strict(strict=True)]
- type: Literal['mo_text']
- 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.sms.sinch_events.v1.events.MOBinarySinchEvent(
- *,
- from_: Annotated[str, Strict(strict=True)],
- id: Annotated[str, Strict(strict=True)],
- received_at: datetime,
- to: Annotated[str, Strict(strict=True)],
- client_reference: Annotated[str, Strict(strict=True)] | None = None,
- operator_id: Annotated[str, Strict(strict=True)] | None = None,
- sent_at: datetime | None = None,
- body: Annotated[str, Strict(strict=True)],
- type: Literal['mo_binary'],
- udh: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseIncomingSMSSinchEvent- Parameters:
from_ (Annotated[str, Strict(strict=True)])
id (Annotated[str, Strict(strict=True)])
received_at (datetime)
to (Annotated[str, Strict(strict=True)])
client_reference (Annotated[str, Strict(strict=True)] | None)
operator_id (Annotated[str, Strict(strict=True)] | None)
sent_at (datetime | None)
body (Annotated[str, Strict(strict=True)])
type (Literal['mo_binary'])
udh (Annotated[str, Strict(strict=True)])
extra_data (Any)
- body: Annotated[str, Strict(strict=True)]
- type: Literal['mo_binary']
- udh: Annotated[str, Strict(strict=True)]
- 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.sms.sinch_events.v1.events.MOMediaSinchEvent(
- *,
- from_: Annotated[str, Strict(strict=True)],
- id: Annotated[str, Strict(strict=True)],
- received_at: datetime,
- to: Annotated[str, Strict(strict=True)],
- client_reference: Annotated[str, Strict(strict=True)] | None = None,
- operator_id: Annotated[str, Strict(strict=True)] | None = None,
- sent_at: datetime | None = None,
- body: MediaBody,
- type: Literal['mo_media'],
- **extra_data: Any,
Bases:
BaseIncomingSMSSinchEvent- Parameters:
from_ (Annotated[str, Strict(strict=True)])
id (Annotated[str, Strict(strict=True)])
received_at (datetime)
to (Annotated[str, Strict(strict=True)])
client_reference (Annotated[str, Strict(strict=True)] | None)
operator_id (Annotated[str, Strict(strict=True)] | None)
sent_at (datetime | None)
body (MediaBody)
type (Literal['mo_media'])
extra_data (Any)
- type: Literal['mo_media']
- 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.sms.sinch_events.v1.events.MediaBody(
- *,
- subject: Annotated[str, Strict(strict=True)] | None = None,
- message: Annotated[str, Strict(strict=True)] | None = None,
- media: Annotated[list[MediaItem], Len(min_length=0, max_length=None)],
- **extra_data: Any,
Bases:
SinchEvent- Parameters:
- subject: Annotated[str, Strict(strict=True)] | None
- message: Annotated[str, Strict(strict=True)] | None
- 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.sms.sinch_events.v1.events.MediaItem(
- *,
- url: Annotated[str, Strict(strict=True)],
- content_type: Annotated[str, Strict(strict=True)],
- status: Literal['Uploaded', 'Failed'] | Annotated[str, Strict(strict=True)],
- code: Annotated[int, Strict(strict=True)],
- **extra_data: Any,
Bases:
SinchEvent- Parameters:
url (Annotated[str, Strict(strict=True)])
content_type (Annotated[str, Strict(strict=True)])
status (Literal['Uploaded', 'Failed'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])
code (Annotated[int, Strict(strict=True)])
extra_data (Any)
- url: Annotated[str, Strict(strict=True)]
- content_type: Annotated[str, Strict(strict=True)]
- status: Literal['Uploaded', 'Failed'] | Annotated[str, Strict(strict=True)]
- code: Annotated[int, Strict(strict=True)]
- 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].