hume 0.11.1 → 0.11.2

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 (176) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +24 -0
  2. package/.mock/definition/empathic-voice/configs.yml +2 -0
  3. package/.mock/definition/tts/__package__.yml +28 -0
  4. package/.mock/fern.config.json +1 -1
  5. package/Client.d.ts +11 -7
  6. package/Client.js +54 -6
  7. package/api/resources/empathicVoice/errors/BadRequestError.d.ts +2 -1
  8. package/api/resources/empathicVoice/errors/BadRequestError.js +2 -1
  9. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +4 -2
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +74 -40
  11. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -1
  12. package/api/resources/empathicVoice/resources/chats/client/Client.js +55 -30
  13. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +14 -7
  14. package/api/resources/empathicVoice/resources/configs/client/Client.js +134 -64
  15. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  16. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  17. package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +10 -5
  18. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +88 -41
  19. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +16 -8
  20. package/api/resources/empathicVoice/resources/prompts/client/Client.js +133 -62
  21. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +14 -7
  22. package/api/resources/empathicVoice/resources/tools/client/Client.js +134 -64
  23. package/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +12 -0
  24. package/api/resources/empathicVoice/types/PostedNudgeSpec.js +5 -0
  25. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  26. package/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +12 -0
  27. package/api/resources/empathicVoice/types/ReturnNudgeSpec.js +5 -0
  28. package/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +2 -1
  29. package/api/resources/empathicVoice/types/WebhookEventChatStatus.js +1 -0
  30. package/api/resources/empathicVoice/types/index.d.ts +2 -0
  31. package/api/resources/empathicVoice/types/index.js +2 -0
  32. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +12 -6
  33. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +89 -38
  34. package/api/resources/tts/client/Client.d.ts +24 -18
  35. package/api/resources/tts/client/Client.js +84 -46
  36. package/api/resources/tts/client/index.d.ts +1 -1
  37. package/api/resources/tts/client/index.js +15 -0
  38. package/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +36 -0
  39. package/api/resources/tts/client/requests/SynthesizeJsonRequest.js +5 -0
  40. package/api/resources/tts/client/requests/index.d.ts +1 -0
  41. package/api/resources/tts/client/requests/index.js +2 -0
  42. package/api/resources/tts/errors/BadRequestError.d.ts +2 -1
  43. package/api/resources/tts/errors/BadRequestError.js +2 -1
  44. package/api/resources/tts/errors/UnprocessableEntityError.d.ts +2 -1
  45. package/api/resources/tts/errors/UnprocessableEntityError.js +2 -1
  46. package/api/resources/tts/resources/voices/client/Client.d.ts +4 -2
  47. package/api/resources/tts/resources/voices/client/Client.js +45 -22
  48. package/api/resources/tts/types/Snippet.d.ts +2 -0
  49. package/api/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
  50. package/core/fetcher/APIResponse.d.ts +10 -0
  51. package/core/fetcher/Fetcher.js +7 -0
  52. package/core/fetcher/Headers.d.ts +2 -0
  53. package/core/fetcher/Headers.js +84 -0
  54. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  55. package/core/fetcher/HttpResponsePromise.js +103 -0
  56. package/core/fetcher/RawResponse.d.ts +29 -0
  57. package/core/fetcher/RawResponse.js +44 -0
  58. package/core/fetcher/index.d.ts +3 -0
  59. package/core/fetcher/index.js +7 -1
  60. package/core/form-data-utils/FormDataWrapper.d.ts +3 -0
  61. package/core/form-data-utils/FormDataWrapper.js +48 -9
  62. package/core/pagination/Page.d.ts +5 -2
  63. package/core/pagination/Page.js +5 -2
  64. package/core/pagination/Pageable.d.ts +2 -0
  65. package/dist/Client.d.ts +11 -7
  66. package/dist/Client.js +54 -6
  67. package/dist/api/resources/empathicVoice/errors/BadRequestError.d.ts +2 -1
  68. package/dist/api/resources/empathicVoice/errors/BadRequestError.js +2 -1
  69. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +4 -2
  70. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +74 -40
  71. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -1
  72. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +55 -30
  73. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +14 -7
  74. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +134 -64
  75. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  76. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  77. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +10 -5
  78. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +88 -41
  79. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +16 -8
  80. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +133 -62
  81. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +14 -7
  82. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +134 -64
  83. package/dist/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +12 -0
  84. package/dist/api/resources/empathicVoice/types/PostedNudgeSpec.js +5 -0
  85. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  86. package/dist/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +12 -0
  87. package/dist/api/resources/empathicVoice/types/ReturnNudgeSpec.js +5 -0
  88. package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +2 -1
  89. package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.js +1 -0
  90. package/dist/api/resources/empathicVoice/types/index.d.ts +2 -0
  91. package/dist/api/resources/empathicVoice/types/index.js +2 -0
  92. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +12 -6
  93. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +89 -38
  94. package/dist/api/resources/tts/client/Client.d.ts +24 -18
  95. package/dist/api/resources/tts/client/Client.js +84 -46
  96. package/dist/api/resources/tts/client/index.d.ts +1 -1
  97. package/dist/api/resources/tts/client/index.js +15 -0
  98. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +36 -0
  99. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.js +5 -0
  100. package/dist/api/resources/tts/client/requests/index.d.ts +1 -0
  101. package/dist/api/resources/tts/client/requests/index.js +2 -0
  102. package/dist/api/resources/tts/errors/BadRequestError.d.ts +2 -1
  103. package/dist/api/resources/tts/errors/BadRequestError.js +2 -1
  104. package/dist/api/resources/tts/errors/UnprocessableEntityError.d.ts +2 -1
  105. package/dist/api/resources/tts/errors/UnprocessableEntityError.js +2 -1
  106. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +4 -2
  107. package/dist/api/resources/tts/resources/voices/client/Client.js +45 -22
  108. package/dist/api/resources/tts/types/Snippet.d.ts +2 -0
  109. package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
  110. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  111. package/dist/core/fetcher/Fetcher.js +7 -0
  112. package/dist/core/fetcher/Headers.d.ts +2 -0
  113. package/dist/core/fetcher/Headers.js +84 -0
  114. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  115. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  116. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  117. package/dist/core/fetcher/RawResponse.js +44 -0
  118. package/dist/core/fetcher/index.d.ts +3 -0
  119. package/dist/core/fetcher/index.js +7 -1
  120. package/dist/core/form-data-utils/FormDataWrapper.d.ts +3 -0
  121. package/dist/core/form-data-utils/FormDataWrapper.js +48 -9
  122. package/dist/core/pagination/Page.d.ts +5 -2
  123. package/dist/core/pagination/Page.js +5 -2
  124. package/dist/core/pagination/Pageable.d.ts +2 -0
  125. package/dist/errors/HumeError.d.ts +7 -2
  126. package/dist/errors/HumeError.js +10 -10
  127. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  128. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  129. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  130. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  131. package/dist/serialization/resources/empathicVoice/types/PostedNudgeSpec.d.ts +13 -0
  132. package/dist/serialization/resources/empathicVoice/types/PostedNudgeSpec.js +44 -0
  133. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  134. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  135. package/dist/serialization/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +13 -0
  136. package/dist/serialization/resources/empathicVoice/types/ReturnNudgeSpec.js +44 -0
  137. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
  138. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +1 -0
  139. package/dist/serialization/resources/empathicVoice/types/index.d.ts +2 -0
  140. package/dist/serialization/resources/empathicVoice/types/index.js +2 -0
  141. package/dist/serialization/resources/tts/types/Snippet.d.ts +1 -0
  142. package/dist/serialization/resources/tts/types/Snippet.js +1 -0
  143. package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +1 -0
  144. package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +1 -0
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +2 -0
  148. package/dist/wrapper/expressionMeasurement/batch/BatchClient.d.ts +2 -1
  149. package/dist/wrapper/expressionMeasurement/batch/BatchClient.js +43 -17
  150. package/errors/HumeError.d.ts +7 -2
  151. package/errors/HumeError.js +10 -10
  152. package/package.json +3 -2
  153. package/reference.md +17 -15
  154. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  155. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  156. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  157. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  158. package/serialization/resources/empathicVoice/types/PostedNudgeSpec.d.ts +13 -0
  159. package/serialization/resources/empathicVoice/types/PostedNudgeSpec.js +44 -0
  160. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  161. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  162. package/serialization/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +13 -0
  163. package/serialization/resources/empathicVoice/types/ReturnNudgeSpec.js +44 -0
  164. package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
  165. package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +1 -0
  166. package/serialization/resources/empathicVoice/types/index.d.ts +2 -0
  167. package/serialization/resources/empathicVoice/types/index.js +2 -0
  168. package/serialization/resources/tts/types/Snippet.d.ts +1 -0
  169. package/serialization/resources/tts/types/Snippet.js +1 -0
  170. package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +1 -0
  171. package/serialization/resources/tts/types/SnippetAudioChunk.js +1 -0
  172. package/version.d.ts +1 -1
  173. package/version.js +1 -1
  174. package/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +2 -0
  175. package/wrapper/expressionMeasurement/batch/BatchClient.d.ts +2 -1
  176. package/wrapper/expressionMeasurement/batch/BatchClient.js +43 -17
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type WebhookEventChatStatus = "ACTIVE" | "USER_ENDED" | "USER_TIMEOUT" | "INACTIVITY_TIMEOUT" | "MAX_DURATION_TIMEOUT" | "ERROR";
4
+ export type WebhookEventChatStatus = "ACTIVE" | "USER_ENDED" | "USER_TIMEOUT" | "INACTIVITY_TIMEOUT" | "MAX_DURATION_TIMEOUT" | "SILENCE_TIMEOUT" | "ERROR";
5
5
  export declare const WebhookEventChatStatus: {
6
6
  readonly Active: "ACTIVE";
7
7
  readonly UserEnded: "USER_ENDED";
8
8
  readonly UserTimeout: "USER_TIMEOUT";
9
9
  readonly InactivityTimeout: "INACTIVITY_TIMEOUT";
10
10
  readonly MaxDurationTimeout: "MAX_DURATION_TIMEOUT";
11
+ readonly SilenceTimeout: "SILENCE_TIMEOUT";
11
12
  readonly Error: "ERROR";
12
13
  };
