hume 0.12.2 → 0.13.0

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 (289) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +667 -712
  2. package/.mock/definition/empathic-voice/chat.yml +29 -23
  3. package/.mock/definition/empathic-voice/chatWebhooks.yml +3 -3
  4. package/.mock/definition/tts/__package__.yml +70 -87
  5. package/.mock/fern.config.json +1 -1
  6. package/api/resources/empathicVoice/client/index.d.ts +0 -1
  7. package/api/resources/empathicVoice/client/index.js +0 -15
  8. package/api/resources/empathicVoice/errors/index.d.ts +0 -1
  9. package/api/resources/empathicVoice/errors/index.js +0 -1
  10. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
  11. package/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
  12. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
  13. package/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
  14. package/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
  15. package/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
  16. package/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
  17. package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  18. package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
  19. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
  20. package/api/resources/empathicVoice/types/Context.d.ts +8 -14
  21. package/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
  22. package/api/resources/empathicVoice/types/ContextType.js +1 -2
  23. package/api/resources/empathicVoice/types/LanguageModelType.d.ts +4 -1
  24. package/api/resources/empathicVoice/types/LanguageModelType.js +3 -0
  25. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  26. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  27. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +7 -7
  28. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
  29. package/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
  30. package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  31. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
  32. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
  33. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
  34. package/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
  35. package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
  36. package/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
  37. package/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
  38. package/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
  39. package/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
  40. package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
  41. package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
  42. package/api/resources/empathicVoice/types/index.d.ts +16 -17
  43. package/api/resources/empathicVoice/types/index.js +16 -17
  44. package/api/resources/tts/client/Client.d.ts +21 -23
  45. package/api/resources/tts/client/Client.js +50 -58
  46. package/api/resources/tts/client/index.d.ts +0 -1
  47. package/api/resources/tts/client/index.js +0 -15
  48. package/api/resources/tts/types/PostedTts.d.ts +8 -8
  49. package/api/resources/tts/types/PostedUtterance.d.ts +6 -6
  50. package/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
  51. package/api/resources/tts/types/ReturnTts.d.ts +1 -1
  52. package/api/resources/tts/types/Snippet.d.ts +6 -6
  53. package/dist/api/resources/empathicVoice/client/index.d.ts +0 -1
  54. package/dist/api/resources/empathicVoice/client/index.js +0 -15
  55. package/dist/api/resources/empathicVoice/errors/index.d.ts +0 -1
  56. package/dist/api/resources/empathicVoice/errors/index.js +0 -1
  57. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
  58. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
  59. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
  60. package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
  61. package/dist/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
  62. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
  63. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
  64. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  65. package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
  66. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
  67. package/dist/api/resources/empathicVoice/types/Context.d.ts +8 -14
  68. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
  69. package/dist/api/resources/empathicVoice/types/ContextType.js +1 -2
  70. package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +4 -1
  71. package/dist/api/resources/empathicVoice/types/LanguageModelType.js +3 -0
  72. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  73. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  74. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +7 -7
  75. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
  76. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
  77. package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  78. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
  79. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
  80. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
  81. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
  82. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
  83. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
  84. package/dist/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
  85. package/dist/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
  86. package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
  87. package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
  88. package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
  89. package/dist/api/resources/empathicVoice/types/index.d.ts +16 -17
  90. package/dist/api/resources/empathicVoice/types/index.js +16 -17
  91. package/dist/api/resources/tts/client/Client.d.ts +21 -23
  92. package/dist/api/resources/tts/client/Client.js +50 -58
  93. package/dist/api/resources/tts/client/index.d.ts +0 -1
  94. package/dist/api/resources/tts/client/index.js +0 -15
  95. package/dist/api/resources/tts/types/PostedTts.d.ts +8 -8
  96. package/dist/api/resources/tts/types/PostedUtterance.d.ts +6 -6
  97. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
  98. package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
  99. package/dist/api/resources/tts/types/Snippet.d.ts +6 -6
  100. package/dist/serialization/resources/empathicVoice/index.d.ts +0 -1
  101. package/dist/serialization/resources/empathicVoice/index.js +0 -1
  102. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  103. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
  104. package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  105. package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
  106. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  107. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
  108. package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
  109. package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
  110. package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
  111. package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
  112. package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  113. package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
  114. package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
  115. package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
  116. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  117. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
  118. package/dist/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
  119. package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
  120. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
  121. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
  122. package/dist/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
  123. package/dist/serialization/resources/empathicVoice/types/Context.js +1 -1
  124. package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
  125. package/dist/serialization/resources/empathicVoice/types/ContextType.js +1 -1
  126. package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
  127. package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +3 -0
  128. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  129. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  130. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  131. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  132. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -8
  133. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -8
  134. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  135. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
  136. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
  137. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
  138. package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  139. package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
  140. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  141. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  142. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
  143. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
  144. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  145. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
  146. package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
  147. package/dist/serialization/resources/empathicVoice/types/UserInput.js +1 -1
  148. package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  149. package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
  150. package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  151. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
  152. package/dist/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
  153. package/dist/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
  154. package/dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
  155. package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
  156. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
  157. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
  158. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
  159. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
  160. package/dist/serialization/resources/empathicVoice/types/index.d.ts +16 -17
  161. package/dist/serialization/resources/empathicVoice/types/index.js +16 -17
  162. package/dist/serialization/resources/tts/types/PostedTts.d.ts +3 -3
  163. package/dist/serialization/resources/tts/types/PostedTts.js +3 -3
  164. package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
  165. package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -2
  166. package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
  167. package/dist/serialization/resources/tts/types/ReturnGeneration.js +3 -3
  168. package/dist/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
  169. package/dist/serialization/resources/tts/types/ReturnTts.js +1 -1
  170. package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -3
  171. package/dist/serialization/resources/tts/types/Snippet.js +3 -3
  172. package/dist/version.d.ts +1 -1
  173. package/dist/version.js +1 -1
  174. package/package.json +1 -1
  175. package/reference.md +24 -78
  176. package/serialization/resources/empathicVoice/index.d.ts +0 -1
  177. package/serialization/resources/empathicVoice/index.js +0 -1
  178. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  179. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
  180. package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  181. package/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
  182. package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  183. package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
  184. package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
  185. package/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
  186. package/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
  187. package/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
  188. package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  189. package/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
  190. package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
  191. package/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
  192. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  193. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
  194. package/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
  195. package/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
  196. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
  197. package/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
  198. package/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
  199. package/serialization/resources/empathicVoice/types/Context.js +1 -1
  200. package/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
  201. package/serialization/resources/empathicVoice/types/ContextType.js +1 -1
  202. package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
  203. package/serialization/resources/empathicVoice/types/LanguageModelType.js +3 -0
  204. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  205. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  206. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  207. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  208. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -8
  209. package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -8
  210. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  211. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
  212. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
  213. package/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
  214. package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  215. package/serialization/resources/empathicVoice/types/Tool.js +3 -3
  216. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  217. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  218. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
  219. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
  220. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  221. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
  222. package/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
  223. package/serialization/resources/empathicVoice/types/UserInput.js +1 -1
  224. package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  225. package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
  226. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  227. package/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
  228. package/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
  229. package/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
  230. package/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
  231. package/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
  232. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
  233. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
  234. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
  235. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
  236. package/serialization/resources/empathicVoice/types/index.d.ts +16 -17
  237. package/serialization/resources/empathicVoice/types/index.js +16 -17
  238. package/serialization/resources/tts/types/PostedTts.d.ts +3 -3
  239. package/serialization/resources/tts/types/PostedTts.js +3 -3
  240. package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
  241. package/serialization/resources/tts/types/PostedUtterance.js +2 -2
  242. package/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
  243. package/serialization/resources/tts/types/ReturnGeneration.js +3 -3
  244. package/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
  245. package/serialization/resources/tts/types/ReturnTts.js +1 -1
  246. package/serialization/resources/tts/types/Snippet.d.ts +3 -3
  247. package/serialization/resources/tts/types/Snippet.js +3 -3
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  251. package/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -5
  252. package/api/resources/empathicVoice/client/requests/index.d.ts +0 -1
  253. package/api/resources/empathicVoice/client/requests/index.js +0 -2
  254. package/api/resources/empathicVoice/errors/UnprocessableEntityError.d.ts +0 -9
  255. package/api/resources/empathicVoice/errors/UnprocessableEntityError.js +0 -52
  256. package/api/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -7
  257. package/api/resources/empathicVoice/types/SupportsToolUse.js +0 -5
  258. package/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
  259. package/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
  260. package/api/resources/tts/client/requests/index.d.ts +0 -1
  261. package/api/resources/tts/client/requests/index.js +0 -2
  262. package/dist/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  263. package/dist/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -5
  264. package/dist/api/resources/empathicVoice/client/requests/index.d.ts +0 -1
  265. package/dist/api/resources/empathicVoice/client/requests/index.js +0 -2
  266. package/dist/api/resources/empathicVoice/errors/UnprocessableEntityError.d.ts +0 -9
  267. package/dist/api/resources/empathicVoice/errors/UnprocessableEntityError.js +0 -52
  268. package/dist/api/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -7
  269. package/dist/api/resources/empathicVoice/types/SupportsToolUse.js +0 -5
  270. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
  271. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
  272. package/dist/api/resources/tts/client/requests/index.d.ts +0 -1
  273. package/dist/api/resources/tts/client/requests/index.js +0 -2
  274. package/dist/serialization/resources/empathicVoice/client/index.d.ts +0 -1
  275. package/dist/serialization/resources/empathicVoice/client/index.js +0 -17
  276. package/dist/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  277. package/dist/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -43
  278. package/dist/serialization/resources/empathicVoice/client/requests/index.d.ts +0 -1
  279. package/dist/serialization/resources/empathicVoice/client/requests/index.js +0 -5
  280. package/dist/serialization/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -13
  281. package/dist/serialization/resources/empathicVoice/types/SupportsToolUse.js +0 -44
  282. package/serialization/resources/empathicVoice/client/index.d.ts +0 -1
  283. package/serialization/resources/empathicVoice/client/index.js +0 -17
  284. package/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  285. package/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -43
  286. package/serialization/resources/empathicVoice/client/requests/index.d.ts +0 -1
  287. package/serialization/resources/empathicVoice/client/requests/index.js +0 -5
  288. package/serialization/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -13
  289. package/serialization/resources/empathicVoice/types/SupportsToolUse.js +0 -44
