hume 0.15.4 → 0.15.6

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 (268) 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/tts/resources/streamInput/client/Client.d.ts +1 -1
  51. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +7 -2
  52. package/dist/cjs/api/resources/tts/types/ErrorResponse.d.ts +1 -1
  53. package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +1 -1
  54. package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +1 -1
  55. package/dist/cjs/api/resources/tts/types/Snippet.d.ts +1 -1
  56. package/dist/cjs/api/resources/tts/types/Timestamp.d.ts +2 -0
  57. package/dist/cjs/core/websocket/ws.js +3 -2
  58. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -8
  59. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -8
  60. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -8
  61. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -8
  62. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  63. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +1 -1
  64. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  65. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +1 -1
  66. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +3 -3
  67. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +3 -3
  68. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +2 -2
  69. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +2 -2
  70. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
  71. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.js +1 -1
  72. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  73. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +1 -1
  74. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +1 -1
  75. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +1 -1
  76. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -1
  77. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +1 -1
  78. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +1 -1
  79. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +1 -1
  80. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
  81. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +1 -1
  82. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +1 -1
  83. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +1 -1
  84. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -2
  85. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -2
  86. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
  87. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.js +4 -4
  88. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +3 -3
  89. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +3 -3
  90. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -5
  91. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.js +5 -5
  92. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +3 -3
  93. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.js +3 -3
  94. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +3 -3
  95. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +3 -3
  96. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -4
  97. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +4 -4
  98. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -2
  99. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -2
  100. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +5 -5
  101. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -5
  102. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +12 -12
  103. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.js +12 -12
  104. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -1
  105. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +1 -1
  106. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -2
  107. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -2
  108. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -2
  109. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -2
  110. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -1
  111. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -1
  112. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -1
  113. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -1
  114. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -1
  115. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -1
  116. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +4 -5
  117. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +4 -5
  118. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +1 -1
  119. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +1 -1
  120. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +8 -8
  121. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +8 -8
  122. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  123. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
  124. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
  125. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -1
  126. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +1 -1
  127. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +1 -1
  128. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.d.ts +1 -1
  129. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.js +1 -1
  130. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +1 -1
  131. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +1 -1
  132. package/dist/cjs/version.d.ts +1 -1
  133. package/dist/cjs/version.js +1 -1
  134. package/dist/esm/Client.d.mts +2 -2
  135. package/dist/esm/Client.mjs +6 -6
  136. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +8 -8
  137. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +8 -8
  138. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  139. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -11
  140. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +92 -92
  141. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +18 -18
  142. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +16 -16
  143. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +2 -2
  144. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +9 -4
  145. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -2
  146. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -2
  147. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +6 -6
  148. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -4
  149. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +24 -1
  150. package/dist/esm/api/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  151. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +31 -1
  152. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +2 -2
  153. package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -2
  154. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +2 -2
  155. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +2 -2
  156. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -0
  157. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -0
  158. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -2
  159. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +4 -4
  160. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +11 -11
  161. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +10 -10
  162. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +16 -16
  163. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +6 -6
  164. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +6 -6
  165. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +8 -8
  166. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +4 -4
  167. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +27 -27
  168. package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +20 -41
  169. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +2 -2
  170. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +4 -4
  171. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +4 -4
  172. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -2
  173. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -2
  174. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -2
  175. package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +12 -23
  176. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -2
  177. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +20 -20
  178. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  179. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -0
  180. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -0
  181. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -2
  182. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +34 -1
  183. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +1 -1
  184. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +7 -2
  185. package/dist/esm/api/resources/tts/types/ErrorResponse.d.mts +1 -1
  186. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +1 -1
  187. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +1 -1
  188. package/dist/esm/api/resources/tts/types/Snippet.d.mts +1 -1
  189. package/dist/esm/api/resources/tts/types/Timestamp.d.mts +2 -0
  190. package/dist/esm/core/websocket/ws.mjs +3 -2
  191. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +8 -8
  192. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.mjs +8 -8
  193. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +8 -8
  194. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.mjs +8 -8
  195. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +1 -1
  196. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +1 -1
  197. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +1 -1
  198. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +1 -1
  199. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +3 -3
  200. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.mjs +3 -3
  201. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +2 -2
  202. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.mjs +2 -2
  203. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  204. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.mjs +1 -1
  205. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
  206. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.mjs +1 -1
  207. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +1 -1
  208. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +1 -1
  209. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -1
  210. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.mjs +1 -1
  211. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +1 -1
  212. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.mjs +1 -1
  213. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -1
  214. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -1
  215. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.mts +1 -1
  216. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.mjs +1 -1
  217. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +2 -2
  218. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.mjs +2 -2
  219. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
  220. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.mjs +4 -4
  221. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +3 -3
  222. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.mjs +3 -3
  223. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -5
  224. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.mjs +5 -5
  225. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.d.mts +3 -3
  226. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.mjs +3 -3
  227. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +3 -3
  228. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.mjs +3 -3
  229. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +4 -4
  230. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.mjs +4 -4
  231. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +2 -2
  232. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.mjs +2 -2
  233. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +5 -5
  234. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.mjs +5 -5
  235. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.d.mts +12 -12
  236. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.mjs +12 -12
  237. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -1
  238. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.mjs +1 -1
  239. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -2
  240. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.mjs +2 -2
  241. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -2
  242. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.mjs +2 -2
  243. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +1 -1
  244. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.mjs +1 -1
  245. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +1 -1
  246. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.mjs +1 -1
  247. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +1 -1
  248. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.mjs +1 -1
  249. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +4 -5
  250. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +4 -5
  251. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +1 -1
  252. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.mjs +1 -1
  253. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +8 -8
  254. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.mjs +8 -8
  255. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  256. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +1 -1
  257. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -1
  258. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -1
  259. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +1 -1
  260. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.mjs +1 -1
  261. package/dist/esm/serialization/resources/tts/types/ErrorResponse.d.mts +1 -1
  262. package/dist/esm/serialization/resources/tts/types/ErrorResponse.mjs +1 -1
  263. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +1 -1
  264. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +1 -1
  265. package/dist/esm/version.d.mts +1 -1
  266. package/dist/esm/version.mjs +1 -1
  267. package/package.json +1 -1
  268. package/reference.md +740 -740
