"use strict";
// This file was auto-generated by Fern from our API Definition.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetConversationResponseModel = void 0;
const core = __importStar(require("../../core"));
const ConversationHistoryAnalysisCommonModel_1 = require("./ConversationHistoryAnalysisCommonModel");
const ConversationHistoryMetadataCommonModel_1 = require("./ConversationHistoryMetadataCommonModel");
const ConversationHistoryTranscriptResponseModel_1 = require("./ConversationHistoryTranscriptResponseModel");
const ConversationInitiationClientDataRequestOutput_1 = require("./ConversationInitiationClientDataRequestOutput");
const GetConversationResponseModelStatus_1 = require("./GetConversationResponseModelStatus");
const VisitedAgentRef_1 = require("./VisitedAgentRef");
exports.GetConversationResponseModel = core.serialization.object({
    agentId: core.serialization.property("agent_id", core.serialization.string()),
    agentName: core.serialization.property("agent_name", core.serialization.string().optional()),
    status: GetConversationResponseModelStatus_1.GetConversationResponseModelStatus,
    userId: core.serialization.property("user_id", core.serialization.string().optional()),
    branchId: core.serialization.property("branch_id", core.serialization.string().optional()),
    versionId: core.serialization.property("version_id", core.serialization.string().optional()),
    metadata: ConversationHistoryMetadataCommonModel_1.ConversationHistoryMetadataCommonModel,
    analysis: ConversationHistoryAnalysisCommonModel_1.ConversationHistoryAnalysisCommonModel.optional(),
    visitedAgents: core.serialization.property("visited_agents", core.serialization.list(VisitedAgentRef_1.VisitedAgentRef).optional()),
    conversationInitiationClientData: core.serialization.property("conversation_initiation_client_data", ConversationInitiationClientDataRequestOutput_1.ConversationInitiationClientDataRequestOutput.optional()),
    environment: core.serialization.string().optional(),
    conversationId: core.serialization.property("conversation_id", core.serialization.string()),
    hasAudio: core.serialization.property("has_audio", core.serialization.boolean()),
    hasUserAudio: core.serialization.property("has_user_audio", core.serialization.boolean()),
    hasResponseAudio: core.serialization.property("has_response_audio", core.serialization.boolean()),
    transcript: core.serialization.list(ConversationHistoryTranscriptResponseModel_1.ConversationHistoryTranscriptResponseModel),
});
