/* Options: Date: 2026-06-16 14:45:55 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ProvisionCogito.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ProvisionCogitoResponse implements IConvertible { String? sipTrunkId; bool? createdNewSipTrunk; bool? createdLiveKitTrunk; ProvisionCogitoResponse({this.sipTrunkId,this.createdNewSipTrunk,this.createdLiveKitTrunk}); ProvisionCogitoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sipTrunkId = json['sipTrunkId']; createdNewSipTrunk = json['createdNewSipTrunk']; createdLiveKitTrunk = json['createdLiveKitTrunk']; return this; } Map toJson() => { 'sipTrunkId': sipTrunkId, 'createdNewSipTrunk': createdNewSipTrunk, 'createdLiveKitTrunk': createdLiveKitTrunk }; getTypeName() => "ProvisionCogitoResponse"; TypeContext? context = _ctx; } /** * Ensures that a SIP trunk is provisioned for Cogito and that a corresponding outbound SIP trunk is also created on the LiveKit side */ // @Route("/endpoints/cogito/provision", "POST") // @Api(Description="Ensures that a SIP trunk is provisioned for Cogito and that a corresponding outbound SIP trunk is also created on the LiveKit side") class ProvisionCogito implements IReturn, IConvertible, IPost { /** * The ID of the account to associate the number with */ // @ApiMember(Description="The ID of the account to associate the number with") String? accountId; ProvisionCogito({this.accountId}); ProvisionCogito.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; return this; } Map toJson() => { 'accountId': accountId }; createResponse() => ProvisionCogitoResponse(); getResponseTypeName() => "ProvisionCogitoResponse"; getTypeName() => "ProvisionCogito"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'evovoice.io', types: { 'ProvisionCogitoResponse': TypeInfo(TypeOf.Class, create:() => ProvisionCogitoResponse()), 'ProvisionCogito': TypeInfo(TypeOf.Class, create:() => ProvisionCogito()), });