File: /home/cafsindia/ai_allyindian_com/node_modules/sarvamai/Client.js
"use strict";
/**
* This file was auto-generated by Fern from our API Definition.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SarvamAIClient = void 0;
const Client_1 = require("./api/resources/text/client/Client");
const Client_2 = require("./api/resources/speechToText/client/Client");
const Client_3 = require("./api/resources/textToSpeech/client/Client");
const Client_4 = require("./api/resources/chat/client/Client");
class SarvamAIClient {
constructor(_options = {}) {
this._options = _options;
}
get text() {
var _a;
return ((_a = this._text) !== null && _a !== void 0 ? _a : (this._text = new Client_1.Text(this._options)));
}
get speechToText() {
var _a;
return ((_a = this._speechToText) !== null && _a !== void 0 ? _a : (this._speechToText = new Client_2.SpeechToText(this._options)));
}
get textToSpeech() {
var _a;
return ((_a = this._textToSpeech) !== null && _a !== void 0 ? _a : (this._textToSpeech = new Client_3.TextToSpeech(this._options)));
}
get chat() {
var _a;
return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_4.Chat(this._options)));
}
}
exports.SarvamAIClient = SarvamAIClient;