sinch.domains.sms.sinch_events.v1.events.sms_sinch_event module

class sinch.domains.sms.sinch_events.v1.events.sms_sinch_event.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,
)[source]

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].

class sinch.domains.sms.sinch_events.v1.events.sms_sinch_event.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,
)[source]

Bases: SinchEvent

Parameters:
  • subject (Annotated[str, Strict(strict=True)] | None)

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

  • media (Annotated[list[MediaItem], Len(min_length=0, max_length=None)])

  • extra_data (Any)

subject: Annotated[str, Strict(strict=True)] | None
message: Annotated[str, Strict(strict=True)] | None
media: Annotated[list[MediaItem], Len(min_length=0, max_length=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.sms_sinch_event.BaseIncomingSMSSinchEvent(
*,
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,
**extra_data: Any,
)[source]

Bases: SinchEvent

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)

  • extra_data (Any)

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
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.sms_sinch_event.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,
)[source]

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.sms_sinch_event.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,
)[source]

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.sms_sinch_event.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,
)[source]

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)

body: MediaBody
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].