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
@@ -30,5 +30,5 @@ exports.ResumeAssistantMessage = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ResumeAssistantMessage = core.serialization.object({
32
32
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
- type: core.serialization.stringLiteral("resume_assistant_message").optional(),
33
+ type: core.serialization.stringLiteral("resume_assistant_message"),
34
34
  });
@@ -14,6 +14,8 @@ export declare namespace ReturnChatGroupPagedChats {
14
14
  num_chats: number;
15
15
  page_number: number;
16
16
  page_size: number;
17
+ total_pages: number;
18
+ pagination_direction: string;
17
19
  chats_page: ReturnChat.Raw[];
18
20
  active?: boolean | null;
19
21
  }
@@ -36,6 +36,8 @@ exports.ReturnChatGroupPagedChats = core.serialization.object({
36
36
  numChats: core.serialization.property("num_chats", core.serialization.number()),
37
37
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
38
38
  pageSize: core.serialization.property("page_size", core.serialization.number()),
39
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
40
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
39
41
  chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
40
42
  active: core.serialization.boolean().optional(),
41
43
  });
@@ -11,6 +11,7 @@ export declare namespace ReturnChatGroupPagedEvents {
11
11
  id: string;
12
12
  page_number: number;
13
13
  page_size: number;
14
+ total_pages: number;
14
15
  pagination_direction: string;
15
16
  events_page: ReturnChatEvent.Raw[];
16
17
  }
@@ -33,6 +33,7 @@ exports.ReturnChatGroupPagedEvents = core.serialization.object({
33
33
  id: core.serialization.string(),
34
34
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
35
35
  pageSize: core.serialization.property("page_size", core.serialization.number()),
36
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
37
  paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
37
38
  eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
38
39
  });
@@ -15,10 +15,12 @@ export declare namespace ReturnChatPagedEvents {
15
15
  status: string;
16
16
  start_timestamp: number;
17
17
  end_timestamp?: number | null;
18
+ pagination_direction: string;
18
19
  events_page: ReturnChatEvent.Raw[];
19
20
  metadata?: string | null;
20
21
  page_number: number;
21
22
  page_size: number;
23
+ total_pages: number;
22
24
  config?: ReturnConfigSpec.Raw | null;
23
25
  }
24
26
  }
@@ -37,9 +37,11 @@ exports.ReturnChatPagedEvents = core.serialization.object({
37
37
  status: core.serialization.string(),
38
38
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
39
39
  endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
40
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
40
41
  eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
41
42
  metadata: core.serialization.string().optional(),
42
43
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
43
44
  pageSize: core.serialization.property("page_size", core.serialization.number()),
45
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
44
46
  config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
45
47
  });
@@ -7,8 +7,11 @@ import * as core from "../../../../core";
7
7
  import { ReturnPrompt } from "./ReturnPrompt";
8
8
  import { ReturnVoice } from "./ReturnVoice";
9
9
  import { ReturnLanguageModel } from "./ReturnLanguageModel";
10
+ import { ReturnEllmModel } from "./ReturnEllmModel";
10
11
  import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
11
12
  import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
13
+ import { ReturnEventMessageSpec } from "./ReturnEventMessageSpec";
14
+ import { ReturnTimeoutSpec } from "./ReturnTimeoutSpec";
12
15
  export declare const ReturnConfig: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfig.Raw, Hume.empathicVoice.ReturnConfig>;