@@ -37,32 +37,32 @@ import type * as Hume from "../../../../../../index.mjs";
37
37
  * }
38
38
  */
39
39
  export interface PostedConfigVersion {
40
+ /** List of built-in tools associated with this Config version. */
41
+ builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
42
+ /**
43
+ * The eLLM setup associated with this Config version.
44
+ *
45
+ * 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.
46
+ */
47
+ ellmModel?: Hume.empathicVoice.PostedEllmModel;
48
+ eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
40
49
  /** The version of the EVI used with this config. */
41
50
  eviVersion: string;
42
- /** An optional description of the Config version. */
43
- versionDescription?: string;
44
- prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
45
- /** A voice specification associated with this Config version. */
46
- voice?: Hume.empathicVoice.VoiceRef;
47
51
  /**
48
52
  * The supplemental language model associated with this Config version.
49
53
  *
50
54
  * 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.
51
55
  */
52
56
  languageModel?: Hume.empathicVoice.PostedLanguageModel;
53
- /**
54
- * The eLLM setup associated with this Config version.
55
- *
56
- * 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.
57
- */
58
- ellmModel?: Hume.empathicVoice.PostedEllmModel;
57
+ nudges?: Hume.empathicVoice.PostedNudgeSpec;
58
+ prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
59
+ timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
59
60
  /** List of user-defined tools associated with this Config version. */
60
61
  tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
61
- /** List of built-in tools associated with this Config version. */
62
- builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
63
- eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
64
- timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
65
- nudges?: Hume.empathicVoice.PostedNudgeSpec;
62
+ /** An optional description of the Config version. */
63
+ versionDescription?: string;
64
+ /** A voice specification associated with this Config version. */
65
+ voice?: Hume.empathicVoice.VoiceRef;
66
66
  /** Webhook config specifications for each subscriber. */
67
67
  webhooks?: (Hume.empathicVoice.PostedWebhookSpec | undefined)[];
68
68
  }
