sinch.domains.voice.models.v2.sinch_events package
- class sinch.domains.voice.models.v2.sinch_events.MenuInput(
- *,
- menuName: Annotated[str, Strict(strict=True)],
- input: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
menuName (Annotated[str, Strict(strict=True)])
input (Annotated[str, Strict(strict=True)])
extra_data (Any)
- input: 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].
- model_post_init(_BaseConfigModel__context: Any) None
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.voice.models.v2.sinch_events.VoiceSinchEventRequest(
- *,
- event: Literal['call.incoming', 'call.answered', 'call.busy', 'call.rejected', 'call.timeout', 'call.hangup', 'call.failed', 'call.amd.human', 'call.amd.machine', 'call.amd.beep', 'call.amd.unknown', 'call.message.finished', 'call.recording.finished', 'call.recording.failed', 'call.menu'] | Annotated[str, Strict(strict=True)],
- call: Call,
- menu: MenuInput | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
event (Literal['call.incoming', 'call.answered', 'call.busy', 'call.rejected', 'call.timeout', 'call.hangup', 'call.failed', 'call.amd.human', 'call.amd.machine', 'call.amd.beep', 'call.amd.unknown', 'call.message.finished', 'call.recording.finished', 'call.recording.failed', 'call.menu'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])
call (Call)
menu (MenuInput | None)
extra_data (Any)
- event: Literal['call.incoming', 'call.answered', 'call.busy', 'call.rejected', 'call.timeout', 'call.hangup', 'call.failed', 'call.amd.human', 'call.amd.machine', 'call.amd.beep', 'call.amd.unknown', 'call.message.finished', 'call.recording.finished', 'call.recording.failed', 'call.menu'] | 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].
- model_post_init(_BaseConfigModel__context: Any) None
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.voice.models.v2.sinch_events.VoiceSinchEventResponse(
- *,
- commands: List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]],
- callName: Annotated[str, Strict(strict=True)] | None = None,
- events: IncomingCallResponseEvents | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
commands (List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]])
callName (Annotated[str, Strict(strict=True)] | None)
events (IncomingCallResponseEvents | None)
extra_data (Any)
- commands: List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]]
- call_name: Annotated[str, Strict(strict=True)] | None
- events: IncomingCallResponseEvents | 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].
- model_post_init(_BaseConfigModel__context: Any) None
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None