sarvamai 1.1.7-alpha.1 → 1.1.7

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "sarvamai",
46
- "X-Fern-SDK-Version": "1.1.7-alpha.1",
47
- "User-Agent": "sarvamai/1.1.7-alpha.1",
46
+ "X-Fern-SDK-Version": "1.1.7",
47
+ "User-Agent": "sarvamai/1.1.7",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -124,6 +124,7 @@ export declare class SpeechToTextJobClient {
124
124
  * @param params.withTimestamps - Whether to include word-level timestamps (default: false)
125
125
  * @param params.languageCode - The language code of the input audio (e.g., "hi-IN", "bn-IN")
126
126
  * @param params.numSpeakers - The number of distinct speakers in the audio, if known
127
+ * @param params.mode - Output mode for **saaras:v3** only (e.g. transcribe, translate, verbatim)
127
128
  * @param params.callback - Optional callback configuration to receive job completion events
128
129
  * @param requestOptions - Request-specific configuration
129
130
  * @returns A handle to the newly created Speech-to-Text job
@@ -134,6 +135,7 @@ export declare class SpeechToTextJobClient {
134
135
  withTimestamps?: boolean;
135
136
  languageCode?: SarvamAI.SpeechToTextLanguage;
136
137
  numSpeakers?: number;
138
+ mode?: SarvamAI.Mode;
137
139
  callback?: SarvamAI.BulkJobCallback;
138
140
  }, requestOptions?: SpeechToTextJobClient.RequestOptions): Promise<SpeechToTextJobInstance>;
139
141
  /**
@@ -501,21 +501,16 @@ class SpeechToTextJobClient {
501
501
  * @param params.withTimestamps - Whether to include word-level timestamps (default: false)
502
502
  * @param params.languageCode - The language code of the input audio (e.g., "hi-IN", "bn-IN")
503
503
  * @param params.numSpeakers - The number of distinct speakers in the audio, if known
504
+ * @param params.mode - Output mode for **saaras:v3** only (e.g. transcribe, translate, verbatim)
504
505
  * @param params.callback - Optional callback configuration to receive job completion events
505
506
  * @param requestOptions - Request-specific configuration
506
507
  * @returns A handle to the newly created Speech-to-Text job
507
508
  */
508
509
  createJob() {
509
510
  return __awaiter(this, arguments, void 0, function* (params = {}, requestOptions) {
510
- const { model = "saarika:v2.5", withDiarization = false, withTimestamps = false, languageCode, numSpeakers, callback, } = params;
511
+ const { model = "saarika:v2.5", withDiarization = false, withTimestamps = false, languageCode, numSpeakers, mode, callback, } = params;
511
512
  const response = yield this.initialise({
512
- job_parameters: {
513
- language_code: languageCode,
514
- model: model,
515
- num_speakers: numSpeakers,
516
- with_diarization: withDiarization,
517
- with_timestamps: withTimestamps,
518
- },
513
+ job_parameters: Object.assign({ language_code: languageCode, model: model, num_speakers: numSpeakers, with_diarization: withDiarization, with_timestamps: withTimestamps }, (mode !== undefined ? { mode } : {})),
519
514
  callback: callback,
520
515
  }, requestOptions);
521
516
  return new SpeechToTextJobInstance_js_1.SpeechToTextJobInstance(response.job_id, this);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.7-alpha.1";
1
+ export declare const SDK_VERSION = "1.1.7";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.1.7-alpha.1";
4
+ exports.SDK_VERSION = "1.1.7";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "sarvamai",
9
- "X-Fern-SDK-Version": "1.1.7-alpha.1",
10
- "User-Agent": "sarvamai/1.1.7-alpha.1",
9
+ "X-Fern-SDK-Version": "1.1.7",
10
+ "User-Agent": "sarvamai/1.1.7",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -124,6 +124,7 @@ export declare class SpeechToTextJobClient {
124
124
  * @param params.withTimestamps - Whether to include word-level timestamps (default: false)
125
125
  * @param params.languageCode - The language code of the input audio (e.g., "hi-IN", "bn-IN")
126
126
  * @param params.numSpeakers - The number of distinct speakers in the audio, if known
127
+ * @param params.mode - Output mode for **saaras:v3** only (e.g. transcribe, translate, verbatim)
127
128
  * @param params.callback - Optional callback configuration to receive job completion events
128
129
  * @param requestOptions - Request-specific configuration
129
130
  * @returns A handle to the newly created Speech-to-Text job
@@ -134,6 +135,7 @@ export declare class SpeechToTextJobClient {
134
135
  withTimestamps?: boolean;
135
136
  languageCode?: SarvamAI.SpeechToTextLanguage;
136
137
  numSpeakers?: number;
138
+ mode?: SarvamAI.Mode;
137
139
  callback?: SarvamAI.BulkJobCallback;
138
140
  }, requestOptions?: SpeechToTextJobClient.RequestOptions): Promise<SpeechToTextJobInstance>;
139
141
  /**
@@ -465,21 +465,16 @@ export class SpeechToTextJobClient {
465
465
  * @param params.withTimestamps - Whether to include word-level timestamps (default: false)
466
466
  * @param params.languageCode - The language code of the input audio (e.g., "hi-IN", "bn-IN")
467
467
  * @param params.numSpeakers - The number of distinct speakers in the audio, if known
468
+ * @param params.mode - Output mode for **saaras:v3** only (e.g. transcribe, translate, verbatim)
468
469
  * @param params.callback - Optional callback configuration to receive job completion events
469
470
  * @param requestOptions - Request-specific configuration
470
471
  * @returns A handle to the newly created Speech-to-Text job
471
472
  */
472
473
  createJob() {
473
474
  return __awaiter(this, arguments, void 0, function* (params = {}, requestOptions) {
474
- const { model = "saarika:v2.5", withDiarization = false, withTimestamps = false, languageCode, numSpeakers, callback, } = params;
475
+ const { model = "saarika:v2.5", withDiarization = false, withTimestamps = false, languageCode, numSpeakers, mode, callback, } = params;
475
476
  const response = yield this.initialise({
476
- job_parameters: {
477
- language_code: languageCode,
478
- model: model,
479
- num_speakers: numSpeakers,
480
- with_diarization: withDiarization,
481
- with_timestamps: withTimestamps,
482
- },
477
+ job_parameters: Object.assign({ language_code: languageCode, model: model, num_speakers: numSpeakers, with_diarization: withDiarization, with_timestamps: withTimestamps }, (mode !== undefined ? { mode } : {})),
483
478
  callback: callback,
484
479
  }, requestOptions);
485
480
  return new SpeechToTextJobInstance(response.job_id, this);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.7-alpha.1";
1
+ export declare const SDK_VERSION = "1.1.7";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.1.7-alpha.1";
1
+ export const SDK_VERSION = "1.1.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvamai",
3
- "version": "1.1.7-alpha.1",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",