hume 0.9.10 → 0.9.12

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 (351) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +87 -26
  2. package/.mock/definition/empathic-voice/chat.yml +5 -1
  3. package/.mock/definition/empathic-voice/chatGroups.yml +6 -0
  4. package/.mock/definition/empathic-voice/chatWebhooks.yml +24 -13
  5. package/.mock/definition/empathic-voice/chats.yml +3 -0
  6. package/.mock/definition/empathic-voice/configs.yml +8 -1
  7. package/.mock/definition/empathic-voice/customVoices.yml +23 -12
  8. package/.mock/definition/empathic-voice/prompts.yml +29 -21
  9. package/.mock/definition/empathic-voice/tools.yml +34 -27
  10. package/.mock/definition/expression-measurement/batch/__package__.yml +23 -0
  11. package/.mock/definition/expression-measurement/stream/__package__.yml +0 -435
  12. package/.mock/definition/expression-measurement/v0StreamModels.yml +437 -0
  13. package/.mock/definition/tts/__package__.yml +394 -0
  14. package/.mock/definition/tts/voices.yml +47 -0
  15. package/.mock/fern.config.json +1 -1
  16. package/Client.d.ts +3 -0
  17. package/Client.js +5 -0
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  19. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  20. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  22. package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
  23. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
  24. package/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
  25. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
  27. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  30. package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  31. package/api/resources/empathicVoice/types/Context.d.ts +2 -2
  32. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  33. package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
  36. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
  39. package/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
  40. package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
  41. package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
  42. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  43. package/api/resources/index.d.ts +1 -0
  44. package/api/resources/index.js +2 -1
  45. package/api/resources/tts/client/Client.d.ts +69 -0
  46. package/api/resources/tts/client/Client.js +200 -0
  47. package/api/resources/tts/client/index.d.ts +1 -0
  48. package/api/resources/tts/client/index.js +2 -0
  49. package/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
  50. package/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
  51. package/api/resources/tts/errors/index.d.ts +1 -0
  52. package/api/resources/tts/errors/index.js +17 -0
  53. package/api/resources/tts/index.d.ts +4 -0
  54. package/api/resources/tts/index.js +20 -0
  55. package/api/resources/tts/resources/index.d.ts +2 -0
  56. package/api/resources/tts/resources/index.js +31 -0
  57. package/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
  58. package/api/resources/tts/resources/voices/client/Client.js +126 -0
  59. package/api/resources/tts/resources/voices/client/index.d.ts +1 -0
  60. package/api/resources/tts/resources/voices/client/index.js +17 -0
  61. package/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
  62. package/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
  63. package/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  64. package/api/resources/tts/resources/voices/client/requests/index.js +2 -0
  65. package/api/resources/tts/resources/voices/index.d.ts +1 -0
  66. package/api/resources/tts/resources/voices/index.js +17 -0
  67. package/api/resources/tts/types/AudioEncoding.d.ts +10 -0
  68. package/api/resources/tts/types/AudioEncoding.js +5 -0
  69. package/api/resources/tts/types/AudioFormatType.d.ts +9 -0
  70. package/api/resources/tts/types/AudioFormatType.js +11 -0
  71. package/api/resources/tts/types/Format.d.ts +19 -0
  72. package/api/resources/tts/types/Format.js +5 -0
  73. package/api/resources/tts/types/FormatMp3.d.ts +5 -0
  74. package/api/resources/tts/types/FormatMp3.js +5 -0
  75. package/api/resources/tts/types/FormatPcm.d.ts +5 -0
  76. package/api/resources/tts/types/FormatPcm.js +5 -0
  77. package/api/resources/tts/types/FormatWav.d.ts +5 -0
  78. package/api/resources/tts/types/FormatWav.js +5 -0
  79. package/api/resources/tts/types/HttpValidationError.d.ts +7 -0
  80. package/api/resources/tts/types/HttpValidationError.js +5 -0
  81. package/api/resources/tts/types/PostedContext.d.ts +8 -0
  82. package/api/resources/tts/types/PostedContext.js +5 -0
  83. package/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
  84. package/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
  85. package/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
  86. package/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
  87. package/api/resources/tts/types/PostedTts.d.ts +14 -0
  88. package/api/resources/tts/types/PostedTts.js +5 -0
  89. package/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
  90. package/api/resources/tts/types/PostedTtsRecord.js +5 -0
  91. package/api/resources/tts/types/PostedUtterance.d.ts +22 -0
  92. package/api/resources/tts/types/PostedUtterance.js +5 -0
  93. package/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
  94. package/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
  95. package/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
  96. package/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
  97. package/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
  98. package/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
  99. package/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
  100. package/api/resources/tts/types/ReturnGeneration.js +5 -0
  101. package/api/resources/tts/types/ReturnTts.d.ts +9 -0
  102. package/api/resources/tts/types/ReturnTts.js +5 -0
  103. package/api/resources/tts/types/ReturnVoice.d.ts +9 -0
  104. package/api/resources/tts/types/ReturnVoice.js +5 -0
  105. package/api/resources/tts/types/Snippet.d.ts +11 -0
  106. package/api/resources/tts/types/Snippet.js +5 -0
  107. package/api/resources/tts/types/ValidationError.d.ts +9 -0
  108. package/api/resources/tts/types/ValidationError.js +5 -0
  109. package/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
  110. package/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
  111. package/api/resources/tts/types/VoiceProvider.d.ts +8 -0
  112. package/api/resources/tts/types/VoiceProvider.js +10 -0
  113. package/api/resources/tts/types/index.d.ts +23 -0
  114. package/api/resources/tts/types/index.js +39 -0
  115. package/dist/Client.d.ts +3 -0
  116. package/dist/Client.js +5 -0
  117. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  118. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  119. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  120. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  121. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
  122. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
  123. package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
  124. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
  125. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
  126. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  127. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  128. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  129. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  130. package/dist/api/resources/empathicVoice/types/Context.d.ts +2 -2
  131. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  132. package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  133. package/dist/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
  134. package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
  135. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
  136. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  137. package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
  138. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
  139. package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
  140. package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
  141. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  142. package/dist/api/resources/index.d.ts +1 -0
  143. package/dist/api/resources/index.js +2 -1
  144. package/dist/api/resources/tts/client/Client.d.ts +69 -0
  145. package/dist/api/resources/tts/client/Client.js +200 -0
  146. package/dist/api/resources/tts/client/index.d.ts +1 -0
  147. package/dist/api/resources/tts/client/index.js +2 -0
  148. package/dist/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
  149. package/dist/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
  150. package/dist/api/resources/tts/errors/index.d.ts +1 -0
  151. package/dist/api/resources/tts/errors/index.js +17 -0
  152. package/dist/api/resources/tts/index.d.ts +4 -0
  153. package/dist/api/resources/tts/index.js +20 -0
  154. package/dist/api/resources/tts/resources/index.d.ts +2 -0
  155. package/dist/api/resources/tts/resources/index.js +31 -0
  156. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
  157. package/dist/api/resources/tts/resources/voices/client/Client.js +126 -0
  158. package/dist/api/resources/tts/resources/voices/client/index.d.ts +1 -0
  159. package/dist/api/resources/tts/resources/voices/client/index.js +17 -0
  160. package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
  161. package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
  162. package/dist/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  163. package/dist/api/resources/tts/resources/voices/client/requests/index.js +2 -0
  164. package/dist/api/resources/tts/resources/voices/index.d.ts +1 -0
  165. package/dist/api/resources/tts/resources/voices/index.js +17 -0
  166. package/dist/api/resources/tts/types/AudioEncoding.d.ts +10 -0
  167. package/dist/api/resources/tts/types/AudioEncoding.js +5 -0
  168. package/dist/api/resources/tts/types/AudioFormatType.d.ts +9 -0
  169. package/dist/api/resources/tts/types/AudioFormatType.js +11 -0
  170. package/dist/api/resources/tts/types/Format.d.ts +19 -0
  171. package/dist/api/resources/tts/types/Format.js +5 -0
  172. package/dist/api/resources/tts/types/FormatMp3.d.ts +5 -0
  173. package/dist/api/resources/tts/types/FormatMp3.js +5 -0
  174. package/dist/api/resources/tts/types/FormatPcm.d.ts +5 -0
  175. package/dist/api/resources/tts/types/FormatPcm.js +5 -0
  176. package/dist/api/resources/tts/types/FormatWav.d.ts +5 -0
  177. package/dist/api/resources/tts/types/FormatWav.js +5 -0
  178. package/dist/api/resources/tts/types/HttpValidationError.d.ts +7 -0
  179. package/dist/api/resources/tts/types/HttpValidationError.js +5 -0
  180. package/dist/api/resources/tts/types/PostedContext.d.ts +8 -0
  181. package/dist/api/resources/tts/types/PostedContext.js +5 -0
  182. package/dist/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
  183. package/dist/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
  184. package/dist/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
  185. package/dist/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
  186. package/dist/api/resources/tts/types/PostedTts.d.ts +14 -0
  187. package/dist/api/resources/tts/types/PostedTts.js +5 -0
  188. package/dist/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
  189. package/dist/api/resources/tts/types/PostedTtsRecord.js +5 -0
  190. package/dist/api/resources/tts/types/PostedUtterance.d.ts +22 -0
  191. package/dist/api/resources/tts/types/PostedUtterance.js +5 -0
  192. package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
  193. package/dist/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
  194. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
  195. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
  196. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
  197. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
  198. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
  199. package/dist/api/resources/tts/types/ReturnGeneration.js +5 -0
  200. package/dist/api/resources/tts/types/ReturnTts.d.ts +9 -0
  201. package/dist/api/resources/tts/types/ReturnTts.js +5 -0
  202. package/dist/api/resources/tts/types/ReturnVoice.d.ts +9 -0
  203. package/dist/api/resources/tts/types/ReturnVoice.js +5 -0
  204. package/dist/api/resources/tts/types/Snippet.d.ts +11 -0
  205. package/dist/api/resources/tts/types/Snippet.js +5 -0
  206. package/dist/api/resources/tts/types/ValidationError.d.ts +9 -0
  207. package/dist/api/resources/tts/types/ValidationError.js +5 -0
  208. package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
  209. package/dist/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
  210. package/dist/api/resources/tts/types/VoiceProvider.d.ts +8 -0
  211. package/dist/api/resources/tts/types/VoiceProvider.js +10 -0
  212. package/dist/api/resources/tts/types/index.d.ts +23 -0
  213. package/dist/api/resources/tts/types/index.js +39 -0
  214. package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
  215. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
  216. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
  217. package/dist/serialization/resources/index.d.ts +1 -0
  218. package/dist/serialization/resources/index.js +2 -1
  219. package/dist/serialization/resources/tts/index.d.ts +2 -0
  220. package/dist/serialization/resources/tts/index.js +18 -0
  221. package/dist/serialization/resources/tts/resources/index.d.ts +2 -0
  222. package/dist/serialization/resources/tts/resources/index.js +31 -0
  223. package/dist/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
  224. package/dist/serialization/resources/tts/resources/voices/client/index.js +17 -0
  225. package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
  226. package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
  227. package/dist/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  228. package/dist/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
  229. package/dist/serialization/resources/tts/resources/voices/index.d.ts +1 -0
  230. package/dist/serialization/resources/tts/resources/voices/index.js +17 -0
  231. package/dist/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
  232. package/dist/serialization/resources/tts/types/AudioEncoding.js +35 -0
  233. package/dist/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
  234. package/dist/serialization/resources/tts/types/AudioFormatType.js +31 -0
  235. package/dist/serialization/resources/tts/types/Format.d.ts +22 -0
  236. package/dist/serialization/resources/tts/types/Format.js +43 -0
  237. package/dist/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
  238. package/dist/serialization/resources/tts/types/FormatMp3.js +31 -0
  239. package/dist/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
  240. package/dist/serialization/resources/tts/types/FormatPcm.js +31 -0
  241. package/dist/serialization/resources/tts/types/FormatWav.d.ts +11 -0
  242. package/dist/serialization/resources/tts/types/FormatWav.js +31 -0
  243. package/dist/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
  244. package/dist/serialization/resources/tts/types/HttpValidationError.js +34 -0
  245. package/dist/serialization/resources/tts/types/PostedContext.d.ts +12 -0
  246. package/dist/serialization/resources/tts/types/PostedContext.js +33 -0
  247. package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
  248. package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
  249. package/dist/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
  250. package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
  251. package/dist/serialization/resources/tts/types/PostedTts.d.ts +18 -0
  252. package/dist/serialization/resources/tts/types/PostedTts.js +39 -0
  253. package/dist/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
  254. package/dist/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
  255. package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
  256. package/dist/serialization/resources/tts/types/PostedUtterance.js +36 -0
  257. package/dist/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
  258. package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
  259. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
  260. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
  261. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
  262. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
  263. package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
  264. package/dist/serialization/resources/tts/types/ReturnGeneration.js +40 -0
  265. package/dist/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
  266. package/dist/serialization/resources/tts/types/ReturnTts.js +35 -0
  267. package/dist/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
  268. package/dist/serialization/resources/tts/types/ReturnVoice.js +34 -0
  269. package/dist/serialization/resources/tts/types/Snippet.d.ts +14 -0
  270. package/dist/serialization/resources/tts/types/Snippet.js +35 -0
  271. package/dist/serialization/resources/tts/types/ValidationError.d.ts +15 -0
  272. package/dist/serialization/resources/tts/types/ValidationError.js +36 -0
  273. package/dist/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
  274. package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
  275. package/dist/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
  276. package/dist/serialization/resources/tts/types/VoiceProvider.js +31 -0
  277. package/dist/serialization/resources/tts/types/index.d.ts +23 -0
  278. package/dist/serialization/resources/tts/types/index.js +39 -0
  279. package/dist/version.d.ts +1 -1
  280. package/dist/version.js +1 -1
  281. package/package.json +1 -1
  282. package/reference.md +336 -25
  283. package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
  284. package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
  285. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
  286. package/serialization/resources/index.d.ts +1 -0
  287. package/serialization/resources/index.js +2 -1
  288. package/serialization/resources/tts/index.d.ts +2 -0
  289. package/serialization/resources/tts/index.js +18 -0
  290. package/serialization/resources/tts/resources/index.d.ts +2 -0
  291. package/serialization/resources/tts/resources/index.js +31 -0
  292. package/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
  293. package/serialization/resources/tts/resources/voices/client/index.js +17 -0
  294. package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
  295. package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
  296. package/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  297. package/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
  298. package/serialization/resources/tts/resources/voices/index.d.ts +1 -0
  299. package/serialization/resources/tts/resources/voices/index.js +17 -0
  300. package/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
  301. package/serialization/resources/tts/types/AudioEncoding.js +35 -0
  302. package/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
  303. package/serialization/resources/tts/types/AudioFormatType.js +31 -0
  304. package/serialization/resources/tts/types/Format.d.ts +22 -0
  305. package/serialization/resources/tts/types/Format.js +43 -0
  306. package/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
  307. package/serialization/resources/tts/types/FormatMp3.js +31 -0
  308. package/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
  309. package/serialization/resources/tts/types/FormatPcm.js +31 -0
  310. package/serialization/resources/tts/types/FormatWav.d.ts +11 -0
  311. package/serialization/resources/tts/types/FormatWav.js +31 -0
  312. package/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
  313. package/serialization/resources/tts/types/HttpValidationError.js +34 -0
  314. package/serialization/resources/tts/types/PostedContext.d.ts +12 -0
  315. package/serialization/resources/tts/types/PostedContext.js +33 -0
  316. package/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
  317. package/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
  318. package/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
  319. package/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
  320. package/serialization/resources/tts/types/PostedTts.d.ts +18 -0
  321. package/serialization/resources/tts/types/PostedTts.js +39 -0
  322. package/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
  323. package/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
  324. package/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
  325. package/serialization/resources/tts/types/PostedUtterance.js +36 -0
  326. package/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
  327. package/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
  328. package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
  329. package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
  330. package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
  331. package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
  332. package/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
  333. package/serialization/resources/tts/types/ReturnGeneration.js +40 -0
  334. package/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
  335. package/serialization/resources/tts/types/ReturnTts.js +35 -0
  336. package/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
  337. package/serialization/resources/tts/types/ReturnVoice.js +34 -0
  338. package/serialization/resources/tts/types/Snippet.d.ts +14 -0
  339. package/serialization/resources/tts/types/Snippet.js +35 -0
  340. package/serialization/resources/tts/types/ValidationError.d.ts +15 -0
  341. package/serialization/resources/tts/types/ValidationError.js +36 -0
  342. package/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
  343. package/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
  344. package/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
  345. package/serialization/resources/tts/types/VoiceProvider.js +31 -0
  346. package/serialization/resources/tts/types/index.d.ts +23 -0
  347. package/serialization/resources/tts/types/index.js +39 -0
  348. package/version.d.ts +1 -1
  349. package/version.js +1 -1
  350. /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
  351. /package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