@@ -4,23 +4,23 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { AudioConfiguration } from "./AudioConfiguration";
8
- import { BuiltinToolConfig } from "./BuiltinToolConfig";
9
7
  import { Context } from "./Context";
8
+ import { AudioConfiguration } from "./AudioConfiguration";
10
9
  import { Tool } from "./Tool";
10
+ import { BuiltinToolConfig } from "./BuiltinToolConfig";
11
11
  import { SessionSettingsVariablesValue } from "./SessionSettingsVariablesValue";
12
12
  export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
13
13
  export declare namespace SessionSettings {
14
14
  interface Raw {
15
- audio?: AudioConfiguration.Raw | null;
16
- builtin_tools?: BuiltinToolConfig.Raw[] | null;
17
- context?: Context.Raw | null;
15
+ type: "session_settings";
18
16
  custom_session_id?: string | null;
19
- language_model_api_key?: string | null;
20
- metadata?: Record<string, unknown> | null;
21
17
  system_prompt?: string | null;
18
+ context?: Context.Raw | null;
19
+ audio?: AudioConfiguration.Raw | null;
20
+ language_model_api_key?: string | null;
22
21
  tools?: Tool.Raw[] | null;
23
- type: "session_settings";
22
+ builtin_tools?: BuiltinToolConfig.Raw[] | null;
23
+ metadata?: Record<string, unknown> | null;
24
24
  variables?: Record<string, SessionSettingsVariablesValue.Raw> | null;
25
25
  }
26
26
  }
