hume 0.15.4 → 0.15.5

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 (278) hide show
  1. package/dist/cjs/Client.d.ts +2 -2
  2. package/dist/cjs/Client.js +6 -6
  3. package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +8 -8
  4. package/dist/cjs/api/resources/empathicVoice/client/Client.js +8 -8
  5. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -11
  7. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +92 -92
  8. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +18 -18
  9. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -16
  10. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +2 -2
  11. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +9 -4
  12. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  13. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -2
  14. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +6 -6
  15. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -4
  16. package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +24 -1
  17. package/dist/cjs/api/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
  18. package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +31 -1
  19. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +2 -2
  20. package/dist/cjs/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -2
  21. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -2
  22. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +2 -2
  23. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -0
  24. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +1 -0
  25. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -2
  26. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -4
  27. package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +11 -11
  28. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +10 -10
  29. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +16 -16
  30. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +6 -6
  31. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +6 -6
  32. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +8 -8
  33. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +4 -4
  34. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +27 -27
  35. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +20 -41
  36. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -2
  37. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -4
  38. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -4
  39. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -2
  40. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -2
  41. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -2
  42. package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +12 -23
  43. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -2
  44. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +20 -20
  45. package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  46. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -0
  47. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -0
  48. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -2
  49. package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +34 -1
  50. package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -7
  51. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +1 -1
  52. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +7 -2
  53. package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
  54. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +7 -2
  55. package/dist/cjs/api/resources/tts/types/ErrorResponse.d.ts +1 -1
  56. package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +1 -1
  57. package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +1 -1
  58. package/dist/cjs/api/resources/tts/types/Snippet.d.ts +1 -1
  59. package/dist/cjs/api/resources/tts/types/Timestamp.d.ts +2 -0
  60. package/dist/cjs/core/websocket/ws.js +3 -2
  61. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -8
  62. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -8
  63. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -8
  64. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -8
  65. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  66. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +1 -1
  67. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  68. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +1 -1
  69. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +3 -3
  70. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +3 -3
  71. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +2 -2
  72. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +2 -2
  73. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
  74. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.js +1 -1
  75. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  76. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +1 -1
  77. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +1 -1
  78. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +1 -1
  79. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -1
  80. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +1 -1
  81. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +1 -1
  82. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +1 -1
  83. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
  84. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +1 -1
  85. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +1 -1
  86. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +1 -1
  87. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -2
  88. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -2
  89. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
  90. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.js +4 -4
  91. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +3 -3
  92. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +3 -3
  93. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -5
  94. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.js +5 -5
  95. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +3 -3
  96. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.js +3 -3
  97. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +3 -3
  98. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +3 -3
  99. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -4
  100. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +4 -4
  101. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -2
  102. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -2
  103. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +5 -5
  104. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -5
  105. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +12 -12
  106. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.js +12 -12
  107. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -1
  108. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +1 -1
  109. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -2
  110. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -2
  111. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -2
  112. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -2
  113. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -1
  114. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -1
  115. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -1
  116. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -1
  117. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -1
  118. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -1
  119. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +4 -5
  120. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +4 -5
  121. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +1 -1
  122. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +1 -1
  123. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +8 -8
  124. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +8 -8
  125. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  126. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
  127. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
  128. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -1
  129. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +1 -1
  130. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +1 -1
  131. package/dist/cjs/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -1
  132. package/dist/cjs/serialization/resources/empathicVoice/types/ToolCallMessage.js +1 -1
  133. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.d.ts +1 -1
  134. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.js +1 -1
  135. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +1 -1
  136. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +1 -1
  137. package/dist/cjs/version.d.ts +1 -1
  138. package/dist/cjs/version.js +1 -1
  139. package/dist/esm/Client.d.mts +2 -2
  140. package/dist/esm/Client.mjs +6 -6
  141. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +8 -8
  142. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +8 -8
  143. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  144. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -11
  145. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +92 -92
  146. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +18 -18
  147. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +16 -16
  148. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +2 -2
  149. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +9 -4
  150. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -2
  151. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -2
  152. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +6 -6
  153. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -4
  154. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +24 -1
  155. package/dist/esm/api/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  156. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +31 -1
  157. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +2 -2
  158. package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -2
  159. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +2 -2
  160. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +2 -2
  161. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -0
  162. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -0
  163. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -2
  164. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +4 -4
  165. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +11 -11
  166. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +10 -10
  167. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +16 -16
  168. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +6 -6
  169. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +6 -6
  170. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +8 -8
  171. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +4 -4
  172. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +27 -27
  173. package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +20 -41
  174. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +2 -2
  175. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +4 -4
  176. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +4 -4
  177. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -2
  178. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -2
  179. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -2
  180. package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +12 -23
  181. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -2
  182. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +20 -20
  183. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  184. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -0
  185. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -0
  186. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -2
  187. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +34 -1
  188. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -7
  189. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +1 -1
  190. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +7 -2
  191. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
  192. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +7 -2
  193. package/dist/esm/api/resources/tts/types/ErrorResponse.d.mts +1 -1
  194. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +1 -1
  195. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +1 -1
  196. package/dist/esm/api/resources/tts/types/Snippet.d.mts +1 -1
  197. package/dist/esm/api/resources/tts/types/Timestamp.d.mts +2 -0
  198. package/dist/esm/core/websocket/ws.mjs +3 -2
  199. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +8 -8
  200. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.mjs +8 -8
  201. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +8 -8
  202. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.mjs +8 -8
  203. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +1 -1
  204. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +1 -1
  205. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +1 -1
  206. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +1 -1
  207. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +3 -3
  208. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.mjs +3 -3
  209. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +2 -2
  210. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.mjs +2 -2
  211. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  212. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.mjs +1 -1
  213. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
  214. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.mjs +1 -1
  215. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +1 -1
  216. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +1 -1
  217. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -1
  218. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.mjs +1 -1
  219. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +1 -1
  220. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.mjs +1 -1
  221. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -1
  222. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -1
  223. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.mts +1 -1
  224. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.mjs +1 -1
  225. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +2 -2
  226. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.mjs +2 -2
  227. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
  228. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.mjs +4 -4
  229. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +3 -3
  230. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.mjs +3 -3
  231. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -5
  232. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.mjs +5 -5
  233. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.d.mts +3 -3
  234. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.mjs +3 -3
  235. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +3 -3
  236. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.mjs +3 -3
  237. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +4 -4
  238. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.mjs +4 -4
  239. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +2 -2
  240. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.mjs +2 -2
  241. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +5 -5
  242. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.mjs +5 -5
  243. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.d.mts +12 -12
  244. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.mjs +12 -12
  245. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -1
  246. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.mjs +1 -1
  247. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -2
  248. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.mjs +2 -2
  249. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -2
  250. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.mjs +2 -2
  251. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +1 -1
  252. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.mjs +1 -1
  253. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +1 -1
  254. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.mjs +1 -1
  255. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +1 -1
  256. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.mjs +1 -1
  257. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +4 -5
  258. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +4 -5
  259. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +1 -1
  260. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.mjs +1 -1
  261. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +8 -8
  262. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.mjs +8 -8
  263. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  264. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +1 -1
  265. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -1
  266. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -1
  267. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +1 -1
  268. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.mjs +1 -1
  269. package/dist/esm/serialization/resources/empathicVoice/types/ToolCallMessage.d.mts +1 -1
  270. package/dist/esm/serialization/resources/empathicVoice/types/ToolCallMessage.mjs +1 -1
  271. package/dist/esm/serialization/resources/tts/types/ErrorResponse.d.mts +1 -1
  272. package/dist/esm/serialization/resources/tts/types/ErrorResponse.mjs +1 -1
  273. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +1 -1
  274. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +1 -1
  275. package/dist/esm/version.d.mts +1 -1
  276. package/dist/esm/version.mjs +1 -1
  277. package/package.json +1 -1
  278. package/reference.md +740 -740
