/* Options:
Date: 2025-05-04 22:40:18
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: ExportPackage.*
//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.Flows.Data;
using Voice.Api.Endpoints;
using Voice.Api.Settings;
using Voice.Api.Flows;
namespace Voice.Api.Endpoints
{
public enum EndpointTypes
{
PhoneNumber,
User,
FaxNumber,
EmailAddress,
Unused_1,
Unused_2,
Unused_3,
Unused_4,
Unused_5,
Team,
Assistant,
}
public enum UserDataFieldModes
{
Hidden,
ReadOnly,
ReadWrite,
}
}
namespace Voice.Api.Flows
{
///
///Export the specified flows into a package
///
[Route("/packages", "GET")]
[Api(Description="Export the specified flows into a package")]
public partial class ExportPackage
: IReturn
{
///
///The ID of the account
///
[ApiMember(Description="The ID of the account")]
public virtual string AccountId { get; set; }
///
///The IDs of the flows to export
///
[ApiMember(Description="The IDs of the flows to export")]
public virtual List FlowIds { get; set; }
///
///Include all custom fields
///
[ApiMember(Description="Include all custom fields")]
public virtual bool IncludeAllCustomFields { get; set; }
}
public partial class FlowInfo
: EntityInfo
{
///
///The name of this flow
///
[ApiMember(Description="The name of this flow")]
public virtual string Name { get; set; }
///
///The roles that this flow has
///
[ApiMember(Description="The roles that this flow has")]
public virtual List Roles { get; set; }
///
///What this flow does
///
[ApiMember(Description="What this flow does")]
public virtual string Description { get; set; }
///
///Any notes for this flow
///
[ApiMember(Description="Any notes for this flow")]
public virtual string Notes { get; set; }
///
///The ID of the account associated with the flow
///
[ApiMember(Description="The ID of the account associated with the flow")]
public virtual string AccountId { get; set; }
///
///The name of the account associated with the flow
///
[ApiMember(Description="The name of the account associated with the flow")]
public virtual string AccountName { get; set; }
///
///The ID of the customer this flow is associated with
///
[ApiMember(Description="The ID of the customer this flow is associated with")]
public virtual string CustomerId { get; set; }
///
///The name of the customer this flow is associated with
///
[ApiMember(Description="The name of the customer this flow is associated with")]
public virtual string CustomerName { get; set; }
///
///The breadcrumb to the flow for this endpoint
///
[ApiMember(Description="The breadcrumb to the flow for this endpoint")]
public virtual List CustomerBreadcrumb { get; set; }
///
///The nodes in this flow
///
[ApiMember(Description="The nodes in this flow")]
public virtual List Nodes { get; set; }
///
///The flow's parameters
///
[ApiMember(Description="The flow's parameters")]
public virtual List Parameters { get; set; }
///
///The flow's exits
///
[ApiMember(Description="The flow's exits")]
public virtual List Exits { get; set; }
///
///The UI data for the flow
///
[ApiMember(Description="The UI data for the flow")]
public virtual FlowUI UI { get; set; }
///
///The list of tags for this flow
///
[ApiMember(Description="The list of tags for this flow")]
public virtual List Tags { get; set; }
///
///The number of nodes in this flow
///
[ApiMember(Description="The number of nodes in this flow")]
public virtual int NodeCount { get; set; }
}
public partial class PackageInfo
{
public virtual List Flows { get; set; }
public virtual List CustomerFields { get; set; }
public virtual List EndpointFields { get; set; }
public virtual List SystemFields { get; set; }
}
}
namespace Voice.Api.Flows.Data
{
public partial class DataField
{
public virtual string Id { get; set; }
public virtual string Name { get; set; }
public virtual ValueTypes Type { get; set; }
public virtual UIHints UIHint { get; set; }
public virtual string UITab { get; set; }
public virtual bool IsAsync { get; set; }
public virtual bool DisableBinding { get; set; }
public virtual DataType StructType { get; set; }
public virtual DataType ListType { get; set; }
public virtual string Description { get; set; }
public virtual List PossibleValues { get; set; }
public virtual bool IsOutput { get; set; }
public virtual string CustomFieldValuesUrl { get; set; }
public virtual Value DefaultValue { get; set; }
public virtual string TransitionNameFormat { get; set; }
public virtual DataFieldUniqueness Uniqueness { get; set; }
public virtual bool VoiceOnly { get; set; }
public virtual string ConditionalVisibilityField { get; set; }
public virtual string ConditionalVisibilityValue { get; set; }
public virtual bool NoEvalTemplate { get; set; }
public virtual UserDataFieldModes UserMode { get; set; }
public virtual bool AnyValueType { get; set; }
}
public enum DataFieldUniqueness
{
NotUnique,
Unique,
UniqueToCustomer,
}
public partial class DataType
{
public virtual string TypeName { get; set; }
public virtual List Fields { get; set; }
}
public partial class Struct
: Dictionary
{
}
public enum UIHints
{
None,
LargeText,
InlineForm,
Password,
InlineStruct,
}
public partial class Value
{
public virtual bool? BoolValue { get; set; }
public virtual string StringValue { get; set; }
public virtual double? NumberValue { get; set; }
public virtual List ListValue { get; set; }
public virtual Struct StructValue { get; set; }
}
public 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,
}
}
namespace Voice.Api.Settings
{
public partial class CustomerDataField
: DataField
{
public virtual bool ShowInSearch { get; set; }
}
public partial class EndpointDataField
: DataField
{
public virtual bool ShowInSearch { get; set; }
public virtual bool ShowInLists { get; set; }
public virtual EndpointTypes? EndpointType { get; set; }
public virtual bool IsCallerId { get; set; }
public virtual bool IsKnob { get; set; }
}
public partial class SystemSettingsField
: DataField
{
public virtual Value Value { get; set; }
}
}