13
16
  export declare namespace ReturnConfig {
14
17
  interface Raw {
@@ -21,7 +24,10 @@ export declare namespace ReturnConfig {
21
24
  prompt?: ReturnPrompt.Raw | null;
22
25
  voice?: ReturnVoice.Raw | null;
23
26
  language_model?: ReturnLanguageModel.Raw | null;
24
- tools?: ReturnUserDefinedTool.Raw | null;
25
- builtin_tools?: ReturnBuiltinTool.Raw | null;
27
+ ellm_model?: ReturnEllmModel.Raw | null;
28
+ tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
29
+ builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
30
+ event_messages?: Record<string, ReturnEventMessageSpec.Raw | null | undefined> | null;
31
+ timeouts?: Record<string, ReturnTimeoutSpec.Raw | null | undefined> | null;
26
32
  }
27
33
  }
@@ -31,8 +31,11 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnPrompt_1 = require("./ReturnPrompt");
32
32
  const ReturnVoice_1 = require("./ReturnVoice");
33
33
  const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
34
+ const ReturnEllmModel_1 = require("./ReturnEllmModel");
34
35
  const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
35
36
  const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
37
+ const ReturnEventMessageSpec_1 = require("./ReturnEventMessageSpec");
38
+ const ReturnTimeoutSpec_1 = require("./ReturnTimeoutSpec");
36
39
  exports.ReturnConfig = core.serialization.object({
37
40
  id: core.serialization.string().optional(),
38
41
  version: core.serialization.number().optional(),
@@ -43,6 +46,9 @@ exports.ReturnConfig = core.serialization.object({
43
46
  prompt: ReturnPrompt_1.ReturnPrompt.optional(),
44
47
  voice: ReturnVoice_1.ReturnVoice.optional(),
45
48
  languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
46
- tools: ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional(),
47
- builtinTools: core.serialization.property("builtin_tools", ReturnBuiltinTool_1.ReturnBuiltinTool.optional()),
49
+ ellmModel: core.serialization.property("ellm_model", ReturnEllmModel_1.ReturnEllmModel.optional()),
50
+ tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
51
+ builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
52
+ eventMessages: core.serialization.property("event_messages", core.serialization.record(core.serialization.string(), ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()).optional()),
53
+ timeouts: core.serialization.record(core.serialization.string(), ReturnTimeoutSpec_1.ReturnTimeoutSpec.optional()).optional(),
48
54
  });
@@ -4,9 +4,9 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- export declare const TtsInput: core.serialization.ObjectSchema<serializers.empathicVoice.TtsInput.Raw, Hume.empathicVoice.TtsInput>;
8
- export declare namespace TtsInput {
7
+ export declare const ReturnEllmModel: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEllmModel.Raw, Hume.empathicVoice.ReturnEllmModel>;
8
+ export declare namespace ReturnEllmModel {
9
9
  interface Raw {
10
- type?: "tts" | null;
10
+ allow_short_responses: boolean;
11
11
  }
12
12
  }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnEllmModel = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnEllmModel = core.serialization.object({
32
+ allowShortResponses: core.serialization.property("allow_short_responses", core.serialization.boolean()),
33
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ReturnEventMessageSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEventMessageSpec.Raw, Hume.empathicVoice.ReturnEventMessageSpec>;
8
+ export declare namespace ReturnEventMessageSpec {
9
+ interface Raw {
10
+ enabled: boolean;
11
+ text?: string | null;
12
+ }
13
+ }
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.TextInput = void 0;
29
+ exports.ReturnEventMessageSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.TextInput = core.serialization.object({
32
- type: core.serialization.stringLiteral("text_input").optional(),
31
+ exports.ReturnEventMessageSpec = core.serialization.object({
32
+ enabled: core.serialization.boolean(),
33
+ text: core.serialization.string().optional(),
33
34
  });
@@ -10,6 +10,8 @@ export declare namespace ReturnPagedChatGroups {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
14
+ pagination_direction: string;
13
15
  chat_groups_page: ReturnChatGroup.Raw[];
14
16
  }
15
17
  }
@@ -32,5 +32,7 @@ const ReturnChatGroup_1 = require("./ReturnChatGroup");
32
32
  exports.ReturnPagedChatGroups = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
35
37
  chatGroupsPage: core.serialization.property("chat_groups_page", core.serialization.list(ReturnChatGroup_1.ReturnChatGroup)),
36
38
  });
@@ -10,6 +10,8 @@ export declare namespace ReturnPagedChats {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
14
+ pagination_direction: string;
13
15
  chats_page: ReturnChat.Raw[];
14
16
  }
15
17
  }
@@ -32,5 +32,7 @@ const ReturnChat_1 = require("./ReturnChat");
32
32
  exports.ReturnPagedChats = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
35
37
  chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
36
38
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedConfigs {
10
10
  interface Raw {
11
11
  page_number?: number | null;
12
12
  page_size?: number | null;
13
+ total_pages: number;
13
14
  configs_page?: ReturnConfig.Raw[] | null;
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ const ReturnConfig_1 = require("./ReturnConfig");
32
32
  exports.ReturnPagedConfigs = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number().optional()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number().optional()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
35
36
  configsPage: core.serialization.property("configs_page", core.serialization.list(ReturnConfig_1.ReturnConfig).optional()),
36
37
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedPrompts {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
13
14
  prompts_page: (ReturnPrompt.Raw | null | undefined)[];
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ const ReturnPrompt_1 = require("./ReturnPrompt");
32
32
  exports.ReturnPagedPrompts = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
35
36
  promptsPage: core.serialization.property("prompts_page", core.serialization.list(ReturnPrompt_1.ReturnPrompt.optional())),
36
37
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedUserDefinedTools {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
13
14
  tools_page: (ReturnUserDefinedTool.Raw | null | undefined)[];
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
32
32
  exports.ReturnPagedUserDefinedTools = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
35
36
  toolsPage: core.serialization.property("tools_page", core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional())),
36
37
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ReturnTimeoutSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnTimeoutSpec.Raw, Hume.empathicVoice.ReturnTimeoutSpec>;
8
+ export declare namespace ReturnTimeoutSpec {
9
+ interface Raw {
10
+ enabled: boolean;
11
+ duration_secs?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnTimeoutSpec = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnTimeoutSpec = core.serialization.object({
32
+ enabled: core.serialization.boolean(),
33
+ durationSecs: core.serialization.property("duration_secs", core.serialization.number().optional()),
34
+ });
@@ -6,12 +6,14 @@ import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { AudioConfiguration } from "./AudioConfiguration";
8
8
  import { BuiltinToolConfig } from "./BuiltinToolConfig";
9
+ import { Context } from "./Context";
9
10
  import { Tool } from "./Tool";
10
11
  export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
11
12
  export declare namespace SessionSettings {
12
13
  interface Raw {
13
14
  audio?: AudioConfiguration.Raw | null;
14
15
  builtin_tools?: BuiltinToolConfig.Raw[] | null;
16
+ context?: Context.Raw | null;
15
17
  custom_session_id?: string | null;
16
18
  language_model_api_key?: string | null;
17
19
  system_prompt?: string | null;
@@ -30,10 +30,12 @@ exports.SessionSettings = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const AudioConfiguration_1 = require("./AudioConfiguration");
32
32
  const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
33
+ const Context_1 = require("./Context");
33
34
  const Tool_1 = require("./Tool");
34
35
  exports.SessionSettings = core.serialization.object({
35
36
  audio: AudioConfiguration_1.AudioConfiguration.optional(),
36
37
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
38
+ context: Context_1.Context.optional(),
37
39
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
38
40
  languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
39
41
  systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
@@ -13,7 +13,7 @@ export declare namespace ToolCallMessage {
13
13
  parameters: string;
14
14
  response_required: boolean;
15
15
  tool_call_id: string;
16
- tool_type: ToolType.Raw;
17
- type?: "tool_call" | null;
16
+ tool_type?: ToolType.Raw | null;
17
+ type: "tool_call";
18
18
  }
19
19
  }
@@ -35,6 +35,6 @@ exports.ToolCallMessage = core.serialization.object({
35
35
  parameters: core.serialization.string(),
36
36
  responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
37
37
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
38
- toolType: core.serialization.property("tool_type", ToolType_1.ToolType),
39
- type: core.serialization.stringLiteral("tool_call").optional(),
38
+ toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
39
+ type: core.serialization.stringLiteral("tool_call"),
40
40
  });
@@ -16,6 +16,6 @@ export declare namespace ToolErrorMessage {
16
16
  level?: ErrorLevel.Raw | null;
17
17
  tool_call_id: string;
18
18
  tool_type?: ToolType.Raw | null;
19
- type?: "tool_error" | null;
19
+ type: "tool_error";
20
20
  }
21
21
  }
@@ -38,5 +38,5 @@ exports.ToolErrorMessage = core.serialization.object({
38
38
  level: ErrorLevel_1.ErrorLevel.optional(),
39
39
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
40
40
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
41
- type: core.serialization.stringLiteral("tool_error").optional(),
41
+ type: core.serialization.stringLiteral("tool_error"),
42
42
  });
@@ -13,6 +13,6 @@ export declare namespace ToolResponseMessage {
13
13
  tool_call_id: string;
14
14
  tool_name?: string | null;
15
15
  tool_type?: ToolType.Raw | null;
16
- type?: "tool_response" | null;
16
+ type: "tool_response";
17
17
  }
18
18
  }
@@ -35,5 +35,5 @@ exports.ToolResponseMessage = core.serialization.object({
35
35
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
36
36
  toolName: core.serialization.property("tool_name", core.serialization.string().optional()),
37
37
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
38
- type: core.serialization.stringLiteral("tool_response").optional(),
38
+ type: core.serialization.stringLiteral("tool_response"),
39
39
  });
@@ -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";
@@ -17,15 +17,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ReturnUserDefinedTool"), exports);
18
18
  __exportStar(require("./ReturnPrompt"), exports);
19
19
  __exportStar(require("./PostedBuiltinTool"), exports);
20
+ __exportStar(require("./PostedEllmModel"), exports);
21
+ __exportStar(require("./PostedEventMessageSpec"), exports);
20
22
  __exportStar(require("./PostedLanguageModelModelProvider"), exports);
21
23
  __exportStar(require("./PostedLanguageModel"), exports);
22
24
  __exportStar(require("./PostedPromptSpec"), exports);
25
+ __exportStar(require("./PostedTimeoutSpec"), exports);
23
26
  __exportStar(require("./PostedUserDefinedToolSpec"), exports);
24
27
  __exportStar(require("./PostedVoiceName"), exports);
25
28
  __exportStar(require("./PostedVoice"), exports);
26
29
  __exportStar(require("./ReturnBuiltinTool"), exports);
27
30
  __exportStar(require("./ReturnConfig"), exports);
31
+ __exportStar(require("./ReturnEllmModel"), exports);
32
+ __exportStar(require("./ReturnEventMessageSpec"), exports);
28
33
  __exportStar(require("./ReturnLanguageModel"), exports);
34
+ __exportStar(require("./ReturnTimeoutSpec"), exports);
29
35
  __exportStar(require("./ReturnVoice"), exports);
30
36
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
31
37
  __exportStar(require("./ReturnPagedPrompts"), exports);
@@ -37,10 +43,10 @@ __exportStar(require("./ReturnChatEvent"), exports);
37
43
  __exportStar(require("./ReturnChatPagedEvents"), exports);
38
44
  __exportStar(require("./ReturnActiveChatCount"), exports);
39
45
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
40
- __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
41
- __exportStar(require("./ReturnChatGroupPagedChats"), exports);
42
46
  __exportStar(require("./ReturnChatGroup"), exports);
43
47
  __exportStar(require("./ReturnPagedChatGroups"), exports);
48
+ __exportStar(require("./ReturnChatGroupPagedChats"), exports);
49
+ __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
44
50
  __exportStar(require("./AssistantEnd"), exports);
45
51
  __exportStar(require("./AssistantInput"), exports);
46
52
  __exportStar(require("./AssistantMessage"), exports);
@@ -56,7 +62,7 @@ __exportStar(require("./Context"), exports);
56
62
  __exportStar(require("./ContextType"), exports);
57
63
  __exportStar(require("./EmotionScores"), exports);
58
64
  __exportStar(require("./Encoding"), exports);
59
- __exportStar(require("./WebSocketError"), exports);
65
+ __exportStar(require("./Error_"), exports);
60
66
  __exportStar(require("./ErrorLevel"), exports);
61
67
  __exportStar(require("./Inference"), exports);
62
68
  __exportStar(require("./MillisecondInterval"), exports);
@@ -73,6 +79,3 @@ __exportStar(require("./ToolType"), exports);
73
79
  __exportStar(require("./UserInput"), exports);
74
80
  __exportStar(require("./UserInterruption"), exports);
75
81
  __exportStar(require("./UserMessage"), exports);
76
- __exportStar(require("./TtsInput"), exports);
77
- __exportStar(require("./TextInput"), exports);
78
- __exportStar(require("./FunctionCallResponseInput"), exports);
@@ -14,7 +14,7 @@ export declare namespace ChatClient {
14
14
  resumedChatGroupId?: string;
15
15
  onOpen?: () => void;
16
16
  onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
17
- onError?: (error: Hume.empathicVoice.WebSocketError) => void;
17
+ onError?: (error: Hume.empathicVoice.Error_) => void;
18
18
  onClose?: () => void;
19
19
  }
20
20
  }
@@ -26,5 +26,5 @@ export declare class ChatClient {
26
26
  }
27
27
  export declare function parse(data: any, args?: {
28
28
  onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
29
- onError?: (error: Hume.empathicVoice.WebSocketError) => void;
29
+ onError?: (error: Hume.empathicVoice.Error_) => void;
30
30
  }): Promise<Hume.empathicVoice.SubscribeEvent | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",
@@ -34,5 +34,10 @@
34
34
  "typescript": "4.6.4",
35
35
  "@types/ws": "^8.5.9",
36
36
  "@types/uuid": "9.0.7"
37
+ },
38
+ "browser": {
39
+ "fs": false,
40
+ "os": false,
41
+ "path": false
37
42
  }
38
43
  }