@@ -38,20 +38,20 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SessionSettings = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const AudioConfiguration_1 = require("./AudioConfiguration");
42
- const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
43
41
  const Context_1 = require("./Context");
42
+ const AudioConfiguration_1 = require("./AudioConfiguration");
44
43
  const Tool_1 = require("./Tool");
44
+ const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
45
45
  const SessionSettingsVariablesValue_1 = require("./SessionSettingsVariablesValue");
46
46
  exports.SessionSettings = core.serialization.object({
47
- audio: AudioConfiguration_1.AudioConfiguration.optional(),
48
- builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
49
- context: Context_1.Context.optional(),
47
+ type: core.serialization.stringLiteral("session_settings"),
50
48
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
51
- languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
52
- metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
53
49
  systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
50
+ context: Context_1.Context.optional(),
51
+ audio: AudioConfiguration_1.AudioConfiguration.optional(),
52
+ languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
54
53
  tools: core.serialization.list(Tool_1.Tool).optional(),
55
- type: core.serialization.stringLiteral("session_settings"),
54
+ builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
55
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
56
56
  variables: core.serialization.record(core.serialization.string(), SessionSettingsVariablesValue_1.SessionSettingsVariablesValue).optional(),
57
57
  });
@@ -8,10 +8,10 @@ import { ToolType } from "./ToolType";
8
8
  export declare const Tool: core.serialization.ObjectSchema<serializers.empathicVoice.Tool.Raw, Hume.empathicVoice.Tool>;
9
9
  export declare namespace Tool {
10
10
  interface Raw {
11
- description?: string | null;
12
- fallback_content?: string | null;
11
+ type: ToolType.Raw;
13
12
  name: string;
14
13
  parameters: string;
15
- type: ToolType.Raw;
14
+ description?: string | null;
15
+ fallback_content?: string | null;
16
16
  }
17
17
  }
@@ -40,9 +40,9 @@ exports.Tool = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
42
  exports.Tool = core.serialization.object({
43
- description: core.serialization.string().optional(),
44
- fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
43
+ type: ToolType_1.ToolType,
45
44
  name: core.serialization.string(),
46
45
  parameters: core.serialization.string(),
47
- type: ToolType_1.ToolType,
46
+ description: core.serialization.string().optional(),
47
+ fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
48
48
  });
@@ -8,12 +8,12 @@ import { ToolType } from "./ToolType";
8
8
  export declare const ToolCallMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolCallMessage.Raw, Hume.empathicVoice.ToolCallMessage>;
