sarvamai 0.0.2 → 0.0.3

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.
Files changed (111) hide show
  1. package/Client.d.ts +5 -5
  2. package/Client.js +3 -3
  3. package/README.md +8 -8
  4. package/api/errors/BadRequestError.d.ts +1 -1
  5. package/api/errors/BadRequestError.js +1 -1
  6. package/api/errors/ForbiddenError.d.ts +3 -3
  7. package/api/errors/ForbiddenError.js +1 -1
  8. package/api/errors/InternalServerError.d.ts +1 -1
  9. package/api/errors/InternalServerError.js +1 -1
  10. package/api/errors/ServiceUnavailableError.d.ts +3 -3
  11. package/api/errors/ServiceUnavailableError.js +1 -1
  12. package/api/errors/TooManyRequestsError.d.ts +3 -3
  13. package/api/errors/TooManyRequestsError.js +1 -1
  14. package/api/errors/UnprocessableEntityError.d.ts +1 -1
  15. package/api/errors/UnprocessableEntityError.js +1 -1
  16. package/api/resources/analytics/client/Client.d.ts +18 -18
  17. package/api/resources/analytics/client/Client.js +39 -39
  18. package/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +2 -2
  19. package/api/resources/pdf/client/Client.d.ts +12 -12
  20. package/api/resources/pdf/client/Client.js +27 -27
  21. package/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +3 -3
  22. package/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +2 -2
  23. package/api/resources/speechToText/client/Client.d.ts +18 -18
  24. package/api/resources/speechToText/client/Client.js +39 -39
  25. package/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.d.ts +3 -3
  26. package/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.d.ts +2 -2
  27. package/api/resources/text/client/Client.d.ts +23 -23
  28. package/api/resources/text/client/Client.js +52 -52
  29. package/api/resources/text/client/requests/TranslationRequest.d.ts +8 -8
  30. package/api/resources/text/client/requests/TransliterationRequest.d.ts +5 -5
  31. package/api/resources/textToSpeech/client/Client.d.ts +9 -9
  32. package/api/resources/textToSpeech/client/Client.js +18 -18
  33. package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +5 -5
  34. package/api/types/CallAnalyticsJobParameters.d.ts +3 -3
  35. package/api/types/CallAnalyticsJobRequest.d.ts +2 -2
  36. package/api/types/CallAnalyticsResponse.d.ts +4 -4
  37. package/api/types/DiarizedTranscript.d.ts +2 -2
  38. package/api/types/ErrorDetails.d.ts +2 -2
  39. package/api/types/ErrorMessage.d.ts +2 -2
  40. package/api/types/Question.d.ts +2 -2
  41. package/api/types/SpeechToTextResponse.d.ts +3 -3
  42. package/api/types/SpeechToTextTranslateResponse.d.ts +3 -3
  43. package/api/types/TextAnalyticsResponse.d.ts +2 -2
  44. package/dist/Client.d.ts +5 -5
  45. package/dist/Client.js +3 -3
  46. package/dist/api/errors/BadRequestError.d.ts +1 -1
  47. package/dist/api/errors/BadRequestError.js +1 -1
  48. package/dist/api/errors/ForbiddenError.d.ts +3 -3
  49. package/dist/api/errors/ForbiddenError.js +1 -1
  50. package/dist/api/errors/InternalServerError.d.ts +1 -1
  51. package/dist/api/errors/InternalServerError.js +1 -1
  52. package/dist/api/errors/ServiceUnavailableError.d.ts +3 -3
  53. package/dist/api/errors/ServiceUnavailableError.js +1 -1
  54. package/dist/api/errors/TooManyRequestsError.d.ts +3 -3
  55. package/dist/api/errors/TooManyRequestsError.js +1 -1
  56. package/dist/api/errors/UnprocessableEntityError.d.ts +1 -1
  57. package/dist/api/errors/UnprocessableEntityError.js +1 -1
  58. package/dist/api/resources/analytics/client/Client.d.ts +18 -18
  59. package/dist/api/resources/analytics/client/Client.js +39 -39
  60. package/dist/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +2 -2
  61. package/dist/api/resources/pdf/client/Client.d.ts +12 -12
  62. package/dist/api/resources/pdf/client/Client.js +27 -27
  63. package/dist/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +3 -3
  64. package/dist/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +2 -2
  65. package/dist/api/resources/speechToText/client/Client.d.ts +18 -18
  66. package/dist/api/resources/speechToText/client/Client.js +39 -39
  67. package/dist/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.d.ts +3 -3
  68. package/dist/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.d.ts +2 -2
  69. package/dist/api/resources/text/client/Client.d.ts +23 -23
  70. package/dist/api/resources/text/client/Client.js +52 -52
  71. package/dist/api/resources/text/client/requests/TranslationRequest.d.ts +8 -8
  72. package/dist/api/resources/text/client/requests/TransliterationRequest.d.ts +5 -5
  73. package/dist/api/resources/textToSpeech/client/Client.d.ts +9 -9
  74. package/dist/api/resources/textToSpeech/client/Client.js +18 -18
  75. package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +5 -5
  76. package/dist/api/types/CallAnalyticsJobParameters.d.ts +3 -3
  77. package/dist/api/types/CallAnalyticsJobRequest.d.ts +2 -2
  78. package/dist/api/types/CallAnalyticsResponse.d.ts +4 -4
  79. package/dist/api/types/DiarizedTranscript.d.ts +2 -2
  80. package/dist/api/types/ErrorDetails.d.ts +2 -2
  81. package/dist/api/types/ErrorMessage.d.ts +2 -2
  82. package/dist/api/types/Question.d.ts +2 -2
  83. package/dist/api/types/SpeechToTextResponse.d.ts +3 -3
  84. package/dist/api/types/SpeechToTextTranslateResponse.d.ts +3 -3
  85. package/dist/api/types/TextAnalyticsResponse.d.ts +2 -2
  86. package/dist/environments.d.ts +2 -2
  87. package/dist/environments.js +2 -2
  88. package/dist/errors/{SarvamError.d.ts → SarvamAIError.d.ts} +1 -1
  89. package/{errors/SarvamError.js → dist/errors/SarvamAIError.js} +4 -4
  90. package/dist/errors/{SarvamTimeoutError.d.ts → SarvamAITimeoutError.d.ts} +1 -1
  91. package/{errors/SarvamTimeoutError.js → dist/errors/SarvamAITimeoutError.js} +4 -4
  92. package/dist/errors/index.d.ts +2 -2
  93. package/dist/errors/index.js +5 -5
  94. package/dist/index.d.ts +4 -4
  95. package/dist/index.js +6 -6
  96. package/dist/version.d.ts +1 -1
  97. package/dist/version.js +1 -1
  98. package/environments.d.ts +2 -2
  99. package/environments.js +2 -2
  100. package/errors/{SarvamError.d.ts → SarvamAIError.d.ts} +1 -1
  101. package/{dist/errors/SarvamError.js → errors/SarvamAIError.js} +4 -4
  102. package/errors/{SarvamTimeoutError.d.ts → SarvamAITimeoutError.d.ts} +1 -1
  103. package/{dist/errors/SarvamTimeoutError.js → errors/SarvamAITimeoutError.js} +4 -4
  104. package/errors/index.d.ts +2 -2
  105. package/errors/index.js +5 -5
  106. package/index.d.ts +4 -4
  107. package/index.js +6 -6
  108. package/package.json +1 -1
  109. package/reference.md +20 -20
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Sarvam from "../index";
4
+ import * as SarvamAI from "../index";
5
5
  export interface SpeechToTextTranslateResponse {
6
6
  request_id?: string;
7
7
  /** Transcript of the provided speech */
8
8
  transcript: string;
9
9
  /** This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null */
10
- language_code?: Sarvam.SpeechToTextTranslateLanguage;
10
+ language_code?: SarvamAI.SpeechToTextTranslateLanguage;
11
11
  /** Diarized transcript of the provided speech */
12
- diarized_transcript?: Sarvam.DiarizedTranscript;
12
+ diarized_transcript?: SarvamAI.DiarizedTranscript;
13
13
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Sarvam from "../index";
4
+ import * as SarvamAI from "../index";
5
5
  export interface TextAnalyticsResponse {
6
6
  request_id?: string;
7
7
  /** List of answers derived from the text analysis. Each answer corresponds to a question from the original request. This field will be null if no valid answers could be generated. */
8
- answers?: Sarvam.QnaResponse[];
8
+ answers?: SarvamAI.QnaResponse[];
9
9
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare const SarvamEnvironment: {
4
+ export declare const SarvamAIEnvironment: {
5
5
  readonly Production: "https://api.sarvam.ai";
6
6
  readonly Staging: "https://api-staging.sarvam.ai";
7
7
  };
8
- export type SarvamEnvironment = typeof SarvamEnvironment.Production | typeof SarvamEnvironment.Staging;
8
+ export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production | typeof SarvamAIEnvironment.Staging;
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamEnvironment = void 0;
7
- exports.SarvamEnvironment = {
6
+ exports.SarvamAIEnvironment = void 0;
7
+ exports.SarvamAIEnvironment = {
8
8
  Production: "https://api.sarvam.ai",
9
9
  Staging: "https://api-staging.sarvam.ai",
10
10
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare class SarvamError extends Error {
4
+ export declare class SarvamAIError extends Error {
5
5
  readonly statusCode?: number;
6
6
  readonly body?: unknown;
7
7
  constructor({ message, statusCode, body }: {
@@ -3,12 +3,12 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamError = void 0;
6
+ exports.SarvamAIError = void 0;
7
7
  const json_1 = require("../core/json");
8
- class SarvamError extends Error {
8
+ class SarvamAIError extends Error {
9
9
  constructor({ message, statusCode, body }) {
10
10
  super(buildMessage({ message, statusCode, body }));
11
- Object.setPrototypeOf(this, SarvamError.prototype);
11
+ Object.setPrototypeOf(this, SarvamAIError.prototype);
12
12
  if (statusCode != null) {
13
13
  this.statusCode = statusCode;
14
14
  }
@@ -17,7 +17,7 @@ class SarvamError extends Error {
17
17
  }
18
18
  }
19
19
  }
20
- exports.SarvamError = SarvamError;
20
+ exports.SarvamAIError = SarvamAIError;
21
21
  function buildMessage({ message, statusCode, body, }) {
22
22
  let lines = [];
23
23
  if (message != null) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare class SarvamTimeoutError extends Error {
4
+ export declare class SarvamAITimeoutError extends Error {
5
5
  constructor(message: string);
6
6
  }
@@ -3,11 +3,11 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamTimeoutError = void 0;
7
- class SarvamTimeoutError extends Error {
6
+ exports.SarvamAITimeoutError = void 0;
7
+ class SarvamAITimeoutError extends Error {
8
8
  constructor(message) {
9
9
  super(message);
10
- Object.setPrototypeOf(this, SarvamTimeoutError.prototype);
10
+ Object.setPrototypeOf(this, SarvamAITimeoutError.prototype);
11
11
  }
12
12
  }
13
- exports.SarvamTimeoutError = SarvamTimeoutError;
13
+ exports.SarvamAITimeoutError = SarvamAITimeoutError;
@@ -1,2 +1,2 @@
1
- export { SarvamError } from "./SarvamError";
2
- export { SarvamTimeoutError } from "./SarvamTimeoutError";
1
+ export { SarvamAIError } from "./SarvamAIError";
2
+ export { SarvamAITimeoutError } from "./SarvamAITimeoutError";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SarvamTimeoutError = exports.SarvamError = void 0;
4
- var SarvamError_1 = require("./SarvamError");
5
- Object.defineProperty(exports, "SarvamError", { enumerable: true, get: function () { return SarvamError_1.SarvamError; } });
6
- var SarvamTimeoutError_1 = require("./SarvamTimeoutError");
7
- Object.defineProperty(exports, "SarvamTimeoutError", { enumerable: true, get: function () { return SarvamTimeoutError_1.SarvamTimeoutError; } });
3
+ exports.SarvamAITimeoutError = exports.SarvamAIError = void 0;
4
+ var SarvamAIError_1 = require("./SarvamAIError");
5
+ Object.defineProperty(exports, "SarvamAIError", { enumerable: true, get: function () { return SarvamAIError_1.SarvamAIError; } });
6
+ var SarvamAITimeoutError_1 = require("./SarvamAITimeoutError");
7
+ Object.defineProperty(exports, "SarvamAITimeoutError", { enumerable: true, get: function () { return SarvamAITimeoutError_1.SarvamAITimeoutError; } });
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * as Sarvam from "./api";
2
- export { SarvamClient } from "./Client";
3
- export { SarvamEnvironment } from "./environments";
4
- export { SarvamError, SarvamTimeoutError } from "./errors";
1
+ export * as SarvamAI from "./api";
2
+ export { SarvamAIClient } from "./Client";
3
+ export { SarvamAIEnvironment } from "./environments";
4
+ export { SarvamAIError, SarvamAITimeoutError } from "./errors";
package/dist/index.js CHANGED
@@ -33,12 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SarvamTimeoutError = exports.SarvamError = exports.SarvamEnvironment = exports.SarvamClient = exports.Sarvam = void 0;
37
- exports.Sarvam = __importStar(require("./api"));
36
+ exports.SarvamAITimeoutError = exports.SarvamAIError = exports.SarvamAIEnvironment = exports.SarvamAIClient = exports.SarvamAI = void 0;
37
+ exports.SarvamAI = __importStar(require("./api"));
38
38
  var Client_1 = require("./Client");
39
- Object.defineProperty(exports, "SarvamClient", { enumerable: true, get: function () { return Client_1.SarvamClient; } });
39
+ Object.defineProperty(exports, "SarvamAIClient", { enumerable: true, get: function () { return Client_1.SarvamAIClient; } });
40
40
  var environments_1 = require("./environments");
41
- Object.defineProperty(exports, "SarvamEnvironment", { enumerable: true, get: function () { return environments_1.SarvamEnvironment; } });
41
+ Object.defineProperty(exports, "SarvamAIEnvironment", { enumerable: true, get: function () { return environments_1.SarvamAIEnvironment; } });
42
42
  var errors_1 = require("./errors");
43
- Object.defineProperty(exports, "SarvamError", { enumerable: true, get: function () { return errors_1.SarvamError; } });
44
- Object.defineProperty(exports, "SarvamTimeoutError", { enumerable: true, get: function () { return errors_1.SarvamTimeoutError; } });
43
+ Object.defineProperty(exports, "SarvamAIError", { enumerable: true, get: function () { return errors_1.SarvamAIError; } });
44
+ Object.defineProperty(exports, "SarvamAITimeoutError", { enumerable: true, get: function () { return errors_1.SarvamAITimeoutError; } });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.2";
1
+ export declare const SDK_VERSION = "0.0.3";
package/dist/version.js CHANGED
@@ -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 = "0.0.2";
4
+ exports.SDK_VERSION = "0.0.3";
package/environments.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare const SarvamEnvironment: {
4
+ export declare const SarvamAIEnvironment: {
5
5
  readonly Production: "https://api.sarvam.ai";
6
6
  readonly Staging: "https://api-staging.sarvam.ai";
7
7
  };
8
- export type SarvamEnvironment = typeof SarvamEnvironment.Production | typeof SarvamEnvironment.Staging;
8
+ export type SarvamAIEnvironment = typeof SarvamAIEnvironment.Production | typeof SarvamAIEnvironment.Staging;
package/environments.js CHANGED
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamEnvironment = void 0;
7
- exports.SarvamEnvironment = {
6
+ exports.SarvamAIEnvironment = void 0;
7
+ exports.SarvamAIEnvironment = {
8
8
  Production: "https://api.sarvam.ai",
9
9
  Staging: "https://api-staging.sarvam.ai",
10
10
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare class SarvamError extends Error {
4
+ export declare class SarvamAIError extends Error {
5
5
  readonly statusCode?: number;
6
6
  readonly body?: unknown;
7
7
  constructor({ message, statusCode, body }: {
@@ -3,12 +3,12 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamError = void 0;
6
+ exports.SarvamAIError = void 0;
7
7
  const json_1 = require("../core/json");
8
- class SarvamError extends Error {
8
+ class SarvamAIError extends Error {
9
9
  constructor({ message, statusCode, body }) {
10
10
  super(buildMessage({ message, statusCode, body }));
11
- Object.setPrototypeOf(this, SarvamError.prototype);
11
+ Object.setPrototypeOf(this, SarvamAIError.prototype);
12
12
  if (statusCode != null) {
13
13
  this.statusCode = statusCode;
14
14
  }
@@ -17,7 +17,7 @@ class SarvamError extends Error {
17
17
  }
18
18
  }
19
19
  }
20
- exports.SarvamError = SarvamError;
20
+ exports.SarvamAIError = SarvamAIError;
21
21
  function buildMessage({ message, statusCode, body, }) {
22
22
  let lines = [];
23
23
  if (message != null) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare class SarvamTimeoutError extends Error {
4
+ export declare class SarvamAITimeoutError extends Error {
5
5
  constructor(message: string);
6
6
  }
@@ -3,11 +3,11 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SarvamTimeoutError = void 0;
7
- class SarvamTimeoutError extends Error {
6
+ exports.SarvamAITimeoutError = void 0;
7
+ class SarvamAITimeoutError extends Error {
8
8
  constructor(message) {
9
9
  super(message);
10
- Object.setPrototypeOf(this, SarvamTimeoutError.prototype);
10
+ Object.setPrototypeOf(this, SarvamAITimeoutError.prototype);
11
11
  }
12
12
  }
13
- exports.SarvamTimeoutError = SarvamTimeoutError;
13
+ exports.SarvamAITimeoutError = SarvamAITimeoutError;
package/errors/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { SarvamError } from "./SarvamError";
2
- export { SarvamTimeoutError } from "./SarvamTimeoutError";
1
+ export { SarvamAIError } from "./SarvamAIError";
2
+ export { SarvamAITimeoutError } from "./SarvamAITimeoutError";
package/errors/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SarvamTimeoutError = exports.SarvamError = void 0;
4
- var SarvamError_1 = require("./SarvamError");
5
- Object.defineProperty(exports, "SarvamError", { enumerable: true, get: function () { return SarvamError_1.SarvamError; } });
6
- var SarvamTimeoutError_1 = require("./SarvamTimeoutError");
7
- Object.defineProperty(exports, "SarvamTimeoutError", { enumerable: true, get: function () { return SarvamTimeoutError_1.SarvamTimeoutError; } });
3
+ exports.SarvamAITimeoutError = exports.SarvamAIError = void 0;
4
+ var SarvamAIError_1 = require("./SarvamAIError");
5
+ Object.defineProperty(exports, "SarvamAIError", { enumerable: true, get: function () { return SarvamAIError_1.SarvamAIError; } });
6
+ var SarvamAITimeoutError_1 = require("./SarvamAITimeoutError");
7
+ Object.defineProperty(exports, "SarvamAITimeoutError", { enumerable: true, get: function () { return SarvamAITimeoutError_1.SarvamAITimeoutError; } });
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * as Sarvam from "./api";
2
- export { SarvamClient } from "./Client";
3
- export { SarvamEnvironment } from "./environments";
4
- export { SarvamError, SarvamTimeoutError } from "./errors";
1
+ export * as SarvamAI from "./api";
2
+ export { SarvamAIClient } from "./Client";
3
+ export { SarvamAIEnvironment } from "./environments";
4
+ export { SarvamAIError, SarvamAITimeoutError } from "./errors";
package/index.js CHANGED
@@ -33,12 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SarvamTimeoutError = exports.SarvamError = exports.SarvamEnvironment = exports.SarvamClient = exports.Sarvam = void 0;
37
- exports.Sarvam = __importStar(require("./api"));
36
+ exports.SarvamAITimeoutError = exports.SarvamAIError = exports.SarvamAIEnvironment = exports.SarvamAIClient = exports.SarvamAI = void 0;
37
+ exports.SarvamAI = __importStar(require("./api"));
38
38
  var Client_1 = require("./Client");
39
- Object.defineProperty(exports, "SarvamClient", { enumerable: true, get: function () { return Client_1.SarvamClient; } });
39
+ Object.defineProperty(exports, "SarvamAIClient", { enumerable: true, get: function () { return Client_1.SarvamAIClient; } });
40
40
  var environments_1 = require("./environments");
41
- Object.defineProperty(exports, "SarvamEnvironment", { enumerable: true, get: function () { return environments_1.SarvamEnvironment; } });
41
+ Object.defineProperty(exports, "SarvamAIEnvironment", { enumerable: true, get: function () { return environments_1.SarvamAIEnvironment; } });
42
42
  var errors_1 = require("./errors");
43
- Object.defineProperty(exports, "SarvamError", { enumerable: true, get: function () { return errors_1.SarvamError; } });
44
- Object.defineProperty(exports, "SarvamTimeoutError", { enumerable: true, get: function () { return errors_1.SarvamTimeoutError; } });
43
+ Object.defineProperty(exports, "SarvamAIError", { enumerable: true, get: function () { return errors_1.SarvamAIError; } });
44
+ Object.defineProperty(exports, "SarvamAITimeoutError", { enumerable: true, get: function () { return errors_1.SarvamAITimeoutError; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvamai",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/sarvamai/sarvam-javascript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Text
4
4
 
5
- <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">translate</a>({ ...params }) -> Sarvam.TranslationResponse</code></summary>
5
+ <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">translate</a>({ ...params }) -> SarvamAI.TranslationResponse</code></summary>
6
6
  <dl>
7
7
  <dd>
8
8
 
@@ -67,7 +67,7 @@ await client.text.translate({
67
67
  <dl>
68
68
  <dd>
69
69
 
70
- **request:** `Sarvam.TranslationRequest`
70
+ **request:** `SarvamAI.TranslationRequest`
71
71
 
72
72
  </dd>
73
73
  </dl>
@@ -86,7 +86,7 @@ await client.text.translate({
86
86
  </dl>
87
87
  </details>
88
88
 
89
- <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">identifyLanguage</a>({ ...params }) -> Sarvam.LanguageIdentificationResponse</code></summary>
89
+ <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">identifyLanguage</a>({ ...params }) -> SarvamAI.LanguageIdentificationResponse</code></summary>
90
90
  <dl>
91
91
  <dd>
92
92
 
@@ -132,7 +132,7 @@ await client.text.identifyLanguage({
132
132
  <dl>
133
133
  <dd>
134
134
 
135
- **request:** `Sarvam.LanguageIdentificationRequest`
135
+ **request:** `SarvamAI.LanguageIdentificationRequest`
136
136
 
137
137
  </dd>
138
138
  </dl>
@@ -151,7 +151,7 @@ await client.text.identifyLanguage({
151
151
  </dl>
152
152
  </details>
153
153
 
154
- <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">transliterate</a>({ ...params }) -> Sarvam.TransliterationResponse</code></summary>
154
+ <details><summary><code>client.text.<a href="/src/api/resources/text/client/Client.ts">transliterate</a>({ ...params }) -> SarvamAI.TransliterationResponse</code></summary>
155
155
  <dl>
156
156
  <dd>
157
157
 
@@ -224,7 +224,7 @@ await client.text.transliterate({
224
224
  <dl>
225
225
  <dd>
226
226
 
227
- **request:** `Sarvam.TransliterationRequest`
227
+ **request:** `SarvamAI.TransliterationRequest`
228
228
 
229
229
  </dd>
230
230
  </dl>
@@ -245,7 +245,7 @@ await client.text.transliterate({
245
245
 
246
246
  ## Pdf
247
247
 
248
- <details><summary><code>client.pdf.<a href="/src/api/resources/pdf/client/Client.ts">parse</a>(pdf, { ...params }) -> Sarvam.ParsedPageResponse</code></summary>
248
+ <details><summary><code>client.pdf.<a href="/src/api/resources/pdf/client/Client.ts">parse</a>(pdf, { ...params }) -> SarvamAI.ParsedPageResponse</code></summary>
249
249
  <dl>
250
250
  <dd>
251
251
 
@@ -297,7 +297,7 @@ await client.pdf.parse(fs.createReadStream("/path/to/your/file"), {});
297
297
  <dl>
298
298
  <dd>
299
299
 
300
- **request:** `Sarvam.ParsePdfRequest`
300
+ **request:** `SarvamAI.ParsePdfRequest`
301
301
 
302
302
  </dd>
303
303
  </dl>
@@ -316,7 +316,7 @@ await client.pdf.parse(fs.createReadStream("/path/to/your/file"), {});
316
316
  </dl>
317
317
  </details>
318
318
 
319
- <details><summary><code>client.pdf.<a href="/src/api/resources/pdf/client/Client.ts">translate</a>(pdf, { ...params }) -> Sarvam.TranslatedPage</code></summary>
319
+ <details><summary><code>client.pdf.<a href="/src/api/resources/pdf/client/Client.ts">translate</a>(pdf, { ...params }) -> SarvamAI.TranslatedPage</code></summary>
320
320
  <dl>
321
321
  <dd>
322
322
 
@@ -368,7 +368,7 @@ await client.pdf.translate(fs.createReadStream("/path/to/your/file"), {});
368
368
  <dl>
369
369
  <dd>
370
370
 
371
- **request:** `Sarvam.TranslatePdfRequest`
371
+ **request:** `SarvamAI.TranslatePdfRequest`
372
372
 
373
373
  </dd>
374
374
  </dl>
@@ -389,7 +389,7 @@ await client.pdf.translate(fs.createReadStream("/path/to/your/file"), {});
389
389
 
390
390
  ## SpeechToText
391
391
 
392
- <details><summary><code>client.speechToText.<a href="/src/api/resources/speechToText/client/Client.ts">transcribe</a>(file, { ...params }) -> Sarvam.SpeechToTextResponse</code></summary>
392
+ <details><summary><code>client.speechToText.<a href="/src/api/resources/speechToText/client/Client.ts">transcribe</a>(file, { ...params }) -> SarvamAI.SpeechToTextResponse</code></summary>
393
393
  <dl>
394
394
  <dd>
395
395
 
@@ -454,7 +454,7 @@ await client.speechToText.transcribe(fs.createReadStream("/path/to/your/file"),
454
454
  <dl>
455
455
  <dd>
456
456
 
457
- **request:** `Sarvam.SpeechToTextTranscriptionRequest`
457
+ **request:** `SarvamAI.SpeechToTextTranscriptionRequest`
458
458
 
459
459
  </dd>
460
460
  </dl>
@@ -473,7 +473,7 @@ await client.speechToText.transcribe(fs.createReadStream("/path/to/your/file"),
473
473
  </dl>
474
474
  </details>
475
475
 
476
- <details><summary><code>client.speechToText.<a href="/src/api/resources/speechToText/client/Client.ts">translate</a>(file, { ...params }) -> Sarvam.SpeechToTextTranslateResponse</code></summary>
476
+ <details><summary><code>client.speechToText.<a href="/src/api/resources/speechToText/client/Client.ts">translate</a>(file, { ...params }) -> SarvamAI.SpeechToTextTranslateResponse</code></summary>
477
477
  <dl>
478
478
  <dd>
479
479
 
@@ -538,7 +538,7 @@ await client.speechToText.translate(fs.createReadStream("/path/to/your/file"), {
538
538
  <dl>
539
539
  <dd>
540
540
 
541
- **request:** `Sarvam.SpeechToTextTranslationRequest`
541
+ **request:** `SarvamAI.SpeechToTextTranslationRequest`
542
542
 
543
543
  </dd>
544
544
  </dl>
@@ -559,7 +559,7 @@ await client.speechToText.translate(fs.createReadStream("/path/to/your/file"), {
559
559
 
560
560
  ## Analytics
561
561
 
562
- <details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">call</a>(file, { ...params }) -> Sarvam.CallAnalyticsResponse</code></summary>
562
+ <details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">call</a>(file, { ...params }) -> SarvamAI.CallAnalyticsResponse</code></summary>
563
563
  <dl>
564
564
  <dd>
565
565
 
@@ -613,7 +613,7 @@ await client.analytics.call(fs.createReadStream("/path/to/your/file"), {
613
613
  <dl>
614
614
  <dd>
615
615
 
616
- **request:** `Sarvam.CallAnalyticsRequest`
616
+ **request:** `SarvamAI.CallAnalyticsRequest`
617
617
 
618
618
  </dd>
619
619
  </dl>
@@ -632,7 +632,7 @@ await client.analytics.call(fs.createReadStream("/path/to/your/file"), {
632
632
  </dl>
633
633
  </details>
634
634
 
635
- <details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">text</a>({ ...params }) -> Sarvam.TextAnalyticsResponse</code></summary>
635
+ <details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">text</a>({ ...params }) -> SarvamAI.TextAnalyticsResponse</code></summary>
636
636
  <dl>
637
637
  <dd>
638
638
 
@@ -679,7 +679,7 @@ await client.analytics.text({
679
679
  <dl>
680
680
  <dd>
681
681
 
682
- **request:** `Sarvam.TextAnalyticsRequest`
682
+ **request:** `SarvamAI.TextAnalyticsRequest`
683
683
 
684
684
  </dd>
685
685
  </dl>
@@ -700,7 +700,7 @@ await client.analytics.text({
700
700
 
701
701
  ## TextToSpeech
702
702
 
703
- <details><summary><code>client.textToSpeech.<a href="/src/api/resources/textToSpeech/client/Client.ts">convert</a>({ ...params }) -> Sarvam.TextToSpeechResponse</code></summary>
703
+ <details><summary><code>client.textToSpeech.<a href="/src/api/resources/textToSpeech/client/Client.ts">convert</a>({ ...params }) -> SarvamAI.TextToSpeechResponse</code></summary>
704
704
  <dl>
705
705
  <dd>
706
706
 
@@ -748,7 +748,7 @@ await client.textToSpeech.convert({
748
748
  <dl>
749
749
  <dd>
750
750
 
751
- **request:** `Sarvam.TextToSpeechRequest`
751
+ **request:** `SarvamAI.TextToSpeechRequest`
752
752
 
753
753
  </dd>
754
754
  </dl>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.2";
1
+ export declare const SDK_VERSION = "0.0.3";
package/version.js CHANGED
@@ -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 = "0.0.2";
4
+ exports.SDK_VERSION = "0.0.3";