@@ -3,6 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A paginated list of chat events that occurred across chats in this chat_group from the server
4
4
  */
5
5
  export interface ReturnChatGroupPagedEvents {
6
+ /** List of Chat Events for the specified `page_number` and `page_size`. */
7
+ eventsPage: Hume.empathicVoice.ReturnChatEvent[];
6
8
  /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
7
9
  id: string;
8
10
  /**
@@ -17,14 +19,12 @@ export interface ReturnChatGroupPagedEvents {
17
19
  * This value corresponds to the `page_size` parameter specified in the request.
18
20
  */
19
21
  pageSize: number;
20
- /** The total number of pages in the collection. */
21
- totalPages: number;
22
22
  /**
23
23
  * Indicates the order in which the paginated results are presented, based on their creation date.
24
24
  *
25
25
  * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
26
26
  */
27
27
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection;
28
- /** List of Chat Events for the specified `page_number` and `page_size`. */
29
- eventsPage: Hume.empathicVoice.ReturnChatEvent[];
28
+ /** The total number of pages in the collection. */
29
+ totalPages: number;
30
30
  }
@@ -3,38 +3,15 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A description of chat status with a paginated list of chat events returned from the server
4
4
  */
5
5
  export interface ReturnChatPagedEvents {
6
- /** Identifier for a Chat. Formatted as a UUID. */
7
- id: string;
8
6
  /** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
9
7
  chatGroupId: string;
10
- /**
11
- * Indicates the current state of the chat. There are six possible statuses:
12
- *
13
- * - `ACTIVE`: The chat is currently active and ongoing.
14
- *
15
- * - `USER_ENDED`: The chat was manually ended by the user.
16
- *
17
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
18
- *
19
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
20
- *
21
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
22
- *
23
- * - `ERROR`: The chat ended unexpectedly due to an error.
24
- */
25
- status: Hume.empathicVoice.ReturnChatPagedEventsStatus;
26
- /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
27
- startTimestamp: number;
8
+ config?: Hume.empathicVoice.ReturnConfigSpec;
28
9
  /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
29
10
  endTimestamp?: number;
30
- /**
31
- * Indicates the order in which the paginated results are presented, based on their creation date.
32
- *
33
- * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
34
- */
35
- paginationDirection: Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection;
36
11
  /** List of Chat Events for the specified `page_number` and `page_size`. */
37
12
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
13
+ /** Identifier for a Chat. Formatted as a UUID. */
14
+ id: string;
38
15
  /** Stringified JSON with additional metadata about the chat. */
39
16
  metadata?: string;
40
17
  /**
@@ -49,7 +26,30 @@ export interface ReturnChatPagedEvents {
49
26
  * This value corresponds to the `page_size` parameter specified in the request.
50
27
  */
51
28
  pageSize: number;
29
+ /**
30
+ * Indicates the order in which the paginated results are presented, based on their creation date.
31
+ *
32
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
33
+ */
34
+ paginationDirection: Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection;
35
+ /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
36
+ startTimestamp: number;
37
+ /**
38
+ * Indicates the current state of the chat. There are six possible statuses:
39
+ *
40
+ * - `ACTIVE`: The chat is currently active and ongoing.
41
+ *
42
+ * - `USER_ENDED`: The chat was manually ended by the user.
43
+ *
44
+ * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
45
+ *
46
+ * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
47
+ *
48
+ * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
49
+ *
50
+ * - `ERROR`: The chat ended unexpectedly due to an error.
51
+ */
52
+ status: Hume.empathicVoice.ReturnChatPagedEventsStatus;
52
53
  /** The total number of pages in the collection. */
53
54
  totalPages: number;
54
- config?: Hume.empathicVoice.ReturnConfigSpec;
55
55
  }