@@ -8,7 +8,7 @@ export declare namespace ControlPlane {
8
8
  interface RequestOptions extends BaseRequestOptions {
9
9
  }
10
10
  interface ConnectArgs {
11
- chatId: string;
11
+ chat_id: string;
12
12
  accessToken?: string | undefined;
13
13
  /** Arbitrary headers to send with the websocket connect request. */
14
14
  headers?: Record<string, string>;
@@ -38,5 +38,5 @@ export declare class ControlPlane {
38
38
  send(chatId: string, request: Hume.empathicVoice.ControlPlanePublishEvent, requestOptions?: ControlPlane.RequestOptions): core.HttpResponsePromise<void>;
39
39
  private __send;
40
40
  connect(args: ControlPlane.ConnectArgs): Promise<ControlPlaneSocket>;
41
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
41
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
42
42
  }
@@ -98,14 +98,14 @@ export class ControlPlane {
98
98
  connect(args) {
99
99
  return __awaiter(this, void 0, void 0, function* () {
100
100
  var _a, _b;
101
- const { chatId, accessToken, headers, debug, reconnectAttempts } = args;
101
+ const { chat_id, accessToken, headers, debug, reconnectAttempts } = args;
102
102
  const _queryParams = {};
103
103
  if (accessToken != null) {
104
104
  _queryParams.access_token = accessToken;
105
105
  }
106
106
  const _headers = mergeHeaders(mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), headers);
107
107
  const socket = new core.ReconnectingWebSocket({
108
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, `/chat/${core.url.encodePathParam(chatId)}/connect`),
108
+ url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, `/chat/${core.url.encodePathParam(chat_id)}/connect`),
109
109
  protocols: [],
110
110
  queryParameters: _queryParams,
111
111
  headers: _headers,
@@ -116,8 +116,13 @@ export class ControlPlane {
116
116
  }
117
117
  _getCustomAuthorizationHeaders() {
118
118
  return __awaiter(this, void 0, void 0, function* () {
119
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
120
- return { "X-Hume-Api-Key": apiKeyValue };
119
+ var _a;
120
+ const apiKeyValue = core.Supplier.get(this._options.apiKey);
121
+ // This `authHeaderValue` is manually added as if you don't provide it it will
122
+ // be omitted from the headers which means it won't reach the logic in ws.ts that
123
+ // extracts values from the headers and adds them to query parameters.
124
+ const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
125
+ return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
121
126
  });
122
127
  }
123
128
  }
@@ -8,8 +8,6 @@
8
8
  export interface PostedPrompt {
9
9
  /** Name applied to all versions of a particular Prompt. */
10
10
  name: string;
11
- /** An optional description of the Prompt version. */
12
- versionDescription?: string;
13
11
  /**
14
12
  * Instructions used to shape EVI's behavior, responses, and style.
15
13
  *
@@ -18,4 +16,6 @@ export interface PostedPrompt {
18
16
  * For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
19
17
  */
20
18
  text: string;
19
+ /** An optional description of the Prompt version. */
20
+ versionDescription?: string;
21
21
  }
@@ -6,8 +6,6 @@
6
6
  * }
7
7
  */
8
8
  export interface PostedPromptVersion {
9
- /** An optional description of the Prompt version. */
10
- versionDescription?: string;
11
9
  /**
12
10
  * Instructions used to shape EVI's behavior, responses, and style for this version of the Prompt.
13
11
  *
@@ -16,4 +14,6 @@ export interface PostedPromptVersion {
16
14
  * For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
17
15
  */
18
16
  text: string;
17
+ /** An optional description of the Prompt version. */
18
+ versionDescription?: string;
19
19
  }
@@ -9,18 +9,18 @@
9
9
  * }
10
10
  */
11
11
  export interface PostedUserDefinedTool {
12
- /** Name applied to all versions of a particular Tool. */
13
- name: string;
14
- /** An optional description of the Tool version. */
15
- versionDescription?: string;
16
12
  /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
17
13
  description?: string;
14
+ /** 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. */
15
+ fallbackContent?: string;
16
+ /** Name applied to all versions of a particular Tool. */
17
+ name: string;
18
18
  /**
19
19
  * Stringified JSON defining the parameters used by this version of the Tool.
20
20
  *
21
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
22
  */
23
23
  parameters: string;
24
- /** 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. */
25
- fallbackContent?: string;
24
+ /** An optional description of the Tool version. */
25
+ versionDescription?: string;
26
26
  }
@@ -8,16 +8,16 @@
8
8
  * }
9
9
  */
10
10
  export interface PostedUserDefinedToolVersion {
11
- /** An optional description of the Tool version. */
12
- versionDescription?: string;
13
11
  /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
14
12
  description?: string;
13
+ /** 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. */
14
+ fallbackContent?: string;
15
15
  /**
16
16
  * Stringified JSON defining the parameters used by this version of the Tool.
17
17
  *
18
18
  * 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.
19
19
  */
20
20
  parameters: string;
21
- /** 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. */
22
- fallbackContent?: string;
21
+ /** An optional description of the Tool version. */
22
+ versionDescription?: string;
23
23
  }
@@ -1,2 +1,25 @@
1
1
  import type * as Hume from "../../../index.mjs";
2
- export type ControlPlanePublishEvent = Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage | Hume.empathicVoice.PauseAssistantMessage | Hume.empathicVoice.ResumeAssistantMessage;
2
+ export type ControlPlanePublishEvent =
3
+ /**
4
+ * Settings for this chat session. */
5
+ Hume.empathicVoice.SessionSettings
6
+ /**
7
+ * User text to insert into the conversation. Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
8
+ *
9
+ * Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone. */
10
+ | Hume.empathicVoice.UserInput
11
+ /**
12
+ * When provided, the input is spoken by EVI. */
13
+ | Hume.empathicVoice.AssistantInput
14
+ /**
15
+ * When provided, the output is a function call response. */
16
+ | Hume.empathicVoice.ToolResponseMessage
17
+ /**
18
+ * When provided, the output is a function call error. */
19
+ | Hume.empathicVoice.ToolErrorMessage
20
+ /**
21
+ * Pause responses from EVI. Chat history is still saved and sent after resuming. */
22
+ | Hume.empathicVoice.PauseAssistantMessage
23
+ /**
24
+ * Resume responses from EVI. Chat history sent while paused will now be sent. */
25
+ | Hume.empathicVoice.ResumeAssistantMessage;
@@ -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
  }