@@ -10,5 +10,6 @@ exports.WebhookEventChatStatus = {
10
10
  UserTimeout: "USER_TIMEOUT",
11
11
  InactivityTimeout: "INACTIVITY_TIMEOUT",
12
12
  MaxDurationTimeout: "MAX_DURATION_TIMEOUT",
13
+ SilenceTimeout: "SILENCE_TIMEOUT",
13
14
  Error: "ERROR",
14
15
  };
@@ -82,6 +82,7 @@ export * from "./PostedUserDefinedToolSpec";
82
82
  export * from "./PostedBuiltinToolName";
83
83
  export * from "./PostedBuiltinTool";
84
84
  export * from "./PostedEventMessageSpecs";
85
+ export * from "./PostedNudgeSpec";
85
86
  export * from "./PostedTimeoutSpecsInactivity";
86
87
  export * from "./PostedTimeoutSpecsMaxDuration";
87
88
  export * from "./PostedTimeoutSpecs";
@@ -93,6 +94,7 @@ export * from "./ReturnBuiltinToolToolType";
93
94
  export * from "./ReturnBuiltinTool";
94
95
  export * from "./ReturnEventMessageSpecs";
95
96
  export * from "./ReturnTimeoutSpecs";
97
+ export * from "./ReturnNudgeSpec";
96
98
  export * from "./ReturnWebhookEventType";