@@ -3,52 +3,31 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A specific config version returned from the server
4
4
  */
5
5
  export interface ReturnConfig {
6
- /** Name applied to all versions of a particular Config. */
7
- name?: string;
6
+ /** List of built-in tools associated with this config */
7
+ builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
8
+ /** The timestamp when the first version of this config was created. */
9
+ createdOn?: number;
10
+ ellmModel?: Hume.empathicVoice.ReturnEllmModel;
11
+ eventMessages?: Hume.empathicVoice.ReturnEventMessageSpecs;
12
+ /** The version of the EVI used with this config. */
13
+ eviVersion?: string;
8
14
  /** Identifier for a Config. Formatted as a UUID. */
9
15
  id?: string;
10
- /**
11
- * Version number for a Config.
12
- *
13
- * Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
14
- *
15
- * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
16
- */
17
- version?: number;
18
- /**
19
- * The supplemental language model associated with this Config.
20
- *
21
- * This model is used to generate longer, more detailed responses from EVI. Choosing an appropriate supplemental language model for your use case is crucial for generating fast, high-quality responses from EVI.
22
- */
23
16
  languageModel?: Hume.empathicVoice.ReturnLanguageModel;
24
- /** List of built-in tools associated with this Config. */
25
- builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
26
- /**
27
- * Specifies the EVI version to use. See our [EVI Version Guide](/docs/speech-to-speech-evi/configuration/evi-version) for differences between versions.
28
- *
29
- * **We're officially sunsetting EVI versions 1 and 2 on August 30, 2025**. To keep things running smoothly, be sure to [migrate to EVI 3](/docs/speech-to-speech-evi/configuration/evi-version#migrating-to-evi-3) before then.
30
- */
31
- eviVersion?: string;
32
- timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
17
+ /** The timestamp when this version of the config was created. */
18
+ modifiedOn?: number;
19
+ /** Name applied to all versions of a particular Config. */
20
+ name?: string;
33
21
  nudges?: Hume.empathicVoice.ReturnNudgeSpec;
34
- eventMessages?: Hume.empathicVoice.ReturnEventMessageSpecs;
35
- /**
36
- * The eLLM setup associated with this Config.
37
- *
38
- * Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
39
- */
40
- ellmModel?: Hume.empathicVoice.ReturnEllmModel;
41
- /** A voice specification associated with this Config. */
42
- voice?: Hume.empathicVoice.ReturnVoice;
43
22
  prompt?: Hume.empathicVoice.ReturnPrompt;
23
+ timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
24
+ /** List of user-defined tools associated with this config. */
25
+ tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
26
+ /** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
27
+ version?: number;
28
+ /** Description that is appended to a specific version of a Config. */
29
+ versionDescription?: string;
30
+ voice?: Hume.empathicVoice.ReturnVoice;
44
31
  /** Map of webhooks associated with this config. */
45
32
  webhooks?: (Hume.empathicVoice.ReturnWebhookSpec | undefined)[];
46
- /** Time at which the Config was created. Measured in seconds since the Unix epoch. */
47
- createdOn?: number;
48
- /** Time at which the Config was last modified. Measured in seconds since the Unix epoch. */
49
- modifiedOn?: number;
50
- /** An optional description of the Config version. */
51
- versionDescription?: string;
52
- /** List of user-defined tools associated with this Config. */
53
- tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
54
33
  }