9
9
  export declare namespace ToolCallMessage {
10
10
  interface Raw {
11
- custom_session_id?: string | null;
12
11
  name: string;
13
12
  parameters: string;
14
- response_required: boolean;
15
13
  tool_call_id: string;
16
- tool_type?: ToolType.Raw | null;
17
14
  type: "tool_call";
15
+ custom_session_id?: string | null;
16
+ tool_type?: ToolType.Raw | null;
17
+ response_required: boolean;
18
18
  }
19
19
  }
@@ -40,11 +40,11 @@ exports.ToolCallMessage = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
42
  exports.ToolCallMessage = core.serialization.object({
43
- customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
44
43
  name: core.serialization.string(),
45
44
  parameters: core.serialization.string(),
46
- responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
47
45
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
48
- toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
49
46
  type: core.serialization.stringLiteral("tool_call"),
47
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
48
+ toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
49
+ responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
50
50
  });
@@ -4,18 +4,18 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { ErrorLevel } from "./ErrorLevel";
8
7
  import { ToolType } from "./ToolType";
8
+ import { ErrorLevel } from "./ErrorLevel";
9
9
  export declare const ToolErrorMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolErrorMessage.Raw, Hume.empathicVoice.ToolErrorMessage>;
10
10
  export declare namespace ToolErrorMessage {
11
11
  interface Raw {
12
- code?: string | null;
13
- content?: string | null;
12
+ type: "tool_error";
14
13
  custom_session_id?: string | null;
14
+ tool_type?: ToolType.Raw | null;
15
+ tool_call_id: string;
16
+ content?: string | null;
15
17
  error: string;
18
+ code?: string | null;
16
19
  level?: ErrorLevel.Raw | null;
17
- tool_call_id: string;
18
- tool_type?: ToolType.Raw | null;
19
- type: "tool_error";
20
20
  }
21
21
  }
@@ -38,15 +38,15 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolErrorMessage = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const ErrorLevel_1 = require("./ErrorLevel");
42
41
  const ToolType_1 = require("./ToolType");
42
+ const ErrorLevel_1 = require("./ErrorLevel");
43
43
  exports.ToolErrorMessage = core.serialization.object({
44
- code: core.serialization.string().optional(),
45
- content: core.serialization.string().optional(),
44
+ type: core.serialization.stringLiteral("tool_error"),
46
45
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
46
+ toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
47
+ toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
48
+ content: core.serialization.string().optional(),
47
49
  error: core.serialization.string(),
50
+ code: core.serialization.string().optional(),
48
51
  level: ErrorLevel_1.ErrorLevel.optional(),
49
- toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
50
- toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
51
- type: core.serialization.stringLiteral("tool_error"),
52
52
  });
@@ -8,11 +8,11 @@ import { ToolType } from "./ToolType";
8
8
  export declare const ToolResponseMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolResponseMessage.Raw, Hume.empathicVoice.ToolResponseMessage>;
9
9
  export declare namespace ToolResponseMessage {
10
10
  interface Raw {
11
- content: string;
11
+ type: "tool_response";
12
12
  custom_session_id?: string | null;
13
13
  tool_call_id: string;
14
+ content: string;
14
15
  tool_name?: string | null;
15
16
  tool_type?: ToolType.Raw | null;
16
- type: "tool_response";
17
17
  }
18
18
  }
@@ -40,10 +40,10 @@ exports.ToolResponseMessage = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
42
  exports.ToolResponseMessage = core.serialization.object({
43
- content: core.serialization.string(),
43
+ type: core.serialization.stringLiteral("tool_response"),
44
44
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
45
45
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
46
+ content: core.serialization.string(),
46
47
  toolName: core.serialization.property("tool_name", core.serialization.string().optional()),
47
48
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
48
- type: core.serialization.stringLiteral("tool_response"),
49
49
  });
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
7
7
  export declare const UserInput: core.serialization.ObjectSchema<serializers.empathicVoice.UserInput.Raw, Hume.empathicVoice.UserInput>;
8
8
  export declare namespace UserInput {
9
9
  interface Raw {
10
+ type: "user_input";
10
11
  custom_session_id?: string | null;
11
12
  text: string;
12
- type: "user_input";
13
13
  }
14
14
  }
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.UserInput = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  exports.UserInput = core.serialization.object({
42
+ type: core.serialization.stringLiteral("user_input"),
42
43
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
43
44
  text: core.serialization.string(),
44
- type: core.serialization.stringLiteral("user_input"),
45
45
  });
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
7
7
  export declare const UserInterruption: core.serialization.ObjectSchema<serializers.empathicVoice.UserInterruption.Raw, Hume.empathicVoice.UserInterruption>;
