hume 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +176 -72
  2. package/.mock/definition/empathic-voice/chat.yml +6 -6
  3. package/.mock/definition/empathic-voice/chatGroups.yml +9 -0
  4. package/.mock/definition/empathic-voice/chats.yml +14 -1
  5. package/.mock/definition/empathic-voice/configs.yml +138 -86
  6. package/.mock/definition/empathic-voice/prompts.yml +4 -2
  7. package/.mock/definition/empathic-voice/tools.yml +4 -2
  8. package/.mock/fern.config.json +1 -1
  9. package/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
  10. package/api/resources/customModels/resources/datasets/client/Client.js +18 -18
  11. package/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
  12. package/api/resources/customModels/resources/files/client/Client.js +14 -14
  13. package/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
  14. package/api/resources/customModels/resources/jobs/client/Client.js +4 -4
  15. package/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
  16. package/api/resources/customModels/resources/models/client/Client.js +12 -12
  17. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  19. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  20. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  21. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  22. package/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  23. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  24. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  25. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  26. package/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  27. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  28. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  29. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  30. package/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  31. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  32. package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  33. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  36. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  39. package/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  40. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  41. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  42. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  43. package/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  44. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  45. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  46. package/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  47. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  48. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  49. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  50. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  51. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  52. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  53. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  54. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  55. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  56. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  57. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  58. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  60. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  61. package/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  62. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  63. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  64. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  65. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  66. package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  67. package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  68. package/api/resources/empathicVoice/types/index.d.ts +9 -6
  69. package/api/resources/empathicVoice/types/index.js +9 -6
  70. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  71. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  72. package/core/runtime/runtime.d.ts +1 -1
  73. package/core/runtime/runtime.js +11 -1
  74. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
  75. package/dist/api/resources/customModels/resources/datasets/client/Client.js +18 -18
  76. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
  77. package/dist/api/resources/customModels/resources/files/client/Client.js +14 -14
  78. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
  79. package/dist/api/resources/customModels/resources/jobs/client/Client.js +4 -4
  80. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
  81. package/dist/api/resources/customModels/resources/models/client/Client.js +12 -12
  82. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  86. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  87. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  88. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  89. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  90. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  92. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  93. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  95. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  96. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  97. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  98. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  99. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  100. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  101. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  102. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  103. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  105. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  106. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  107. package/dist/api/resources/empathicVoice/types/PostedEllmModel.js +5 -0
  108. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  109. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  111. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.js +5 -0
  112. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  113. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  114. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  115. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  116. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  117. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  118. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  119. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  120. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  121. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.js +5 -0
  122. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  123. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.js +5 -0
  124. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  125. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  126. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  127. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  128. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  129. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  130. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  131. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.js +5 -0
  132. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  133. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  134. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  135. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  136. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  137. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  138. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  139. package/dist/api/resources/empathicVoice/types/index.d.ts +9 -6
  140. package/dist/api/resources/empathicVoice/types/index.js +9 -6
  141. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  142. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  143. package/dist/core/runtime/runtime.d.ts +1 -1
  144. package/dist/core/runtime/runtime.js +11 -1
  145. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  146. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  147. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  148. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  149. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  150. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  151. package/{serialization/resources/empathicVoice/types/WebSocketError.d.ts → dist/serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  152. package/{serialization/resources/empathicVoice/types/WebSocketError.js → dist/serialization/resources/empathicVoice/types/Error_.js} +2 -2
  153. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  154. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  155. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  156. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  157. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  158. package/dist/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → PostedEventMessageSpec.js} +4 -3
  159. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  160. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  161. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  162. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  163. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  164. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  165. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  166. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  167. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  168. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  169. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  170. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  171. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  172. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  173. package/dist/serialization/resources/empathicVoice/types/{TtsInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  174. package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  175. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  176. package/dist/serialization/resources/empathicVoice/types/{TextInput.js → ReturnEventMessageSpec.js} +4 -3
  177. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  178. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  179. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  180. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  181. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  182. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  183. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  184. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  185. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  186. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  187. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  188. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  189. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  190. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  191. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  192. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  193. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  194. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  195. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  196. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  197. package/dist/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  198. package/dist/serialization/resources/empathicVoice/types/index.js +9 -6
  199. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  200. package/package.json +6 -1
  201. package/reference.md +208 -122
  202. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  203. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  204. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  205. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  206. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  207. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  208. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts → serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  209. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.js → serialization/resources/empathicVoice/types/Error_.js} +2 -2
  210. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  211. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  212. package/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  213. package/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  214. package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  215. package/{dist/serialization/resources/empathicVoice/types/TtsInput.js → serialization/resources/empathicVoice/types/PostedEventMessageSpec.js} +4 -3
  216. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  217. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  218. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  219. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  220. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  221. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  222. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  223. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  224. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  225. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  226. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  227. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  228. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  229. package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  230. package/serialization/resources/empathicVoice/types/{TextInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  231. package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  232. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  233. package/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → ReturnEventMessageSpec.js} +4 -3
  234. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  235. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  236. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  237. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  238. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  239. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  240. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  241. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  242. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  243. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  244. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  245. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  246. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  247. package/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  248. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  249. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  250. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  251. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  252. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  253. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  254. package/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  255. package/serialization/resources/empathicVoice/types/index.js +9 -6
  256. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  257. package/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  258. package/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  259. package/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  260. package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  261. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  262. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  263. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  264. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
  265. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  266. package/serialization/resources/empathicVoice/types/TextInput.js +0 -33
  267. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
  268. package/serialization/resources/empathicVoice/types/TtsInput.js +0 -33
  269. /package/api/resources/empathicVoice/types/{FunctionCallResponseInput.js → Error_.js} +0 -0
  270. /package/api/resources/empathicVoice/types/{TextInput.js → PostedEllmModel.js} +0 -0
  271. /package/api/resources/empathicVoice/types/{TtsInput.js → PostedEventMessageSpec.js} +0 -0
  272. /package/api/resources/empathicVoice/types/{WebSocketError.js → PostedTimeoutSpec.js} +0 -0
  273. /package/{dist/api/resources/empathicVoice/types/FunctionCallResponseInput.js → api/resources/empathicVoice/types/ReturnEllmModel.js} +0 -0
  274. /package/{dist/api/resources/empathicVoice/types/TextInput.js → api/resources/empathicVoice/types/ReturnEventMessageSpec.js} +0 -0
  275. /package/{dist/api/resources/empathicVoice/types/TtsInput.js → api/resources/empathicVoice/types/ReturnTimeoutSpec.js} +0 -0
  276. /package/dist/api/resources/empathicVoice/types/{WebSocketError.js → Error_.js} +0 -0
