/* Options: Date: 2025-05-04 21:55:08 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: GetChatTranscript.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ChatTranscriptMessage implements IConvertible { String? date; String? from; String? body; String? mediaUri; String? mediaContentType; ChatTranscriptMessage({this.date,this.from,this.body,this.mediaUri,this.mediaContentType}); ChatTranscriptMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { date = json['date']; from = json['from']; body = json['body']; mediaUri = json['mediaUri']; mediaContentType = json['mediaContentType']; return this; } Map toJson() => { 'date': date, 'from': from, 'body': body, 'mediaUri': mediaUri, 'mediaContentType': mediaContentType }; getTypeName() => "ChatTranscriptMessage"; TypeContext? context = _ctx; } class GetChatTranscriptResponse implements IConvertible { List? messages; GetChatTranscriptResponse({this.messages}); GetChatTranscriptResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { messages = JsonConverters.fromJson(json['messages'],'List',context!); return this; } Map toJson() => { 'messages': JsonConverters.toJson(messages,'List',context!) }; getTypeName() => "GetChatTranscriptResponse"; TypeContext? context = _ctx; } /** * Gets the specified transcript */ // @Route("/sessions/{sessionId}/transcript", "GET") // @Api(Description="Gets the specified transcript") class GetChatTranscript implements IReturn, IGet, IConvertible { /** * the session whose transcript you want to get */ // @ApiMember(Description="the session whose transcript you want to get") String? sessionId; /** * Include previous messages from this chat party */ // @ApiMember(Description="Include previous messages from this chat party") bool? includeHistorical; /** * How far back to include in historical messages. Max 6 months in past */ // @ApiMember(Description="How far back to include in historical messages. Max 6 months in past") String? historicalCutOffDate; GetChatTranscript({this.sessionId,this.includeHistorical,this.historicalCutOffDate}); GetChatTranscript.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sessionId = json['sessionId']; includeHistorical = json['includeHistorical']; historicalCutOffDate = json['historicalCutOffDate']; return this; } Map toJson() => { 'sessionId': sessionId, 'includeHistorical': includeHistorical, 'historicalCutOffDate': historicalCutOffDate }; createResponse() => GetChatTranscriptResponse(); getResponseTypeName() => "GetChatTranscriptResponse"; getTypeName() => "GetChatTranscript"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'ChatTranscriptMessage': TypeInfo(TypeOf.Class, create:() => ChatTranscriptMessage()), 'GetChatTranscriptResponse': TypeInfo(TypeOf.Class, create:() => GetChatTranscriptResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetChatTranscript': TypeInfo(TypeOf.Class, create:() => GetChatTranscript()), });