@@ -52,7 +52,7 @@ class Tools {
52
52
  /**
53
53
  * Fetches a paginated list of **Tools**.
54
54
  *
55
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
55
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
56
56
  *
57
57
  * @param {Hume.empathicVoice.ToolsListToolsRequest} request
58
58
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -86,7 +86,7 @@ class Tools {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
88
88
  method: "GET",
89
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
90
90
  contentType: "application/json",
91
91
  queryParameters: _queryParams,
92
92
  requestType: "json",
@@ -147,7 +147,7 @@ class Tools {
147
147
  /**
148
148
  * Creates a **Tool** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
149
149
  *
150
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
150
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
151
151
  *
152
152
  * @param {Hume.empathicVoice.PostedUserDefinedTool} request
153
153
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -169,7 +169,7 @@ class Tools {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
171
171
  method: "POST",
172
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
@@ -221,7 +221,7 @@ class Tools {
221
221
  /**
222
222
  * Fetches a list of a **Tool's** versions.
223
223
  *
224
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
224
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
225
225
  *
226
226
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
227
227
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
@@ -249,7 +249,7 @@ class Tools {
249
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
250
250
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
251
251
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
253
  contentType: "application/json",
254
254
  queryParameters: _queryParams,
255
255
  requestType: "json",
@@ -299,7 +299,7 @@ class Tools {
299
299
  /**
300
300
  * Updates a **Tool** by creating a new version of the **Tool**.
301
301
  *
302
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
302
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
303
303
  *
304
304
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
305
305
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
@@ -321,7 +321,7 @@ class Tools {
321
321
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
322
322
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
323
323
  method: "POST",
324
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
324
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
@@ -373,7 +373,7 @@ class Tools {
373
373
  /**
374
374
  * Deletes a **Tool** and its versions.
375
375
  *
376
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
376
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
377
377
  *
378
378
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
379
379
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -389,7 +389,7 @@ class Tools {
389
389
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
390
390
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
391
391
  method: "DELETE",
392
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
392
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
393
393
  contentType: "application/json",
394
394
  requestType: "json",
395
395
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -433,7 +433,7 @@ class Tools {
433
433
  /**
434
434
  * Updates the name of a **Tool**.
435
435
  *
436
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
436
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
437
437
  *
438
438
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
439
439
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
@@ -452,7 +452,7 @@ class Tools {
452
452
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
453
453
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
454
454
  method: "PATCH",
455
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
455
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
456
456
  contentType: "application/json",
457
457
  requestType: "json",
458
458
  body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
@@ -500,7 +500,7 @@ class Tools {
500
500
  /**
501
501
  * Fetches a specified version of a **Tool**.
502
502
  *
503
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
503
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
504
504
  *
505
505
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
506
506
  * @param {number} version - Version number for a Tool.
@@ -521,7 +521,7 @@ class Tools {
521
521
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
522
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
523
523
  method: "GET",
524
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
524
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
525
525
  contentType: "application/json",
526
526
  requestType: "json",
527
527
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -570,7 +570,7 @@ class Tools {
570
570
  /**
571
571
  * Deletes a specified version of a **Tool**.
572
572
  *
573
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
573
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
574
574
  *
575
575
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
576
576
  * @param {number} version - Version number for a Tool.
@@ -591,7 +591,7 @@ class Tools {
591
591
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
592
592
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
593
593
  method: "DELETE",
594
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -635,7 +635,7 @@ class Tools {
635
635
  /**
636
636
  * Updates the description of a specified **Tool** version.
637
637
  *
638
- * Refer to our [tool use](/docs/empathic-voice-interface-evi/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
638
+ * Refer to our [tool use](/docs/empathic-voice-interface-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
639
639
  *
640
640
  * @param {string} id - Identifier for a Tool. Formatted as a UUID.
641
641
  * @param {number} version - Version number for a Tool.
@@ -659,7 +659,7 @@ class Tools {
659
659
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
660
660
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
661
661
  method: "PATCH",
662
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
663
  contentType: "application/json",
664
664
  requestType: "json",
665
665
  body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
@@ -12,9 +12,9 @@ export interface Context {
12
12
  *
13
13
  * - **Temporary**: The context is appended only to the next user message.
14
14
  *
15
- * - **Editable**: The original context is updated to reflect the new context.
15
+ * - **Editable**: The original context is updated to reflect the new context.
16
16
  *
17
- * If the type is not specified, it will default to `temporary`.
17
+ * If the type is not specified, it will default to `temporary`.
18
18
  */
19
19
  type?: Hume.empathicVoice.ContextType;
20
20
  /**
@@ -12,7 +12,7 @@ export interface PostedBuiltinTool {
12
12
  * - **web_search:** enables EVI to search the web for up-to-date information when applicable.
13
13
  * - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
14
14
  *
15
- * For more information, see our guide on [using built-in tools](/docs/empathic-voice-interface-evi/tool-use#using-built-in-tools).
15
+ * For more information, see our guide on [using built-in tools](/docs/empathic-voice-interface-evi/features/tool-use#using-built-in-tools).
16
16
  */
17
17
  name: Hume.empathicVoice.PostedBuiltinToolName;
18
18
  /** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
@@ -7,7 +7,7 @@
7
7
  * - **web_search:** enables EVI to search the web for up-to-date information when applicable.
8
8
  * - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
9
9
  *
10
- * For more information, see our guide on [using built-in tools](/docs/empathic-voice-interface-evi/tool-use#using-built-in-tools).
10
+ * For more information, see our guide on [using built-in tools](/docs/empathic-voice-interface-evi/features/tool-use#using-built-in-tools).
11
11
  */
12
12
  export declare type PostedBuiltinToolName = "web_search" | "hang_up";
13
13
  export declare const PostedBuiltinToolName: {
@@ -7,7 +7,7 @@ import * as Hume from "../../../index";
7
7
  *
8
8
  * If a Custom Voice specification is not provided then the [name](/reference/empathic-voice-interface-evi/configs/create-config#request.body.voice.name) of a base voice or previously created Custom Voice must be provided.
9
9
  *
10
- * See our [Voices guide](/docs/empathic-voice-interface-evi/voices) for a tutorial on how to craft a Custom Voice.
10
+ * See our [Voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for a tutorial on how to craft a Custom Voice.
11
11
  */
12
12
  export interface PostedCustomVoice {
13
13
  /** The name of the Custom Voice. Maximum length of 75 characters. Will be converted to all-uppercase. (e.g., "sample voice" becomes "SAMPLE VOICE") */
@@ -6,8 +6,12 @@ import * as Hume from "../../../index";
6
6
  * URL and settings for a specific webhook to be posted to the server
7
7
  */
8
8
  export interface PostedWebhookSpec {
9
- /** URL to send the webhook to */
9
+ /** The URL where event payloads will be sent. This must be a valid https URL to ensure secure communication. The server at this URL must accept POST requests with a JSON payload. */
10
10
  url: string;
11
- /** Events this URL is subscribed to */
11
+ /**
12
+ * The list of events the specified URL is subscribed to.
13
+ *
14
+ * See our [webhooks guide](/docs/empathic-voice-interface-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
15
+ */
12
16
  events: Hume.empathicVoice.PostedWebhookEventType[];
13
17
  }
@@ -16,7 +16,7 @@ export interface ReturnConfig {
16
16
  * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
17
17
  */
18
18
  version?: number;
19
- /** Specifies the EVI version to use. Use `"1"` for version 1, or `"2"` for the latest enhanced version. For a detailed comparison of the two versions, refer to our [guide](/docs/empathic-voice-interface-evi/evi-2). */
19
+ /** Specifies the EVI version to use. Use `"1"` for version 1, or `"2"` for the latest enhanced version. For a detailed comparison of the two versions, refer to our [guide](/docs/empathic-voice-interface-evi/configuration/evi-version). */
20
20
  eviVersion?: string;
21
21
  /** An optional description of the Config version. */
22
22
  versionDescription?: string;
@@ -31,7 +31,7 @@ export interface ReturnPrompt {
31
31
  *
32
32
  * You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
33
33
  *
34
- * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
34
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/guides/prompting).
35
35
  */
36
36
  text: string;
37
37
  }
@@ -6,8 +6,12 @@ import * as Hume from "../../../index";
6
6
  * Collection of webhook URL endpoints to be returned from the server
7
7
  */
8
8
  export interface ReturnWebhookSpec {
9
- /** Webhook URL to send the event updates to */
9
+ /** The URL where event payloads will be sent. This must be a valid https URL to ensure secure communication. The server at this URL must accept POST requests with a JSON payload. */
10
10
  url: string;
11
- /** Events this URL is subscribed to */
11
+ /**
12
+ * The list of events the specified URL is subscribed to.
13
+ *
14
+ * See our [webhooks guide](/docs/empathic-voice-interface-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
15
+ */
12
16
  events: Hume.empathicVoice.ReturnWebhookEventType[];
13
17
  }
@@ -11,7 +11,7 @@ export interface SessionSettings {
11
11
  *
12
12
  * Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
13
13
  *
14
- * For more information, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
14
+ * For more information, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
15
15
  */
16
16
  type: "session_settings";
17
17
  /**
@@ -19,7 +19,7 @@ export interface SessionSettings {
19
19
  *
20
20
  * If included, the response sent from Hume to your backend will include this ID. This allows you to correlate frontend users with their incoming messages.
21
21
  *
22
- * It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/custom-language-model) with EVI to learn more.
22
+ * It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/guides/custom-language-model) with EVI to learn more.
23
23
  */
24
24
  customSessionId?: string;
25
25
  /**
@@ -29,7 +29,7 @@ export interface SessionSettings {
29
29
  *
30
30
  * You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
31
31
  *
32
- * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
32
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/guides/prompting).
33
33
  */
34
34
  systemPrompt?: string;
35
35
  /**
@@ -43,7 +43,7 @@ export interface SessionSettings {
43
43
  /**
44
44
  * Configuration details for the audio input used during the session. Ensures the audio is being correctly set up for processing.
45
45
  *
46
- * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
46
+ * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
47
47
  */
48
48
  audio?: Hume.empathicVoice.AudioConfiguration;
49
49
  /**
@@ -55,13 +55,13 @@ export interface SessionSettings {
55
55
  /**
56
56
  * List of user-defined tools to enable for the session.
57
57
  *
58
- * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/tool-use).
58
+ * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/features/tool-use).
59
59
  */
60
60
  tools?: Hume.empathicVoice.Tool[];
61
61
  /**
62
62
  * List of built-in tools to enable for the session.
63
63
  *
64
- * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/tool-use).
64
+ * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/features/tool-use).
65
65
  *
66
66
  * Currently, the only built-in tool Hume provides is **Web Search**. When enabled, Web Search equips EVI with the ability to search the web for up-to-date information.
67
67
  */
@@ -72,7 +72,7 @@ export interface SessionSettings {
72
72
  *
73
73
  * Each key represents the variable name, and the corresponding value is the specific content you wish to assign to that variable within the session. While the values for variables can be strings, numbers, or booleans, the value will ultimately be converted to a string when injected into your system prompt.
74
74
  *
75
- * Using this field, you can personalize responses based on session-specific details. For more guidance, see our [guide on using dynamic variables](/docs/empathic-voice-interface-evi/conversational-controls#dynamic-variables).
75
+ * Using this field, you can personalize responses based on session-specific details. For more guidance, see our [guide on using dynamic variables](/docs/empathic-voice-interface-evi/features/dynamic-variables).
76
76
  */
77
77
  variables?: Record<string, Hume.empathicVoice.SessionSettingsVariablesValue>;
78
78
  }
@@ -5,9 +5,14 @@ import * as Hume from "../../../index";
5
5
  export interface WebhookEventChatEnded extends Hume.empathicVoice.WebhookEventBase {
6
6
  /** Always `chat_ended`. */
7
7
  eventName?: "chat_ended";
8
+ /** Unix timestamp (in milliseconds) indicating when the session ended. */
8
9
  endTime: number;
10
+ /** Total duration of the session in seconds. */
9
11
  durationSeconds: number;
12
+ /** Reason for the session's termination. */
10
13
  endReason: Hume.empathicVoice.WebhookEventChatStatus;
14
+ /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/guides/phone-calling) integration. */
11
15
  callerNumber?: string;
16
+ /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/guides/custom-language-model) in the EVI Config. */
12
17
  customSessionId?: string;
13
18
  }
@@ -9,8 +9,8 @@ export interface WebhookEventChatStarted extends Hume.empathicVoice.WebhookEvent
9
9
  startTime: number;
10
10
  /** Indicates whether the chat is the first in a new Chat Group (`new_chat_group`) or the continuation of an existing chat group (`resumed_chat_group`). */
11
11
  chatStartType: Hume.empathicVoice.WebhookEventChatStartType;
12
- /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
12
+ /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/guides/phone-calling) integration. */
13
13
  callerNumber?: string;
14
- /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
14
+ /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/guides/custom-language-model) in the EVI Config. */
15
15
  customSessionId?: string;
16
16
  }
@@ -88,7 +88,7 @@ class Batch {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
90
90
  method: "GET",
91
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
91
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -143,7 +143,7 @@ class Batch {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
145
145
  method: "POST",
146
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class Batch {
197
197
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
198
198
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
199
199
  method: "GET",
200
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
201
201
  contentType: "application/json",
202
202
  requestType: "json",
203
203
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -248,7 +248,7 @@ class Batch {
248
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
249
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
250
250
  method: "GET",
251
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
251
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
252
  contentType: "application/json",
253
253
  requestType: "json",
254
254
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,7 +293,7 @@ class Batch {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
295
295
  method: "GET",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  responseType: "streaming",
@@ -349,7 +349,7 @@ class Batch {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
351
351
  method: "POST",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
353
353
  requestType: "file",
354
354
  duplex: _maybeEncodedRequest.duplex,
355
355
  body: _maybeEncodedRequest.body,
@@ -1,2 +1,3 @@
1
+ export * as tts from "./tts";
1
2
  export * as expressionMeasurement from "./expressionMeasurement";
2
3
  export * as empathicVoice from "./empathicVoice";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.empathicVoice = exports.expressionMeasurement = void 0;
26
+ exports.empathicVoice = exports.expressionMeasurement = exports.tts = void 0;
27
+ exports.tts = __importStar(require("./tts"));
27
28
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
28
29
  exports.empathicVoice = __importStar(require("./empathicVoice"));
@@ -0,0 +1,69 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /// <reference types="node" />
5
+ import * as environments from "../../../../environments";
6
+ import * as core from "../../../../core";
7
+ import * as Hume from "../../../index";
8
+ import * as stream from "stream";
9
+ import { Voices } from "../resources/voices/client/Client";
10
+ export declare namespace Tts {
11
+ interface Options {
12
+ environment?: core.Supplier<environments.HumeEnvironment | string>;
13
+ apiKey?: core.Supplier<string | undefined>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ }
24
+ }
25
+ export declare class Tts {
26
+ protected readonly _options: Tts.Options;
27
+ constructor(_options?: Tts.Options);
28
+ /**
29
+ * 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.
30
+ *
31
+ * The response includes the base64-encoded audio and metadata in JSON format.
32
+ *
33
+ * @param {Hume.tts.PostedTts} request
34
+ * @param {Tts.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Hume.tts.UnprocessableEntityError}
37
+ *
38
+ * @example
39
+ * await client.tts.synthesizeJson({
40
+ * utterances: [{
41
+ * text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.",
42
+ * description: "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality."
43
+ * }],
44
+ * context: {
45
+ * utterances: [{
46
+ * text: "How can people see beauty so differently?",
47
+ * description: "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question."
48
+ * }]
49
+ * },
50
+ * format: {
51
+ * type: "mp3"
52
+ * },
53
+ * numGenerations: 1
54
+ * })
55
+ */
56
+ synthesizeJson(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<Hume.tts.ReturnTts>;
57
+ /**
58
+ * 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.
59
+ *
60
+ * The response contains the generated audio file in the requested format.
61
+ * @throws {@link Hume.tts.UnprocessableEntityError}
62
+ */
63
+ synthesizeFile(request: Hume.tts.PostedTts, requestOptions?: Tts.RequestOptions): Promise<stream.Readable>;
64
+ protected _voices: Voices | undefined;
65
+ get voices(): Voices;
66
+ protected _getCustomAuthorizationHeaders(): Promise<{
67
+ "X-Hume-Api-Key": string | undefined;
68
+ }>;
69
+ }