8
8
  export declare namespace UserInterruption {
9
9
  interface Raw {
10
+ type: "user_interruption";
10
11
  custom_session_id?: string | null;
11
12
  time: number;
12
- type: "user_interruption";
13
13
  }
14
14
  }
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.UserInterruption = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  exports.UserInterruption = core.serialization.object({
42
+ type: core.serialization.stringLiteral("user_interruption"),
42
43
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
43
44
  time: core.serialization.number(),
44
- type: core.serialization.stringLiteral("user_interruption"),
45
45
  });
@@ -10,12 +10,12 @@ import { MillisecondInterval } from "./MillisecondInterval";
10
10
  export declare const UserMessage: core.serialization.ObjectSchema<serializers.empathicVoice.UserMessage.Raw, Hume.empathicVoice.UserMessage>;
11
11
  export declare namespace UserMessage {
12
12
  interface Raw {
13
+ type: "user_message";
13
14
  custom_session_id?: string | null;
14
- from_text: boolean;
15
- interim: boolean;
16
15
  message: ChatMessage.Raw;
17
16
  models: Inference.Raw;
18
17
  time: MillisecondInterval.Raw;
19
- type: "user_message";
18
+ from_text: boolean;
19
+ interim: boolean;
20
20
  }
21
21
  }
@@ -42,11 +42,11 @@ const ChatMessage_1 = require("./ChatMessage");
42
42
  const Inference_1 = require("./Inference");
43
43
  const MillisecondInterval_1 = require("./MillisecondInterval");
44
44
  exports.UserMessage = core.serialization.object({
45
+ type: core.serialization.stringLiteral("user_message"),
45
46
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
46
- fromText: core.serialization.property("from_text", core.serialization.boolean()),
47
- interim: core.serialization.boolean(),
48
47
  message: ChatMessage_1.ChatMessage,
49
48
  models: Inference_1.Inference,
50
49
  time: MillisecondInterval_1.MillisecondInterval,
51
- type: core.serialization.stringLiteral("user_message"),
50
+ fromText: core.serialization.property("from_text", core.serialization.boolean()),
51
+ interim: core.serialization.boolean(),
52
52
  });
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const VoiceProvider: core.serialization.Schema<serializers.empathicVoice.VoiceProvider.Raw, Hume.empathicVoice.VoiceProvider>;
8
8
  export declare namespace VoiceProvider {
9
- type Raw = "HUME_AI" | "CUSTOM_VOICE";
9
+ type Raw = "HUME_AI" | "CUSTOM_VOICE" | "OCTAVE_COMBINED";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.VoiceProvider = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- exports.VoiceProvider = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]);
41
+ exports.VoiceProvider = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE", "OCTAVE_COMBINED"]);
@@ -7,11 +7,11 @@ import * as core from "../../../../core";
7
7
  export declare const WebSocketError: core.serialization.ObjectSchema<serializers.empathicVoice.WebSocketError.Raw, Hume.empathicVoice.WebSocketError>;
8
8
  export declare namespace WebSocketError {
9
9
  interface Raw {
10
- code: string;
10
+ type: "error";
11
11
  custom_session_id?: string | null;
12
+ code: string;
13
+ slug: string;
12
14
  message: string;
13
15
  request_id?: string | null;
14
- slug: string;
15
- type: "error";
16
16
  }
17
17
  }
@@ -39,10 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.WebSocketError = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  exports.WebSocketError = core.serialization.object({
42
- code: core.serialization.string(),
42
+ type: core.serialization.stringLiteral("error"),
43
43
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
44
+ code: core.serialization.string(),
45
+ slug: core.serialization.string(),
44
46
  message: core.serialization.string(),
45
47
  requestId: core.serialization.property("request_id", core.serialization.string().optional()),
46
- slug: core.serialization.string(),
47
- type: core.serialization.stringLiteral("error"),
48
48
  });
@@ -9,11 +9,11 @@ import { WebhookEventBase } from "./WebhookEventBase";
9
9
  export declare const WebhookEventChatEnded: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatEnded.Raw, Hume.empathicVoice.WebhookEventChatEnded>;
10
10
  export declare namespace WebhookEventChatEnded {
11
11
  interface Raw extends WebhookEventBase.Raw {
12
- caller_number?: string | null;
13
- custom_session_id?: string | null;
12
+ event_name?: "chat_ended" | null;
13
+ end_time: number;
14
14
  duration_seconds: number;
15
15
  end_reason: WebhookEventChatStatus.Raw;
16
- end_time: number;
17
- event_name?: "chat_ended" | null;
16
+ caller_number?: string | null;
17
+ custom_session_id?: string | null;
18
18
  }
19
19
  }
@@ -42,11 +42,11 @@ const WebhookEventChatStatus_1 = require("./WebhookEventChatStatus");
42
42
  const WebhookEventBase_1 = require("./WebhookEventBase");