97
99
  export * from "./ReturnWebhookSpec";
98
100
  export * from "./ReturnChatStatus";
@@ -98,6 +98,7 @@ __exportStar(require("./PostedUserDefinedToolSpec"), exports);
98
98
  __exportStar(require("./PostedBuiltinToolName"), exports);
99
99
  __exportStar(require("./PostedBuiltinTool"), exports);
100
100
  __exportStar(require("./PostedEventMessageSpecs"), exports);
101
+ __exportStar(require("./PostedNudgeSpec"), exports);
101
102
  __exportStar(require("./PostedTimeoutSpecsInactivity"), exports);
102
103
  __exportStar(require("./PostedTimeoutSpecsMaxDuration"), exports);
103
104
  __exportStar(require("./PostedTimeoutSpecs"), exports);
@@ -109,6 +110,7 @@ __exportStar(require("./ReturnBuiltinToolToolType"), exports);
109
110
  __exportStar(require("./ReturnBuiltinTool"), exports);
110
111
  __exportStar(require("./ReturnEventMessageSpecs"), exports);
111
112
  __exportStar(require("./ReturnTimeoutSpecs"), exports);
113
+ __exportStar(require("./ReturnNudgeSpec"), exports);
112
114
  __exportStar(require("./ReturnWebhookEventType"), exports);
