sarvamai 0.0.4 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +1 -10
- package/Client.js +4 -14
- package/api/resources/index.d.ts +0 -4
- package/api/resources/index.js +1 -5
- package/api/resources/speechToText/client/Client.d.ts +4 -4
- package/api/resources/speechToText/client/Client.js +9 -6
- package/api/resources/text/client/Client.d.ts +4 -4
- package/api/resources/text/client/Client.js +10 -9
- package/api/resources/textToSpeech/client/Client.d.ts +5 -5
- package/api/resources/textToSpeech/client/Client.js +9 -4
- package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +33 -11
- package/api/types/ErrorCode.d.ts +3 -5
- package/api/types/ErrorCode.js +2 -4
- package/api/types/TextToSpeechLanguage.d.ts +4 -4
- package/api/types/TextToSpeechLanguage.js +3 -3
- package/api/types/TextToSpeechModel.d.ts +5 -1
- package/api/types/TextToSpeechModel.js +5 -0
- package/api/types/TextToSpeechSpeaker.d.ts +8 -1
- package/api/types/TextToSpeechSpeaker.js +7 -0
- package/api/types/index.d.ts +0 -13
- package/api/types/index.js +0 -13
- package/dist/Client.d.ts +1 -10
- package/dist/Client.js +4 -14
- package/dist/api/resources/index.d.ts +0 -4
- package/dist/api/resources/index.js +1 -5
- package/dist/api/resources/speechToText/client/Client.d.ts +4 -4
- package/dist/api/resources/speechToText/client/Client.js +9 -6
- package/dist/api/resources/text/client/Client.d.ts +4 -4
- package/dist/api/resources/text/client/Client.js +10 -9
- package/dist/api/resources/textToSpeech/client/Client.d.ts +5 -5
- package/dist/api/resources/textToSpeech/client/Client.js +9 -4
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +33 -11
- package/dist/api/types/ErrorCode.d.ts +3 -5
- package/dist/api/types/ErrorCode.js +2 -4
- package/dist/api/types/TextToSpeechLanguage.d.ts +4 -4
- package/dist/api/types/TextToSpeechLanguage.js +3 -3
- package/dist/api/types/TextToSpeechModel.d.ts +5 -1
- package/dist/api/types/TextToSpeechModel.js +5 -0
- package/dist/api/types/TextToSpeechSpeaker.d.ts +8 -1
- package/dist/api/types/TextToSpeechSpeaker.js +7 -0
- package/dist/api/types/index.d.ts +0 -13
- package/dist/api/types/index.js +0 -13
- package/dist/environments.d.ts +1 -2
- package/dist/environments.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +1 -2
- package/environments.js +0 -1
- package/package.json +1 -1
- package/reference.md +1 -286
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/analytics/client/Client.d.ts +0 -73
- package/api/resources/analytics/client/Client.js +0 -223
- package/api/resources/analytics/client/index.d.ts +0 -1
- package/api/resources/analytics/client/index.js +0 -17
- package/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +0 -24
- package/api/resources/analytics/client/requests/CallAnalyticsRequest.js +0 -5
- package/api/resources/analytics/client/requests/index.d.ts +0 -1
- package/api/resources/analytics/client/requests/index.js +0 -2
- package/api/resources/analytics/index.d.ts +0 -1
- package/api/resources/analytics/index.js +0 -17
- package/api/resources/pdf/client/Client.d.ts +0 -63
- package/api/resources/pdf/client/Client.js +0 -215
- package/api/resources/pdf/client/index.d.ts +0 -1
- package/api/resources/pdf/client/index.js +0 -17
- package/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +0 -21
- package/api/resources/pdf/client/requests/ParsePdfRequest.js +0 -5
- package/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +0 -32
- package/api/resources/pdf/client/requests/TranslatePdfRequest.js +0 -5
- package/api/resources/pdf/client/requests/index.d.ts +0 -2
- package/api/resources/pdf/client/requests/index.js +0 -2
- package/api/resources/pdf/index.d.ts +0 -1
- package/api/resources/pdf/index.js +0 -17
- package/api/types/CallAnalyticsJobParameters.d.ts +0 -21
- package/api/types/CallAnalyticsJobParameters.js +0 -5
- package/api/types/CallAnalyticsJobRequest.d.ts +0 -10
- package/api/types/CallAnalyticsJobRequest.js +0 -5
- package/api/types/CallAnalyticsResponse.d.ts +0 -19
- package/api/types/CallAnalyticsResponse.js +0 -5
- package/api/types/Language.d.ts +0 -17
- package/api/types/Language.js +0 -19
- package/api/types/ParsedPageResponse.d.ts +0 -7
- package/api/types/ParsedPageResponse.js +0 -5
- package/api/types/PromptCaching.d.ts +0 -8
- package/api/types/PromptCaching.js +0 -10
- package/api/types/QnaResponse.d.ts +0 -15
- package/api/types/QnaResponse.js +0 -5
- package/api/types/Question.d.ts +0 -23
- package/api/types/Question.js +0 -5
- package/api/types/QuestionType.d.ts +0 -11
- package/api/types/QuestionType.js +0 -13
- package/api/types/SarvamMode.d.ts +0 -8
- package/api/types/SarvamMode.js +0 -10
- package/api/types/TextAnalyticsRequest.d.ts +0 -9
- package/api/types/TextAnalyticsRequest.js +0 -5
- package/api/types/TextAnalyticsResponse.d.ts +0 -9
- package/api/types/TextAnalyticsResponse.js +0 -5
- package/api/types/TranslatedPage.d.ts +0 -7
- package/api/types/TranslatedPage.js +0 -5
- package/dist/api/resources/analytics/client/Client.d.ts +0 -73
- package/dist/api/resources/analytics/client/Client.js +0 -223
- package/dist/api/resources/analytics/client/index.d.ts +0 -1
- package/dist/api/resources/analytics/client/index.js +0 -17
- package/dist/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +0 -24
- package/dist/api/resources/analytics/client/requests/CallAnalyticsRequest.js +0 -5
- package/dist/api/resources/analytics/client/requests/index.d.ts +0 -1
- package/dist/api/resources/analytics/client/requests/index.js +0 -2
- package/dist/api/resources/analytics/index.d.ts +0 -1
- package/dist/api/resources/analytics/index.js +0 -17
- package/dist/api/resources/pdf/client/Client.d.ts +0 -63
- package/dist/api/resources/pdf/client/Client.js +0 -215
- package/dist/api/resources/pdf/client/index.d.ts +0 -1
- package/dist/api/resources/pdf/client/index.js +0 -17
- package/dist/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +0 -21
- package/dist/api/resources/pdf/client/requests/ParsePdfRequest.js +0 -5
- package/dist/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +0 -32
- package/dist/api/resources/pdf/client/requests/TranslatePdfRequest.js +0 -5
- package/dist/api/resources/pdf/client/requests/index.d.ts +0 -2
- package/dist/api/resources/pdf/client/requests/index.js +0 -2
- package/dist/api/resources/pdf/index.d.ts +0 -1
- package/dist/api/resources/pdf/index.js +0 -17
- package/dist/api/types/CallAnalyticsJobParameters.d.ts +0 -21
- package/dist/api/types/CallAnalyticsJobParameters.js +0 -5
- package/dist/api/types/CallAnalyticsJobRequest.d.ts +0 -10
- package/dist/api/types/CallAnalyticsJobRequest.js +0 -5
- package/dist/api/types/CallAnalyticsResponse.d.ts +0 -19
- package/dist/api/types/CallAnalyticsResponse.js +0 -5
- package/dist/api/types/Language.d.ts +0 -17
- package/dist/api/types/Language.js +0 -19
- package/dist/api/types/ParsedPageResponse.d.ts +0 -7
- package/dist/api/types/ParsedPageResponse.js +0 -5
- package/dist/api/types/PromptCaching.d.ts +0 -8
- package/dist/api/types/PromptCaching.js +0 -10
- package/dist/api/types/QnaResponse.d.ts +0 -15
- package/dist/api/types/QnaResponse.js +0 -5
- package/dist/api/types/Question.d.ts +0 -23
- package/dist/api/types/Question.js +0 -5
- package/dist/api/types/QuestionType.d.ts +0 -11
- package/dist/api/types/QuestionType.js +0 -13
- package/dist/api/types/SarvamMode.d.ts +0 -8
- package/dist/api/types/SarvamMode.js +0 -10
- package/dist/api/types/TextAnalyticsRequest.d.ts +0 -9
- package/dist/api/types/TextAnalyticsRequest.js +0 -5
- package/dist/api/types/TextAnalyticsResponse.d.ts +0 -9
- package/dist/api/types/TextAnalyticsResponse.js +0 -5
- package/dist/api/types/TranslatedPage.d.ts +0 -7
- package/dist/api/types/TranslatedPage.js +0 -5
package/dist/Client.js
CHANGED
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SarvamAIClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/text/client/Client");
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/analytics/client/Client");
|
|
11
|
-
const Client_5 = require("./api/resources/textToSpeech/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/speechToText/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/textToSpeech/client/Client");
|
|
12
10
|
class SarvamAIClient {
|
|
13
11
|
constructor(_options = {}) {
|
|
14
12
|
this._options = _options;
|
|
@@ -17,21 +15,13 @@ class SarvamAIClient {
|
|
|
17
15
|
var _a;
|
|
18
16
|
return ((_a = this._text) !== null && _a !== void 0 ? _a : (this._text = new Client_1.Text(this._options)));
|
|
19
17
|
}
|
|
20
|
-
get pdf() {
|
|
21
|
-
var _a;
|
|
22
|
-
return ((_a = this._pdf) !== null && _a !== void 0 ? _a : (this._pdf = new Client_2.Pdf(this._options)));
|
|
23
|
-
}
|
|
24
18
|
get speechToText() {
|
|
25
19
|
var _a;
|
|
26
|
-
return ((_a = this._speechToText) !== null && _a !== void 0 ? _a : (this._speechToText = new
|
|
27
|
-
}
|
|
28
|
-
get analytics() {
|
|
29
|
-
var _a;
|
|
30
|
-
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_4.Analytics(this._options)));
|
|
20
|
+
return ((_a = this._speechToText) !== null && _a !== void 0 ? _a : (this._speechToText = new Client_2.SpeechToText(this._options)));
|
|
31
21
|
}
|
|
32
22
|
get textToSpeech() {
|
|
33
23
|
var _a;
|
|
34
|
-
return ((_a = this._textToSpeech) !== null && _a !== void 0 ? _a : (this._textToSpeech = new
|
|
24
|
+
return ((_a = this._textToSpeech) !== null && _a !== void 0 ? _a : (this._textToSpeech = new Client_3.TextToSpeech(this._options)));
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
27
|
exports.SarvamAIClient = SarvamAIClient;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export * as text from "./text";
|
|
2
|
-
export * as pdf from "./pdf";
|
|
3
2
|
export * as speechToText from "./speechToText";
|
|
4
|
-
export * as analytics from "./analytics";
|
|
5
3
|
export * as textToSpeech from "./textToSpeech";
|
|
6
4
|
export * from "./text/client/requests";
|
|
7
|
-
export * from "./pdf/client/requests";
|
|
8
5
|
export * from "./speechToText/client/requests";
|
|
9
|
-
export * from "./analytics/client/requests";
|
|
10
6
|
export * from "./textToSpeech/client/requests";
|
|
@@ -36,14 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.textToSpeech = exports.
|
|
39
|
+
exports.textToSpeech = exports.speechToText = exports.text = void 0;
|
|
40
40
|
exports.text = __importStar(require("./text"));
|
|
41
|
-
exports.pdf = __importStar(require("./pdf"));
|
|
42
41
|
exports.speechToText = __importStar(require("./speechToText"));
|
|
43
|
-
exports.analytics = __importStar(require("./analytics"));
|
|
44
42
|
exports.textToSpeech = __importStar(require("./textToSpeech"));
|
|
45
43
|
__exportStar(require("./text/client/requests"), exports);
|
|
46
|
-
__exportStar(require("./pdf/client/requests"), exports);
|
|
47
44
|
__exportStar(require("./speechToText/client/requests"), exports);
|
|
48
|
-
__exportStar(require("./analytics/client/requests"), exports);
|
|
49
45
|
__exportStar(require("./textToSpeech/client/requests"), exports);
|
|
@@ -11,8 +11,7 @@ export declare namespace SpeechToText {
|
|
|
11
11
|
environment?: core.Supplier<environments.SarvamAIEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
|
-
|
|
15
|
-
apiSubscriptionKey?: core.Supplier<string | undefined>;
|
|
14
|
+
apiSubscriptionKey?: core.Supplier<string>;
|
|
16
15
|
}
|
|
17
16
|
interface RequestOptions {
|
|
18
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -21,8 +20,6 @@ export declare namespace SpeechToText {
|
|
|
21
20
|
maxRetries?: number;
|
|
22
21
|
/** A hook to abort the request. */
|
|
23
22
|
abortSignal?: AbortSignal;
|
|
24
|
-
/** Override the api-subscription-key header */
|
|
25
|
-
apiSubscriptionKey?: string | undefined;
|
|
26
23
|
/** Additional headers to include in the request. */
|
|
27
24
|
headers?: Record<string, string>;
|
|
28
25
|
}
|
|
@@ -90,4 +87,7 @@ export declare class SpeechToText {
|
|
|
90
87
|
* await client.speechToText.translate(fs.createReadStream("/path/to/your/file"), {})
|
|
91
88
|
*/
|
|
92
89
|
translate(file: File | fs.ReadStream | Blob, request: SarvamAI.SpeechToTextTranslationRequest, requestOptions?: SpeechToText.RequestOptions): Promise<SarvamAI.SpeechToTextTranslateResponse>;
|
|
90
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
91
|
+
"api-subscription-key": string | undefined;
|
|
92
|
+
}>;
|
|
93
93
|
}
|
|
@@ -111,9 +111,7 @@ class SpeechToText {
|
|
|
111
111
|
const _response = yield core.fetcher({
|
|
112
112
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "speech-to-text"),
|
|
113
113
|
method: "POST",
|
|
114
|
-
headers: Object.assign(Object.assign({ "
|
|
115
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
116
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
114
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
115
|
requestType: "file",
|
|
118
116
|
duplex: _maybeEncodedRequest.duplex,
|
|
119
117
|
body: _maybeEncodedRequest.body,
|
|
@@ -210,9 +208,7 @@ class SpeechToText {
|
|
|
210
208
|
const _response = yield core.fetcher({
|
|
211
209
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "speech-to-text-translate"),
|
|
212
210
|
method: "POST",
|
|
213
|
-
headers: Object.assign(Object.assign({ "
|
|
214
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
215
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
211
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
212
|
requestType: "file",
|
|
217
213
|
duplex: _maybeEncodedRequest.duplex,
|
|
218
214
|
body: _maybeEncodedRequest.body,
|
|
@@ -259,5 +255,12 @@ class SpeechToText {
|
|
|
259
255
|
}
|
|
260
256
|
});
|
|
261
257
|
}
|
|
258
|
+
_getCustomAuthorizationHeaders() {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
var _a;
|
|
261
|
+
const apiSubscriptionKeyValue = (_a = (yield core.Supplier.get(this._options.apiSubscriptionKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SARVAM_API_KEY"];
|
|
262
|
+
return { "api-subscription-key": apiSubscriptionKeyValue };
|
|
263
|
+
});
|
|
264
|
+
}
|
|
262
265
|
}
|
|
263
266
|
exports.SpeechToText = SpeechToText;
|
|
@@ -9,8 +9,7 @@ export declare namespace Text {
|
|
|
9
9
|
environment?: core.Supplier<environments.SarvamAIEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
|
|
13
|
-
apiSubscriptionKey?: core.Supplier<string | undefined>;
|
|
12
|
+
apiSubscriptionKey?: core.Supplier<string>;
|
|
14
13
|
}
|
|
15
14
|
interface RequestOptions {
|
|
16
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -19,8 +18,6 @@ export declare namespace Text {
|
|
|
19
18
|
maxRetries?: number;
|
|
20
19
|
/** A hook to abort the request. */
|
|
21
20
|
abortSignal?: AbortSignal;
|
|
22
|
-
/** Override the api-subscription-key header */
|
|
23
|
-
apiSubscriptionKey?: string | undefined;
|
|
24
21
|
/** Additional headers to include in the request. */
|
|
25
22
|
headers?: Record<string, string>;
|
|
26
23
|
}
|
|
@@ -124,4 +121,7 @@ export declare class Text {
|
|
|
124
121
|
* })
|
|
125
122
|
*/
|
|
126
123
|
transliterate(request: SarvamAI.TransliterationRequest, requestOptions?: Text.RequestOptions): Promise<SarvamAI.TransliterationResponse>;
|
|
124
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
125
|
+
"api-subscription-key": string | undefined;
|
|
126
|
+
}>;
|
|
127
127
|
}
|
|
@@ -99,9 +99,7 @@ class Text {
|
|
|
99
99
|
const _response = yield core.fetcher({
|
|
100
100
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "translate"),
|
|
101
101
|
method: "POST",
|
|
102
|
-
headers: Object.assign({ "
|
|
103
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
105
103
|
contentType: "application/json",
|
|
106
104
|
requestType: "json",
|
|
107
105
|
body: request,
|
|
@@ -169,9 +167,7 @@ class Text {
|
|
|
169
167
|
const _response = yield core.fetcher({
|
|
170
168
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "text-lid"),
|
|
171
169
|
method: "POST",
|
|
172
|
-
headers: Object.assign({ "
|
|
173
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
174
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
171
|
contentType: "application/json",
|
|
176
172
|
requestType: "json",
|
|
177
173
|
body: request,
|
|
@@ -263,9 +259,7 @@ class Text {
|
|
|
263
259
|
const _response = yield core.fetcher({
|
|
264
260
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "transliterate"),
|
|
265
261
|
method: "POST",
|
|
266
|
-
headers: Object.assign({ "
|
|
267
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
268
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
262
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
269
263
|
contentType: "application/json",
|
|
270
264
|
requestType: "json",
|
|
271
265
|
body: request,
|
|
@@ -310,5 +304,12 @@ class Text {
|
|
|
310
304
|
}
|
|
311
305
|
});
|
|
312
306
|
}
|
|
307
|
+
_getCustomAuthorizationHeaders() {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
var _a;
|
|
310
|
+
const apiSubscriptionKeyValue = (_a = (yield core.Supplier.get(this._options.apiSubscriptionKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SARVAM_API_KEY"];
|
|
311
|
+
return { "api-subscription-key": apiSubscriptionKeyValue };
|
|
312
|
+
});
|
|
313
|
+
}
|
|
313
314
|
}
|
|
314
315
|
exports.Text = Text;
|
|
@@ -9,8 +9,7 @@ export declare namespace TextToSpeech {
|
|
|
9
9
|
environment?: core.Supplier<environments.SarvamAIEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
|
|
13
|
-
apiSubscriptionKey?: core.Supplier<string | undefined>;
|
|
12
|
+
apiSubscriptionKey?: core.Supplier<string>;
|
|
14
13
|
}
|
|
15
14
|
interface RequestOptions {
|
|
16
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -19,8 +18,6 @@ export declare namespace TextToSpeech {
|
|
|
19
18
|
maxRetries?: number;
|
|
20
19
|
/** A hook to abort the request. */
|
|
21
20
|
abortSignal?: AbortSignal;
|
|
22
|
-
/** Override the api-subscription-key header */
|
|
23
|
-
apiSubscriptionKey?: string | undefined;
|
|
24
21
|
/** Additional headers to include in the request. */
|
|
25
22
|
headers?: Record<string, string>;
|
|
26
23
|
}
|
|
@@ -44,8 +41,11 @@ export declare class TextToSpeech {
|
|
|
44
41
|
* @example
|
|
45
42
|
* await client.textToSpeech.convert({
|
|
46
43
|
* inputs: ["inputs"],
|
|
47
|
-
* target_language_code: "
|
|
44
|
+
* target_language_code: "bn-IN"
|
|
48
45
|
* })
|
|
49
46
|
*/
|
|
50
47
|
convert(request: SarvamAI.TextToSpeechRequest, requestOptions?: TextToSpeech.RequestOptions): Promise<SarvamAI.TextToSpeechResponse>;
|
|
48
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
49
|
+
"api-subscription-key": string | undefined;
|
|
50
|
+
}>;
|
|
51
51
|
}
|
|
@@ -74,7 +74,7 @@ class TextToSpeech {
|
|
|
74
74
|
* @example
|
|
75
75
|
* await client.textToSpeech.convert({
|
|
76
76
|
* inputs: ["inputs"],
|
|
77
|
-
* target_language_code: "
|
|
77
|
+
* target_language_code: "bn-IN"
|
|
78
78
|
* })
|
|
79
79
|
*/
|
|
80
80
|
convert(request, requestOptions) {
|
|
@@ -83,9 +83,7 @@ class TextToSpeech {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SarvamAIEnvironment.Production, "text-to-speech"),
|
|
85
85
|
method: "POST",
|
|
86
|
-
headers: Object.assign({ "
|
|
87
|
-
? yield core.Supplier.get(this._options.apiSubscriptionKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.4", "User-Agent": "sarvamai/0.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "sarvamai", "X-Fern-SDK-Version": "0.0.14", "User-Agent": "sarvamai/0.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
87
|
contentType: "application/json",
|
|
90
88
|
requestType: "json",
|
|
91
89
|
body: request,
|
|
@@ -130,5 +128,12 @@ class TextToSpeech {
|
|
|
130
128
|
}
|
|
131
129
|
});
|
|
132
130
|
}
|
|
131
|
+
_getCustomAuthorizationHeaders() {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
var _a;
|
|
134
|
+
const apiSubscriptionKeyValue = (_a = (yield core.Supplier.get(this._options.apiSubscriptionKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SARVAM_API_KEY"];
|
|
135
|
+
return { "api-subscription-key": apiSubscriptionKeyValue };
|
|
136
|
+
});
|
|
137
|
+
}
|
|
133
138
|
}
|
|
134
139
|
exports.TextToSpeech = TextToSpeech;
|
|
@@ -6,30 +6,52 @@ import * as SarvamAI from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* inputs: ["inputs"],
|
|
9
|
-
* target_language_code: "
|
|
9
|
+
* target_language_code: "bn-IN"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface TextToSpeechRequest {
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The text(s) to be converted into speech.
|
|
15
|
+
*
|
|
16
|
+
* **Features:**
|
|
17
|
+
* - Each text should be no longer than 500 characters
|
|
18
|
+
* - You can send up to 3 texts in a single API call
|
|
19
|
+
* - Supports code-mixed text (English and Indic languages)
|
|
20
|
+
*
|
|
21
|
+
* **Important Note:**
|
|
22
|
+
* - For numbers larger than 4 digits, use commas (e.g., '10,000' instead of '10000')
|
|
23
|
+
* - This ensures proper pronunciation as a whole number
|
|
24
|
+
*/
|
|
14
25
|
inputs: string[];
|
|
15
26
|
/** The language of the text is BCP-47 format */
|
|
16
27
|
target_language_code: SarvamAI.TextToSpeechLanguage;
|
|
17
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The speaker voice to be used for the output audio.
|
|
30
|
+
*
|
|
31
|
+
* **Default:** Meera
|
|
32
|
+
*
|
|
33
|
+
* **Model Compatibility (Speakers compatible with respective models):**
|
|
34
|
+
* - **bulbul:v1:**
|
|
35
|
+
* - Female: Diya, Maya, Meera, Pavithra, Maitreyi, Misha
|
|
36
|
+
* - Male: Amol, Arjun, Amartya, Arvind, Neel, Vian
|
|
37
|
+
*
|
|
38
|
+
* - **bulbul:v2:**
|
|
39
|
+
* - Female: Anushka, Manisha, Vidya, Arya
|
|
40
|
+
* - Male: Abhilash, Karun, Hitesh
|
|
41
|
+
*
|
|
42
|
+
* **Note:** Speaker selection must match the chosen model version.
|
|
43
|
+
*/
|
|
18
44
|
speaker?: SarvamAI.TextToSpeechSpeaker;
|
|
19
|
-
/** Controls the pitch of the audio. Lower values result in a deeper voice, while higher values make it sharper. The suitable range is between -0.75 and 0.75. */
|
|
45
|
+
/** Controls the pitch of the audio. Lower values result in a deeper voice, while higher values make it sharper. The suitable range is between -0.75 and 0.75. Default is 0.0. */
|
|
20
46
|
pitch?: number;
|
|
21
47
|
/** Controls the speed of the audio. Lower values result in slower speech, while higher values make it faster. The suitable range is between 0.5 and 2.0. Default is 1.0. */
|
|
22
48
|
pace?: number;
|
|
23
|
-
/** Controls the loudness of the audio. Lower values result in quieter audio, while higher values make it louder. The suitable range is between 0.3 and 3.0. */
|
|
49
|
+
/** Controls the loudness of the audio. Lower values result in quieter audio, while higher values make it louder. The suitable range is between 0.3 and 3.0. Default is 1.0. */
|
|
24
50
|
loudness?: number;
|
|
25
|
-
/** Specifies the sample rate of the output audio. Supported values are 8000, 16000,
|
|
51
|
+
/** Specifies the sample rate of the output audio. Supported values are 8000, 16000, 22050, 24000 Hz. If not provided, the default is 22050 Hz. */
|
|
26
52
|
speech_sample_rate?: SarvamAI.SpeechSampleRate;
|
|
27
53
|
/** Controls whether normalization of English words and numeric entities (e.g., numbers, dates) is performed. Set to true for better handling of mixed-language text. Default is false. */
|
|
28
54
|
enable_preprocessing?: boolean;
|
|
29
|
-
/** Specifies the model to use for text-to-speech conversion. */
|
|
55
|
+
/** Specifies the model to use for text-to-speech conversion. Default is bulbul:v1. */
|
|
30
56
|
model?: SarvamAI.TextToSpeechModel;
|
|
31
|
-
/** Weight for interpolating with English speaker at encoder */
|
|
32
|
-
eng_interpolation_wt?: number;
|
|
33
|
-
/** Override the default speaker triplets */
|
|
34
|
-
override_triplets?: Record<string, unknown>;
|
|
35
57
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ErrorCode = "invalid_request_error" | "internal_server_error" | "unprocessable_entity_error" | "
|
|
4
|
+
export type ErrorCode = "invalid_request_error" | "internal_server_error" | "unprocessable_entity_error" | "not_found_error" | "insufficient_quota_error" | "rate_limit_exceeded_error" | "invalid_api_key_error" | "high_load_error";
|
|
5
5
|
export declare const ErrorCode: {
|
|
6
6
|
readonly InvalidRequestError: "invalid_request_error";
|
|
7
7
|
readonly InternalServerError: "internal_server_error";
|
|
8
8
|
readonly UnprocessableEntityError: "unprocessable_entity_error";
|
|
9
|
+
readonly NotFoundError: "not_found_error";
|
|
9
10
|
readonly InsufficientQuotaError: "insufficient_quota_error";
|
|
10
|
-
readonly InvalidApiKeyError: "invalid_api_key_error";
|
|
11
|
-
readonly AuthenticationError: "authentication_error";
|
|
12
11
|
readonly RateLimitExceededError: "rate_limit_exceeded_error";
|
|
13
|
-
readonly
|
|
14
|
-
readonly ModelCallError: "model_call_error";
|
|
12
|
+
readonly InvalidApiKeyError: "invalid_api_key_error";
|
|
15
13
|
readonly HighLoadError: "high_load_error";
|
|
16
14
|
};
|
|
@@ -8,11 +8,9 @@ exports.ErrorCode = {
|
|
|
8
8
|
InvalidRequestError: "invalid_request_error",
|
|
9
9
|
InternalServerError: "internal_server_error",
|
|
10
10
|
UnprocessableEntityError: "unprocessable_entity_error",
|
|
11
|
+
NotFoundError: "not_found_error",
|
|
11
12
|
InsufficientQuotaError: "insufficient_quota_error",
|
|
12
|
-
InvalidApiKeyError: "invalid_api_key_error",
|
|
13
|
-
AuthenticationError: "authentication_error",
|
|
14
13
|
RateLimitExceededError: "rate_limit_exceeded_error",
|
|
15
|
-
|
|
16
|
-
ModelCallError: "model_call_error",
|
|
14
|
+
InvalidApiKeyError: "invalid_api_key_error",
|
|
17
15
|
HighLoadError: "high_load_error",
|
|
18
16
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TextToSpeechLanguage = "
|
|
4
|
+
export type TextToSpeechLanguage = "bn-IN" | "en-IN" | "gu-IN" | "hi-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN";
|
|
5
5
|
export declare const TextToSpeechLanguage: {
|
|
6
|
-
readonly HiIn: "hi-IN";
|
|
7
6
|
readonly BnIn: "bn-IN";
|
|
7
|
+
readonly EnIn: "en-IN";
|
|
8
|
+
readonly GuIn: "gu-IN";
|
|
9
|
+
readonly HiIn: "hi-IN";
|
|
8
10
|
readonly KnIn: "kn-IN";
|
|
9
11
|
readonly MlIn: "ml-IN";
|
|
10
12
|
readonly MrIn: "mr-IN";
|
|
@@ -12,6 +14,4 @@ export declare const TextToSpeechLanguage: {
|
|
|
12
14
|
readonly PaIn: "pa-IN";
|
|
13
15
|
readonly TaIn: "ta-IN";
|
|
14
16
|
readonly TeIn: "te-IN";
|
|
15
|
-
readonly EnIn: "en-IN";
|
|
16
|
-
readonly GuIn: "gu-IN";
|
|
17
17
|
};
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TextToSpeechLanguage = void 0;
|
|
7
7
|
exports.TextToSpeechLanguage = {
|
|
8
|
-
HiIn: "hi-IN",
|
|
9
8
|
BnIn: "bn-IN",
|
|
9
|
+
EnIn: "en-IN",
|
|
10
|
+
GuIn: "gu-IN",
|
|
11
|
+
HiIn: "hi-IN",
|
|
10
12
|
KnIn: "kn-IN",
|
|
11
13
|
MlIn: "ml-IN",
|
|
12
14
|
MrIn: "mr-IN",
|
|
@@ -14,6 +16,4 @@ exports.TextToSpeechLanguage = {
|
|
|
14
16
|
PaIn: "pa-IN",
|
|
15
17
|
TaIn: "ta-IN",
|
|
16
18
|
TeIn: "te-IN",
|
|
17
|
-
EnIn: "en-IN",
|
|
18
|
-
GuIn: "gu-IN",
|
|
19
19
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TextToSpeechModel = "bulbul:v1";
|
|
4
|
+
export type TextToSpeechModel = "bulbul:v1" | "bulbul:v2";
|
|
5
|
+
export declare const TextToSpeechModel: {
|
|
6
|
+
readonly BulbulV1: "bulbul:v1";
|
|
7
|
+
readonly BulbulV2: "bulbul:v2";
|
|
8
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TextToSpeechSpeaker = "meera" | "pavithra" | "maitreyi" | "arvind" | "amol" | "amartya" | "diya" | "neel" | "misha" | "vian" | "arjun" | "maya";
|
|
4
|
+
export type TextToSpeechSpeaker = "meera" | "pavithra" | "maitreyi" | "arvind" | "amol" | "amartya" | "diya" | "neel" | "misha" | "vian" | "arjun" | "maya" | "anushka" | "abhilash" | "manisha" | "vidya" | "arya" | "karun" | "hitesh";
|
|
5
5
|
export declare const TextToSpeechSpeaker: {
|
|
6
6
|
readonly Meera: "meera";
|
|
7
7
|
readonly Pavithra: "pavithra";
|
|
@@ -15,4 +15,11 @@ export declare const TextToSpeechSpeaker: {
|
|
|
15
15
|
readonly Vian: "vian";
|
|
16
16
|
readonly Arjun: "arjun";
|
|
17
17
|
readonly Maya: "maya";
|
|
18
|
+
readonly Anushka: "anushka";
|
|
19
|
+
readonly Abhilash: "abhilash";
|
|
20
|
+
readonly Manisha: "manisha";
|
|
21
|
+
readonly Vidya: "vidya";
|
|
22
|
+
readonly Arya: "arya";
|
|
23
|
+
readonly Karun: "karun";
|
|
24
|
+
readonly Hitesh: "hitesh";
|
|
18
25
|
};
|
|
@@ -14,27 +14,14 @@ export * from "./TranslationResponse";
|
|
|
14
14
|
export * from "./TranslatiterateTargetLanguage";
|
|
15
15
|
export * from "./TransliterateSourceLanguage";
|
|
16
16
|
export * from "./TransliterationResponse";
|
|
17
|
-
export * from "./Language";
|
|
18
|
-
export * from "./ParsedPageResponse";
|
|
19
|
-
export * from "./PromptCaching";
|
|
20
|
-
export * from "./SarvamMode";
|
|
21
|
-
export * from "./TranslatedPage";
|
|
22
|
-
export * from "./TextAnalyticsRequest";
|
|
23
|
-
export * from "./CallAnalyticsJobParameters";
|
|
24
|
-
export * from "./CallAnalyticsJobRequest";
|
|
25
|
-
export * from "./CallAnalyticsResponse";
|
|
26
17
|
export * from "./DiarizedEntry";
|
|
27
18
|
export * from "./DiarizedTranscript";
|
|
28
|
-
export * from "./QnaResponse";
|
|
29
|
-
export * from "./Question";
|
|
30
|
-
export * from "./QuestionType";
|
|
31
19
|
export * from "./SpeechToTextLanguage";
|
|
32
20
|
export * from "./SpeechToTextModel";
|
|
33
21
|
export * from "./SpeechToTextResponse";
|
|
34
22
|
export * from "./SpeechToTextTranslateLanguage";
|
|
35
23
|
export * from "./SpeechToTextTranslateModel";
|
|
36
24
|
export * from "./SpeechToTextTranslateResponse";
|
|
37
|
-
export * from "./TextAnalyticsResponse";
|
|
38
25
|
export * from "./TimestampsModel";
|
|
39
26
|
export * from "./SpeechSampleRate";
|
|
40
27
|
export * from "./TextToSpeechLanguage";
|
package/dist/api/types/index.js
CHANGED
|
@@ -30,27 +30,14 @@ __exportStar(require("./TranslationResponse"), exports);
|
|
|
30
30
|
__exportStar(require("./TranslatiterateTargetLanguage"), exports);
|
|
31
31
|
__exportStar(require("./TransliterateSourceLanguage"), exports);
|
|
32
32
|
__exportStar(require("./TransliterationResponse"), exports);
|
|
33
|
-
__exportStar(require("./Language"), exports);
|
|
34
|
-
__exportStar(require("./ParsedPageResponse"), exports);
|
|
35
|
-
__exportStar(require("./PromptCaching"), exports);
|
|
36
|
-
__exportStar(require("./SarvamMode"), exports);
|
|
37
|
-
__exportStar(require("./TranslatedPage"), exports);
|
|
38
|
-
__exportStar(require("./TextAnalyticsRequest"), exports);
|
|
39
|
-
__exportStar(require("./CallAnalyticsJobParameters"), exports);
|
|
40
|
-
__exportStar(require("./CallAnalyticsJobRequest"), exports);
|
|
41
|
-
__exportStar(require("./CallAnalyticsResponse"), exports);
|
|
42
33
|
__exportStar(require("./DiarizedEntry"), exports);
|
|
43
34
|
__exportStar(require("./DiarizedTranscript"), exports);
|
|
44
|
-
__exportStar(require("./QnaResponse"), exports);
|
|
45
|
-
__exportStar(require("./Question"), exports);
|
|
46
|
-
__exportStar(require("./QuestionType"), exports);
|
|
47
35
|
__exportStar(require("./SpeechToTextLanguage"), exports);
|
|
48
36
|
__exportStar(require("./SpeechToTextModel"), exports);
|
|
49
37
|
__exportStar(require("./SpeechToTextResponse"), exports);
|
|
50
38
|
__exportStar(require("./SpeechToTextTranslateLanguage"), exports);
|
|
51
39
|
__exportStar(require("./SpeechToTextTranslateModel"), exports);
|
|
52
40
|
__exportStar(require("./SpeechToTextTranslateResponse"), exports);
|
|
53
|
-
__exportStar(require("./TextAnalyticsResponse"), exports);
|
|
54
41
|
__exportStar(require("./TimestampsModel"), exports);
|
|
55
42
|
__exportStar(require("./SpeechSampleRate"), exports);
|
|
56
43
|
__exportStar(require("./TextToSpeechLanguage"), exports);
|
package/dist/environments.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const SarvamAIEnvironment: {
|
|
5
5
|
readonly Production: "https://api.sarvam.ai";
|
|
6
|
-
readonly Staging: "https://api-staging.sarvam.ai";
|
|
7
6
|
};
|
|
8
|
-
export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production
|
|
7
|
+
export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production;
|
package/dist/environments.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.14";
|
package/dist/version.js
CHANGED
package/environments.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const SarvamAIEnvironment: {
|
|
5
5
|
readonly Production: "https://api.sarvam.ai";
|
|
6
|
-
readonly Staging: "https://api-staging.sarvam.ai";
|
|
7
6
|
};
|
|
8
|
-
export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production
|
|
7
|
+
export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production;
|
package/environments.js
CHANGED