43
43
  exports.WebhookEventChatEnded = core.serialization
44
44
  .object({
45
- callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
46
- customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
45
+ eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
46
+ endTime: core.serialization.property("end_time", core.serialization.number()),
47
47
  durationSeconds: core.serialization.property("duration_seconds", core.serialization.number()),
48
48
  endReason: core.serialization.property("end_reason", WebhookEventChatStatus_1.WebhookEventChatStatus),
49
- endTime: core.serialization.property("end_time", core.serialization.number()),
50
- eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
49
+ callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
50
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
51
51
  })
52
52
  .extend(WebhookEventBase_1.WebhookEventBase);
@@ -9,10 +9,10 @@ import { WebhookEventBase } from "./WebhookEventBase";
9
9
  export declare const WebhookEventChatStarted: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatStarted.Raw, Hume.empathicVoice.WebhookEventChatStarted>;
10
10
  export declare namespace WebhookEventChatStarted {
11
11
  interface Raw extends WebhookEventBase.Raw {
12
- caller_number?: string | null;
13
- chat_start_type: WebhookEventChatStartType.Raw;
14
- custom_session_id?: string | null;
15
12
  event_name?: "chat_started" | null;
16
13
  start_time: number;
14
+ chat_start_type: WebhookEventChatStartType.Raw;
15
+ caller_number?: string | null;
16
+ custom_session_id?: string | null;
17
17
  }
18
18
  }
@@ -42,10 +42,10 @@ const WebhookEventChatStartType_1 = require("./WebhookEventChatStartType");
42
42
  const WebhookEventBase_1 = require("./WebhookEventBase");
43
43
  exports.WebhookEventChatStarted = core.serialization
44
44
  .object({
45
- callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
46
- chatStartType: core.serialization.property("chat_start_type", WebhookEventChatStartType_1.WebhookEventChatStartType),
47
- customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
48
45
  eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_started").optional()),
49
46
  startTime: core.serialization.property("start_time", core.serialization.number()),
47
+ chatStartType: core.serialization.property("chat_start_type", WebhookEventChatStartType_1.WebhookEventChatStartType),
48
+ callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
49
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
50
50
  })
51
51
  .extend(WebhookEventBase_1.WebhookEventBase);
@@ -1,50 +1,49 @@
1
- export * from "./AssistantEnd";
2
1
  export * from "./AssistantInput";
3
- export * from "./AssistantMessage";
4
- export * from "./AssistantProsody";
5
2
  export * from "./AudioConfiguration";
6
3
  export * from "./AudioInput";
7
- export * from "./AudioOutput";
8
4
  export * from "./BuiltInTool";
9
5
  export * from "./BuiltinToolConfig";
10
- export * from "./ChatMessageToolResult";
11
- export * from "./ChatMessage";
12
- export * from "./ChatMetadata";
13
6
  export * from "./Context";
14
7
  export * from "./ContextType";
15
- export * from "./EmotionScores";
16
8
  export * from "./Encoding";
17
- export * from "./WebSocketError";
18
9
  export * from "./ErrorLevel";
19
- export * from "./Inference";
20
- export * from "./MillisecondInterval";
21
10
  export * from "./PauseAssistantMessage";
22
- export * from "./ProsodyInference";
23
11
  export * from "./ResumeAssistantMessage";
24
- export * from "./Role";
25
12
  export * from "./SessionSettingsVariablesValue";
26
13
  export * from "./SessionSettings";
27
14
  export * from "./Tool";
28
- export * from "./ToolCallMessage";
29
15
  export * from "./ToolErrorMessage";
30
16
  export * from "./ToolResponseMessage";
31
17
  export * from "./ToolType";
32
18
  export * from "./UserInput";
19
+ export * from "./AssistantEnd";
20
+ export * from "./AssistantMessage";
21
+ export * from "./AssistantProsody";
22
+ export * from "./AudioOutput";
23
+ export * from "./ChatMessageToolResult";
24
+ export * from "./ChatMessage";
25
+ export * from "./ChatMetadata";
26
+ export * from "./EmotionScores";
27
+ export * from "./WebSocketError";
28
+ export * from "./Inference";
29
+ export * from "./MillisecondInterval";
30
+ export * from "./ProsodyInference";
31
+ export * from "./Role";
32
+ export * from "./ToolCallMessage";
33
33
  export * from "./UserInterruption";
34
34
  export * from "./UserMessage";
35
35
  export * from "./JsonMessage";
36
36
  export * from "./HttpValidationError";
37
37
  export * from "./LanguageModelType";
38
38
  export * from "./ModelProviderEnum";
39
- export * from "./SupportsToolUse";
40
39
  export * from "./ValidationErrorLocItem";
41
40
  export * from "./ValidationError";
42
- export * from "./WebhookEventBase";
43
- export * from "./WebhookEvent";
44
41
  export * from "./WebhookEventChatEnded";
