/* Options: Date: 2025-05-04 20:21:02 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: GetAppConfig.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Voice.Api.App; using Voice.Api.Customers; using Voice.Api.Endpoints; namespace Voice.Api.App { public partial class AppConfig { /// ///The ID of this endpoint /// [ApiMember(Description="The ID of this endpoint")] public virtual string EndpointId { get; set; } /// ///The ID of the account /// [ApiMember(Description="The ID of the account")] public virtual string AccountId { get; set; } /// ///The customer ID associated with this user /// [ApiMember(Description="The customer ID associated with this user")] public virtual string CustomerId { get; set; } /// ///The access token for use with Twilio Voice /// [ApiMember(Description="The access token for use with Twilio Voice")] public virtual string AccessToken { get; set; } /// ///The access token's identity /// [ApiMember(Description="The access token's identity")] public virtual string Identity { get; set; } /// ///The email address of the user /// [ApiMember(Description="The email address of the user")] public virtual string EmailAddress { get; set; } /// ///The user's information /// [ApiMember(Description="The user's information")] public virtual AppUserInfo UserInfo { get; set; } /// ///The agent state (for call center users) /// [ApiMember(Description="The agent state (for call center users)")] public virtual AgentStates AgentState { get; set; } /// ///The agent state reason /// [ApiMember(Description="The agent state reason")] public virtual AgentStateReasons AgentStateReason { get; set; } /// ///The tabs for the app /// [ApiMember(Description="The tabs for the app")] public virtual List Tabs { get; set; } /// ///The app settings /// [ApiMember(Description="The app settings")] public virtual AppSettings AppSettings { get; set; } /// ///The phone settings for third party connectivity /// [ApiMember(Description="The phone settings for third party connectivity")] public virtual ThirdPartyPhoneSystemSettings ThirdPartyPhoneSystemSettings { get; set; } } public partial class AppUserInfo { /// ///The user's first name /// [ApiMember(Description="The user's first name")] public virtual string FirstName { get; set; } /// ///The user's last name /// [ApiMember(Description="The user's last name")] public virtual string LastName { get; set; } /// ///Shortcut to the user's full name /// [ApiMember(Description="Shortcut to the user's full name")] public virtual string Name { get; set; } /// ///The URL to the user's avatar /// [ApiMember(Description="The URL to the user's avatar")] public virtual string AvatarUrl { get; set; } } public enum DeviceTypes { Web, iOS, Android, } /// ///Gets the config for the app including webRTC token /// [Route("/app/config", "GET")] [Api(Description="Gets the config for the app including webRTC token")] public partial class GetAppConfig : IReturn, IGet { /// ///The type of device you are requesting config for /// [ApiMember(Description="The type of device you are requesting config for")] public virtual DeviceTypes DeviceType { get; set; } /// ///Use a specific push credential SID /// [ApiMember(Description="Use a specific push credential SID")] public virtual string PushCredentialSid { get; set; } /// ///Use a specific application SID /// [ApiMember(Description="Use a specific application SID")] public virtual string ApplicationSid { get; set; } /// ///Is this device operating in a sandbox environment? IOS only. /// [ApiMember(Description="Is this device operating in a sandbox environment? IOS only.")] public virtual bool Sandbox { get; set; } } } namespace Voice.Api.Customers { public partial class AppSettings { public virtual bool EnablePhoneNumberManagement { get; set; } public virtual bool EnableDeviceManagement { get; set; } public virtual bool EnableDialer { get; set; } public virtual bool EnableCallHistory { get; set; } public virtual bool EnableAssistants { get; set; } public virtual bool ShowFileNameInMessageCenter { get; set; } public virtual string ChakraTheme { get; set; } public virtual string CustomCss { get; set; } public virtual string PageTitle { get; set; } public virtual string StringMappings { get; set; } public virtual string LogoutUrl { get; set; } public virtual string PortMyNumberUrl { get; set; } } } namespace Voice.Api.Endpoints { public enum AgentStateReasons { Unknown, SetByUser, MissedCall, SetBySystem, } public enum AgentStates { Unknown, Ready, NotReady, LoggedOut, WrapUp, Outgoing, Other, } public partial class ThirdPartyPhoneSystemSettings { public virtual ThirdPartyPhoneSystemTypes Type { get; set; } public virtual ThirdPartySipSettings SipSettings { get; set; } public virtual ThirdPartyDemoSettings DemoSettings { get; set; } public partial class ThirdPartyDemoSettings { public virtual string Extension { get; set; } } public partial class ThirdPartySipSettings { public virtual List Accounts { get; set; } public enum TransportTypes { UDP, TLS, TCP, PERS, } public enum AudioCodecTypes { PCMU = 0, GSM = 3, PCMA = 8, G722 = 9, G729 = 18, ILBC = 97, AMR = 98, AMRWB = 99, SPEEX = 100, DTMF = 101, SPEEXWB = 102, ISACWB = 103, ISACSWB = 104, OPUS = 105, G7221 = 121, NONE = -1, } public enum DtmfMethods { RFC2833, INFO, } public partial class ThirdPartySipAccountSettings { public virtual string Number { get; set; } public virtual string Agent { get; set; } public virtual string AuthName { get; set; } public virtual string UserName { get; set; } public virtual string DisplayName { get; set; } public virtual string Password { get; set; } public virtual string UserDomain { get; set; } public virtual int RegistrationExpires { get; set; } public virtual TransportTypes TransportType { get; set; } public virtual string LocalIP { get; set; } public virtual int LocalPort { get; set; } public virtual string SipServer { get; set; } public virtual int SipServerPort { get; set; } public virtual string OutboundServer { get; set; } public virtual int OutboundServerPort { get; set; } public virtual string StunServer { get; set; } public virtual int StunPort { get; set; } public virtual string AudioPlaybackDeviceName { get; set; } public virtual string AudioRecordingDeviceName { get; set; } public virtual List AudioCodecs { get; set; } public virtual DtmfMethods DTMFMethod { get; set; } } } } public enum ThirdPartyPhoneSystemTypes { Demo, Sip, } }