sinch.domains.voice.models.v2.svaml.shared package
- sinch.domains.voice.models.v2.svaml.shared.amd_command module
- sinch.domains.voice.models.v2.svaml.shared.amd_events module
- sinch.domains.voice.models.v2.svaml.shared.answer_command module
- sinch.domains.voice.models.v2.svaml.shared.bridge_call_command module
- sinch.domains.voice.models.v2.svaml.shared.call_events module
- sinch.domains.voice.models.v2.svaml.shared.custom_event_command module
- sinch.domains.voice.models.v2.svaml.shared.dial_command module
- sinch.domains.voice.models.v2.svaml.shared.goto_menu_command module
- sinch.domains.voice.models.v2.svaml.shared.hangup_command module
- sinch.domains.voice.models.v2.svaml.shared.incoming_call_response_events module
- sinch.domains.voice.models.v2.svaml.shared.menu_command module
- sinch.domains.voice.models.v2.svaml.shared.menu_item module
- sinch.domains.voice.models.v2.svaml.shared.menu_prompt module
- sinch.domains.voice.models.v2.svaml.shared.message module
- sinch.domains.voice.models.v2.svaml.shared.message_events module
- sinch.domains.voice.models.v2.svaml.shared.messages_command module
- sinch.domains.voice.models.v2.svaml.shared.pause_command module
- sinch.domains.voice.models.v2.svaml.shared.recording_events module
- sinch.domains.voice.models.v2.svaml.shared.recording_options module
- sinch.domains.voice.models.v2.svaml.shared.start_recording_command module
- sinch.domains.voice.models.v2.svaml.shared.stop_messages_command module
- sinch.domains.voice.models.v2.svaml.shared.stop_recording_command module
- sinch.domains.voice.models.v2.svaml.shared.svaml_command module
- sinch.domains.voice.models.v2.svaml.shared.svaml_input module
- sinch.domains.voice.models.v2.svaml.shared.transcription_options module
- class sinch.domains.voice.models.v2.svaml.shared.AmdCommand(**extra_data: Any)[source]
Bases:
BaseConfigModel- Parameters:
extra_data (Any)
- command: Literal['amd']
- 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.svaml.shared.AmdEvents(
- *,
- onHuman: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onMachine: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onBeep: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onUnknown: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
onHuman (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onMachine (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onBeep (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onUnknown (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- 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.svaml.shared.AnswerCommand(
- *,
- command: Literal['answer'] = 'answer',
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['answer'])
extra_data (Any)
- command: Literal['answer']
- 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.svaml.shared.BridgeCallCommand(
- *,
- command: Literal['bridgeCall'] = 'bridgeCall',
- bridgeName: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['bridgeCall'])
bridgeName (Annotated[str, Strict(strict=True)])
extra_data (Any)
- command: Literal['bridgeCall']
- bridge_name: 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.svaml.shared.CallEvents(
- *,
- onAnswer: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onBusy: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onReject: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onTimeout: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onHangup: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onFailure: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
onAnswer (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onBusy (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onReject (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onTimeout (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onHangup (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onFailure (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- 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.svaml.shared.CustomEventCommand(
- *,
- command: Literal['customEvent'] = 'customEvent',
- webhookName: Annotated[str, Strict(strict=True)],
- url: Annotated[str, Strict(strict=True)],
- fallbackUrl: Annotated[str, Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['customEvent'])
webhookName (Annotated[str, Strict(strict=True)])
url (Annotated[str, Strict(strict=True)])
fallbackUrl (Annotated[str, Strict(strict=True)] | None)
extra_data (Any)
- command: Literal['customEvent']
- custom_event_name: Annotated[str, Strict(strict=True)]
- url: Annotated[str, Strict(strict=True)]
- fallback_url: 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].
- 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.svaml.shared.DialCommand(**extra_data: Any)[source]
Bases:
BaseConfigModel- Parameters:
extra_data (Any)
- command: Literal['dial']
- call_name: Annotated[str, Strict(strict=True)] | None
- from_: Annotated[Phone | SipFrom, FieldInfo(annotation=NoneType, required=True, discriminator='type')] | None
- to: Annotated[Phone | Sip | Stream | VoiceRelay, FieldInfo(annotation=NoneType, required=True, discriminator='type')]
- dial_timeout_duration_seconds: Annotated[int, Strict(strict=True)] | None
- max_call_duration_seconds: Annotated[int, Strict(strict=True)] | None
- events: CallEvents | 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
- class sinch.domains.voice.models.v2.svaml.shared.GotoMenuCommand(
- *,
- command: Literal['gotoMenu'] = 'gotoMenu',
- menuName: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['gotoMenu'])
menuName (Annotated[str, Strict(strict=True)])
extra_data (Any)
- command: Literal['gotoMenu']
- menu_name: 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.svaml.shared.HangupCommand(
- *,
- command: Literal['hangup'] = 'hangup',
- callName: Annotated[str, Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['hangup'])
callName (Annotated[str, Strict(strict=True)] | None)
extra_data (Any)
- command: Literal['hangup']
- call_name: 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].
- 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.svaml.shared.MenuCommand(**extra_data: Any)[source]
Bases:
BaseConfigModel- Parameters:
extra_data (Any)
- command: Literal['menu']
- start_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.svaml.shared.MenuItem(
- *,
- prompt: MenuPrompt | None = None,
- repeatPrompt: MenuPrompt | None = None,
- inputTimeoutDurationSeconds: Annotated[int, Strict(strict=True)] | None = None,
- repeatCount: Annotated[int, Strict(strict=True)] | None = None,
- minimumInputLength: Annotated[int, Strict(strict=True)] | None = None,
- maximumInputLength: Annotated[int, Strict(strict=True)] | None = None,
- terminatingSequence: Annotated[str, Strict(strict=True)] | None = None,
- inputMethods: Annotated[list[Literal['DTMF'] | Annotated[str, Strict(strict=True)]], Len(min_length=0, max_length=None)] | None = None,
- matches: Dict[Annotated[str, Strict(strict=True)], Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)]] | None = None,
- onFail: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
prompt (MenuPrompt | None)
repeatPrompt (MenuPrompt | None)
inputTimeoutDurationSeconds (Annotated[int, Strict(strict=True)] | None)
repeatCount (Annotated[int, Strict(strict=True)] | None)
minimumInputLength (Annotated[int, Strict(strict=True)] | None)
maximumInputLength (Annotated[int, Strict(strict=True)] | None)
terminatingSequence (Annotated[str, Strict(strict=True)] | None)
inputMethods (Annotated[list[Literal['DTMF'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)]], ~annotated_types.Len(min_length=0, max_length=None)] | None)
matches (Dict[Annotated[str, Strict(strict=True)], Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)]] | None)
onFail (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- prompt: MenuPrompt | None
- repeat_prompt: MenuPrompt | None
- input_timeout_duration_seconds: Annotated[int, Strict(strict=True)] | None
- repeat_count: Annotated[int, Strict(strict=True)] | None
- minimum_input_length: Annotated[int, Strict(strict=True)] | None
- maximum_input_length: Annotated[int, Strict(strict=True)] | None
- terminating_sequence: Annotated[str, Strict(strict=True)] | None
- input_methods: Annotated[list[Literal['DTMF'] | Annotated[str, Strict(strict=True)]], Len(min_length=0, max_length=None)] | None
- matches: Dict[Annotated[str, Strict(strict=True)], Annotated[list[SvamlCommand], Len(min_length=0, max_length=None)]] | 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
- class sinch.domains.voice.models.v2.svaml.shared.MenuPrompt(
- *,
- allowBargeIn: Annotated[bool, Strict(strict=True)] | None = None,
- messages: Annotated[list[Annotated[SayMessage | PlayMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], Len(min_length=0, max_length=None)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
allowBargeIn (Annotated[bool, Strict(strict=True)] | None)
messages (Annotated[list[Annotated[SayMessage | PlayMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], Len(min_length=0, max_length=None)])
extra_data (Any)
- allow_barge_in: Annotated[bool, Strict(strict=True)] | None
- messages: Annotated[list[Annotated[SayMessage | PlayMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], 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].
- 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.svaml.shared.MessageEvents(
- *,
- onFinish: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
onFinish (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- 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.svaml.shared.MessagesCommand(**extra_data: Any)[source]
Bases:
BaseConfigModel- Parameters:
extra_data (Any)
- command: Literal['messages']
- messages_name: Annotated[str, Strict(strict=True)] | None
- messages: Annotated[list[Annotated[SayMessage | PlayMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], Len(min_length=0, max_length=None)]
- events: MessageEvents | 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
- class sinch.domains.voice.models.v2.svaml.shared.PauseCommand(
- *,
- command: Literal['pause'] = 'pause',
- durationMilliseconds: Annotated[int, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['pause'])
durationMilliseconds (Annotated[int, Strict(strict=True)])
extra_data (Any)
- command: Literal['pause']
- duration_milliseconds: 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].
- 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.svaml.shared.Play(
- *,
- url: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
url (Annotated[str, Strict(strict=True)])
extra_data (Any)
- url: 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.svaml.shared.PlayMessage(
- *,
- type: Literal['PLAY'] = 'PLAY',
- play: Play,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
type (Literal['PLAY'])
play (Play)
extra_data (Any)
- type: Literal['PLAY']
- 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.svaml.shared.RecordingEvents(
- *,
- onFinish: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- onFailure: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
onFinish (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
onFailure (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- 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.svaml.shared.RecordingOptions(
- *,
- format: Literal['MP3', 'WAV'] | Annotated[str, Strict(strict=True)] | None = None,
- recordingType: Literal['COMBINED', 'INBOUND', 'OUTBOUND'] | Annotated[str, Strict(strict=True)] | None = None,
- destination: Literal['AWS', 'GCP', 'AZURE'] | Annotated[str, Strict(strict=True)],
- destinationUrl: Annotated[str, Strict(strict=True)],
- credentials: Annotated[str, Strict(strict=True)],
- transcriptionOptions: TranscriptionOptions | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
format (Literal['MP3', 'WAV'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
recordingType (Literal['COMBINED', 'INBOUND', 'OUTBOUND'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
destination (Literal['AWS', 'GCP', 'AZURE'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])
destinationUrl (Annotated[str, Strict(strict=True)])
credentials (Annotated[str, Strict(strict=True)])
transcriptionOptions (TranscriptionOptions | None)
extra_data (Any)
- format: Literal['MP3', 'WAV'] | Annotated[str, Strict(strict=True)] | None
- recording_type: Literal['COMBINED', 'INBOUND', 'OUTBOUND'] | Annotated[str, Strict(strict=True)] | None
- destination: Literal['AWS', 'GCP', 'AZURE'] | Annotated[str, Strict(strict=True)]
- destination_url: Annotated[str, Strict(strict=True)]
- credentials: Annotated[str, Strict(strict=True)]
- transcription_options: TranscriptionOptions | 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
- class sinch.domains.voice.models.v2.svaml.shared.Say(
- *,
- text: Annotated[str, Strict(strict=True)],
- format: Literal['TEXT', 'SSML'] | Annotated[str, Strict(strict=True)] | None = None,
- voiceName: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
text (Annotated[str, Strict(strict=True)])
format (Literal['TEXT', 'SSML'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
voiceName (Annotated[str, Strict(strict=True)])
extra_data (Any)
- text: Annotated[str, Strict(strict=True)]
- format: Literal['TEXT', 'SSML'] | Annotated[str, Strict(strict=True)] | None
- voice_name: 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.svaml.shared.SayMessage(
- *,
- type: Literal['SAY'] = 'SAY',
- say: Say,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
type (Literal['SAY'])
say (Say)
extra_data (Any)
- type: Literal['SAY']
- 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.svaml.shared.StartRecordingCommand(**extra_data: Any)[source]
Bases:
BaseConfigModel- Parameters:
extra_data (Any)
- command: Literal['startRecording']
- recording_name: Annotated[str, Strict(strict=True)] | None
- recording_options: RecordingOptions
- events: RecordingEvents | 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
- class sinch.domains.voice.models.v2.svaml.shared.StopMessagesCommand(
- *,
- command: Literal['stopMessages'] = 'stopMessages',
- messagesName: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['stopMessages'])
messagesName (Annotated[str, Strict(strict=True)])
extra_data (Any)
- command: Literal['stopMessages']
- messages_name: 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.svaml.shared.StopRecordingCommand(
- *,
- command: Literal['stopRecording'] = 'stopRecording',
- recordingName: Annotated[str, Strict(strict=True)],
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
command (Literal['stopRecording'])
recordingName (Annotated[str, Strict(strict=True)])
extra_data (Any)
- command: Literal['stopRecording']
- recording_name: 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.svaml.shared.SvamlInput(
- *,
- commands: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)],
- callName: Annotated[str, Strict(strict=True)] | None = None,
- events: IncomingCallResponseEvents | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
commands (Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)])
callName (Annotated[str, Strict(strict=True)] | None)
events (IncomingCallResponseEvents | None)
extra_data (Any)
- commands: Annotated[list[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]], Len(min_length=0, max_length=None)]
- 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
- class sinch.domains.voice.models.v2.svaml.shared.TranscriptionOptions(
- *,
- isEnabled: Annotated[bool, Strict(strict=True)],
- locale: Annotated[str, Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
isEnabled (Annotated[bool, Strict(strict=True)])
locale (Annotated[str, Strict(strict=True)] | None)
extra_data (Any)
- is_enabled: Annotated[bool, Strict(strict=True)]
- locale: 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].
- 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.svaml.shared.IncomingCallResponseEvents(
- *,
- onHangup: List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
onHangup (List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]] | None)
extra_data (Any)
- on_hangup: List[Annotated[AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | CustomEventCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand, FieldInfo(annotation=NoneType, required=True, discriminator='command')]] | 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,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None