@@ -5,8 +5,6 @@ import type * as Hume from "../../../index.mjs";
5
5
  * Event messages are sent by the server when specific events occur during a chat session. These messages are used to configure behaviors for EVI, such as controlling how EVI starts a new conversation.
6
6
  */
7
7
  export interface ReturnEventMessageSpecs {
8
- /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
9
- onNewChat?: Hume.empathicVoice.ReturnEventMessageSpec;
10
8
  /**
11
9
  * Specifies the message EVI provides when the chat is about to be disconnected due to a user inactivity timeout, such as a message mentioning a lack of user input for a period of time.
12
10
  *
@@ -19,4 +17,6 @@ export interface ReturnEventMessageSpecs {
19
17
  onInactivityTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
20
18
  /** Specifies the message EVI provides when the chat is disconnected due to reaching the maximum chat duration, such as a message mentioning the time limit for the chat has been reached. */
21
19
  onMaxDurationTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
20
+ /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
21
+ onNewChat?: Hume.empathicVoice.ReturnEventMessageSpec;
22
22
  }
@@ -3,6 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A paginated list of chat_groups returned from the server
4
4
  */
5
5
  export interface ReturnPagedChatGroups {
6
+ /** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
7
+ chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
6
8
  /**
7
9
  * The page number of the returned list.
8
10
  *
@@ -15,14 +17,12 @@ export interface ReturnPagedChatGroups {
15
17
  * This value corresponds to the `page_size` parameter specified in the request.
16
18
  */
17
19
  pageSize: number;
18
- /** The total number of pages in the collection. */
19
- totalPages: number;
20
20
  /**
21
21
  * Indicates the order in which the paginated results are presented, based on their creation date.
22
22
  *
23
23
  * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
24
24
  */
25
25
  paginationDirection: Hume.empathicVoice.ReturnPagedChatGroupsPaginationDirection;
26
- /** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
27
- chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
26
+ /** The total number of pages in the collection. */
27
+ totalPages: number;
28
28
  }