@@ -53,7 +53,7 @@ class Tools {
53
53
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await hume.empathicVoice.tools.listTools({
56
+ * await client.empathicVoice.tools.listTools({
57
57
  * pageNumber: 0,
58
58
  * pageSize: 2
59
59
  * })
@@ -75,7 +75,7 @@ class Tools {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -117,7 +117,7 @@ class Tools {
117
117
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
118
118
  *
119
119
  * @example
120
- * await hume.empathicVoice.tools.createTool({
120
+ * await client.empathicVoice.tools.createTool({
121
121
  * name: "get_current_weather",
122
122
  * parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
123
123
  * versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
@@ -131,7 +131,7 @@ class Tools {
131
131
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
132
132
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
133
133
  method: "POST",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
137
137
  unrecognizedObjectKeys: "strip",
@@ -176,7 +176,7 @@ class Tools {
176
176
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
177
177
  *
178
178
  * @example
179
- * await hume.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea")
179
+ * await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea")
180
180
  */
181
181
  listToolVersions(id, request = {}, requestOptions) {
182
182
  var _a, _b;
@@ -195,7 +195,7 @@ class Tools {
195
195
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
196
196
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
197
197
  method: "GET",
198
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
198
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
199
  contentType: "application/json",
200
200
  queryParameters: _queryParams,
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -238,7 +238,7 @@ class Tools {
238
238
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
239
239
  *
240
240
  * @example
241
- * await hume.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
241
+ * await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
242
242
  * parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
243
243
  * versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
244
244
  * fallbackContent: "Unable to fetch current weather.",
@@ -251,7 +251,7 @@ class Tools {
251
251
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
252
252
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
253
253
  method: "POST",
254
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
255
  contentType: "application/json",
256
256
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
257
257
  unrecognizedObjectKeys: "strip",
@@ -295,7 +295,7 @@ class Tools {
295
295
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
296
296
  *
297
297
  * @example
298
- * await hume.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea")
298
+ * await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea")
299
299
  */
300
300
  deleteTool(id, requestOptions) {
301
301
  var _a, _b;
@@ -303,7 +303,7 @@ class Tools {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
305
305
  method: "DELETE",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
307
  contentType: "application/json",
308
308
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
309
309
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -339,7 +339,7 @@ class Tools {
339
339
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
340
340
  *
341
341
  * @example
342
- * await hume.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", {
342
+ * await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", {
343
343
  * name: "get_current_temperature"
344
344
  * })
345
345
  */
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
351
351
  method: "PATCH",
352
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
352
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
353
353
  contentType: "application/json",
354
354
  body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
355
355
  unrecognizedObjectKeys: "strip",
@@ -389,7 +389,7 @@ class Tools {
389
389
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
390
390
  *
391
391
  * @example
392
- * await hume.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
392
+ * await client.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
393
393
  */
394
394
  getToolVersion(id, version, requestOptions) {
395
395
  var _a, _b;
@@ -397,7 +397,7 @@ class Tools {
397
397
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
398
398
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
399
399
  method: "GET",
400
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
400
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
401
401
  contentType: "application/json",
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
403
403
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -439,7 +439,7 @@ class Tools {
439
439
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
440
440
  *
441
441
  * @example
442
- * await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
442
+ * await client.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
443
443
  */
444
444
  deleteToolVersion(id, version, requestOptions) {
445
445
  var _a, _b;
@@ -447,7 +447,7 @@ class Tools {
447
447
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
448
448
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
449
449
  method: "DELETE",
450
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
451
451
  contentType: "application/json",
452
452
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
453
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -484,7 +484,7 @@ class Tools {
484
484
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
485
485
  *
486
486
  * @example
487
- * await hume.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
487
+ * await client.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
488
488
  * versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
489
489
  * })
490
490
  */
@@ -494,7 +494,7 @@ class Tools {
494
494
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
495
495
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
496
496
  method: "PATCH",
497
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
497
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
498
498
  contentType: "application/json",
499
499
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
500
500
  unrecognizedObjectKeys: "strip",
@@ -7,6 +7,6 @@
7
7
  export interface AssistantEnd {
8
8
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
9
  customSessionId?: string;
10
- /** The type of message sent through the socket; for an Assistant End message, this must be 'assistant_end'. */
10
+ /** The type of message sent through the socket; for an Assistant End message, this must be `assistant_end`. */
11
11
  type: "assistant_end";
12
12
  }
@@ -9,6 +9,6 @@ export interface AssistantInput {
9
9
  customSessionId?: string;
10
10
  /** Text to be synthesized. */
11
11
  text: string;
12
- /** The type of message sent through the socket; for an Assistant Input message, this must be 'assistant_input'. */
12
+ /** The type of message sent through the socket; for an Assistant Input message, this must be `assistant_input`. */
13
13
  type: "assistant_input";
14
14
  }
@@ -16,6 +16,6 @@ export interface AssistantMessage {
16
16
  message: Hume.empathicVoice.ChatMessage;
17
17
  /** Inference model results. */
18
18
  models: Hume.empathicVoice.Inference;
19
- /** The type of message sent through the socket; for an Assistant Message, this must be 'assistant_message'. */
19
+ /** The type of message sent through the socket; for an Assistant Message, this must be `assistant_message`. */
20
20
  type: "assistant_message";
21
21
  }
@@ -9,6 +9,6 @@ export interface AudioInput {
9
9
  customSessionId?: string;
10
10
  /** Base64 encoded audio input. */
11
11
  data: string;
12
- /** The type of message sent through the socket; for an Audio Input message, this must be 'audio_input'. */
12
+ /** The type of message sent through the socket; for an Audio Input message, this must be `audio_input`. */
13
13
  type: "audio_input";
14
14
  }
@@ -11,6 +11,6 @@ export interface AudioOutput {
11
11
  data: string;
12
12
  /** ID of the audio output. */
13
13
  id: string;
14
- /** The type of message sent through the socket; for an Audio Output message, this must be 'audio_output'. */
14
+ /** The type of message sent through the socket; for an Audio Output message, this must be `audio_output`. */
15
15
  type: "audio_output";
16
16
  }
@@ -11,6 +11,6 @@ export interface ChatMetadata {
11
11
  chatId: string;
12
12
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
13
13
  customSessionId?: string;
14
- /** The type of message sent through the socket; for a Chat Metadata message, this must be 'chat_metadata'. */
14
+ /** The type of message sent through the socket; for a Chat Metadata message, this must be `chat_metadata`. */
15
15
  type: "chat_metadata";
16
16
  }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * When provided, the output is an error message.
6
6
  */
7
- export interface WebSocketError {
7
+ export interface Error_ {
8
8
  /** Error code. */
9
9
  code: string;
10
10
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
@@ -13,6 +13,6 @@ export interface WebSocketError {
13
13
  message: string;
14
14
  /** Error slug. */
15
15
  slug: string;
16
- /** The type of message sent through the socket; for a Web Socket Error message, this must be 'error'. */
16
+ /** The type of message sent through the socket; for a Web Socket Error message, this must be `error`. */
17
17
  type: "error";
18
18
  }
@@ -7,6 +7,6 @@
7
7
  export interface PauseAssistantMessage {
8
8
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
9
  customSessionId?: string;
10
- /** The type of message sent through the socket; for a Pause Assistant message, this must be 'pause_assistant_message'. */
11
- type?: "pause_assistant_message";
10
+ /** The type of message sent through the socket; for a Pause Assistant message, this must be `pause_assistant_message`. */
11
+ type: "pause_assistant_message";
12
12
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A eLLM model configuration to be posted to the server
6
+ */
7
+ export interface PostedEllmModel {
8
+ /** Boolean indicating if the model is allowed to generate short responses. */
9
+ allowShortResponses?: boolean;
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Settings for a specific event_message to be posted to the server
6
+ */
7
+ export interface PostedEventMessageSpec {
8
+ /** Boolean indicating if this event message is enabled. */
9
+ enabled: boolean;
10
+ /** Optional text that will be used as a verbatim event message. If the text is null and the event message is enabled, the system will generate a message based using the language model. */
11
+ text?: string;
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Settings for a specific timeout to be posted to the server
6
+ */
7
+ export interface PostedTimeoutSpec {
8
+ /** Boolean indicating if this event message is enabled. */
9
+ enabled: boolean;
10
+ /** Duration in seconds for the timeout. */
11
+ durationSecs?: number;
12
+ }
@@ -6,7 +6,7 @@ import * as Hume from "../../../index";
6
6
  * A Voice specification posted to the server
7
7
  */
8
8
  export interface PostedVoice {
9
- /** The provider of the voice to use. */
9
+ /** The provider of the voice to use. Based on the enum VoiceProvider. */
10
10
  provider?: "HUME_AI";
11
11
  /** String with the name of the voice to use. */
12
12
  name: Hume.empathicVoice.PostedVoiceName;
@@ -4,8 +4,9 @@
4
4
  /**
5
5
  * String with the name of the voice to use.
6
6
  */
7
- export declare type PostedVoiceName = "ITO" | "DACHER";
7
+ export declare type PostedVoiceName = "ITO" | "DACHER" | "KORA";
8
8
  export declare const PostedVoiceName: {
9
9
  readonly Ito: "ITO";
10
10
  readonly Dacher: "DACHER";
11
+ readonly Kora: "KORA";
11
12
  };
@@ -7,4 +7,5 @@ exports.PostedVoiceName = void 0;
7
7
  exports.PostedVoiceName = {
8
8
  Ito: "ITO",
9
9
  Dacher: "DACHER",
10
+ Kora: "KORA",
10
11
  };
@@ -7,6 +7,6 @@
7
7
  export interface ResumeAssistantMessage {
8
8
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
9
  customSessionId?: string;
10
- /** The type of message sent through the socket; for a Resume Assistant message, this must be 'resume_assistant_message'. */
11
- type?: "resume_assistant_message";
10
+ /** The type of message sent through the socket; for a Resume Assistant message, this must be `resume_assistant_message`. */
11
+ type: "resume_assistant_message";
12
12
  }
@@ -18,6 +18,10 @@ export interface ReturnChatGroupPagedChats {
18
18
  pageNumber: number;
19
19
  /** The number of results returned per page. */
20
20
  pageSize: number;
21
+ /** The total number of pages in the collection */
22
+ totalPages: number;
23
+ /** The direction of the pagination (ASC or DESC). */
24
+ paginationDirection: string;
21
25
  /** List of chats and their metadata returned for the specified page number and page size. */
22
26
  chatsPage: Hume.empathicVoice.ReturnChat[];
23
27
  active?: boolean;
@@ -12,6 +12,8 @@ export interface ReturnChatGroupPagedEvents {
12
12
  pageNumber: number;
13
13
  /** The number of results returned per page. */
14
14
  pageSize: number;
15
+ /** The total number of pages in the collection */
16
+ totalPages: number;
15
17
  /** The direction of the pagination (ASC or DESC). */
16
18
  paginationDirection: string;
17
19
  /** List of chat_events returned for the specified page number and page size. */
@@ -18,6 +18,8 @@ export interface ReturnChatPagedEvents {
18
18
  startTimestamp: number;
19
19
  /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
20
20
  endTimestamp?: number;
21
+ /** The direction of the pagination (ASC or DESC). */
22
+ paginationDirection: string;
21
23
  /** List of chat events with the specified page number and page size. */
22
24
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
23
25
  /** Stringified JSON with additional metadata about the chat. */
@@ -26,5 +28,7 @@ export interface ReturnChatPagedEvents {
26
28
  pageNumber: number;
27
29
  /** The number of results returned per page. */
28
30
  pageSize: number;
31
+ /** The total number of pages in the collection */
32
+ totalPages: number;
29
33
  config?: Hume.empathicVoice.ReturnConfigSpec;
30
34
  }
@@ -21,6 +21,13 @@ export interface ReturnConfig {
21
21
  prompt?: Hume.empathicVoice.ReturnPrompt;
22
22
  voice?: Hume.empathicVoice.ReturnVoice;
23
23
  languageModel?: Hume.empathicVoice.ReturnLanguageModel;
24
- tools?: Hume.empathicVoice.ReturnUserDefinedTool;
25
- builtinTools?: Hume.empathicVoice.ReturnBuiltinTool;
24
+ ellmModel?: Hume.empathicVoice.ReturnEllmModel;
25
+ /** List of user-defined tools associated with this config. */
26
+ tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
27
+ /** List of built-in tools associated with this config */
28
+ builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
29
+ /** Map of event messages associated with this config. */
30
+ eventMessages?: Record<string, Hume.empathicVoice.ReturnEventMessageSpec | undefined>;
31
+ /** Map of timeouts associated with this config. */
32
+ timeouts?: Record<string, Hume.empathicVoice.ReturnTimeoutSpec | undefined>;
26
33
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A specific eLLM Model configuration
6
+ */
7
+ export interface ReturnEllmModel {
8
+ /** Boolean indicating if the model is allowed to generate short responses. */
9
+ allowShortResponses: boolean;
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A specific event message configuration to be returned from the server
6
+ */
7
+ export interface ReturnEventMessageSpec {
8
+ /** Boolean indicating if this event message is enabled. */
9
+ enabled: boolean;
10
+ /** Optional text that will be used as a verbatim event message. If the text is null and the event message is enabled, the system will generate a message based using the language model. */
11
+ text?: string;
12
+ }
@@ -10,6 +10,10 @@ export interface ReturnPagedChatGroups {
10
10
  pageNumber: number;
11
11
  /** The number of results returned per page. */
12
12
  pageSize: number;
13
+ /** The total number of pages in the collection */
14
+ totalPages: number;
15
+ /** The direction of the pagination (ASC or DESC). */
16
+ paginationDirection: string;
13
17
  /** List of chat_groups and their metadata returned for the specified page number and page size. */
14
18
  chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
15
19
  }
@@ -10,6 +10,10 @@ export interface ReturnPagedChats {
10
10
  pageNumber: number;
11
11
  /** The number of results returned per page. */
12
12
  pageSize: number;
13
+ /** The total number of pages in the collection */
14
+ totalPages: number;
15
+ /** The direction of the pagination (ASC or DESC). */
16
+ paginationDirection: string;
13
17
  /** List of chats and their metadata returned for the specified page number and page size. */
14
18
  chatsPage: Hume.empathicVoice.ReturnChat[];
15
19
  }
@@ -10,6 +10,8 @@ export interface ReturnPagedConfigs {
10
10
  pageNumber?: number;
11
11
  /** The number of results returned per page. */
12
12
  pageSize?: number;
13
+ /** The total number of pages in the collection */
14
+ totalPages: number;
13
15
  /** List of prompts returned for the specified page number and page size. */
14
16
  configsPage?: Hume.empathicVoice.ReturnConfig[];
15
17
  }
@@ -10,6 +10,8 @@ export interface ReturnPagedPrompts {
10
10
  pageNumber: number;
11
11
  /** The number of results returned per page. */
12
12
  pageSize: number;
13
+ /** The total number of pages in the collection */
14
+ totalPages: number;
13
15
  /** List of prompts returned for the specified page number and page size. */
14
16
  promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
15
17
  }
@@ -10,6 +10,8 @@ export interface ReturnPagedUserDefinedTools {
10
10
  pageNumber: number;
11
11
  /** The number of results returned per page. */
12
12
  pageSize: number;
13
+ /** The total number of pages in the collection */
14
+ totalPages: number;
13
15
  /** List of tools returned for the specified page number and page size. */
14
16
  toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
15
17
  }
@@ -9,7 +9,7 @@ export interface ReturnPrompt {
9
9
  id: string;
10
10
  /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
11
11
  version: number;
12
- /** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
12
+ /** Indicates whether this tool is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
13
13
  versionType: string;
14
14
  /** Description that is appended to a specific version of a Prompt. */
15
15
  versionDescription?: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A specific timeout configuration to be returned from the server
6
+ */
7
+ export interface ReturnTimeoutSpec {
8
+ /** Boolean indicating if this event message is enabled. */
9
+ enabled: boolean;
10
+ /** Duration in seconds for the timeout. */
11
+ durationSecs?: number;
12
+ }
@@ -10,6 +10,8 @@ export interface SessionSettings {
10
10
  audio?: Hume.empathicVoice.AudioConfiguration;
11
11
  /** List of builtin tools to enable. */
12
12
  builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
13
+ /** User context to inject. Set to null to disable context injection. */
14
+ context?: Hume.empathicVoice.Context;
13
15
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
14
16
  customSessionId?: string;
15
17
  /** Third party API key for the language model used for non-Hume models. */
@@ -18,6 +20,6 @@ export interface SessionSettings {
18
20
  systemPrompt?: string;
19
21
  /** List of tools to enable. */
20
22
  tools?: Hume.empathicVoice.Tool[];
21
- /** The type of message sent through the socket; for a Session Settings message, this must be 'session_settings'. */
23
+ /** The type of message sent through the socket; for a Session Settings message, this must be `session_settings`. */
22
24
  type: "session_settings";
23
25
  }
@@ -17,7 +17,7 @@ export interface ToolCallMessage {
17
17
  /** ID of the tool call. */
18
18
  toolCallId: string;
19
19
  /** Type of tool called, either 'builtin' or 'function'. */
20
- toolType: Hume.empathicVoice.ToolType;
21
- /** The type of message sent through the socket; for a Tool Call message, this must be 'tool_call'. */
22
- type?: "tool_call";
20
+ toolType?: Hume.empathicVoice.ToolType;
21
+ /** The type of message sent through the socket; for a Tool Call message, this must be `tool_call`. */
22
+ type: "tool_call";
23
23
  }
@@ -20,6 +20,6 @@ export interface ToolErrorMessage {
20
20
  toolCallId: string;
21
21
  /** Type of tool called, either 'builtin' or 'function'. */
22
22
  toolType?: Hume.empathicVoice.ToolType;
23
- /** The type of message sent through the socket; for a Tool Error message, this must be 'tool_error'. */
24
- type?: "tool_error";
23
+ /** The type of message sent through the socket; for a Tool Error message, this must be `tool_error`. */
24
+ type: "tool_error";
25
25
  }
@@ -14,6 +14,6 @@ export interface ToolResponseMessage {
14
14
  toolCallId: string;
15
15
  toolName?: string;
16
16
  toolType?: Hume.empathicVoice.ToolType;
17
- /** The type of message sent through the socket; for a Tool Response message, this must be tool_response’. */
18
- type?: "tool_response";
17
+ /** The type of message sent through the socket; for a Tool Response message, this must be `tool_response`. */
18
+ type: "tool_response";
19
19
  }
@@ -9,6 +9,6 @@ export interface UserInput {
9
9
  customSessionId?: string;
10
10
  /** User text to insert into the conversation. */
11
11
  text: string;
12
- /** The type of message sent through the socket; for a User Input message, this must be user_input’. */
12
+ /** The type of message sent through the socket; for a User Input message, this must be `user_input`. */
13
13
  type: "user_input";
14
14
  }
@@ -9,6 +9,6 @@ export interface UserInterruption {
9
9
  customSessionId?: string;
10
10
  /** Unix timestamp of the detected user interruption. */
11
11
  time: number;
12
- /** The type of message sent through the socket; for a User Interruption message, this must be 'user_interruption'. */
12
+ /** The type of message sent through the socket; for a User Interruption message, this must be `user_interruption`. */
13
13
  type: "user_interruption";
14
14
  }
@@ -16,5 +16,6 @@ export interface UserMessage {
16
16
  models: Hume.empathicVoice.Inference;
17
17
  /** Start and End time of user message. */
18
18
  time: Hume.empathicVoice.MillisecondInterval;
19
+ /** The type of message sent through the socket; for a User message, this must be `user_message`. */
19
20
  type: "user_message";
20
21
  }
@@ -1,15 +1,21 @@
1
1
  export * from "./ReturnUserDefinedTool";
2
2
  export * from "./ReturnPrompt";
3
3
  export * from "./PostedBuiltinTool";
4
+ export * from "./PostedEllmModel";
5
+ export * from "./PostedEventMessageSpec";
4
6
  export * from "./PostedLanguageModelModelProvider";
5
7
  export * from "./PostedLanguageModel";
6
8
  export * from "./PostedPromptSpec";
9
+ export * from "./PostedTimeoutSpec";
7
10
  export * from "./PostedUserDefinedToolSpec";
8
11
  export * from "./PostedVoiceName";
9
12
  export * from "./PostedVoice";
10
13
  export * from "./ReturnBuiltinTool";
11
14
  export * from "./ReturnConfig";
15
+ export * from "./ReturnEllmModel";
16
+ export * from "./ReturnEventMessageSpec";
12
17
  export * from "./ReturnLanguageModel";
18
+ export * from "./ReturnTimeoutSpec";
13
19
  export * from "./ReturnVoice";
14
20
  export * from "./ReturnPagedUserDefinedTools";
15
21
  export * from "./ReturnPagedPrompts";
@@ -21,10 +27,10 @@ export * from "./ReturnChatEvent";
21
27
  export * from "./ReturnChatPagedEvents";
22
28
  export * from "./ReturnActiveChatCount";
23
29
  export * from "./ReturnActiveChatCountPerTag";
24
- export * from "./ReturnChatGroupPagedEvents";
25
- export * from "./ReturnChatGroupPagedChats";
26
30
  export * from "./ReturnChatGroup";
27
31
  export * from "./ReturnPagedChatGroups";
32
+ export * from "./ReturnChatGroupPagedChats";
33
+ export * from "./ReturnChatGroupPagedEvents";
28
34
  export * from "./AssistantEnd";
29
35
  export * from "./AssistantInput";
30
36
  export * from "./AssistantMessage";
@@ -40,7 +46,7 @@ export * from "./Context";
40
46
  export * from "./ContextType";
41
47
  export * from "./EmotionScores";
42
48
  export * from "./Encoding";
43
- export * from "./WebSocketError";
49
+ export * from "./Error_";
44
50
  export * from "./ErrorLevel";
45
51
  export * from "./Inference";
46
52
  export * from "./MillisecondInterval";
@@ -57,6 +63,3 @@ export * from "./ToolType";
57
63
  export * from "./UserInput";
58
64
  export * from "./UserInterruption";
59
65
  export * from "./UserMessage";
60
- export * from "./TtsInput";
61
- export * from "./TextInput";
62
- export * from "./FunctionCallResponseInput";