113
115
  __exportStar(require("./ReturnWebhookSpec"), exports);
114
116
  __exportStar(require("./ReturnChatStatus"), exports);
@@ -38,7 +38,8 @@ export declare class Batch {
38
38
  * @example
39
39
  * await client.expressionMeasurement.batch.listJobs()
40
40
  */
41
- listJobs(request?: Hume.expressionMeasurement.batch.BatchListJobsRequest, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.batch.UnionJob[]>;
41
+ listJobs(request?: Hume.expressionMeasurement.batch.BatchListJobsRequest, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<Hume.expressionMeasurement.batch.UnionJob[]>;
42
+ private __listJobs;
42
43
  /**
43
44
  * Start a new measurement inference job.
44
45
  *
@@ -51,7 +52,8 @@ export declare class Batch {
51
52
  * notify: true
52
53
  * })
53
54
  */
54
- startInferenceJob(request: Hume.expressionMeasurement.batch.InferenceBaseRequest, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.batch.JobId>;
55
+ startInferenceJob(request: Hume.expressionMeasurement.batch.InferenceBaseRequest, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<Hume.expressionMeasurement.batch.JobId>;
56
+ private __startInferenceJob;
55
57
  /**
56
58
  * Get the request details and state of a given job.
57
59
  *
@@ -61,7 +63,8 @@ export declare class Batch {
61
63
  * @example
62
64
  * await client.expressionMeasurement.batch.getJobDetails("job_id")
63
65
  */
64
- getJobDetails(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.batch.UnionJob>;
66
+ getJobDetails(id: string, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<Hume.expressionMeasurement.batch.UnionJob>;
67
+ private __getJobDetails;
65
68
  /**
66
69
  * Get the JSON predictions of a completed inference job.
67
70
  *
@@ -71,11 +74,13 @@ export declare class Batch {
71
74
  * @example
72
75
  * await client.expressionMeasurement.batch.getJobPredictions("job_id")
73
76
  */
74
- getJobPredictions(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.batch.UnionPredictResult[]>;
77
+ getJobPredictions(id: string, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<Hume.expressionMeasurement.batch.UnionPredictResult[]>;
78
+ private __getJobPredictions;
75
79
  /**
76
80
  * Get the artifacts ZIP of a completed inference job.
77
81
  */
78
- getJobArtifacts(id: string, requestOptions?: Batch.RequestOptions): Promise<stream.Readable>;
82
+ getJobArtifacts(id: string, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<stream.Readable>;
83
+ private __getJobArtifacts;
79
84
  /**
80
85
  * Start a new batch inference job.
81
86
  *
@@ -86,7 +91,8 @@ export declare class Batch {
86
91
  * @example
87
92
  * await client.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
88
93
  */
89
- startInferenceJobFromLocalFile(file: File[] | fs.ReadStream[] | Blob[], request: Hume.expressionMeasurement.batch.BatchStartInferenceJobFromLocalFileRequest, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.batch.JobId>;
94
+ startInferenceJobFromLocalFile(file: File[] | fs.ReadStream[] | Blob[], request: Hume.expressionMeasurement.batch.BatchStartInferenceJobFromLocalFileRequest, requestOptions?: Batch.RequestOptions): core.HttpResponsePromise<Hume.expressionMeasurement.batch.JobId>;
95
+ private __startInferenceJobFromLocalFile;
90
96
  protected _getCustomAuthorizationHeaders(): Promise<{
91
97
  "X-Hume-Api-Key": string | undefined;
92
98
  }>;
@@ -68,7 +68,10 @@ class Batch {
68
68
  * @example
69
69
  * await client.expressionMeasurement.batch.listJobs()
70
70
  */
71
- listJobs() {
71
+ listJobs(request = {}, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__listJobs(request, requestOptions));
73
+ }
74
+ __listJobs() {
72
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
73
76
  var _a, _b, _c;
74
77
  const { limit, status, when, timestampMs, sortBy, direction } = request;
@@ -109,7 +112,7 @@ class Batch {
109
112
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
113
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
111
114
  method: "GET",
112
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
115
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
113
116
  contentType: "application/json",
114
117
  queryParameters: _queryParams,
115
118
  requestType: "json",
@@ -118,17 +121,21 @@ class Batch {
118
121
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
119
122
  });
120
123
  if (_response.ok) {
121
- return serializers.expressionMeasurement.batch.listJobs.Response.parseOrThrow(_response.body, {
122
- unrecognizedObjectKeys: "passthrough",
123
- allowUnrecognizedUnionMembers: true,
124
- allowUnrecognizedEnumValues: true,
125
- breadcrumbsPrefix: ["response"],
126
- });
124
+ return {
125
+ data: serializers.expressionMeasurement.batch.listJobs.Response.parseOrThrow(_response.body, {
126
+ unrecognizedObjectKeys: "passthrough",
127
+ allowUnrecognizedUnionMembers: true,
128
+ allowUnrecognizedEnumValues: true,
129
+ breadcrumbsPrefix: ["response"],
130
+ }),
131
+ rawResponse: _response.rawResponse,
132
+ };
127
133
  }
128
134
  if (_response.error.reason === "status-code") {
129
135
  throw new errors.HumeError({
130
136
  statusCode: _response.error.statusCode,
131
137
  body: _response.error.body,
138
+ rawResponse: _response.rawResponse,
132
139
  });
133
140
  }
134
141
  switch (_response.error.reason) {
@@ -136,12 +143,14 @@ class Batch {
136
143
  throw new errors.HumeError({
137
144
  statusCode: _response.error.statusCode,
138
145
  body: _response.error.rawBody,
146
+ rawResponse: _response.rawResponse,
139
147
  });
140
148
  case "timeout":
141
149
  throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/batch/jobs.");
142
150
  case "unknown":
143
151
  throw new errors.HumeError({
144
152
  message: _response.error.errorMessage,
153
+ rawResponse: _response.rawResponse,
145
154
  });
146
155
  }
147
156
  });
@@ -159,12 +168,15 @@ class Batch {
159
168
  * })
160
169
  */
161
170
  startInferenceJob(request, requestOptions) {
171
+ return core.HttpResponsePromise.fromPromise(this.__startInferenceJob(request, requestOptions));
172
+ }
173
+ __startInferenceJob(request, requestOptions) {
162
174
  return __awaiter(this, void 0, void 0, function* () {
163
175
  var _a, _b, _c;
164
176
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
165
177
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
166
178
  method: "POST",
167
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
179
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
168
180
  contentType: "application/json",
169
181
  requestType: "json",
170
182
  body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
@@ -175,17 +187,21 @@ class Batch {
175
187
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
188
  });
177
189
  if (_response.ok) {
178
- return serializers.expressionMeasurement.batch.JobId.parseOrThrow(_response.body, {
179
- unrecognizedObjectKeys: "passthrough",
180
- allowUnrecognizedUnionMembers: true,
181
- allowUnrecognizedEnumValues: true,
182
- breadcrumbsPrefix: ["response"],
183
- });
190
+ return {
191
+ data: serializers.expressionMeasurement.batch.JobId.parseOrThrow(_response.body, {
192
+ unrecognizedObjectKeys: "passthrough",
193
+ allowUnrecognizedUnionMembers: true,
194
+ allowUnrecognizedEnumValues: true,
195
+ breadcrumbsPrefix: ["response"],
196
+ }),
197
+ rawResponse: _response.rawResponse,
198
+ };
184
199
  }
185
200
  if (_response.error.reason === "status-code") {
186
201
  throw new errors.HumeError({
187
202
  statusCode: _response.error.statusCode,
188
203
  body: _response.error.body,
204
+ rawResponse: _response.rawResponse,
189
205
  });
190
206
  }
191
207
  switch (_response.error.reason) {
@@ -193,12 +209,14 @@ class Batch {
193
209
  throw new errors.HumeError({
194
210
  statusCode: _response.error.statusCode,
195
211
  body: _response.error.rawBody,
212
+ rawResponse: _response.rawResponse,
196
213
  });
197
214
  case "timeout":
198
215
  throw new errors.HumeTimeoutError("Timeout exceeded when calling POST /v0/batch/jobs.");
199
216
  case "unknown":
200
217
  throw new errors.HumeError({
201
218
  message: _response.error.errorMessage,
219
+ rawResponse: _response.rawResponse,
202
220
  });
203
221
  }
204
222
  });
@@ -213,12 +231,15 @@ class Batch {
213
231
  * await client.expressionMeasurement.batch.getJobDetails("job_id")
214
232
  */
215
233
  getJobDetails(id, requestOptions) {
234
+ return core.HttpResponsePromise.fromPromise(this.__getJobDetails(id, requestOptions));
235
+ }
236
+ __getJobDetails(id, requestOptions) {
216
237
  return __awaiter(this, void 0, void 0, function* () {
217
238
  var _a, _b, _c;
218
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
219
240
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
220
241
  method: "GET",
221
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
242
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
222
243
  contentType: "application/json",
223
244
  requestType: "json",
224
245
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -226,17 +247,21 @@ class Batch {
226
247
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
227
248
  });
228
249
  if (_response.ok) {
229
- return serializers.expressionMeasurement.batch.UnionJob.parseOrThrow(_response.body, {
230
- unrecognizedObjectKeys: "passthrough",
231
- allowUnrecognizedUnionMembers: true,
232
- allowUnrecognizedEnumValues: true,
233
- breadcrumbsPrefix: ["response"],
234
- });
250
+ return {
251
+ data: serializers.expressionMeasurement.batch.UnionJob.parseOrThrow(_response.body, {
252
+ unrecognizedObjectKeys: "passthrough",
253
+ allowUnrecognizedUnionMembers: true,
254
+ allowUnrecognizedEnumValues: true,
255
+ breadcrumbsPrefix: ["response"],
256
+ }),
257
+ rawResponse: _response.rawResponse,
258
+ };
235
259
  }
236
260
  if (_response.error.reason === "status-code") {
237
261
  throw new errors.HumeError({
238
262
  statusCode: _response.error.statusCode,
239
263
  body: _response.error.body,
264
+ rawResponse: _response.rawResponse,
240
265
  });
241
266
  }
242
267
  switch (_response.error.reason) {
@@ -244,12 +269,14 @@ class Batch {
244
269
  throw new errors.HumeError({
245
270
  statusCode: _response.error.statusCode,
246
271
  body: _response.error.rawBody,
272
+ rawResponse: _response.rawResponse,
247
273
  });
248
274
  case "timeout":
249
275
  throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/batch/jobs/{id}.");
250
276
  case "unknown":
251
277
  throw new errors.HumeError({
252
278
  message: _response.error.errorMessage,
279
+ rawResponse: _response.rawResponse,
253
280
  });
254
281
  }
255
282
  });
@@ -264,12 +291,15 @@ class Batch {
264
291
  * await client.expressionMeasurement.batch.getJobPredictions("job_id")
265
292
  */
266
293
  getJobPredictions(id, requestOptions) {
294
+ return core.HttpResponsePromise.fromPromise(this.__getJobPredictions(id, requestOptions));
295
+ }
296
+ __getJobPredictions(id, requestOptions) {
267
297
  return __awaiter(this, void 0, void 0, function* () {
268
298
  var _a, _b, _c;
269
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
300
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
271
301
  method: "GET",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
302
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
273
303
  contentType: "application/json",
274
304
  requestType: "json",
275
305
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -277,17 +307,21 @@ class Batch {
277
307
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
308
  });
279
309
  if (_response.ok) {
280
- return serializers.expressionMeasurement.batch.getJobPredictions.Response.parseOrThrow(_response.body, {
281
- unrecognizedObjectKeys: "passthrough",
282
- allowUnrecognizedUnionMembers: true,
283
- allowUnrecognizedEnumValues: true,
284
- breadcrumbsPrefix: ["response"],
285
- });
310
+ return {
311
+ data: serializers.expressionMeasurement.batch.getJobPredictions.Response.parseOrThrow(_response.body, {
312
+ unrecognizedObjectKeys: "passthrough",
313
+ allowUnrecognizedUnionMembers: true,
314
+ allowUnrecognizedEnumValues: true,
315
+ breadcrumbsPrefix: ["response"],
316
+ }),
317
+ rawResponse: _response.rawResponse,
318
+ };
286
319
  }
287
320
  if (_response.error.reason === "status-code") {
288
321
  throw new errors.HumeError({
289
322
  statusCode: _response.error.statusCode,
290
323
  body: _response.error.body,
324
+ rawResponse: _response.rawResponse,
291
325
  });
292
326
  }
293
327
  switch (_response.error.reason) {
@@ -295,12 +329,14 @@ class Batch {
295
329
  throw new errors.HumeError({
296
330
  statusCode: _response.error.statusCode,
297
331
  body: _response.error.rawBody,
332
+ rawResponse: _response.rawResponse,
298
333
  });
299
334
  case "timeout":
300
335
  throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/batch/jobs/{id}/predictions.");
301
336
  case "unknown":
302
337
  throw new errors.HumeError({
303
338
  message: _response.error.errorMessage,
339
+ rawResponse: _response.rawResponse,
304
340
  });
305
341
  }
306
342
  });
@@ -309,12 +345,15 @@ class Batch {
309
345
  * Get the artifacts ZIP of a completed inference job.
310
346
  */
311
347
  getJobArtifacts(id, requestOptions) {
348
+ return core.HttpResponsePromise.fromPromise(this.__getJobArtifacts(id, requestOptions));
349
+ }
350
+ __getJobArtifacts(id, requestOptions) {
312
351
  return __awaiter(this, void 0, void 0, function* () {
313
352
  var _a, _b, _c;
314
353
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
315
354
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
316
355
  method: "GET",
317
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
356
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
318
357
  contentType: "application/json",
319
358
  requestType: "json",
320
359
  responseType: "streaming",
@@ -323,12 +362,13 @@ class Batch {
323
362
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
324
363
  });
325
364
  if (_response.ok) {
326
- return _response.body;
365
+ return { data: _response.body, rawResponse: _response.rawResponse };
327
366
  }
328
367
  if (_response.error.reason === "status-code") {
329
368
  throw new errors.HumeError({
330
369
  statusCode: _response.error.statusCode,
331
370
  body: _response.error.body,
371
+ rawResponse: _response.rawResponse,
332
372
  });
333
373
  }
334
374
  switch (_response.error.reason) {
@@ -336,12 +376,14 @@ class Batch {
336
376
  throw new errors.HumeError({
337
377
  statusCode: _response.error.statusCode,
338
378
  body: _response.error.rawBody,
379
+ rawResponse: _response.rawResponse,
339
380
  });
340
381
  case "timeout":
341
382
  throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/batch/jobs/{id}/artifacts.");
342
383
  case "unknown":
343
384
  throw new errors.HumeError({
344
385
  message: _response.error.errorMessage,
386
+ rawResponse: _response.rawResponse,
345
387
  });
346
388
  }
347
389
  });
@@ -357,6 +399,9 @@ class Batch {
357
399
  * await client.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
358
400
  */
359
401
  startInferenceJobFromLocalFile(file, request, requestOptions) {
402
+ return core.HttpResponsePromise.fromPromise(this.__startInferenceJobFromLocalFile(file, request, requestOptions));
403
+ }
404
+ __startInferenceJobFromLocalFile(file, request, requestOptions) {
360
405
  return __awaiter(this, void 0, void 0, function* () {
361
406
  var _a, _b, _c;
362
407
  const _request = yield core.newFormData();
@@ -372,7 +417,7 @@ class Batch {
372
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
373
418
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
374
419
  method: "POST",
375
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "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),
420
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.2", "User-Agent": "hume/0.11.2", "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),
376
421
  requestType: "file",
377
422
  duplex: _maybeEncodedRequest.duplex,
378
423
  body: _maybeEncodedRequest.body,
@@ -381,17 +426,21 @@ class Batch {
381
426
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
382
427
  });
383
428
  if (_response.ok) {
384
- return serializers.expressionMeasurement.batch.JobId.parseOrThrow(_response.body, {
385
- unrecognizedObjectKeys: "passthrough",
386
- allowUnrecognizedUnionMembers: true,
387
- allowUnrecognizedEnumValues: true,
388
- breadcrumbsPrefix: ["response"],
389
- });
429
+ return {
430
+ data: serializers.expressionMeasurement.batch.JobId.parseOrThrow(_response.body, {
431
+ unrecognizedObjectKeys: "passthrough",
432
+ allowUnrecognizedUnionMembers: true,
433
+ allowUnrecognizedEnumValues: true,
434
+ breadcrumbsPrefix: ["response"],
435
+ }),
436
+ rawResponse: _response.rawResponse,
437
+ };
390
438
  }
391
439
  if (_response.error.reason === "status-code") {
392
440
  throw new errors.HumeError({
393
441
  statusCode: _response.error.statusCode,
394
442
  body: _response.error.body,
443
+ rawResponse: _response.rawResponse,
395
444
  });
396
445
  }
397
446
  switch (_response.error.reason) {
@@ -399,12 +448,14 @@ class Batch {
399
448
  throw new errors.HumeError({
400
449
  statusCode: _response.error.statusCode,
401
450
  body: _response.error.rawBody,
451
+ rawResponse: _response.rawResponse,
402
452
  });
403
453
  case "timeout":
404
454
  throw new errors.HumeTimeoutError("Timeout exceeded when calling POST /v0/batch/jobs.");
405
455
  case "unknown":
406
456
  throw new errors.HumeError({
407
457
  message: _response.error.errorMessage,
458
+ rawResponse: _response.rawResponse,
408
459
  });
409
460
  }
410
461
  });
@@ -35,48 +35,54 @@ export declare class Tts {
35
35
  *
36
36
  * The response includes the base64-encoded audio and metadata in JSON format.
37
37
  *
38
- * @param {Hume.tts.PostedTts} request
38
+ * @param {Hume.tts.SynthesizeJsonRequest} request
39
39
  * @param {Tts.RequestOptions} requestOptions - Request-specific configuration.
40
40
  *
41
41
  * @throws {@link Hume.tts.UnprocessableEntityError}
42
42
  *
43
43
  * @example
44
44
  * await client.tts.synthesizeJson({
45
- * utterances: [{
46
- * text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
47
- * description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality."
48
- * }],
49
- * context: {
45
+ * body: {
50
46
  * utterances: [{
51
- * text: "How can people see beauty so differently?",
52
- * description: "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question."
53
- * }]
54
- * },
55
- * format: {
56
- * type: "mp3"
57
- * },
58
- * numGenerations: 1
47
+ * text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
48
+ * description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality."
49
+ * }],
50
+ * context: {
51
+ * utterances: [{
52
+ * text: "How can people see beauty so differently?",
53
+ * description: "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question."
54
+ * }]
55
+ * },
56
+ * format: {
57
+ * type: "mp3"
58
+ * },
59
+ * numGenerations: 1
60
+ * }
59
61
  * })
60
62
  */
61
- synthesizeJson(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<Hume.tts.ReturnTts>;
63
+ synthesizeJson(request: Hume.tts.SynthesizeJsonRequest, requestOptions?: Tts.RequestOptions): core.HttpResponsePromise<Hume.tts.ReturnTts>;
64
+ private __synthesizeJson;
62
65
  /**
63
66
  * Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
64
67
  *
65
68
  * The response contains the generated audio file in the requested format.
66
69
  * @throws {@link Hume.tts.UnprocessableEntityError}
67
70
  */
68
- synthesizeFile(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<stream.Readable>;
71
+ synthesizeFile(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): core.HttpResponsePromise<stream.Readable>;
72
+ private __synthesizeFile;
69
73
  /**
70
74
  * Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
71
75
  * @throws {@link Hume.tts.UnprocessableEntityError}
72
76
  */
73
- synthesizeFileStreaming(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<stream.Readable>;
77
+ synthesizeFileStreaming(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): core.HttpResponsePromise<stream.Readable>;
78
+ private __synthesizeFileStreaming;
74
79
  /**
75
80
  * Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
76
81
  *
77
82
  * The response is a stream of JSON objects including audio encoded in base64.
78
83
  */
79
- synthesizeJsonStreaming(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<core.Stream<Hume.tts.SnippetAudioChunk>>;
84
+ synthesizeJsonStreaming(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): core.HttpResponsePromise<core.Stream<Hume.tts.SnippetAudioChunk>>;
85
+ private __synthesizeJsonStreaming;
80
86
  protected _getCustomAuthorizationHeaders(): Promise<{
81
87
  "X-Hume-Api-Key": string | undefined;
82
88
  }>;