@@ -3,6 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A paginated list of chats returned from the server
4
4
  */
5
5
  export interface ReturnPagedChats {
6
+ /** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
7
+ chatsPage: Hume.empathicVoice.ReturnChat[];
6
8
  /**
7
9
  * The page number of the returned list.
8
10
  *
@@ -15,14 +17,12 @@ export interface ReturnPagedChats {
15
17
  * This value corresponds to the `page_size` parameter specified in the request.
16
18
  */
17
19
  pageSize: number;
18
- /** The total number of pages in the collection. */
19
- totalPages: number;
20
20
  /**
21
21
  * Indicates the order in which the paginated results are presented, based on their creation date.
22
22
  *
23
23
  * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
24
24
  */
25
25
  paginationDirection: Hume.empathicVoice.ReturnPagedChatsPaginationDirection;
26
- /** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
27
- chatsPage: Hume.empathicVoice.ReturnChat[];
26
+ /** The total number of pages in the collection. */
27
+ totalPages: number;
28
28
  }
@@ -3,6 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A paginated list of config versions returned from the server
4
4
  */
5
5
  export interface ReturnPagedConfigs {
6
+ /** List of configs returned for the specified `page_number` and `page_size`. */
7
+ configsPage?: Hume.empathicVoice.ReturnConfig[];
6
8
  /**
7
9
  * The page number of the returned list.
8
10
  *
@@ -17,6 +19,4 @@ export interface ReturnPagedConfigs {
17
19
  pageSize?: number;
18
20
  /** The total number of pages in the collection. */
19
21
  totalPages: number;
20
- /** List of configs returned for the specified `page_number` and `page_size`. */
21
- configsPage?: Hume.empathicVoice.ReturnConfig[];
22
22
  }
@@ -15,8 +15,8 @@ export interface ReturnPagedPrompts {
15
15
  * This value corresponds to the `page_size` parameter specified in the request.
16
16
  */
17
17
  pageSize: number;
18
- /** The total number of pages in the collection. */
19
- totalPages: number;
20
18
  /** List of prompts returned for the specified `page_number` and `page_size`. */
21
19
  promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
20
+ /** The total number of pages in the collection. */
21
+ totalPages: number;
22
22
  }
@@ -15,8 +15,8 @@ export interface ReturnPagedUserDefinedTools {
15
15
  * This value corresponds to the `page_size` parameter specified in the request.
16
16
  */
17
17
  pageSize: number;
18
- /** The total number of pages in the collection. */
19
- totalPages: number;
20
18
  /** List of tools returned for the specified `page_number` and `page_size`. */
21
19
  toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
20
+ /** The total number of pages in the collection. */
21
+ totalPages: number;
22
22
  }
@@ -1,32 +1,21 @@
1
- import type * as Hume from "../../../index.mjs";
2
1
  /**
3
- * A Prompt associated with this Config.
2
+ * A specific prompt version returned from the server
4
3
  */