45
42
  export * from "./WebhookEventChatStartType";
46
43
  export * from "./WebhookEventChatStarted";
47
44
  export * from "./WebhookEventChatStatus";
45
+ export * from "./WebhookEvent";
46
+ export * from "./WebhookEventBase";
48
47
  export * from "./ErrorResponse";
49
48
  export * from "./ReturnPagedUserDefinedTools";
50
49
  export * from "./ReturnUserDefinedToolToolType";
@@ -14,53 +14,52 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AssistantEnd"), exports);
18
17
  __exportStar(require("./AssistantInput"), exports);
19
- __exportStar(require("./AssistantMessage"), exports);
20
- __exportStar(require("./AssistantProsody"), exports);
21
18
  __exportStar(require("./AudioConfiguration"), exports);
22
19
  __exportStar(require("./AudioInput"), exports);
23
- __exportStar(require("./AudioOutput"), exports);
24
20
  __exportStar(require("./BuiltInTool"), exports);
25
21
  __exportStar(require("./BuiltinToolConfig"), exports);
26
- __exportStar(require("./ChatMessageToolResult"), exports);
27
- __exportStar(require("./ChatMessage"), exports);
28
- __exportStar(require("./ChatMetadata"), exports);
29
22
  __exportStar(require("./Context"), exports);
30
23
  __exportStar(require("./ContextType"), exports);
31
- __exportStar(require("./EmotionScores"), exports);
32
24
  __exportStar(require("./Encoding"), exports);
33
- __exportStar(require("./WebSocketError"), exports);
34
25
  __exportStar(require("./ErrorLevel"), exports);
35
- __exportStar(require("./Inference"), exports);
36
- __exportStar(require("./MillisecondInterval"), exports);
37
26
  __exportStar(require("./PauseAssistantMessage"), exports);
38
- __exportStar(require("./ProsodyInference"), exports);
39
27
  __exportStar(require("./ResumeAssistantMessage"), exports);
40
- __exportStar(require("./Role"), exports);
41
28
  __exportStar(require("./SessionSettingsVariablesValue"), exports);
42
29
  __exportStar(require("./SessionSettings"), exports);
43
30
  __exportStar(require("./Tool"), exports);
44
- __exportStar(require("./ToolCallMessage"), exports);
45
31
  __exportStar(require("./ToolErrorMessage"), exports);
46
32
  __exportStar(require("./ToolResponseMessage"), exports);
47
33
  __exportStar(require("./ToolType"), exports);
48
34
  __exportStar(require("./UserInput"), exports);
35
+ __exportStar(require("./AssistantEnd"), exports);
36
+ __exportStar(require("./AssistantMessage"), exports);
37
+ __exportStar(require("./AssistantProsody"), exports);
38
+ __exportStar(require("./AudioOutput"), exports);
39
+ __exportStar(require("./ChatMessageToolResult"), exports);
40
+ __exportStar(require("./ChatMessage"), exports);
41
+ __exportStar(require("./ChatMetadata"), exports);
42
+ __exportStar(require("./EmotionScores"), exports);
43
+ __exportStar(require("./WebSocketError"), exports);
44
+ __exportStar(require("./Inference"), exports);
45
+ __exportStar(require("./MillisecondInterval"), exports);
46
+ __exportStar(require("./ProsodyInference"), exports);
47
+ __exportStar(require("./Role"), exports);
48
+ __exportStar(require("./ToolCallMessage"), exports);
49
49
  __exportStar(require("./UserInterruption"), exports);
50
50
  __exportStar(require("./UserMessage"), exports);
51
51
  __exportStar(require("./JsonMessage"), exports);
52
52
  __exportStar(require("./HttpValidationError"), exports);
53
53
  __exportStar(require("./LanguageModelType"), exports);
54
54
  __exportStar(require("./ModelProviderEnum"), exports);
55
- __exportStar(require("./SupportsToolUse"), exports);
56
55
  __exportStar(require("./ValidationErrorLocItem"), exports);
57
56
  __exportStar(require("./ValidationError"), exports);
58
- __exportStar(require("./WebhookEventBase"), exports);
59
- __exportStar(require("./WebhookEvent"), exports);
60
57
  __exportStar(require("./WebhookEventChatEnded"), exports);
61
58
  __exportStar(require("./WebhookEventChatStartType"), exports);
62
59
  __exportStar(require("./WebhookEventChatStarted"), exports);
63
60
  __exportStar(require("./WebhookEventChatStatus"), exports);
61
+ __exportStar(require("./WebhookEvent"), exports);
62
+ __exportStar(require("./WebhookEventBase"), exports);
64
63
  __exportStar(require("./ErrorResponse"), exports);
65
64
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
66
65
  __exportStar(require("./ReturnUserDefinedToolToolType"), exports);
