/* Options: Date: 2025-05-04 23:04:19 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: GetSystemSettings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Struct extends Map implements IConvertible { Struct(); Struct.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "Struct"; TypeContext? context = _ctx; } class Value implements IConvertible { bool? boolValue; String? stringValue; double? numberValue; List? listValue; Struct? structValue; Value({this.boolValue,this.stringValue,this.numberValue,this.listValue,this.structValue}); Value.fromJson(Map json) { fromMap(json); } fromMap(Map json) { boolValue = json['boolValue']; stringValue = json['stringValue']; numberValue = JsonConverters.toDouble(json['numberValue']); listValue = JsonConverters.fromJson(json['listValue'],'List',context!); structValue = JsonConverters.fromJson(json['structValue'],'Struct',context!); return this; } Map toJson() => { 'boolValue': boolValue, 'stringValue': stringValue, 'numberValue': numberValue, 'listValue': JsonConverters.toJson(listValue,'List',context!), 'structValue': JsonConverters.toJson(structValue,'Struct',context!) }; getTypeName() => "Value"; TypeContext? context = _ctx; } enum TwilioSipRegions { NorthAmericaVirginia, NorthAmericaOregon, EuropeIreland, EuropeFrankfurt, AsiaPacificSingapore, AsiaPacificTokyo, AsiaPacificSydney, SouthAmericaSanPaolo, } enum UserDataFieldModes { Hidden, ReadOnly, ReadWrite, } enum EndpointTypes { PhoneNumber, User, FaxNumber, EmailAddress, Unused_1, Unused_2, Unused_3, Unused_4, Unused_5, Team, Assistant, } enum ValueTypes { NotSpecified, String, Boolean, Number, List, Struct, Transition, Custom, Date, AudioFile, TimeZoneId, PhoneNumber, User, Endpoint, Time, File, FaxNumber, EmailAccount, Customer, Flow, Team, FlowReference, Integration, Assistant, } class EmailAccount implements IConvertible { String? id; String? server; String? userName; int? port; String? emailAddress; String? displayName; String? password; EmailAccount({this.id,this.server,this.userName,this.port,this.emailAddress,this.displayName,this.password}); EmailAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; server = json['server']; userName = json['userName']; port = json['port']; emailAddress = json['emailAddress']; displayName = json['displayName']; password = json['password']; return this; } Map toJson() => { 'id': id, 'server': server, 'userName': userName, 'port': port, 'emailAddress': emailAddress, 'displayName': displayName, 'password': password }; getTypeName() => "EmailAccount"; TypeContext? context = _ctx; } enum UIHints { None, LargeText, InlineForm, Password, InlineStruct, } enum DataFieldUniqueness { NotUnique, Unique, UniqueToCustomer, } class DataField implements IConvertible { String? id; String? name; ValueTypes? type; UIHints? uiHint; String? uiTab; bool? isAsync; bool? disableBinding; DataType? structType; DataType? listType; String? description; List? possibleValues; bool? isOutput; String? customFieldValuesUrl; Value? defaultValue; String? transitionNameFormat; DataFieldUniqueness? uniqueness; bool? voiceOnly; String? conditionalVisibilityField; String? conditionalVisibilityValue; bool? noEvalTemplate; UserDataFieldModes? userMode; bool? anyValueType; DataField({this.id,this.name,this.type,this.uiHint,this.uiTab,this.isAsync,this.disableBinding,this.structType,this.listType,this.description,this.possibleValues,this.isOutput,this.customFieldValuesUrl,this.defaultValue,this.transitionNameFormat,this.uniqueness,this.voiceOnly,this.conditionalVisibilityField,this.conditionalVisibilityValue,this.noEvalTemplate,this.userMode,this.anyValueType}); DataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; type = JsonConverters.fromJson(json['type'],'ValueTypes',context!); uiHint = JsonConverters.fromJson(json['uiHint'],'UIHints',context!); uiTab = json['uiTab']; isAsync = json['isAsync']; disableBinding = json['disableBinding']; structType = JsonConverters.fromJson(json['structType'],'DataType',context!); listType = JsonConverters.fromJson(json['listType'],'DataType',context!); description = json['description']; possibleValues = JsonConverters.fromJson(json['possibleValues'],'List',context!); isOutput = json['isOutput']; customFieldValuesUrl = json['customFieldValuesUrl']; defaultValue = JsonConverters.fromJson(json['defaultValue'],'Value',context!); transitionNameFormat = json['transitionNameFormat']; uniqueness = JsonConverters.fromJson(json['uniqueness'],'DataFieldUniqueness',context!); voiceOnly = json['voiceOnly']; conditionalVisibilityField = json['conditionalVisibilityField']; conditionalVisibilityValue = json['conditionalVisibilityValue']; noEvalTemplate = json['noEvalTemplate']; userMode = JsonConverters.fromJson(json['userMode'],'UserDataFieldModes',context!); anyValueType = json['anyValueType']; return this; } Map toJson() => { 'id': id, 'name': name, 'type': JsonConverters.toJson(type,'ValueTypes',context!), 'uiHint': JsonConverters.toJson(uiHint,'UIHints',context!), 'uiTab': uiTab, 'isAsync': isAsync, 'disableBinding': disableBinding, 'structType': JsonConverters.toJson(structType,'DataType',context!), 'listType': JsonConverters.toJson(listType,'DataType',context!), 'description': description, 'possibleValues': JsonConverters.toJson(possibleValues,'List',context!), 'isOutput': isOutput, 'customFieldValuesUrl': customFieldValuesUrl, 'defaultValue': JsonConverters.toJson(defaultValue,'Value',context!), 'transitionNameFormat': transitionNameFormat, 'uniqueness': JsonConverters.toJson(uniqueness,'DataFieldUniqueness',context!), 'voiceOnly': voiceOnly, 'conditionalVisibilityField': conditionalVisibilityField, 'conditionalVisibilityValue': conditionalVisibilityValue, 'noEvalTemplate': noEvalTemplate, 'userMode': JsonConverters.toJson(userMode,'UserDataFieldModes',context!), 'anyValueType': anyValueType }; getTypeName() => "DataField"; TypeContext? context = _ctx; } class DataType implements IConvertible { String? typeName; List? fields; DataType({this.typeName,this.fields}); DataType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { typeName = json['typeName']; fields = JsonConverters.fromJson(json['fields'],'List',context!); return this; } Map toJson() => { 'typeName': typeName, 'fields': JsonConverters.toJson(fields,'List',context!) }; getTypeName() => "DataType"; TypeContext? context = _ctx; } class SystemSettingsField extends DataField implements IConvertible { Value? value; SystemSettingsField({this.value}); SystemSettingsField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.fromJson(json['value'],'Value',context!); return this; } Map toJson() => super.toJson()..addAll({ 'value': JsonConverters.toJson(value,'Value',context!) }); getTypeName() => "SystemSettingsField"; TypeContext? context = _ctx; } class CustomerDataField extends DataField implements IConvertible { bool? showInSearch; CustomerDataField({this.showInSearch}); CustomerDataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); showInSearch = json['showInSearch']; return this; } Map toJson() => super.toJson()..addAll({ 'showInSearch': showInSearch }); getTypeName() => "CustomerDataField"; TypeContext? context = _ctx; } class EndpointDataField extends DataField implements IConvertible { bool? showInSearch; bool? showInLists; EndpointTypes? endpointType; bool? isCallerId; bool? isKnob; EndpointDataField({this.showInSearch,this.showInLists,this.endpointType,this.isCallerId,this.isKnob}); EndpointDataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); showInSearch = json['showInSearch']; showInLists = json['showInLists']; endpointType = JsonConverters.fromJson(json['endpointType'],'EndpointTypes',context!); isCallerId = json['isCallerId']; isKnob = json['isKnob']; return this; } Map toJson() => super.toJson()..addAll({ 'showInSearch': showInSearch, 'showInLists': showInLists, 'endpointType': JsonConverters.toJson(endpointType,'EndpointTypes',context!), 'isCallerId': isCallerId, 'isKnob': isKnob }); getTypeName() => "EndpointDataField"; TypeContext? context = _ctx; } enum TagColors { Magenta, Red, Volcano, Orange, Gold, Lime, Green, Cyan, Blue, GeekBlue, Purple, } class Tag implements IConvertible { String? id; String? name; TagColors? color; Tag({this.id,this.name,this.color}); Tag.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; color = JsonConverters.fromJson(json['color'],'TagColors',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'color': JsonConverters.toJson(color,'TagColors',context!) }; getTypeName() => "Tag"; TypeContext? context = _ctx; } abstract class EntityInfo { /** * The ID of the object */ // @ApiMember(Description="The ID of the object") String? id; /** * The date the object was created */ // @ApiMember(Description="The date the object was created") String? dateCreated; /** * The date the object was last modified */ // @ApiMember(Description="The date the object was last modified") String? dateLastModified; /** * The user that created this object */ // @ApiMember(Description="The user that created this object") String? createdBy; /** * The user that last modified this object */ // @ApiMember(Description="The user that last modified this object") String? lastModifiedBy; EntityInfo({this.id,this.dateCreated,this.dateLastModified,this.createdBy,this.lastModifiedBy}); EntityInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; dateCreated = json['dateCreated']; dateLastModified = json['dateLastModified']; createdBy = json['createdBy']; lastModifiedBy = json['lastModifiedBy']; return this; } Map toJson() => { 'id': id, 'dateCreated': dateCreated, 'dateLastModified': dateLastModified, 'createdBy': createdBy, 'lastModifiedBy': lastModifiedBy }; getTypeName() => "EntityInfo"; TypeContext? context = _ctx; } class SystemSettingsInfo extends EntityInfo implements IConvertible { /** * Use to override the system time for testing */ // @ApiMember(Description="Use to override the system time for testing") bool? overrideSystemTime; /** * The system override time zone */ // @ApiMember(Description="The system override time zone") String? overrideSystemTimeZoneId; /** * The system override date/time */ // @ApiMember(Description="The system override date/time") String? overrideSystemDateTime; /** * The list of system settings fields */ // @ApiMember(Description="The list of system settings fields") List? systemFields; /** * The list of customer metadata fields */ // @ApiMember(Description="The list of customer metadata fields") List? customerFields; /** * The list of endpoint metadata fields */ // @ApiMember(Description="The list of endpoint metadata fields") List? endpointFields; /** * The list of email accounts */ // @ApiMember(Description="The list of email accounts") List? emailAccounts; /** * The list of tags in the system */ // @ApiMember(Description="The list of tags in the system") List? tags; /** * Documentation for the account */ // @ApiMember(Description="Documentation for the account") String? documentation; /** * The number of days recordings are retained */ // @ApiMember(Description="The number of days recordings are retained") int? recordingRetentionDays; /** * Enable the SIP refer beta */ // @ApiMember(Description="Enable the SIP refer beta") bool? enableSipRefer; /** * The number of seconds after which we automatically logoff a not ready agent */ // @ApiMember(Description="The number of seconds after which we automatically logoff a not ready agent") int? autoAgentLogoffSeconds; /** * The default SIP region for new devices */ // @ApiMember(Description="The default SIP region for new devices") TwilioSipRegions? defaultSipRegion; SystemSettingsInfo({this.overrideSystemTime,this.overrideSystemTimeZoneId,this.overrideSystemDateTime,this.systemFields,this.customerFields,this.endpointFields,this.emailAccounts,this.tags,this.documentation,this.recordingRetentionDays,this.enableSipRefer,this.autoAgentLogoffSeconds,this.defaultSipRegion}); SystemSettingsInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); overrideSystemTime = json['overrideSystemTime']; overrideSystemTimeZoneId = json['overrideSystemTimeZoneId']; overrideSystemDateTime = json['overrideSystemDateTime']; systemFields = JsonConverters.fromJson(json['systemFields'],'List',context!); customerFields = JsonConverters.fromJson(json['customerFields'],'List',context!); endpointFields = JsonConverters.fromJson(json['endpointFields'],'List',context!); emailAccounts = JsonConverters.fromJson(json['emailAccounts'],'List',context!); tags = JsonConverters.fromJson(json['tags'],'List',context!); documentation = json['documentation']; recordingRetentionDays = json['recordingRetentionDays']; enableSipRefer = json['enableSipRefer']; autoAgentLogoffSeconds = json['autoAgentLogoffSeconds']; defaultSipRegion = JsonConverters.fromJson(json['defaultSipRegion'],'TwilioSipRegions',context!); return this; } Map toJson() => super.toJson()..addAll({ 'overrideSystemTime': overrideSystemTime, 'overrideSystemTimeZoneId': overrideSystemTimeZoneId, 'overrideSystemDateTime': overrideSystemDateTime, 'systemFields': JsonConverters.toJson(systemFields,'List',context!), 'customerFields': JsonConverters.toJson(customerFields,'List',context!), 'endpointFields': JsonConverters.toJson(endpointFields,'List',context!), 'emailAccounts': JsonConverters.toJson(emailAccounts,'List',context!), 'tags': JsonConverters.toJson(tags,'List',context!), 'documentation': documentation, 'recordingRetentionDays': recordingRetentionDays, 'enableSipRefer': enableSipRefer, 'autoAgentLogoffSeconds': autoAgentLogoffSeconds, 'defaultSipRegion': JsonConverters.toJson(defaultSipRegion,'TwilioSipRegions',context!) }); getTypeName() => "SystemSettingsInfo"; TypeContext? context = _ctx; } /** * Gets the system settings */ // @Route("/system/settings", "GET") // @Api(Description="Gets the system settings") class GetSystemSettings implements IReturn, IGet, IConvertible { /** * The account ID whose system settings you want */ // @ApiMember(Description="The account ID whose system settings you want") String? accountId; GetSystemSettings({this.accountId}); GetSystemSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; return this; } Map toJson() => { 'accountId': accountId }; createResponse() => SystemSettingsInfo(); getResponseTypeName() => "SystemSettingsInfo"; getTypeName() => "GetSystemSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'Struct': TypeInfo(TypeOf.Class, create:() => Struct()), 'Value': TypeInfo(TypeOf.Class, create:() => Value()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TwilioSipRegions': TypeInfo(TypeOf.Enum, enumValues:TwilioSipRegions.values), 'UserDataFieldModes': TypeInfo(TypeOf.Enum, enumValues:UserDataFieldModes.values), 'EndpointTypes': TypeInfo(TypeOf.Enum, enumValues:EndpointTypes.values), 'ValueTypes': TypeInfo(TypeOf.Enum, enumValues:ValueTypes.values), 'EmailAccount': TypeInfo(TypeOf.Class, create:() => EmailAccount()), 'UIHints': TypeInfo(TypeOf.Enum, enumValues:UIHints.values), 'DataFieldUniqueness': TypeInfo(TypeOf.Enum, enumValues:DataFieldUniqueness.values), 'DataField': TypeInfo(TypeOf.Class, create:() => DataField()), 'DataType': TypeInfo(TypeOf.Class, create:() => DataType()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SystemSettingsField': TypeInfo(TypeOf.Class, create:() => SystemSettingsField()), 'CustomerDataField': TypeInfo(TypeOf.Class, create:() => CustomerDataField()), 'EndpointDataField': TypeInfo(TypeOf.Class, create:() => EndpointDataField()), 'TagColors': TypeInfo(TypeOf.Enum, enumValues:TagColors.values), 'Tag': TypeInfo(TypeOf.Class, create:() => Tag()), 'EntityInfo': TypeInfo(TypeOf.AbstractClass), 'SystemSettingsInfo': TypeInfo(TypeOf.Class, create:() => SystemSettingsInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetSystemSettings': TypeInfo(TypeOf.Class, create:() => GetSystemSettings()), });