"use strict";
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ICAPIClientService = exports.BaseCAPIClientService = void 0;
const copilot_api_1 = require("@vscode/copilot-api");
const services_1 = require("../../../util/common/services");
const licenseAgreement_1 = require("./licenseAgreement");
class BaseCAPIClientService extends copilot_api_1.CAPIClient {
    constructor(hmac, integrationId, fetcherService, envService) {
        super({
            machineId: envService.machineId,
            sessionId: envService.sessionId,
            vscodeVersion: envService.vscodeVersion,
            buildType: envService.getBuildType(),
            name: envService.getName(),
            version: envService.getVersion(),
        }, licenseAgreement_1.LICENSE_AGREEMENT, fetcherService, hmac, integrationId);
    }
}
exports.BaseCAPIClientService = BaseCAPIClientService;
exports.ICAPIClientService = (0, services_1.createServiceIdentifier)('ICAPIClientService');
//# sourceMappingURL=capiClient.js.map