@@ -5,17 +5,17 @@ import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { PostedContext } from "./PostedContext";
8
- import { Format } from "./Format";
9
8
  import { PostedUtterance } from "./PostedUtterance";
9
+ import { Format } from "./Format";
10
10
  export declare const PostedTts: core.serialization.ObjectSchema<serializers.tts.PostedTts.Raw, Hume.tts.PostedTts>;
11
11
  export declare namespace PostedTts {
12
12
  interface Raw {
13
13
  context?: PostedContext.Raw | null;
14
- format?: Format.Raw | null;
14
+ utterances: PostedUtterance.Raw[];
15
15
  num_generations?: number | null;
16
+ format?: Format.Raw | null;
16
17
  split_utterances?: boolean | null;
17
18
  strip_headers?: boolean | null;
18
- utterances: PostedUtterance.Raw[];
19
19
  instant_mode?: boolean | null;
20
20
  }
21
21
  }
@@ -39,14 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PostedTts = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const PostedContext_1 = require("./PostedContext");
42
- const Format_1 = require("./Format");
43
42
  const PostedUtterance_1 = require("./PostedUtterance");
43
+ const Format_1 = require("./Format");
44
44
  exports.PostedTts = core.serialization.object({
45
45
  context: PostedContext_1.PostedContext.optional(),
46
- format: Format_1.Format.optional(),
46
+ utterances: core.serialization.list(PostedUtterance_1.PostedUtterance),
47
47
  numGenerations: core.serialization.property("num_generations", core.serialization.number().optional()),
48
+ format: Format_1.Format.optional(),
48
49
  splitUtterances: core.serialization.property("split_utterances", core.serialization.boolean().optional()),
49
50
  stripHeaders: core.serialization.property("strip_headers", core.serialization.boolean().optional()),
50
- utterances: core.serialization.list(PostedUtterance_1.PostedUtterance),
51
51
  instantMode: core.serialization.property("instant_mode", core.serialization.boolean().optional()),
52
52
  });
@@ -8,10 +8,10 @@ import { PostedUtteranceVoice } from "./PostedUtteranceVoice";
8
8
  export declare const PostedUtterance: core.serialization.ObjectSchema<serializers.tts.PostedUtterance.Raw, Hume.tts.PostedUtterance>;
9
9
  export declare namespace PostedUtterance {
10
10
  interface Raw {
11
+ text: string;
11
12
  description?: string | null;
13
+ voice?: PostedUtteranceVoice.Raw | null;
12
14
  speed?: number | null;
13
- text: string;
14
15
  trailing_silence?: number | null;
15
- voice?: PostedUtteranceVoice.Raw | null;
16
16
  }
17
17
  }
@@ -40,9 +40,9 @@ exports.PostedUtterance = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const PostedUtteranceVoice_1 = require("./PostedUtteranceVoice");
42
42
  exports.PostedUtterance = core.serialization.object({
43
+ text: core.serialization.string(),
43
44
  description: core.serialization.string().optional(),
45
+ voice: PostedUtteranceVoice_1.PostedUtteranceVoice.optional(),
44
46
  speed: core.serialization.number().optional(),
45
- text: core.serialization.string(),
46
47
  trailingSilence: core.serialization.property("trailing_silence", core.serialization.number().optional()),
47
- voice: PostedUtteranceVoice_1.PostedUtteranceVoice.optional(),
48
48
  });
@@ -9,11 +9,11 @@ import { Snippet } from "./Snippet";
9
9
  export declare const ReturnGeneration: core.serialization.ObjectSchema<serializers.tts.ReturnGeneration.Raw, Hume.tts.ReturnGeneration>;
10
10
  export declare namespace ReturnGeneration {
11
11
  interface Raw {
12
- audio: string;
12
+ generation_id: string;
13
13
  duration: number;
14
- encoding: AudioEncoding.Raw;
15
14
  file_size: number;
16
- generation_id: string;
15
+ encoding: AudioEncoding.Raw;
16
+ audio: string;
17
17
  snippets: Snippet.Raw[][];
18
18
  }
19
19
  }
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../core"));
41
41
  const AudioEncoding_1 = require("./AudioEncoding");
42
42
  const Snippet_1 = require("./Snippet");
43
43
  exports.ReturnGeneration = core.serialization.object({
44
- audio: core.serialization.string(),
44
+ generationId: core.serialization.property("generation_id", core.serialization.string()),
45
45
  duration: core.serialization.number(),
46
- encoding: AudioEncoding_1.AudioEncoding,
47
46
  fileSize: core.serialization.property("file_size", core.serialization.number()),
48
- generationId: core.serialization.property("generation_id", core.serialization.string()),
47
+ encoding: AudioEncoding_1.AudioEncoding,
48
+ audio: core.serialization.string(),
49
49
  snippets: core.serialization.list(core.serialization.list(Snippet_1.Snippet)),
50
50
  });