"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlandApiClient = void 0;
const axios_1 = __importDefault(require("axios"));
class BlandApiClient {
    constructor({ baseUrl, apiKey }) {
        this.client = axios_1.default.create({
            baseURL: baseUrl,
            headers: {
                Authorization: apiKey,
                'Content-Type': 'application/json',
            },
        });
    }
    async sendCall(input) {
        const response = await this.client.post(`/calls`, input);
        return response;
    }
    async getCallDetails(input) {
        const response = await this.client.get(`/calls/${input.call_id}`);
        return response;
    }
}
exports.BlandApiClient = BlandApiClient;
//# sourceMappingURL=client.js.map