"use strict";
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;
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListTeamRequest = exports.ListTeamHeaders = exports.ListServiceTodoResponse = exports.ListServiceTodoResponseBody = exports.ListServiceTodoRequest = exports.ListServiceTodoHeaders = exports.ListServiceRecordResponse = exports.ListServiceRecordResponseBody = exports.ListServiceRecordRequest = exports.ListServiceRecordHeaders = exports.ListCustomerResponse = exports.ListCustomerResponseBody = exports.ListCustomerRequest = exports.ListCustomerHeaders = exports.GetTranscriptSummaryResponse = exports.GetTranscriptSummaryResponseBody = exports.GetTranscriptSummaryRequest = exports.GetTranscriptSummaryHeaders = exports.GetServiceRecordTranscriptResponse = exports.GetServiceRecordTranscriptResponseBody = exports.GetServiceRecordTranscriptRequest = exports.GetServiceRecordTranscriptHeaders = exports.GetServiceQualityInspectionResponse = exports.GetServiceQualityInspectionResponseBody = exports.GetServiceQualityInspectionRequest = exports.GetServiceQualityInspectionHeaders = exports.GetServiceChatSummaryResponse = exports.GetServiceChatSummaryResponseBody = exports.GetServiceChatSummaryRequest = exports.GetServiceChatSummaryHeaders = exports.GetServiceChapterSummaryResponse = exports.GetServiceChapterSummaryResponseBody = exports.GetServiceChapterSummaryRequest = exports.GetServiceChapterSummaryHeaders = exports.GetCustomerInsightResponse = exports.GetCustomerInsightResponseBody = exports.GetCustomerInsightRequest = exports.GetCustomerInsightHeaders = exports.GetCustomerInfoResponse = exports.GetCustomerInfoResponseBody = exports.GetCustomerInfoRequest = exports.GetCustomerInfoHeaders = exports.GetAudioFileInfoResponse = exports.GetAudioFileInfoResponseBody = exports.GetAudioFileInfoRequest = exports.GetAudioFileInfoHeaders = exports.GetAudioFileDownloadInfoResponse = exports.GetAudioFileDownloadInfoResponseBody = exports.GetAudioFileDownloadInfoRequest = exports.GetAudioFileDownloadInfoHeaders = void 0;
exports.ListServiceRecordResponseBodyResultTeam = exports.ListCustomerResponseBodyResult = exports.GetTranscriptSummaryResponseBodyResult = exports.GetServiceRecordTranscriptResponseBodyResult = exports.GetServiceRecordTranscriptResponseBodyResultSpeaker = exports.GetServiceRecordTranscriptResponseBodyResultSpeakerDataList = exports.GetServiceRecordTranscriptResponseBodyResultAudionText = exports.GetServiceRecordTranscriptResponseBodyResultAudionTextDataList = exports.GetServiceQualityInspectionResponseBodyResult = exports.GetServiceQualityInspectionResponseBodyResultGroupList = exports.GetServiceQualityInspectionResponseBodyResultGroupListItemList = exports.GetServiceChatSummaryResponseBodyResult = exports.GetServiceChatSummaryResponseBodyResultProduct = exports.GetServiceChatSummaryResponseBodyResultProductItemList = exports.GetServiceChatSummaryResponseBodyResultBasic = exports.GetServiceChapterSummaryResponseBodyResult = exports.GetCustomerInsightResponseBodyResult = exports.GetCustomerInsightResponseBodyResultTag = exports.GetCustomerInsightResponseBodyResultTagUserTag = exports.GetCustomerInsightResponseBodyResultTagAiTag = exports.GetCustomerInsightResponseBodyResultIntention = exports.GetCustomerInfoResponseBodyResult = exports.GetAudioFileInfoResponseBodyResult = exports.GetAudioFileDownloadInfoResponseBodyResult = exports.VideoCustomerSplitResponse = exports.VideoCustomerSplitResponseBody = exports.VideoCustomerSplitRequest = exports.VideoCustomerSplitHeaders = exports.SubmitAsrTaskResponse = exports.SubmitAsrTaskResponseBody = exports.SubmitAsrTaskRequest = exports.SubmitAsrTaskHeaders = exports.QueryDeviceStatusResponse = exports.QueryDeviceStatusResponseBody = exports.QueryDeviceStatusRequest = exports.QueryDeviceStatusHeaders = exports.QueryDeviceDetailResponse = exports.QueryDeviceDetailResponseBody = exports.QueryDeviceDetailRequest = exports.QueryDeviceDetailHeaders = exports.QueryAudioFileResponse = exports.QueryAudioFileResponseBody = exports.QueryAudioFileRequest = exports.QueryAudioFileHeaders = exports.QueryAsrTaskResponse = exports.QueryAsrTaskResponseBody = exports.QueryAsrTaskRequest = exports.QueryAsrTaskHeaders = exports.ListTeamResponse = exports.ListTeamResponseBody = void 0;
exports.VideoCustomerSplitResponseBodyResult = exports.VideoCustomerSplitResponseBodyResultCreateServiceRecordResult = exports.VideoCustomerSplitRequestCustomer = exports.VideoCustomerSplitRequestCustomerCustomers = exports.VideoCustomerSplitRequestCustomerCustomersAppearance = exports.SubmitAsrTaskResponseBodyResult = exports.SubmitAsrTaskRequestTranscription = exports.SubmitAsrTaskRequestTranscriptionDiarization = exports.QueryDeviceStatusResponseBodyResult = exports.QueryDeviceStatusResponseBodyResultStatus = exports.QueryDeviceStatusResponseBodyResultRecordingStartTime = exports.QueryDeviceStatusResponseBodyResultFirmware = exports.QueryDeviceStatusResponseBodyResultBattery = exports.QueryDeviceDetailResponseBodyResult = exports.QueryAudioFileResponseBodyResult = exports.QueryAsrTaskResponseBodyResult = exports.QueryAsrTaskResponseBodyResultResultInfo = exports.QueryAsrTaskResponseBodyResultResultInfoParagraphList = exports.QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceList = exports.QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceListWordList = exports.ListTeamResponseBodyResult = exports.ListServiceTodoResponseBodyResult = exports.ListServiceTodoResponseBodyResultExecutors = exports.ListServiceRecordResponseBodyResult = exports.ListServiceRecordResponseBodyResultUser = void 0;
// This file is auto-generated, don't edit it
/**
 */
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
const gateway_dingtalk_1 = __importDefault(require("@alicloud/gateway-dingtalk"));
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
const $tea = __importStar(require("@alicloud/tea-typescript"));
class GetAudioFileDownloadInfoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileDownloadInfoHeaders = GetAudioFileDownloadInfoHeaders;
class GetAudioFileDownloadInfoRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            fileId: 'fileId',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            fileId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileDownloadInfoRequest = GetAudioFileDownloadInfoRequest;
class GetAudioFileDownloadInfoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetAudioFileDownloadInfoResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileDownloadInfoResponseBody = GetAudioFileDownloadInfoResponseBody;
class GetAudioFileDownloadInfoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAudioFileDownloadInfoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileDownloadInfoResponse = GetAudioFileDownloadInfoResponse;
class GetAudioFileInfoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileInfoHeaders = GetAudioFileInfoHeaders;
class GetAudioFileInfoRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            fileId: 'fileId',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            fileId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileInfoRequest = GetAudioFileInfoRequest;
class GetAudioFileInfoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetAudioFileInfoResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileInfoResponseBody = GetAudioFileInfoResponseBody;
class GetAudioFileInfoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAudioFileInfoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileInfoResponse = GetAudioFileInfoResponse;
class GetCustomerInfoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInfoHeaders = GetCustomerInfoHeaders;
class GetCustomerInfoRequest extends $tea.Model {
    static names() {
        return {
            customerId: 'customerId',
        };
    }
    static types() {
        return {
            customerId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInfoRequest = GetCustomerInfoRequest;
class GetCustomerInfoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetCustomerInfoResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInfoResponseBody = GetCustomerInfoResponseBody;
class GetCustomerInfoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetCustomerInfoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInfoResponse = GetCustomerInfoResponse;
class GetCustomerInsightHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightHeaders = GetCustomerInsightHeaders;
class GetCustomerInsightRequest extends $tea.Model {
    static names() {
        return {
            customerId: 'customerId',
        };
    }
    static types() {
        return {
            customerId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightRequest = GetCustomerInsightRequest;
class GetCustomerInsightResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetCustomerInsightResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBody = GetCustomerInsightResponseBody;
class GetCustomerInsightResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetCustomerInsightResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponse = GetCustomerInsightResponse;
class GetServiceChapterSummaryHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChapterSummaryHeaders = GetServiceChapterSummaryHeaders;
class GetServiceChapterSummaryRequest extends $tea.Model {
    static names() {
        return {
            recordId: 'recordId',
        };
    }
    static types() {
        return {
            recordId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChapterSummaryRequest = GetServiceChapterSummaryRequest;
class GetServiceChapterSummaryResponseBody extends $tea.Model {
    static names() {
        return {
            nextToken: 'nextToken',
            result: 'result',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            result: { 'type': 'array', 'itemType': GetServiceChapterSummaryResponseBodyResult },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChapterSummaryResponseBody = GetServiceChapterSummaryResponseBody;
class GetServiceChapterSummaryResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetServiceChapterSummaryResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChapterSummaryResponse = GetServiceChapterSummaryResponse;
class GetServiceChatSummaryHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryHeaders = GetServiceChatSummaryHeaders;
class GetServiceChatSummaryRequest extends $tea.Model {
    static names() {
        return {
            recordId: 'recordId',
        };
    }
    static types() {
        return {
            recordId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryRequest = GetServiceChatSummaryRequest;
class GetServiceChatSummaryResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetServiceChatSummaryResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponseBody = GetServiceChatSummaryResponseBody;
class GetServiceChatSummaryResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetServiceChatSummaryResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponse = GetServiceChatSummaryResponse;
class GetServiceQualityInspectionHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionHeaders = GetServiceQualityInspectionHeaders;
class GetServiceQualityInspectionRequest extends $tea.Model {
    static names() {
        return {
            recordId: 'recordId',
        };
    }
    static types() {
        return {
            recordId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionRequest = GetServiceQualityInspectionRequest;
class GetServiceQualityInspectionResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetServiceQualityInspectionResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionResponseBody = GetServiceQualityInspectionResponseBody;
class GetServiceQualityInspectionResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetServiceQualityInspectionResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionResponse = GetServiceQualityInspectionResponse;
class GetServiceRecordTranscriptHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptHeaders = GetServiceRecordTranscriptHeaders;
class GetServiceRecordTranscriptRequest extends $tea.Model {
    static names() {
        return {
            id: 'id',
        };
    }
    static types() {
        return {
            id: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptRequest = GetServiceRecordTranscriptRequest;
class GetServiceRecordTranscriptResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetServiceRecordTranscriptResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBody = GetServiceRecordTranscriptResponseBody;
class GetServiceRecordTranscriptResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetServiceRecordTranscriptResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponse = GetServiceRecordTranscriptResponse;
class GetTranscriptSummaryHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTranscriptSummaryHeaders = GetTranscriptSummaryHeaders;
class GetTranscriptSummaryRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            fileId: 'fileId',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            fileId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTranscriptSummaryRequest = GetTranscriptSummaryRequest;
class GetTranscriptSummaryResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: GetTranscriptSummaryResponseBodyResult,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTranscriptSummaryResponseBody = GetTranscriptSummaryResponseBody;
class GetTranscriptSummaryResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetTranscriptSummaryResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTranscriptSummaryResponse = GetTranscriptSummaryResponse;
class ListCustomerHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCustomerHeaders = ListCustomerHeaders;
class ListCustomerRequest extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            maxResults: 'maxResults',
            nextToken: 'nextToken',
            ownerUserId: 'ownerUserId',
            startTime: 'startTime',
            teamCode: 'teamCode',
        };
    }
    static types() {
        return {
            endTime: 'number',
            maxResults: 'number',
            nextToken: 'string',
            ownerUserId: 'string',
            startTime: 'number',
            teamCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCustomerRequest = ListCustomerRequest;
class ListCustomerResponseBody extends $tea.Model {
    static names() {
        return {
            nextToken: 'nextToken',
            result: 'result',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            result: { 'type': 'array', 'itemType': ListCustomerResponseBodyResult },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCustomerResponseBody = ListCustomerResponseBody;
class ListCustomerResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListCustomerResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCustomerResponse = ListCustomerResponse;
class ListServiceRecordHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordHeaders = ListServiceRecordHeaders;
class ListServiceRecordRequest extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            maxResults: 'maxResults',
            nextToken: 'nextToken',
            startTime: 'startTime',
            teamCode: 'teamCode',
            userId: 'userId',
        };
    }
    static types() {
        return {
            endTime: 'number',
            maxResults: 'number',
            nextToken: 'string',
            startTime: 'number',
            teamCode: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordRequest = ListServiceRecordRequest;
class ListServiceRecordResponseBody extends $tea.Model {
    static names() {
        return {
            nextToken: 'nextToken',
            result: 'result',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            result: { 'type': 'array', 'itemType': ListServiceRecordResponseBodyResult },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordResponseBody = ListServiceRecordResponseBody;
class ListServiceRecordResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListServiceRecordResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordResponse = ListServiceRecordResponse;
class ListServiceTodoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoHeaders = ListServiceTodoHeaders;
class ListServiceTodoRequest extends $tea.Model {
    static names() {
        return {
            recordId: 'recordId',
        };
    }
    static types() {
        return {
            recordId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoRequest = ListServiceTodoRequest;
class ListServiceTodoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': ListServiceTodoResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoResponseBody = ListServiceTodoResponseBody;
class ListServiceTodoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListServiceTodoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoResponse = ListServiceTodoResponse;
class ListTeamHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTeamHeaders = ListTeamHeaders;
class ListTeamRequest extends $tea.Model {
    static names() {
        return {
            maxResults: 'maxResults',
            nextToken: 'nextToken',
        };
    }
    static types() {
        return {
            maxResults: 'number',
            nextToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTeamRequest = ListTeamRequest;
class ListTeamResponseBody extends $tea.Model {
    static names() {
        return {
            nextToken: 'nextToken',
            result: 'result',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            result: { 'type': 'array', 'itemType': ListTeamResponseBodyResult },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTeamResponseBody = ListTeamResponseBody;
class ListTeamResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListTeamResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTeamResponse = ListTeamResponse;
class QueryAsrTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskHeaders = QueryAsrTaskHeaders;
class QueryAsrTaskRequest extends $tea.Model {
    static names() {
        return {
            maxResults: 'maxResults',
            nextToken: 'nextToken',
            taskId: 'taskId',
            unionId: 'unionId',
        };
    }
    static types() {
        return {
            maxResults: 'number',
            nextToken: 'string',
            taskId: 'string',
            unionId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskRequest = QueryAsrTaskRequest;
class QueryAsrTaskResponseBody extends $tea.Model {
    static names() {
        return {
            errorCode: 'errorCode',
            errorMsg: 'errorMsg',
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            errorCode: 'string',
            errorMsg: 'string',
            result: QueryAsrTaskResponseBodyResult,
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBody = QueryAsrTaskResponseBody;
class QueryAsrTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryAsrTaskResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponse = QueryAsrTaskResponse;
class QueryAudioFileHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAudioFileHeaders = QueryAudioFileHeaders;
class QueryAudioFileRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            endTimestamp: 'endTimestamp',
            maxResults: 'maxResults',
            nextToken: 'nextToken',
            sn: 'sn',
            startTimestamp: 'startTimestamp',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            endTimestamp: 'number',
            maxResults: 'number',
            nextToken: 'string',
            sn: 'string',
            startTimestamp: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAudioFileRequest = QueryAudioFileRequest;
class QueryAudioFileResponseBody extends $tea.Model {
    static names() {
        return {
            nextToken: 'nextToken',
            result: 'result',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            result: { 'type': 'array', 'itemType': QueryAudioFileResponseBodyResult },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAudioFileResponseBody = QueryAudioFileResponseBody;
class QueryAudioFileResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryAudioFileResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAudioFileResponse = QueryAudioFileResponse;
class QueryDeviceDetailHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceDetailHeaders = QueryDeviceDetailHeaders;
class QueryDeviceDetailRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            snList: 'snList',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            snList: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceDetailRequest = QueryDeviceDetailRequest;
class QueryDeviceDetailResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': QueryDeviceDetailResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceDetailResponseBody = QueryDeviceDetailResponseBody;
class QueryDeviceDetailResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryDeviceDetailResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceDetailResponse = QueryDeviceDetailResponse;
class QueryDeviceStatusHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusHeaders = QueryDeviceStatusHeaders;
class QueryDeviceStatusRequest extends $tea.Model {
    static names() {
        return {
            deviceType: 'deviceType',
            snList: 'snList',
        };
    }
    static types() {
        return {
            deviceType: 'string',
            snList: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusRequest = QueryDeviceStatusRequest;
class QueryDeviceStatusResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': QueryDeviceStatusResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBody = QueryDeviceStatusResponseBody;
class QueryDeviceStatusResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryDeviceStatusResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponse = QueryDeviceStatusResponse;
class SubmitAsrTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskHeaders = SubmitAsrTaskHeaders;
class SubmitAsrTaskRequest extends $tea.Model {
    static names() {
        return {
            bizKey: 'bizKey',
            dentryId: 'dentryId',
            phrases: 'phrases',
            sourceLanguage: 'sourceLanguage',
            spaceId: 'spaceId',
            transcription: 'transcription',
            unionId: 'unionId',
        };
    }
    static types() {
        return {
            bizKey: 'string',
            dentryId: 'string',
            phrases: { 'type': 'array', 'itemType': 'string' },
            sourceLanguage: 'string',
            spaceId: 'string',
            transcription: SubmitAsrTaskRequestTranscription,
            unionId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskRequest = SubmitAsrTaskRequest;
class SubmitAsrTaskResponseBody extends $tea.Model {
    static names() {
        return {
            errorCode: 'errorCode',
            errorMsg: 'errorMsg',
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            errorCode: 'string',
            errorMsg: 'string',
            result: SubmitAsrTaskResponseBodyResult,
            success: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskResponseBody = SubmitAsrTaskResponseBody;
class SubmitAsrTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SubmitAsrTaskResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskResponse = SubmitAsrTaskResponse;
class VideoCustomerSplitHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitHeaders = VideoCustomerSplitHeaders;
class VideoCustomerSplitRequest extends $tea.Model {
    static names() {
        return {
            customer: 'customer',
            segmentId: 'segmentId',
            userId: 'userId',
        };
    }
    static types() {
        return {
            customer: VideoCustomerSplitRequestCustomer,
            segmentId: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitRequest = VideoCustomerSplitRequest;
class VideoCustomerSplitResponseBody extends $tea.Model {
    static names() {
        return {
            errorCode: 'errorCode',
            errorMsg: 'errorMsg',
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            errorCode: 'string',
            errorMsg: 'string',
            result: VideoCustomerSplitResponseBodyResult,
            success: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitResponseBody = VideoCustomerSplitResponseBody;
class VideoCustomerSplitResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: VideoCustomerSplitResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitResponse = VideoCustomerSplitResponse;
class GetAudioFileDownloadInfoResponseBodyResult extends $tea.Model {
    static names() {
        return {
            url: 'url',
        };
    }
    static types() {
        return {
            url: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileDownloadInfoResponseBodyResult = GetAudioFileDownloadInfoResponseBodyResult;
class GetAudioFileInfoResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createTime: 'createTime',
            creatorUserId: 'creatorUserId',
            duration: 'duration',
            fileId: 'fileId',
            fileName: 'fileName',
            fileSize: 'fileSize',
        };
    }
    static types() {
        return {
            createTime: 'number',
            creatorUserId: 'string',
            duration: 'number',
            fileId: 'string',
            fileName: 'string',
            fileSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAudioFileInfoResponseBodyResult = GetAudioFileInfoResponseBodyResult;
class GetCustomerInfoResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createAt: 'createAt',
            id: 'id',
            name: 'name',
            ownerUserId: 'ownerUserId',
            teamCode: 'teamCode',
        };
    }
    static types() {
        return {
            createAt: 'string',
            id: 'string',
            name: 'string',
            ownerUserId: 'string',
            teamCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInfoResponseBodyResult = GetCustomerInfoResponseBodyResult;
class GetCustomerInsightResponseBodyResultIntention extends $tea.Model {
    static names() {
        return {
            description: 'description',
            intention: 'intention',
        };
    }
    static types() {
        return {
            description: 'string',
            intention: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBodyResultIntention = GetCustomerInsightResponseBodyResultIntention;
class GetCustomerInsightResponseBodyResultTagAiTag extends $tea.Model {
    static names() {
        return {
            code: 'code',
            name: 'name',
            value: 'value',
        };
    }
    static types() {
        return {
            code: 'string',
            name: 'string',
            value: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBodyResultTagAiTag = GetCustomerInsightResponseBodyResultTagAiTag;
class GetCustomerInsightResponseBodyResultTagUserTag extends $tea.Model {
    static names() {
        return {
            code: 'code',
            value: 'value',
        };
    }
    static types() {
        return {
            code: 'string',
            value: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBodyResultTagUserTag = GetCustomerInsightResponseBodyResultTagUserTag;
class GetCustomerInsightResponseBodyResultTag extends $tea.Model {
    static names() {
        return {
            aiTag: 'aiTag',
            userTag: 'userTag',
        };
    }
    static types() {
        return {
            aiTag: { 'type': 'array', 'itemType': GetCustomerInsightResponseBodyResultTagAiTag },
            userTag: { 'type': 'array', 'itemType': GetCustomerInsightResponseBodyResultTagUserTag },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBodyResultTag = GetCustomerInsightResponseBodyResultTag;
class GetCustomerInsightResponseBodyResult extends $tea.Model {
    static names() {
        return {
            intention: 'intention',
            tag: 'tag',
        };
    }
    static types() {
        return {
            intention: GetCustomerInsightResponseBodyResultIntention,
            tag: GetCustomerInsightResponseBodyResultTag,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCustomerInsightResponseBodyResult = GetCustomerInsightResponseBodyResult;
class GetServiceChapterSummaryResponseBodyResult extends $tea.Model {
    static names() {
        return {
            content: 'content',
            name: 'name',
        };
    }
    static types() {
        return {
            content: 'string',
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChapterSummaryResponseBodyResult = GetServiceChapterSummaryResponseBodyResult;
class GetServiceChatSummaryResponseBodyResultBasic extends $tea.Model {
    static names() {
        return {
            content: 'content',
            name: 'name',
        };
    }
    static types() {
        return {
            content: 'string',
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponseBodyResultBasic = GetServiceChatSummaryResponseBodyResultBasic;
class GetServiceChatSummaryResponseBodyResultProductItemList extends $tea.Model {
    static names() {
        return {
            content: 'content',
            name: 'name',
        };
    }
    static types() {
        return {
            content: 'string',
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponseBodyResultProductItemList = GetServiceChatSummaryResponseBodyResultProductItemList;
class GetServiceChatSummaryResponseBodyResultProduct extends $tea.Model {
    static names() {
        return {
            itemList: 'itemList',
            product: 'product',
        };
    }
    static types() {
        return {
            itemList: { 'type': 'array', 'itemType': GetServiceChatSummaryResponseBodyResultProductItemList },
            product: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponseBodyResultProduct = GetServiceChatSummaryResponseBodyResultProduct;
class GetServiceChatSummaryResponseBodyResult extends $tea.Model {
    static names() {
        return {
            basic: 'basic',
            product: 'product',
        };
    }
    static types() {
        return {
            basic: { 'type': 'array', 'itemType': GetServiceChatSummaryResponseBodyResultBasic },
            product: { 'type': 'array', 'itemType': GetServiceChatSummaryResponseBodyResultProduct },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceChatSummaryResponseBodyResult = GetServiceChatSummaryResponseBodyResult;
class GetServiceQualityInspectionResponseBodyResultGroupListItemList extends $tea.Model {
    static names() {
        return {
            flowName: 'flowName',
            isHit: 'isHit',
            name: 'name',
            reason: 'reason',
            score: 'score',
            script: 'script',
        };
    }
    static types() {
        return {
            flowName: 'string',
            isHit: 'string',
            name: 'string',
            reason: 'string',
            score: 'number',
            script: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionResponseBodyResultGroupListItemList = GetServiceQualityInspectionResponseBodyResultGroupListItemList;
class GetServiceQualityInspectionResponseBodyResultGroupList extends $tea.Model {
    static names() {
        return {
            itemList: 'itemList',
            name: 'name',
        };
    }
    static types() {
        return {
            itemList: { 'type': 'array', 'itemType': GetServiceQualityInspectionResponseBodyResultGroupListItemList },
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionResponseBodyResultGroupList = GetServiceQualityInspectionResponseBodyResultGroupList;
class GetServiceQualityInspectionResponseBodyResult extends $tea.Model {
    static names() {
        return {
            groupList: 'groupList',
            score: 'score',
            summary: 'summary',
        };
    }
    static types() {
        return {
            groupList: { 'type': 'array', 'itemType': GetServiceQualityInspectionResponseBodyResultGroupList },
            score: 'number',
            summary: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceQualityInspectionResponseBodyResult = GetServiceQualityInspectionResponseBodyResult;
class GetServiceRecordTranscriptResponseBodyResultAudionTextDataList extends $tea.Model {
    static names() {
        return {
            channel: 'channel',
            endTime: 'endTime',
            startTime: 'startTime',
            text: 'text',
        };
    }
    static types() {
        return {
            channel: 'string',
            endTime: 'string',
            startTime: 'string',
            text: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBodyResultAudionTextDataList = GetServiceRecordTranscriptResponseBodyResultAudionTextDataList;
class GetServiceRecordTranscriptResponseBodyResultAudionText extends $tea.Model {
    static names() {
        return {
            dataList: 'dataList',
            status: 'status',
        };
    }
    static types() {
        return {
            dataList: { 'type': 'array', 'itemType': GetServiceRecordTranscriptResponseBodyResultAudionTextDataList },
            status: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBodyResultAudionText = GetServiceRecordTranscriptResponseBodyResultAudionText;
class GetServiceRecordTranscriptResponseBodyResultSpeakerDataList extends $tea.Model {
    static names() {
        return {
            channel: 'channel',
            role: 'role',
        };
    }
    static types() {
        return {
            channel: 'string',
            role: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBodyResultSpeakerDataList = GetServiceRecordTranscriptResponseBodyResultSpeakerDataList;
class GetServiceRecordTranscriptResponseBodyResultSpeaker extends $tea.Model {
    static names() {
        return {
            dataList: 'dataList',
            status: 'status',
        };
    }
    static types() {
        return {
            dataList: { 'type': 'array', 'itemType': GetServiceRecordTranscriptResponseBodyResultSpeakerDataList },
            status: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBodyResultSpeaker = GetServiceRecordTranscriptResponseBodyResultSpeaker;
class GetServiceRecordTranscriptResponseBodyResult extends $tea.Model {
    static names() {
        return {
            audionText: 'audionText',
            speaker: 'speaker',
        };
    }
    static types() {
        return {
            audionText: GetServiceRecordTranscriptResponseBodyResultAudionText,
            speaker: GetServiceRecordTranscriptResponseBodyResultSpeaker,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetServiceRecordTranscriptResponseBodyResult = GetServiceRecordTranscriptResponseBodyResult;
class GetTranscriptSummaryResponseBodyResult extends $tea.Model {
    static names() {
        return {
            content: 'content',
        };
    }
    static types() {
        return {
            content: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTranscriptSummaryResponseBodyResult = GetTranscriptSummaryResponseBodyResult;
class ListCustomerResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createAt: 'createAt',
            id: 'id',
            name: 'name',
            ownerUserId: 'ownerUserId',
            teamCode: 'teamCode',
        };
    }
    static types() {
        return {
            createAt: 'string',
            id: 'string',
            name: 'string',
            ownerUserId: 'string',
            teamCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCustomerResponseBodyResult = ListCustomerResponseBodyResult;
class ListServiceRecordResponseBodyResultTeam extends $tea.Model {
    static names() {
        return {
            code: 'code',
            name: 'name',
        };
    }
    static types() {
        return {
            code: 'string',
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordResponseBodyResultTeam = ListServiceRecordResponseBodyResultTeam;
class ListServiceRecordResponseBodyResultUser extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordResponseBodyResultUser = ListServiceRecordResponseBodyResultUser;
class ListServiceRecordResponseBodyResult extends $tea.Model {
    static names() {
        return {
            customerId: 'customerId',
            deviceSn: 'deviceSn',
            duration: 'duration',
            endTimestamp: 'endTimestamp',
            recordId: 'recordId',
            startTimestamp: 'startTimestamp',
            team: 'team',
            user: 'user',
        };
    }
    static types() {
        return {
            customerId: 'string',
            deviceSn: 'string',
            duration: 'string',
            endTimestamp: 'number',
            recordId: 'string',
            startTimestamp: 'number',
            team: ListServiceRecordResponseBodyResultTeam,
            user: ListServiceRecordResponseBodyResultUser,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceRecordResponseBodyResult = ListServiceRecordResponseBodyResult;
class ListServiceTodoResponseBodyResultExecutors extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoResponseBodyResultExecutors = ListServiceTodoResponseBodyResultExecutors;
class ListServiceTodoResponseBodyResult extends $tea.Model {
    static names() {
        return {
            creator: 'creator',
            dingTodoId: 'dingTodoId',
            executors: 'executors',
            finished: 'finished',
            planFinishDate: 'planFinishDate',
            todoContent: 'todoContent',
            uuid: 'uuid',
        };
    }
    static types() {
        return {
            creator: 'string',
            dingTodoId: 'string',
            executors: { 'type': 'array', 'itemType': ListServiceTodoResponseBodyResultExecutors },
            finished: 'boolean',
            planFinishDate: 'number',
            todoContent: 'string',
            uuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListServiceTodoResponseBodyResult = ListServiceTodoResponseBodyResult;
class ListTeamResponseBodyResult extends $tea.Model {
    static names() {
        return {
            code: 'code',
            name: 'name',
        };
    }
    static types() {
        return {
            code: 'string',
            name: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTeamResponseBodyResult = ListTeamResponseBodyResult;
class QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceListWordList extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            startTime: 'startTime',
            text: 'text',
        };
    }
    static types() {
        return {
            endTime: 'number',
            startTime: 'number',
            text: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceListWordList = QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceListWordList;
class QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceList extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            sentence: 'sentence',
            startTime: 'startTime',
            wordList: 'wordList',
        };
    }
    static types() {
        return {
            endTime: 'number',
            sentence: 'string',
            startTime: 'number',
            wordList: { 'type': 'array', 'itemType': QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceListWordList },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceList = QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceList;
class QueryAsrTaskResponseBodyResultResultInfoParagraphList extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            paragraph: 'paragraph',
            sentenceList: 'sentenceList',
            speakerId: 'speakerId',
            startTime: 'startTime',
        };
    }
    static types() {
        return {
            endTime: 'number',
            paragraph: 'string',
            sentenceList: { 'type': 'array', 'itemType': QueryAsrTaskResponseBodyResultResultInfoParagraphListSentenceList },
            speakerId: 'string',
            startTime: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBodyResultResultInfoParagraphList = QueryAsrTaskResponseBodyResultResultInfoParagraphList;
class QueryAsrTaskResponseBodyResultResultInfo extends $tea.Model {
    static names() {
        return {
            paragraphList: 'paragraphList',
        };
    }
    static types() {
        return {
            paragraphList: { 'type': 'array', 'itemType': QueryAsrTaskResponseBodyResultResultInfoParagraphList },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBodyResultResultInfo = QueryAsrTaskResponseBodyResultResultInfo;
class QueryAsrTaskResponseBodyResult extends $tea.Model {
    static names() {
        return {
            bizKey: 'bizKey',
            nextToken: 'nextToken',
            resultInfo: 'resultInfo',
            taskId: 'taskId',
            taskStatus: 'taskStatus',
        };
    }
    static types() {
        return {
            bizKey: 'string',
            nextToken: 'string',
            resultInfo: QueryAsrTaskResponseBodyResultResultInfo,
            taskId: 'string',
            taskStatus: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAsrTaskResponseBodyResult = QueryAsrTaskResponseBodyResult;
class QueryAudioFileResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createTime: 'createTime',
            creatorUserId: 'creatorUserId',
            duration: 'duration',
            fileId: 'fileId',
            fileName: 'fileName',
            fileSize: 'fileSize',
        };
    }
    static types() {
        return {
            createTime: 'number',
            creatorUserId: 'string',
            duration: 'number',
            fileId: 'string',
            fileName: 'string',
            fileSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAudioFileResponseBodyResult = QueryAudioFileResponseBodyResult;
class QueryDeviceDetailResponseBodyResult extends $tea.Model {
    static names() {
        return {
            bindTimestamp: 'bindTimestamp',
            deviceName: 'deviceName',
            sn: 'sn',
            userId: 'userId',
        };
    }
    static types() {
        return {
            bindTimestamp: 'number',
            deviceName: 'string',
            sn: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceDetailResponseBodyResult = QueryDeviceDetailResponseBodyResult;
class QueryDeviceStatusResponseBodyResultBattery extends $tea.Model {
    static names() {
        return {
            timestamp: 'timestamp',
            value: 'value',
        };
    }
    static types() {
        return {
            timestamp: 'number',
            value: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBodyResultBattery = QueryDeviceStatusResponseBodyResultBattery;
class QueryDeviceStatusResponseBodyResultFirmware extends $tea.Model {
    static names() {
        return {
            timestamp: 'timestamp',
            value: 'value',
        };
    }
    static types() {
        return {
            timestamp: 'number',
            value: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBodyResultFirmware = QueryDeviceStatusResponseBodyResultFirmware;
class QueryDeviceStatusResponseBodyResultRecordingStartTime extends $tea.Model {
    static names() {
        return {
            timestamp: 'timestamp',
            value: 'value',
        };
    }
    static types() {
        return {
            timestamp: 'number',
            value: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBodyResultRecordingStartTime = QueryDeviceStatusResponseBodyResultRecordingStartTime;
class QueryDeviceStatusResponseBodyResultStatus extends $tea.Model {
    static names() {
        return {
            timestamp: 'timestamp',
            value: 'value',
        };
    }
    static types() {
        return {
            timestamp: 'number',
            value: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBodyResultStatus = QueryDeviceStatusResponseBodyResultStatus;
class QueryDeviceStatusResponseBodyResult extends $tea.Model {
    static names() {
        return {
            battery: 'battery',
            firmware: 'firmware',
            recordingStartTime: 'recordingStartTime',
            sn: 'sn',
            status: 'status',
        };
    }
    static types() {
        return {
            battery: QueryDeviceStatusResponseBodyResultBattery,
            firmware: QueryDeviceStatusResponseBodyResultFirmware,
            recordingStartTime: QueryDeviceStatusResponseBodyResultRecordingStartTime,
            sn: 'string',
            status: QueryDeviceStatusResponseBodyResultStatus,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryDeviceStatusResponseBodyResult = QueryDeviceStatusResponseBodyResult;
class SubmitAsrTaskRequestTranscriptionDiarization extends $tea.Model {
    static names() {
        return {
            speakerCount: 'speakerCount',
        };
    }
    static types() {
        return {
            speakerCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskRequestTranscriptionDiarization = SubmitAsrTaskRequestTranscriptionDiarization;
class SubmitAsrTaskRequestTranscription extends $tea.Model {
    static names() {
        return {
            diarization: 'diarization',
            diarizationEnabled: 'diarizationEnabled',
        };
    }
    static types() {
        return {
            diarization: SubmitAsrTaskRequestTranscriptionDiarization,
            diarizationEnabled: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskRequestTranscription = SubmitAsrTaskRequestTranscription;
class SubmitAsrTaskResponseBodyResult extends $tea.Model {
    static names() {
        return {
            taskId: 'taskId',
        };
    }
    static types() {
        return {
            taskId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SubmitAsrTaskResponseBodyResult = SubmitAsrTaskResponseBodyResult;
class VideoCustomerSplitRequestCustomerCustomersAppearance extends $tea.Model {
    static names() {
        return {
            endTime: 'endTime',
            startTime: 'startTime',
            videoId: 'videoId',
        };
    }
    static types() {
        return {
            endTime: 'number',
            startTime: 'number',
            videoId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitRequestCustomerCustomersAppearance = VideoCustomerSplitRequestCustomerCustomersAppearance;
class VideoCustomerSplitRequestCustomerCustomers extends $tea.Model {
    static names() {
        return {
            appearance: 'appearance',
            customerId: 'customerId',
        };
    }
    static types() {
        return {
            appearance: VideoCustomerSplitRequestCustomerCustomersAppearance,
            customerId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitRequestCustomerCustomers = VideoCustomerSplitRequestCustomerCustomers;
class VideoCustomerSplitRequestCustomer extends $tea.Model {
    static names() {
        return {
            customers: 'customers',
        };
    }
    static types() {
        return {
            customers: { 'type': 'array', 'itemType': VideoCustomerSplitRequestCustomerCustomers },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitRequestCustomer = VideoCustomerSplitRequestCustomer;
class VideoCustomerSplitResponseBodyResultCreateServiceRecordResult extends $tea.Model {
    static names() {
        return {
            recordIds: 'recordIds',
            segmentId: 'segmentId',
        };
    }
    static types() {
        return {
            recordIds: { 'type': 'array', 'itemType': 'string' },
            segmentId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitResponseBodyResultCreateServiceRecordResult = VideoCustomerSplitResponseBodyResultCreateServiceRecordResult;
class VideoCustomerSplitResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createServiceRecordResult: 'createServiceRecordResult',
        };
    }
    static types() {
        return {
            createServiceRecordResult: { 'type': 'array', 'itemType': VideoCustomerSplitResponseBodyResultCreateServiceRecordResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.VideoCustomerSplitResponseBodyResult = VideoCustomerSplitResponseBodyResult;
class Client extends openapi_client_1.default {
    constructor(config) {
        super(config);
        let gatewayClient = new gateway_dingtalk_1.default();
        this._spi = gatewayClient;
        this._endpointRule = "";
        if (tea_util_1.default.empty(this._endpoint)) {
            this._endpoint = "api.dingtalk.com";
        }
    }
    /**
     * 获取音频文件下载地址
     *
     * @param request - GetAudioFileDownloadInfoRequest
     * @param headers - GetAudioFileDownloadInfoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAudioFileDownloadInfoResponse
     */
    async getAudioFileDownloadInfoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            body["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.fileId)) {
            body["fileId"] = request.fileId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetAudioFileDownloadInfo",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/device/audio/download`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAudioFileDownloadInfoResponse({}));
    }
    /**
     * 获取音频文件下载地址
     *
     * @param request - GetAudioFileDownloadInfoRequest
     * @returns GetAudioFileDownloadInfoResponse
     */
    async getAudioFileDownloadInfo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAudioFileDownloadInfoHeaders({});
        return await this.getAudioFileDownloadInfoWithOptions(request, headers, runtime);
    }
    /**
     * 获取音频文件信息
     *
     * @param request - GetAudioFileInfoRequest
     * @param headers - GetAudioFileInfoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAudioFileInfoResponse
     */
    async getAudioFileInfoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            body["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.fileId)) {
            body["fileId"] = request.fileId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetAudioFileInfo",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/device/audio/get`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAudioFileInfoResponse({}));
    }
    /**
     * 获取音频文件信息
     *
     * @param request - GetAudioFileInfoRequest
     * @returns GetAudioFileInfoResponse
     */
    async getAudioFileInfo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAudioFileInfoHeaders({});
        return await this.getAudioFileInfoWithOptions(request, headers, runtime);
    }
    /**
     * 查询客户数据
     *
     * @param request - GetCustomerInfoRequest
     * @param headers - GetCustomerInfoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetCustomerInfoResponse
     */
    async getCustomerInfoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.customerId)) {
            query["customerId"] = request.customerId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetCustomerInfo",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/customer`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetCustomerInfoResponse({}));
    }
    /**
     * 查询客户数据
     *
     * @param request - GetCustomerInfoRequest
     * @returns GetCustomerInfoResponse
     */
    async getCustomerInfo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetCustomerInfoHeaders({});
        return await this.getCustomerInfoWithOptions(request, headers, runtime);
    }
    /**
     * 获取客户洞察信息
     *
     * @param request - GetCustomerInsightRequest
     * @param headers - GetCustomerInsightHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetCustomerInsightResponse
     */
    async getCustomerInsightWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.customerId)) {
            query["customerId"] = request.customerId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetCustomerInsight",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/customers/insights`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetCustomerInsightResponse({}));
    }
    /**
     * 获取客户洞察信息
     *
     * @param request - GetCustomerInsightRequest
     * @returns GetCustomerInsightResponse
     */
    async getCustomerInsight(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetCustomerInsightHeaders({});
        return await this.getCustomerInsightWithOptions(request, headers, runtime);
    }
    /**
     * 获取服务章节摘要
     *
     * @param request - GetServiceChapterSummaryRequest
     * @param headers - GetServiceChapterSummaryHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetServiceChapterSummaryResponse
     */
    async getServiceChapterSummaryWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.recordId)) {
            query["recordId"] = request.recordId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetServiceChapterSummary",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service/chapters/summary`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetServiceChapterSummaryResponse({}));
    }
    /**
     * 获取服务章节摘要
     *
     * @param request - GetServiceChapterSummaryRequest
     * @returns GetServiceChapterSummaryResponse
     */
    async getServiceChapterSummary(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetServiceChapterSummaryHeaders({});
        return await this.getServiceChapterSummaryWithOptions(request, headers, runtime);
    }
    /**
     * 获取服务会话总结
     *
     * @param request - GetServiceChatSummaryRequest
     * @param headers - GetServiceChatSummaryHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetServiceChatSummaryResponse
     */
    async getServiceChatSummaryWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.recordId)) {
            query["recordId"] = request.recordId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetServiceChatSummary",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service/chats/summary`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetServiceChatSummaryResponse({}));
    }
    /**
     * 获取服务会话总结
     *
     * @param request - GetServiceChatSummaryRequest
     * @returns GetServiceChatSummaryResponse
     */
    async getServiceChatSummary(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetServiceChatSummaryHeaders({});
        return await this.getServiceChatSummaryWithOptions(request, headers, runtime);
    }
    /**
     * 查询服务质检信息
     *
     * @param request - GetServiceQualityInspectionRequest
     * @param headers - GetServiceQualityInspectionHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetServiceQualityInspectionResponse
     */
    async getServiceQualityInspectionWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.recordId)) {
            query["recordId"] = request.recordId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetServiceQualityInspection",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service/quality-inspections`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetServiceQualityInspectionResponse({}));
    }
    /**
     * 查询服务质检信息
     *
     * @param request - GetServiceQualityInspectionRequest
     * @returns GetServiceQualityInspectionResponse
     */
    async getServiceQualityInspection(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetServiceQualityInspectionHeaders({});
        return await this.getServiceQualityInspectionWithOptions(request, headers, runtime);
    }
    /**
     * 获取服务记录音频转写信息
     *
     * @param request - GetServiceRecordTranscriptRequest
     * @param headers - GetServiceRecordTranscriptHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetServiceRecordTranscriptResponse
     */
    async getServiceRecordTranscriptWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.id)) {
            query["id"] = request.id;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetServiceRecordTranscript",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service/transcript`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetServiceRecordTranscriptResponse({}));
    }
    /**
     * 获取服务记录音频转写信息
     *
     * @param request - GetServiceRecordTranscriptRequest
     * @returns GetServiceRecordTranscriptResponse
     */
    async getServiceRecordTranscript(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetServiceRecordTranscriptHeaders({});
        return await this.getServiceRecordTranscriptWithOptions(request, headers, runtime);
    }
    /**
     * 获取文件转写的概要信息
     *
     * @param request - GetTranscriptSummaryRequest
     * @param headers - GetTranscriptSummaryHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetTranscriptSummaryResponse
     */
    async getTranscriptSummaryWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            query["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.fileId)) {
            query["fileId"] = request.fileId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetTranscriptSummary",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/transcripts/summary`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetTranscriptSummaryResponse({}));
    }
    /**
     * 获取文件转写的概要信息
     *
     * @param request - GetTranscriptSummaryRequest
     * @returns GetTranscriptSummaryResponse
     */
    async getTranscriptSummary(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetTranscriptSummaryHeaders({});
        return await this.getTranscriptSummaryWithOptions(request, headers, runtime);
    }
    /**
     * 查询客户列表
     *
     * @param request - ListCustomerRequest
     * @param headers - ListCustomerHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListCustomerResponse
     */
    async listCustomerWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.endTime)) {
            query["endTime"] = request.endTime;
        }
        if (!tea_util_1.default.isUnset(request.maxResults)) {
            query["maxResults"] = request.maxResults;
        }
        if (!tea_util_1.default.isUnset(request.nextToken)) {
            query["nextToken"] = request.nextToken;
        }
        if (!tea_util_1.default.isUnset(request.ownerUserId)) {
            query["ownerUserId"] = request.ownerUserId;
        }
        if (!tea_util_1.default.isUnset(request.startTime)) {
            query["startTime"] = request.startTime;
        }
        if (!tea_util_1.default.isUnset(request.teamCode)) {
            query["teamCode"] = request.teamCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListCustomer",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/customers`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListCustomerResponse({}));
    }
    /**
     * 查询客户列表
     *
     * @param request - ListCustomerRequest
     * @returns ListCustomerResponse
     */
    async listCustomer(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListCustomerHeaders({});
        return await this.listCustomerWithOptions(request, headers, runtime);
    }
    /**
     * 分页查询服务记录
     *
     * @param request - ListServiceRecordRequest
     * @param headers - ListServiceRecordHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListServiceRecordResponse
     */
    async listServiceRecordWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.endTime)) {
            query["endTime"] = request.endTime;
        }
        if (!tea_util_1.default.isUnset(request.maxResults)) {
            query["maxResults"] = request.maxResults;
        }
        if (!tea_util_1.default.isUnset(request.nextToken)) {
            query["nextToken"] = request.nextToken;
        }
        if (!tea_util_1.default.isUnset(request.startTime)) {
            query["startTime"] = request.startTime;
        }
        if (!tea_util_1.default.isUnset(request.teamCode)) {
            query["teamCode"] = request.teamCode;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListServiceRecord",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service-records`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListServiceRecordResponse({}));
    }
    /**
     * 分页查询服务记录
     *
     * @param request - ListServiceRecordRequest
     * @returns ListServiceRecordResponse
     */
    async listServiceRecord(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListServiceRecordHeaders({});
        return await this.listServiceRecordWithOptions(request, headers, runtime);
    }
    /**
     * 查询服务记录待办列表
     *
     * @param request - ListServiceTodoRequest
     * @param headers - ListServiceTodoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListServiceTodoResponse
     */
    async listServiceTodoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.recordId)) {
            query["recordId"] = request.recordId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListServiceTodo",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service-todos`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListServiceTodoResponse({}));
    }
    /**
     * 查询服务记录待办列表
     *
     * @param request - ListServiceTodoRequest
     * @returns ListServiceTodoResponse
     */
    async listServiceTodo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListServiceTodoHeaders({});
        return await this.listServiceTodoWithOptions(request, headers, runtime);
    }
    /**
     * 查询团队列表
     *
     * @param request - ListTeamRequest
     * @param headers - ListTeamHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListTeamResponse
     */
    async listTeamWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.maxResults)) {
            query["maxResults"] = request.maxResults;
        }
        if (!tea_util_1.default.isUnset(request.nextToken)) {
            query["nextToken"] = request.nextToken;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListTeam",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/teams`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListTeamResponse({}));
    }
    /**
     * 查询团队列表
     *
     * @param request - ListTeamRequest
     * @returns ListTeamResponse
     */
    async listTeam(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListTeamHeaders({});
        return await this.listTeamWithOptions(request, headers, runtime);
    }
    /**
     * 查询asr结果
     *
     * @param request - QueryAsrTaskRequest
     * @param headers - QueryAsrTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryAsrTaskResponse
     */
    async queryAsrTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.maxResults)) {
            query["maxResults"] = request.maxResults;
        }
        if (!tea_util_1.default.isUnset(request.nextToken)) {
            query["nextToken"] = request.nextToken;
        }
        if (!tea_util_1.default.isUnset(request.taskId)) {
            query["taskId"] = request.taskId;
        }
        if (!tea_util_1.default.isUnset(request.unionId)) {
            query["unionId"] = request.unionId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "QueryAsrTask",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/asr/query`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryAsrTaskResponse({}));
    }
    /**
     * 查询asr结果
     *
     * @param request - QueryAsrTaskRequest
     * @returns QueryAsrTaskResponse
     */
    async queryAsrTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryAsrTaskHeaders({});
        return await this.queryAsrTaskWithOptions(request, headers, runtime);
    }
    /**
     * 分页查询指定设备的音频文件列表
     *
     * @param request - QueryAudioFileRequest
     * @param headers - QueryAudioFileHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryAudioFileResponse
     */
    async queryAudioFileWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            body["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.endTimestamp)) {
            body["endTimestamp"] = request.endTimestamp;
        }
        if (!tea_util_1.default.isUnset(request.maxResults)) {
            body["maxResults"] = request.maxResults;
        }
        if (!tea_util_1.default.isUnset(request.nextToken)) {
            body["nextToken"] = request.nextToken;
        }
        if (!tea_util_1.default.isUnset(request.sn)) {
            body["sn"] = request.sn;
        }
        if (!tea_util_1.default.isUnset(request.startTimestamp)) {
            body["startTimestamp"] = request.startTimestamp;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "QueryAudioFile",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/device/audio/list`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryAudioFileResponse({}));
    }
    /**
     * 分页查询指定设备的音频文件列表
     *
     * @param request - QueryAudioFileRequest
     * @returns QueryAudioFileResponse
     */
    async queryAudioFile(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryAudioFileHeaders({});
        return await this.queryAudioFileWithOptions(request, headers, runtime);
    }
    /**
     * 获取设备列表
     *
     * @param request - QueryDeviceDetailRequest
     * @param headers - QueryDeviceDetailHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryDeviceDetailResponse
     */
    async queryDeviceDetailWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            body["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.snList)) {
            body["snList"] = request.snList;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "QueryDeviceDetail",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/device/list`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryDeviceDetailResponse({}));
    }
    /**
     * 获取设备列表
     *
     * @param request - QueryDeviceDetailRequest
     * @returns QueryDeviceDetailResponse
     */
    async queryDeviceDetail(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryDeviceDetailHeaders({});
        return await this.queryDeviceDetailWithOptions(request, headers, runtime);
    }
    /**
     * 查询设备属性
     *
     * @param request - QueryDeviceStatusRequest
     * @param headers - QueryDeviceStatusHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryDeviceStatusResponse
     */
    async queryDeviceStatusWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.deviceType)) {
            body["deviceType"] = request.deviceType;
        }
        if (!tea_util_1.default.isUnset(request.snList)) {
            body["snList"] = request.snList;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "QueryDeviceStatus",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/device/status`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryDeviceStatusResponse({}));
    }
    /**
     * 查询设备属性
     *
     * @param request - QueryDeviceStatusRequest
     * @returns QueryDeviceStatusResponse
     */
    async queryDeviceStatus(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryDeviceStatusHeaders({});
        return await this.queryDeviceStatusWithOptions(request, headers, runtime);
    }
    /**
     * asr离线任务
     *
     * @param request - SubmitAsrTaskRequest
     * @param headers - SubmitAsrTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SubmitAsrTaskResponse
     */
    async submitAsrTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.bizKey)) {
            body["bizKey"] = request.bizKey;
        }
        if (!tea_util_1.default.isUnset(request.dentryId)) {
            body["dentryId"] = request.dentryId;
        }
        if (!tea_util_1.default.isUnset(request.phrases)) {
            body["phrases"] = request.phrases;
        }
        if (!tea_util_1.default.isUnset(request.sourceLanguage)) {
            body["sourceLanguage"] = request.sourceLanguage;
        }
        if (!tea_util_1.default.isUnset(request.spaceId)) {
            body["spaceId"] = request.spaceId;
        }
        if (!tea_util_1.default.isUnset(request.transcription)) {
            body["transcription"] = request.transcription;
        }
        if (!tea_util_1.default.isUnset(request.unionId)) {
            body["unionId"] = request.unionId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SubmitAsrTask",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/asr/create`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SubmitAsrTaskResponse({}));
    }
    /**
     * asr离线任务
     *
     * @param request - SubmitAsrTaskRequest
     * @returns SubmitAsrTaskResponse
     */
    async submitAsrTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SubmitAsrTaskHeaders({});
        return await this.submitAsrTaskWithOptions(request, headers, runtime);
    }
    /**
     * asr离线任务
     *
     * @param request - VideoCustomerSplitRequest
     * @param headers - VideoCustomerSplitHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns VideoCustomerSplitResponse
     */
    async videoCustomerSplitWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.customer)) {
            body["customer"] = request.customer;
        }
        if (!tea_util_1.default.isUnset(request.segmentId)) {
            body["segmentId"] = request.segmentId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "VideoCustomerSplit",
            version: "dvi_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/dvi/service/audiosplit`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new VideoCustomerSplitResponse({}));
    }
    /**
     * asr离线任务
     *
     * @param request - VideoCustomerSplitRequest
     * @returns VideoCustomerSplitResponse
     */
    async videoCustomerSplit(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new VideoCustomerSplitHeaders({});
        return await this.videoCustomerSplitWithOptions(request, headers, runtime);
    }
}
exports.default = Client;
//# sourceMappingURL=client.js.map