""" Options: Date: 2025-05-04 21:58:33 Version: 8.71 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://team.evovoice.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: NewFlowMessage.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Struct(Dict[str,Value]): pass @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Value: bool_value: Optional[bool] = None string_value: Optional[str] = None number_value: Optional[float] = None list_value: Optional[List[Struct]] = None struct_value: Optional[Struct] = None # @Route("/flows/message") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class NewFlowMessage(IReturnVoid): # @ApiMember(Description="The ID of the endpoint that received the message") endpoint_id: Optional[str] = None """ The ID of the endpoint that received the message """ # @ApiMember(Description="The session values") session_parameters: Optional[Struct] = None """ The session values """ # @ApiMember(Description="The from address") from_address: Optional[str] = None """ The from address """ # @ApiMember(Description="The to address") to_address: Optional[str] = None """ The to address """ # @ApiMember(Description="The identity of the sender") identity: Optional[str] = None """ The identity of the sender """ # @ApiMember(Description="The display name of the sender (will default to identity if not specified") display_name: Optional[str] = None """ The display name of the sender (will default to identity if not specified """ # @ApiMember(Description="The URL to call when replies need to be sent back") message_url: Optional[str] = None """ The URL to call when replies need to be sent back """