5
4
  export interface ReturnPrompt {
6
- /** Name applied to all versions of a particular Prompt. */
7
- name: string;
5
+ /** The timestamp when the first version of this prompt was created. */
6
+ createdOn: number;
8
7
  /** Identifier for a Prompt. Formatted as a UUID. */
9
8
  id: string;
10
- /**
11
- * Instructions used to shape EVI's behavior, responses, and style.
12
- *
13
- * 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. For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
14
- */
9
+ /** The timestamp when this version of the prompt was created. */
10
+ modifiedOn: number;
11
+ /** Name applied to all versions of a particular Prompt. */
12
+ name: string;
13
+ /** Text used for this version of the Prompt. */
15
14
  text: string;
16
- /**
17
- * Version number for a Prompt.
18
- *
19
- * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
20
- *
21
- * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
22
- */
15
+ /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
23
16
  version: number;
24
- /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
25
- versionType: Hume.empathicVoice.ReturnPromptVersionType;
26
- /** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
27
- createdOn: number;
28
- /** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
29
- modifiedOn: number;
30
- /** An optional description of the Prompt version. */
17
+ /** Description that is appended to a specific version of a Prompt. */
31
18
  versionDescription?: string;
19
+ /** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
20
+ versionType: string;
32
21
  }
@@ -2,12 +2,12 @@
2
2
  * A specific timeout configuration to be returned from the server
3
3
  */
4
4
  export interface ReturnTimeoutSpec {
5
+ /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
6
+ durationSecs?: number;
5
7
  /**
6
8
  * Boolean indicating if this timeout is enabled.
7
9
  *
8
10
  * If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
9
11
  */
10
12
  enabled: boolean;
11
- /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
12
- durationSecs?: number;
13
13
  }
@@ -3,10 +3,26 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A specific tool version returned from the server
4
4
  */
5
5
  export interface ReturnUserDefinedTool {
6
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
7
- toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
6
+ /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
7
+ createdOn: number;
8
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
9
+ description?: string;
10
+ /** 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. */
11
+ fallbackContent?: string;
8
12
  /** Identifier for a Tool. Formatted as a UUID. */
9
13
  id: string;
14
+ /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
15
+ modifiedOn: number;
16
+ /** Name applied to all versions of a particular Tool. */
17
+ name: string;
18
+ /**
19
+ * Stringified JSON defining the parameters used by this version of the Tool.
20
+ *
21
+ * These parameters define the inputs needed for the Tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
22
+ */
23
+ parameters: string;
24
+ /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
25
+ toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
10
26
  /**
11
27
  * Version number for a Tool.
12
28
  *
@@ -15,24 +31,8 @@ export interface ReturnUserDefinedTool {
15
31
  * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
16
32
  */
17
33
  version: number;
18
- /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
19
- versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
20
34
  /** An optional description of the Tool version. */
21
35
  versionDescription?: string;
22
- /** Name applied to all versions of a particular Tool. */
23
- name: string;
24
- /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
25
- createdOn: number;
26
- /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
27
- modifiedOn: number;
28
- /** 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. */
29
- fallbackContent?: string;
30
- /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
31
- description?: string;
32
- /**
33
- * Stringified JSON defining the parameters used by this version of the Tool.
34
- *
35
- * These parameters define the inputs needed for the Tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
36
- */
37
- parameters: string;
36
+ /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
37
+ versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
38
38
  }
@@ -3,8 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * An Octave voice available for text-to-speech
4
4
  */
5
5
  export interface ReturnVoice {
6
+ compatibleOctaveModels?: string[];
6
7
  id?: string;
7
8
  name?: string;
8
9
  provider?: Hume.empathicVoice.VoiceProvider;
9
- compatibleOctaveModels?: string[];
10
10
  }
@@ -2,5 +2,6 @@
2
2
  export declare const ReturnWebhookEventType: {
3
3
  readonly ChatStarted: "chat_started";
4
4
  readonly ChatEnded: "chat_ended";
5
+ readonly ToolCall: "tool_call";
5
6
  };
6
7
  export type ReturnWebhookEventType = (typeof ReturnWebhookEventType)[keyof typeof ReturnWebhookEventType];
@@ -3,4 +3,5 @@
3
3
  export const ReturnWebhookEventType = {
4
4
  ChatStarted: "chat_started",
5
5
  ChatEnded: "chat_ended",
6
+ ToolCall: "tool_call",
6
7
  };
@@ -3,12 +3,12 @@ import type * as Hume from "../../../index.mjs";
3
3
  * Collection of webhook URL endpoints to be returned from the server
4
4
  */
5
5
  export interface ReturnWebhookSpec {
6
- /** 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. */
7
- url: string;
8
6
  /**
9
7
  * The list of events the specified URL is subscribed to.
10
8
  *
11
9
  * See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
12
10
  */
13
11
  events: Hume.empathicVoice.ReturnWebhookEventType[];
12
+ /** 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. */
13
+ url: string;
14
14
  }
@@ -1,2 +1,35 @@
1
1
  import type * as Hume from "../../../index.mjs";
2
- export type SubscribeEvent = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AssistantProsody | Hume.empathicVoice.AudioOutput | Hume.empathicVoice.ChatMetadata | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage;
2
+ export type SubscribeEvent =
3
+ /**
4
+ * When provided, the output is an assistant end message. */
5
+ Hume.empathicVoice.AssistantEnd
6
+ /**
7
+ * When provided, the output is an assistant message. */
8
+ | Hume.empathicVoice.AssistantMessage
9
+ /**
10
+ * When provided, the output is an Assistant Prosody message. */
11
+ | Hume.empathicVoice.AssistantProsody
12
+ /**
13
+ * The type of message sent through the socket; for an Audio Output message, this must be `audio_output`. */
14
+ | Hume.empathicVoice.AudioOutput
15
+ /**
16
+ * When provided, the output is a chat metadata message. */
17
+ | Hume.empathicVoice.ChatMetadata
18
+ /**
19
+ * When provided, the output is an error message. */
20
+ | Hume.empathicVoice.WebSocketError
21
+ /**
22
+ * When provided, the output is an interruption. */
23
+ | Hume.empathicVoice.UserInterruption
24
+ /**
25
+ * When provided, the output is a user message. */
26
+ | Hume.empathicVoice.UserMessage
27
+ /**
28
+ * When provided, the output is a tool call. */
29
+ | Hume.empathicVoice.ToolCallMessage
30
+ /**
31
+ * When provided, the output is a function call response. */
32
+ | Hume.empathicVoice.ToolResponseMessage
33
+ /**
34
+ * When provided, the output is a function call error. */
35
+ | Hume.empathicVoice.ToolErrorMessage;
@@ -7,13 +7,9 @@ export interface ToolCallMessage {
7
7
  customSessionId?: string;
8
8
  /** Name of the tool called. */
9
9
  name: string;
10
- /**
11
- * Parameters of the tool.
12
- *
13
- * These parameters define the inputs needed for the tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
14
- */
10
+ /** Parameters of the tool call. Is a stringified JSON schema. */
15
11
  parameters: string;
16
- /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
12
+ /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type). */
17
13
  responseRequired: boolean;
18
14
  /**
19
15
  * The unique identifier for a specific tool call instance.
@@ -28,5 +24,5 @@ export interface ToolCallMessage {
28
24
  *
29
25
  * This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
30
26
  */
31
- type: "tool_call";
27
+ type?: "tool_call";
32
28
  }
