sinch.domains.voice.models.v2.svaml.shared.menu_item module
- class sinch.domains.voice.models.v2.svaml.shared.menu_item.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