@@ -1,2 +1,32 @@
1
1
  import type * as Hume from "../../../index.mjs";
2
- export type JsonMessage = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AssistantProsody | Hume.empathicVoice.ChatMetadata | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage;
2
+ export type JsonMessage =
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
+ * When provided, the output is a chat metadata message. */
14
+ | Hume.empathicVoice.ChatMetadata
15
+ /**
16
+ * When provided, the output is an error message. */
17
+ | Hume.empathicVoice.WebSocketError
18
+ /**
19
+ * When provided, the output is an interruption. */
20
+ | Hume.empathicVoice.UserInterruption
21
+ /**
22
+ * When provided, the output is a user message. */
23
+ | Hume.empathicVoice.UserMessage
24
+ /**
25
+ * When provided, the output is a tool call. */
26
+ | Hume.empathicVoice.ToolCallMessage
27
+ /**
28
+ * When provided, the output is a function call response. */
29
+ | Hume.empathicVoice.ToolResponseMessage
30
+ /**
31
+ * When provided, the output is a function call error. */
32
+ | Hume.empathicVoice.ToolErrorMessage;
@@ -3,6 +3,8 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A configuration of a built-in tool to be posted to the server
4
4
  */
5
5
  export interface PostedBuiltinTool {
6
+ /** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
7
+ fallbackContent?: string;
6
8
  /**
7
9
  * Name of the built-in tool to use. Hume supports the following built-in tools:
8
10
  *
@@ -12,6 +14,4 @@ export interface PostedBuiltinTool {
12
14
  * For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
13
15
  */
14
16
  name: Hume.empathicVoice.PostedBuiltinToolName;
15
- /** 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. */
16
- fallbackContent?: string;
17
17
  }
@@ -4,8 +4,8 @@
4
4
  export interface PostedConfigPromptSpec {
5
5
  /** Identifier for a Prompt. Formatted as a UUID. */
6
6
  id?: string;
7
- /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
8
- version?: number;
9
7
  /** Text used to create a new prompt for a particular config. */
10
8
  text?: string;
9
+ /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
10
+ version?: number;
11
11
  }