@@ -26,5 +26,5 @@ export declare class StreamInput {
26
26
  protected readonly _options: StreamInput.Options;
27
27
  constructor(_options?: StreamInput.Options);
28
28
  connect(args?: StreamInput.ConnectArgs): Promise<StreamInputSocket>;
29
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
29
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
30
30
  }
@@ -76,8 +76,13 @@ export class StreamInput {
76
76
  }
77
77
  _getCustomAuthorizationHeaders() {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
80
- return { "X-Hume-Api-Key": apiKeyValue };
79
+ var _a;
80
+ const apiKeyValue = core.Supplier.get(this._options.apiKey);
81
+ // This `authHeaderValue` is manually added as if you don't provide it it will
82
+ // be omitted from the headers which means it won't reach the logic in ws.ts that
83
+ // extracts values from the headers and adds them to query parameters.
84
+ const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
85
+ return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
81
86
  });
82
87
  }
83
88
  }
@@ -57,5 +57,5 @@ export declare class Voices {
57
57
  */
58
58
  delete(request: Hume.tts.VoicesDeleteRequest, requestOptions?: Voices.RequestOptions): core.HttpResponsePromise<void>;
59
59
  private __delete;
60
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
60
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
61
61
  }
@@ -284,8 +284,13 @@ export class Voices {
284
284
  }