@@ -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 PostedEventMessageSpecs {
8
- /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
9
- onNewChat?: Hume.empathicVoice.PostedEventMessageSpec;
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 PostedEventMessageSpecs {
19
17
  onInactivityTimeout?: Hume.empathicVoice.PostedEventMessageSpec;
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.PostedEventMessageSpec;
20
+ /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
21
+ onNewChat?: Hume.empathicVoice.PostedEventMessageSpec;
22
22
  }
@@ -2,8 +2,8 @@
2
2
  * Settings for a specific timeout to be posted to the server
3
3
  */
4
4
  export interface PostedTimeoutSpec {
5
- /** Boolean indicating if this event message is enabled. */
6
- enabled: boolean;
7
5
  /** Duration in seconds for the timeout. */
8
6
  durationSecs?: number;
7
+ /** Boolean indicating if this event message is enabled. */
8
+ enabled: boolean;
9
9
  }
@@ -2,5 +2,6 @@
2
2
  export declare const PostedWebhookEventType: {
3
3
  readonly ChatStarted: "chat_started";
4
4
  readonly ChatEnded: "chat_ended";
5
+ readonly ToolCall: "tool_call";
5
6
  };
6
7
  export type PostedWebhookEventType = (typeof PostedWebhookEventType)[keyof typeof PostedWebhookEventType];
@@ -3,4 +3,5 @@
3
3
  export const PostedWebhookEventType = {
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
  * URL and settings for a specific webhook to be posted to the server
4
4
  */
5
5
  export interface PostedWebhookSpec {
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.PostedWebhookEventType[];
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
  }
@@ -3,10 +3,10 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A specific builtin tool version returned from the server
4
4
  */
5
5
  export interface ReturnBuiltinTool {
6
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
7
- toolType: Hume.empathicVoice.ReturnBuiltinToolToolType;
8
- /** Name applied to all versions of a particular Tool. */
9
- name: string;
10
6
  /** 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
7
  fallbackContent?: string;
8
+ /** Name applied to all versions of a particular Tool. */
9
+ name: string;
10
+ /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
11
+ toolType: Hume.empathicVoice.ReturnBuiltinToolToolType;
12
12
  }
@@ -3,10 +3,19 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A description of chat and its status
4
4
  */
5
5
  export interface ReturnChat {
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;
8
+ config?: Hume.empathicVoice.ReturnConfigSpec;
9
+ /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
10
+ endTimestamp?: number;
11
+ /** The total number of events currently in this chat. */
12
+ eventCount?: number;
13
+ /** Identifier for a Chat. Formatted as a UUID. */
14
+ id: string;
15
+ /** Stringified JSON with additional metadata about the chat. */
16
+ metadata?: string;
17
+ /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
18
+ startTimestamp: number;
10
19
  /**
11
20
  * Indicates the current state of the chat. There are six possible statuses:
12
21
  *
@@ -23,13 +32,4 @@ export interface ReturnChat {
23
32
  * - `ERROR`: The chat ended unexpectedly due to an error.
24
33
  */
25
34
  status: Hume.empathicVoice.ReturnChatStatus;
26
- /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
27
- startTimestamp: number;
28
- /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
29
- endTimestamp?: number;
30
- /** The total number of events currently in this chat. */
31
- eventCount?: number;
32
- /** Stringified JSON with additional metadata about the chat. */
33
- metadata?: string;
34
- config?: Hume.empathicVoice.ReturnConfigSpec;
35
35
  }
@@ -3,10 +3,16 @@ import type * as Hume from "../../../index.mjs";
3
3
  * List of chat audio reconstructions returned for the specified page number and page size.
4
4
  */
5
5
  export interface ReturnChatAudioReconstruction {
6
+ /** Name of the chat audio reconstruction file. */
7
+ filename?: string;
6
8
  /** Identifier for the chat. Formatted as a UUID. */
7
9
  id: string;
8
- /** Identifier for the user that owns this chat. Formatted as a UUID. */
9
- userId: string;
10
+ /** The timestamp of the most recent status change for this audio reconstruction, formatted milliseconds since the Unix epoch. */
11
+ modifiedAt?: number;
12
+ /** Signed URL used to download the chat audio reconstruction file. */
13
+ signedAudioUrl?: string;
14
+ /** The timestamp when the signed URL will expire, formatted as a Unix epoch milliseconds. */
15
+ signedUrlExpirationTimestampMillis?: number;
10
16
  /**
11
17
  * Indicates the current state of the audio reconstruction job. There are five possible statuses:
12
18
  *
@@ -21,12 +27,6 @@ export interface ReturnChatAudioReconstruction {
21
27
  * - `CANCELED`: The reconstruction job has been canceled.
22
28
  */
23
29
  status: Hume.empathicVoice.ReturnChatAudioReconstructionStatus;
24
- /** Name of the chat audio reconstruction file. */
25
- filename?: string;
26
- /** The timestamp of the most recent status change for this audio reconstruction, formatted milliseconds since the Unix epoch. */
27
- modifiedAt?: number;
28
- /** Signed URL used to download the chat audio reconstruction file. */
29
- signedAudioUrl?: string;
30
- /** The timestamp when the signed URL will expire, formatted as a Unix epoch milliseconds. */
31
- signedUrlExpirationTimestampMillis?: number;
30
+ /** Identifier for the user that owns this chat. Formatted as a UUID. */
31
+ userId: string;
32
32
  }
@@ -3,12 +3,22 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A description of a single event in a chat returned from the server
4
4
  */
5
5
  export interface ReturnChatEvent {
6
- /** Identifier for a Chat Event. Formatted as a UUID. */
7
- id: string;
8
6
  /** Identifier for the Chat this event occurred in. Formatted as a UUID. */
9
7
  chatId: string;
10
- /** Time at which the Chat Event occurred. Measured in seconds since the Unix epoch. */
11
- timestamp: number;
8
+ /**
9
+ * Stringified JSON containing the prosody model inference results.
10
+ *
11
+ * EVI uses the prosody model to measure 48 expressions related to speech and vocal characteristics. These results contain a detailed emotional and tonal analysis of the audio. Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute.
12
+ */
13
+ emotionFeatures?: string;
14
+ /** Identifier for a Chat Event. Formatted as a UUID. */
15
+ id: string;
16
+ /** The text of the Chat Event. This field contains the message content for each event type listed in the `type` field. */
17
+ messageText?: string;
18
+ /** Stringified JSON with additional metadata about the chat event. */
19
+ metadata?: string;
20
+ /** Identifier for a related chat event. Currently only seen on ASSISTANT_PROSODY events, to point back to the ASSISTANT_MESSAGE that generated these prosody scores */
21
+ relatedEventId?: string;
12
22
  /**
13
23
  * The role of the entity which generated the Chat Event. There are four possible values:
14
24
  * - `USER`: The user, capable of sending user messages and interruptions.
@@ -17,6 +27,8 @@ export interface ReturnChatEvent {
17
27
  * - `TOOL`: The function calling mechanism.
18
28
  */
19
29
  role: Hume.empathicVoice.ReturnChatEventRole;
30
+ /** Time at which the Chat Event occurred. Measured in seconds since the Unix epoch. */
31
+ timestamp: number;
20
32
  /**
21
33
  * Type of Chat Event. There are eleven Chat Event types:
22
34
  * - `SYSTEM_PROMPT`: The system prompt used to initialize the session.
@@ -32,16 +44,4 @@ export interface ReturnChatEvent {
32
44
  * - `CHAT_END_MESSAGE`: Indicates the end of the chat session.
33
45
  */
34
46
  type: Hume.empathicVoice.ReturnChatEventType;
35
- /** The text of the Chat Event. This field contains the message content for each event type listed in the `type` field. */
36
- messageText?: string;
37
- /**
38
- * Stringified JSON containing the prosody model inference results.
39
- *
40
- * EVI uses the prosody model to measure 48 expressions related to speech and vocal characteristics. These results contain a detailed emotional and tonal analysis of the audio. Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute.
41
- */
42
- emotionFeatures?: string;
43
- /** Stringified JSON with additional metadata about the chat event. */
44
- metadata?: string;
45
- /** Identifier for a related chat event. Currently only seen on ASSISTANT_PROSODY events, to point back to the ASSISTANT_MESSAGE that generated these prosody scores */
46
- relatedEventId?: string;
47
47
  }
@@ -3,17 +3,17 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A description of chat_group and its status
4
4
  */
5
5
  export interface ReturnChatGroup {
6
- /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
7
- id: string;
6
+ /** Denotes whether there is an active Chat associated with this Chat Group. */
7
+ active?: boolean;
8
8
  /** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
9
9
  firstStartTimestamp: number;
10
- /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
11
- mostRecentStartTimestamp: number;
10
+ /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
11
+ id: string;
12
12
  /** The `chat_id` of the most recent Chat in this Chat Group. Formatted as a UUID. */
13
13
  mostRecentChatId?: string;
14
14
  mostRecentConfig?: Hume.empathicVoice.ReturnConfigSpec;
15
+ /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
16
+ mostRecentStartTimestamp: number;
15
17
  /** The total number of Chats in this Chat Group. */
16
18
  numChats: number;
17
- /** Denotes whether there is an active Chat associated with this Chat Group. */
18
- active?: boolean;
19
19
  }
@@ -3,10 +3,10 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A paginated list of chat reconstructions for a particular chatgroup
4
4
  */
5
5
  export interface ReturnChatGroupPagedAudioReconstructions {
6
+ /** List of chat audio reconstructions returned for the specified page number and page size. */
7
+ audioReconstructionsPage: Hume.empathicVoice.ReturnChatAudioReconstruction[];
6
8
  /** Identifier for the chat group. Formatted as a UUID. */
7
9
  id: string;
8
- /** Identifier for the user that owns this chat. Formatted as a UUID. */
9
- userId: string;
10
10
  /** Total number of chats in this chatgroup */
11
11
  numChats: number;
12
12
  /**
@@ -21,14 +21,14 @@ export interface ReturnChatGroupPagedAudioReconstructions {
21
21
  * This value corresponds to the `page_size` parameter specified in the request.
22
22
  */
23
23
  pageSize: number;
24
- /** The total number of pages in the collection. */
25
- totalPages: number;
26
24
  /**
27
25
  * Indicates the order in which the paginated results are presented, based on their creation date.
28
26
  *
29
27
  * 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.
30
28
  */
31
29
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructionsPaginationDirection;
32
- /** List of chat audio reconstructions returned for the specified page number and page size. */
33
- audioReconstructionsPage: Hume.empathicVoice.ReturnChatAudioReconstruction[];
30
+ /** The total number of pages in the collection. */
31
+ totalPages: number;
32
+ /** Identifier for the user that owns this chat. Formatted as a UUID. */
33
+ userId: string;
34
34
  }
@@ -3,10 +3,14 @@ import type * as Hume from "../../../index.mjs";
3
3
  * A description of chat_group and its status with a paginated list of each chat in the chat_group
4
4
  */
5
5
  export interface ReturnChatGroupPagedChats {
6
- /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
7
- id: string;
6
+ /** Denotes whether there is an active Chat associated with this Chat Group. */
7
+ active?: boolean;
8
+ /** List of Chats for the specified `page_number` and `page_size`. */
9
+ chatsPage: Hume.empathicVoice.ReturnChat[];
8
10
  /** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
9
11
  firstStartTimestamp: number;
12
+ /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
13
+ id: string;
10
14
  /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
11
15
  mostRecentStartTimestamp: number;
12
16
  /** The total number of Chats associated with this Chat Group. */
@@ -23,16 +27,12 @@ export interface ReturnChatGroupPagedChats {
23
27
  * This value corresponds to the `page_size` parameter specified in the request.
24
28
  */
25
29
  pageSize: number;
26
- /** The total number of pages in the collection. */
27
- totalPages: number;
28
30
  /**
29
31
  * Indicates the order in which the paginated results are presented, based on their creation date.
30
32
  *
31
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.
32
34
  */
33
35
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedChatsPaginationDirection;
34
- /** List of Chats for the specified `page_number` and `page_size`. */
35
- chatsPage: Hume.empathicVoice.ReturnChat[];
36
- /** Denotes whether there is an active Chat associated with this Chat Group. */
37
- active?: boolean;
36
+ /** The total number of pages in the collection. */
37
+ totalPages: number;
38
38
  }
@@ -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
  }