285
285
  _getCustomAuthorizationHeaders() {
286
286
  return __awaiter(this, void 0, void 0, function* () {
287
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
288
- return { "X-Hume-Api-Key": apiKeyValue };
287
+ var _a;
288
+ const apiKeyValue = core.Supplier.get(this._options.apiKey);
289
+ // This `authHeaderValue` is manually added as if you don't provide it it will
290
+ // be omitted from the headers which means it won't reach the logic in ws.ts that
291
+ // extracts values from the headers and adds them to query parameters.
292
+ const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
293
+ return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
289
294
  });
290
295
  }
291
296
  }
@@ -1,5 +1,5 @@
1
1
  export interface ErrorResponse {
2
+ code?: string;
2
3
  error?: string;
3
4
  message?: string;
4
- code?: string;
5
5
  }
@@ -4,7 +4,7 @@ export interface PostedTts {
4
4
  context?: Hume.tts.PostedContext;
5
5
  /** Specifies the output audio file format. */
6
6
  format?: Hume.tts.Format;
7
- /** The set of timestamp types to include in the response. */
7
+ /** The set of timestamp types to include in the response. Only supported for Octave 2 requests. */
8
8
  includeTimestampTypes?: Hume.tts.TimestampType[];
9
9
  /**
10
10
  * Number of audio generations to produce from the input utterances.
@@ -3,6 +3,7 @@ import type * as Hume from "../../../index.mjs";
3
3
  * An Octave voice available for text-to-speech
4
4
  */
5
5
  export interface ReturnVoice {
6
+ compatibleOctaveModels?: string[];
6
7
  /** ID of the voice in the `Voice Library`. */
7
8
  id?: string;
8
9
  /** Name of the voice in the `Voice Library`. */
@@ -13,5 +14,4 @@ export interface ReturnVoice {
13
14
  * Voices created through this endpoint will always have the provider set to `CUSTOM_VOICE`, indicating a custom voice stored in your account.
14
15
  */
15
16
  provider?: Hume.tts.VoiceProvider;
16
- compatibleOctaveModels?: string[];
17
17
  }
@@ -8,7 +8,7 @@ export interface Snippet {
8
8
  id: string;
9
9
  /** The text for this **Snippet**. */
10
10
  text: string;
11
- /** A list of word or phoneme level timestamps for the generated audio. */
11
+ /** A list of word or phoneme level timestamps for the generated audio. Timestamps are only returned for Octave 2 requests. */
12
12
  timestamps: Hume.tts.Timestamp[];
13
13
  /** The transcribed text of the generated audio. It is only present if `instant_mode` is set to `false`. */
14
14
  transcribedText?: string;
@@ -1,6 +1,8 @@
1
1
  import type * as Hume from "../../../index.mjs";
2
2
  export interface Timestamp {
3
+ /** The word or phoneme text that the timestamp corresponds to. */
3
4
  text: string;
5
+ /** The start and end timestamps for the word or phoneme in milliseconds. */
4
6
  time: Hume.tts.MillisecondInterval;
5
7
  type: Hume.tts.TimestampType;
6
8
  }
@@ -29,9 +29,10 @@ const DEFAULT_OPTIONS = {
29
29
  debug: false,
30
30
  };
31
31
  function addApiKeyFromHeader({ headers, queryParameters, }) {
32
- const apiKeyValue = headers === null || headers === void 0 ? void 0 : headers["X-Hume-Api-Key"];
32
+ var _a;
33
+ const apiKeyValue = (_a = Object.entries(headers !== null && headers !== void 0 ? headers : {}).find(([k]) => k.toLowerCase() === "x-hume-api-key")) === null || _a === void 0 ? void 0 : _a[1];
33
34
  if (apiKeyValue && !(queryParameters === null || queryParameters === void 0 ? void 0 : queryParameters["api_key"])) {
34
- return Object.assign(Object.assign({}, queryParameters), { apiKey: apiKeyValue });
35
+ return Object.assign(Object.assign({}, queryParameters), { api_key: apiKeyValue });
35
36
  }
36
37
  return queryParameters;
37
38
  }