hume 0.5.5 → 0.5.7

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 (337) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +6 -6
  3. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  4. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  5. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  6. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  7. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  8. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  9. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
  10. package/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
  11. package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
  12. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
  13. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
  14. package/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  15. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
  16. package/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
  17. package/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
  18. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
  19. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
  20. package/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  21. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
  22. package/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
  23. package/api/resources/empathicVoice/types/AssistantInput.js +5 -0
  24. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
  25. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
  26. package/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
  27. package/api/resources/empathicVoice/types/Error_.d.ts +4 -0
  28. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
  29. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
  30. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  31. package/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
  32. package/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  33. package/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  34. package/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
  35. package/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
  36. package/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
  37. package/api/resources/empathicVoice/types/PostedVoice.js +5 -0
  38. package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  39. package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  40. package/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  41. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  42. package/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  43. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  44. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  45. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  46. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  47. package/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
  48. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
  49. package/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
  50. package/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
  51. package/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
  52. package/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
  53. package/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
  54. package/api/resources/empathicVoice/types/UserInput.js +5 -0
  55. package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
  56. package/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
  57. package/api/resources/empathicVoice/types/index.d.ts +7 -4
  58. package/api/resources/empathicVoice/types/index.js +7 -4
  59. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  60. package/api/resources/index.d.ts +1 -1
  61. package/api/resources/index.js +2 -2
  62. package/core/index.d.ts +1 -0
  63. package/core/index.js +1 -0
  64. package/core/websocket/WebSocket.d.ts +1 -0
  65. package/core/websocket/WebSocket.js +37 -0
  66. package/core/websocket/index.d.ts +1 -0
  67. package/core/websocket/index.js +5 -0
  68. package/dist/Client.d.ts +3 -3
  69. package/dist/Client.js +6 -6
  70. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  71. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  72. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  73. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  74. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  75. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  76. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
  77. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
  78. package/dist/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
  79. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +5 -0
  80. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
  81. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
  82. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +5 -0
  83. package/dist/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  84. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
  85. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
  86. package/dist/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
  87. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +5 -0
  88. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
  89. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +5 -0
  91. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  92. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
  93. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
  94. package/dist/api/resources/empathicVoice/types/AssistantInput.js +5 -0
  95. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
  96. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
  97. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
  98. package/dist/api/resources/empathicVoice/types/Error_.d.ts +4 -0
  99. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
  100. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
  101. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  102. package/dist/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
  103. package/dist/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  105. package/dist/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
  106. package/dist/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
  108. package/dist/api/resources/empathicVoice/types/PostedVoice.js +5 -0
  109. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  110. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  111. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  112. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  113. package/dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  114. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  115. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  116. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  117. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  118. package/dist/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
  119. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
  120. package/dist/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
  121. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
  122. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
  123. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
  124. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
  125. package/dist/api/resources/empathicVoice/types/UserInput.js +5 -0
  126. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
  127. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
  128. package/dist/api/resources/empathicVoice/types/index.d.ts +7 -4
  129. package/dist/api/resources/empathicVoice/types/index.js +7 -4
  130. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  131. package/dist/api/resources/index.d.ts +1 -1
  132. package/dist/api/resources/index.js +2 -2
  133. package/dist/core/index.d.ts +1 -0
  134. package/dist/core/index.js +1 -0
  135. package/dist/core/websocket/WebSocket.d.ts +1 -0
  136. package/dist/core/websocket/WebSocket.js +37 -0
  137. package/dist/core/websocket/index.d.ts +1 -0
  138. package/dist/core/websocket/index.js +5 -0
  139. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
  140. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
  141. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
  142. package/{serialization/resources/empathicVoice/types → dist/serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
  143. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  144. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
  145. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
  146. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
  147. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  148. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
  149. package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
  150. package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
  151. package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
  152. package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
  153. package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
  154. package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
  155. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
  156. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
  157. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
  158. package/dist/serialization/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.js +3 -3
  159. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  160. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
  161. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
  162. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
  163. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  164. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
  165. package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
  166. package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
  167. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  168. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  169. package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
  170. package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
  171. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
  172. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
  173. package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  174. package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
  175. package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  176. package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
  177. package/dist/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
  178. package/dist/serialization/resources/empathicVoice/types/Error_.js +1 -0
  179. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  180. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  181. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  182. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
  183. package/dist/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
  184. package/dist/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
  185. package/dist/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  186. package/dist/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
  187. package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  188. package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
  189. package/dist/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
  190. package/dist/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
  191. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
  192. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
  193. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  194. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
  195. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  196. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
  197. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  198. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
  199. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  200. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
  201. package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  202. package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
  203. package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  204. package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
  205. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  206. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
  207. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  208. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
  209. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  210. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
  211. package/dist/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
  212. package/dist/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
  213. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
  214. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
  215. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  216. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
  217. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
  218. package/dist/serialization/resources/empathicVoice/types/TextInput.js +1 -2
  219. package/dist/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
  220. package/dist/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
  221. package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
  222. package/dist/serialization/resources/empathicVoice/types/UserInput.js +35 -0
  223. package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
  224. package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
  225. package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
  226. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
  227. package/dist/serialization/resources/empathicVoice/types/index.d.ts +7 -4
  228. package/dist/serialization/resources/empathicVoice/types/index.js +7 -4
  229. package/dist/serialization/resources/index.d.ts +1 -1
  230. package/dist/serialization/resources/index.js +2 -2
  231. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
  232. package/dist/wrapper/empathicVoice/chat/ChatClient.js +5 -6
  233. package/dist/wrapper/empathicVoice/chat/StreamSocket.d.ts +9 -11
  234. package/dist/wrapper/empathicVoice/chat/StreamSocket.js +20 -20
  235. package/package.json +1 -1
  236. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
  237. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
  238. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
  239. package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
  240. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  241. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
  242. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
  243. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
  244. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  245. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
  246. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
  247. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
  248. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
  249. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
  250. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
  251. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
  252. package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
  253. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
  254. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
  255. package/serialization/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.js +3 -3
  256. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  257. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
  258. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
  259. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
  260. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  261. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
  262. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
  263. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
  264. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  265. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  266. package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
  267. package/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
  268. package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
  269. package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
  270. package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  271. package/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
  272. package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  273. package/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
  274. package/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
  275. package/serialization/resources/empathicVoice/types/Error_.js +1 -0
  276. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  277. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  278. package/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  279. package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
  280. package/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
  281. package/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
  282. package/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  283. package/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
  284. package/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  285. package/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
  286. package/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
  287. package/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
  288. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
  289. package/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
  290. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  291. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
  292. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  293. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
  294. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  295. package/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
  296. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  297. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
  298. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  299. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
  300. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  301. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
  302. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  303. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
  304. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  305. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
  306. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  307. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
  308. package/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
  309. package/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
  310. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
  311. package/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
  312. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  313. package/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
  314. package/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
  315. package/serialization/resources/empathicVoice/types/TextInput.js +1 -2
  316. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
  317. package/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
  318. package/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
  319. package/serialization/resources/empathicVoice/types/UserInput.js +35 -0
  320. package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
  321. package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
  322. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
  323. package/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
  324. package/serialization/resources/empathicVoice/types/index.d.ts +7 -4
  325. package/serialization/resources/empathicVoice/types/index.js +7 -4
  326. package/serialization/resources/index.d.ts +1 -1
  327. package/serialization/resources/index.js +2 -2
  328. package/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
  329. package/wrapper/empathicVoice/chat/ChatClient.js +5 -6
  330. package/wrapper/empathicVoice/chat/StreamSocket.d.ts +9 -11
  331. package/wrapper/empathicVoice/chat/StreamSocket.js +20 -20
  332. package/dist/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  333. package/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  334. /package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.js +0 -0
  335. /package/api/resources/empathicVoice/{types/PostedPrompt.js → resources/configs/client/requests/PostedConfigVersion.js} +0 -0
  336. /package/{dist/api/resources/empathicVoice/types → api/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +0 -0
  337. /package/{dist/api/resources/empathicVoice/types/PostedConfig.js → api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js} +0 -0
@@ -2,7 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface TextInput {
5
- /** Text to insert into the conversation. */
6
- text: string;
7
- type: "user_input";
5
+ type?: "text_input";
8
6
  }
@@ -2,7 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface TtsInput {
5
- /** Text to be synthesized. */
6
- text: string;
7
- type: "assistant_input";
5
+ type?: "tts";
8
6
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * User text to insert into the conversation.
6
+ */
7
+ export interface UserInput {
8
+ customSessionId?: string;
9
+ /** User text to insert into the conversation. */
10
+ text: string;
11
+ type: "user_input";
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * When provided, the output is an interruption.
6
+ */
4
7
  export interface UserInterruption {
8
+ customSessionId?: string;
5
9
  time: number;
6
10
  type: "user_interruption";
7
11
  }
@@ -2,15 +2,17 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../..";
5
+ /**
6
+ * When provided, the output is a user message.
7
+ */
5
8
  export interface UserMessage {
9
+ customSessionId?: string;
6
10
  /** Indicates if this message was constructed from a text input message. */
7
11
  fromText: boolean;
8
12
  /** Transcript of the message. */
9
13
  message: Hume.empathicVoice.ChatMessage;
10
14
  /** Inference model results. */
11
15
  models: Hume.empathicVoice.Inference;
12
- /** Segments of the user message. */
13
- serializedSegments: Record<string, unknown>[];
14
16
  /** Start and End time of user message. */
15
17
  time: Hume.empathicVoice.MillisecondInterval;
16
18
  type: "user_message";
@@ -1,14 +1,15 @@
1
1
  export * from "./PostedTool";
2
2
  export * from "./ReturnTool";
3
- export * from "./PostedPrompt";
3
+ export * from "./PostedToolVersion";
4
4
  export * from "./ReturnPrompt";
5
- export * from "./PostedConfig";
6
5
  export * from "./PostedLanguageModelModelProvider";
7
6
  export * from "./PostedLanguageModel";
8
7
  export * from "./PostedPromptSpec";
9
8
  export * from "./PostedToolSpec";
9
+ export * from "./PostedVoice";
10
10
  export * from "./ReturnConfig";
11
11
  export * from "./ReturnLanguageModel";
12
+ export * from "./ReturnVoice";
12
13
  export * from "./PostedToolName";
13
14
  export * from "./PostedToolVersionDescription";
14
15
  export * from "./ReturnPagedPrompts";
@@ -21,6 +22,7 @@ export * from "./ReturnChatWithPagedEvents";
21
22
  export * from "./ReturnActiveChatCount";
22
23
  export * from "./ReturnActiveChatCountPerTag";
23
24
  export * from "./AssistantEnd";
25
+ export * from "./AssistantInput";
24
26
  export * from "./AssistantMessage";
25
27
  export * from "./AudioConfiguration";
26
28
  export * from "./AudioInput";
@@ -34,8 +36,9 @@ export * from "./MillisecondInterval";
34
36
  export * from "./ProsodyInference";
35
37
  export * from "./Role";
36
38
  export * from "./SessionSettings";
37
- export * from "./TextInput";
38
- export * from "./TtsInput";
39
+ export * from "./UserInput";
39
40
  export * from "./UserInterruption";
40
41
  export * from "./UserMessage";
42
+ export * from "./TtsInput";
43
+ export * from "./TextInput";
41
44
  export * from "./FunctionCallResponseInput";
@@ -16,15 +16,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./PostedTool"), exports);
18
18
  __exportStar(require("./ReturnTool"), exports);
19
- __exportStar(require("./PostedPrompt"), exports);
19
+ __exportStar(require("./PostedToolVersion"), exports);
20
20
  __exportStar(require("./ReturnPrompt"), exports);
21
- __exportStar(require("./PostedConfig"), exports);
22
21
  __exportStar(require("./PostedLanguageModelModelProvider"), exports);
23
22
  __exportStar(require("./PostedLanguageModel"), exports);
24
23
  __exportStar(require("./PostedPromptSpec"), exports);
25
24
  __exportStar(require("./PostedToolSpec"), exports);
25
+ __exportStar(require("./PostedVoice"), exports);
26
26
  __exportStar(require("./ReturnConfig"), exports);
27
27
  __exportStar(require("./ReturnLanguageModel"), exports);
28
+ __exportStar(require("./ReturnVoice"), exports);
28
29
  __exportStar(require("./PostedToolName"), exports);
29
30
  __exportStar(require("./PostedToolVersionDescription"), exports);
30
31
  __exportStar(require("./ReturnPagedPrompts"), exports);
@@ -37,6 +38,7 @@ __exportStar(require("./ReturnChatWithPagedEvents"), exports);
37
38
  __exportStar(require("./ReturnActiveChatCount"), exports);
38
39
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
39
40
  __exportStar(require("./AssistantEnd"), exports);
41
+ __exportStar(require("./AssistantInput"), exports);
40
42
  __exportStar(require("./AssistantMessage"), exports);
41
43
  __exportStar(require("./AudioConfiguration"), exports);
42
44
  __exportStar(require("./AudioInput"), exports);
@@ -50,8 +52,9 @@ __exportStar(require("./MillisecondInterval"), exports);
50
52
  __exportStar(require("./ProsodyInference"), exports);
51
53
  __exportStar(require("./Role"), exports);
52
54
  __exportStar(require("./SessionSettings"), exports);
53
- __exportStar(require("./TextInput"), exports);
54
- __exportStar(require("./TtsInput"), exports);
55
+ __exportStar(require("./UserInput"), exports);
55
56
  __exportStar(require("./UserInterruption"), exports);
56
57
  __exportStar(require("./UserMessage"), exports);
58
+ __exportStar(require("./TtsInput"), exports);
59
+ __exportStar(require("./TextInput"), exports);
57
60
  __exportStar(require("./FunctionCallResponseInput"), exports);
@@ -96,7 +96,7 @@ class Batch {
96
96
  method: "GET",
97
97
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
98
98
  ? yield core.Supplier.get(this._options.accountToken)
99
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -149,7 +149,7 @@ class Batch {
149
149
  method: "POST",
150
150
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
151
151
  ? yield core.Supplier.get(this._options.accountToken)
152
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
152
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
153
153
  contentType: "application/json",
154
154
  body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
155
155
  unrecognizedObjectKeys: "strip",
@@ -204,7 +204,7 @@ class Batch {
204
204
  method: "GET",
205
205
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
206
206
  ? yield core.Supplier.get(this._options.accountToken)
207
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
210
210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -253,7 +253,7 @@ class Batch {
253
253
  method: "GET",
254
254
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
255
255
  ? yield core.Supplier.get(this._options.accountToken)
256
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
257
257
  contentType: "application/json",
258
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
259
259
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -299,7 +299,7 @@ class Batch {
299
299
  method: "GET",
300
300
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
301
301
  ? yield core.Supplier.get(this._options.accountToken)
302
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
303
  contentType: "application/json",
304
304
  responseType: "streaming",
305
305
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class Batch {
345
345
  method: "POST",
346
346
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
347
347
  ? yield core.Supplier.get(this._options.accountToken)
348
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
348
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
349
349
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
350
350
  body: _request,
351
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,3 +1,3 @@
1
- export * as empathicVoice from "./empathicVoice";
2
1
  export * as customModels from "./customModels";
2
+ export * as empathicVoice from "./empathicVoice";
3
3
  export * as expressionMeasurement from "./expressionMeasurement";
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.customModels = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.expressionMeasurement = exports.empathicVoice = exports.customModels = void 0;
28
27
  exports.customModels = __importStar(require("./customModels"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
29
29
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
package/core/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./fetcher";
2
2
  export * from "./runtime";
3
+ export * from "./websocket";
3
4
  export * as serialization from "./schemas";
package/core/index.js CHANGED
@@ -29,4 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.serialization = void 0;
30
30
  __exportStar(require("./fetcher"), exports);
31
31
  __exportStar(require("./runtime"), exports);
32
+ __exportStar(require("./websocket"), exports);
32
33
  exports.serialization = __importStar(require("./schemas"));
@@ -0,0 +1 @@
1
+ export declare const IsomorphicWebSocket: any;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.IsomorphicWebSocket = void 0;
27
+ const WebSocket_ = __importStar(require("ws"));
28
+ exports.IsomorphicWebSocket = (() => {
29
+ // Use browser Websocket implementation if present
30
+ if (typeof window != "undefined" && typeof (window === null || window === void 0 ? void 0 : window.WebSocket) !== "undefined") {
31
+ return window.WebSocket;
32
+ }
33
+ if (WebSocket_.WebSocket) {
34
+ return WebSocket_.WebSocket;
35
+ }
36
+ return WebSocket_;
37
+ })();
@@ -0,0 +1 @@
1
+ export { IsomorphicWebSocket as WebSocket } from "./WebSocket";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebSocket = void 0;
4
+ var WebSocket_1 = require("./WebSocket");
5
+ Object.defineProperty(exports, "WebSocket", { enumerable: true, get: function () { return WebSocket_1.IsomorphicWebSocket; } });
package/dist/Client.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
- import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
7
6
  import { CustomModels } from "./api/resources/customModels/client/Client";
7
+ import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
8
8
  import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
9
9
  export declare namespace HumeClient {
10
10
  interface Options {
@@ -21,10 +21,10 @@ export declare namespace HumeClient {
21
21
  export declare class HumeClient {
22
22
  protected readonly _options: HumeClient.Options;
23
23
  constructor(_options?: HumeClient.Options);
24
- protected _empathicVoice: EmpathicVoice | undefined;
25
- get empathicVoice(): EmpathicVoice;
26
24
  protected _customModels: CustomModels | undefined;
27
25
  get customModels(): CustomModels;
26
+ protected _empathicVoice: EmpathicVoice | undefined;
27
+ get empathicVoice(): EmpathicVoice;
28
28
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
29
29
  get expressionMeasurement(): ExpressionMeasurement;
30
30
  }
package/dist/Client.js CHANGED
@@ -4,20 +4,20 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HumeClient = void 0;
7
- const Client_1 = require("./api/resources/empathicVoice/client/Client");
8
- const Client_2 = require("./api/resources/customModels/client/Client");
7
+ const Client_1 = require("./api/resources/customModels/client/Client");
8
+ const Client_2 = require("./api/resources/empathicVoice/client/Client");
9
9
  const Client_3 = require("./api/resources/expressionMeasurement/client/Client");
10
10
  class HumeClient {
11
11
  constructor(_options = {}) {
12
12
  this._options = _options;
13
13
  }
14
- get empathicVoice() {
14
+ get customModels() {
15
15
  var _a;
16
- return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_1.EmpathicVoice(this._options)));
16
+ return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_1.CustomModels(this._options)));
17
17
  }
18
- get customModels() {
18
+ get empathicVoice() {
19
19
  var _a;
20
- return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_2.CustomModels(this._options)));
20
+ return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
21
21
  }
22
22
  get expressionMeasurement() {
23
23
  var _a;
@@ -77,7 +77,7 @@ class Datasets {
77
77
  method: "GET",
78
78
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
79
79
  ? yield core.Supplier.get(this._options.accountToken)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Datasets {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
135
135
  body: _request,
136
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -180,7 +180,7 @@ class Datasets {
180
180
  method: "GET",
181
181
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
182
182
  ? yield core.Supplier.get(this._options.accountToken)
183
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
186
186
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -231,7 +231,7 @@ class Datasets {
231
231
  method: "POST",
232
232
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
233
233
  ? yield core.Supplier.get(this._options.accountToken)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
234
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
235
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
236
236
  body: _request,
237
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class Datasets {
281
281
  method: "DELETE",
282
282
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
283
283
  ? yield core.Supplier.get(this._options.accountToken)
284
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
284
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
285
  contentType: "application/json",
286
286
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
287
287
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -335,7 +335,7 @@ class Datasets {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  queryParameters: _queryParams,
341
341
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -396,7 +396,7 @@ class Datasets {
396
396
  method: "GET",
397
397
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
398
398
  ? yield core.Supplier.get(this._options.accountToken)
399
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
399
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
400
400
  contentType: "application/json",
401
401
  queryParameters: _queryParams,
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -446,7 +446,7 @@ class Datasets {
446
446
  method: "GET",
447
447
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
448
448
  ? yield core.Supplier.get(this._options.accountToken)
449
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
449
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
450
  contentType: "application/json",
451
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
452
452
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -506,7 +506,7 @@ class Datasets {
506
506
  method: "GET",
507
507
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
508
508
  ? yield core.Supplier.get(this._options.accountToken)
509
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
509
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
510
510
  contentType: "application/json",
511
511
  queryParameters: _queryParams,
512
512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -74,7 +74,7 @@ class Files {
74
74
  method: "GET",
75
75
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
76
76
  ? yield core.Supplier.get(this._options.accountToken)
77
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Files {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "application/json",
135
135
  body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
136
136
  unrecognizedObjectKeys: "strip",
@@ -184,7 +184,7 @@ class Files {
184
184
  method: "POST",
185
185
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
186
186
  ? yield core.Supplier.get(this._options.accountToken)
187
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
189
189
  body: _request,
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +234,7 @@ class Files {
234
234
  method: "GET",
235
235
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
236
236
  ? yield core.Supplier.get(this._options.accountToken)
237
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
237
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
238
  contentType: "application/json",
239
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
240
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -283,7 +283,7 @@ class Files {
283
283
  method: "DELETE",
284
284
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
285
285
  ? yield core.Supplier.get(this._options.accountToken)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
287
287
  contentType: "application/json",
288
288
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
289
289
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -331,7 +331,7 @@ class Files {
331
331
  method: "PATCH",
332
332
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
333
333
  ? yield core.Supplier.get(this._options.accountToken)
334
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
335
335
  contentType: "application/json",
336
336
  queryParameters: _queryParams,
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -381,7 +381,7 @@ class Files {
381
381
  method: "GET",
382
382
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
383
383
  ? yield core.Supplier.get(this._options.accountToken)
384
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
384
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
385
  contentType: "application/json",
386
386
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
387
387
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -69,7 +69,7 @@ class Jobs {
69
69
  method: "POST",
70
70
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
71
71
  ? yield core.Supplier.get(this._options.accountToken)
72
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
75
75
  unrecognizedObjectKeys: "strip",
@@ -125,7 +125,7 @@ class Jobs {
125
125
  method: "POST",
126
126
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
127
127
  ? yield core.Supplier.get(this._options.accountToken)
128
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  body: yield serializers.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
131
131
  unrecognizedObjectKeys: "strip",
@@ -62,7 +62,7 @@ class Models {
62
62
  method: "GET",
63
63
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
64
64
  ? yield core.Supplier.get(this._options.accountToken)
65
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
66
66
  contentType: "application/json",
67
67
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
68
68
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -116,7 +116,7 @@ class Models {
116
116
  method: "PATCH",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -171,7 +171,7 @@ class Models {
171
171
  method: "GET",
172
172
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
173
173
  ? yield core.Supplier.get(this._options.accountToken)
174
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
175
  contentType: "application/json",
176
176
  queryParameters: _queryParams,
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class Models {
221
221
  method: "PATCH",
222
222
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
223
223
  ? yield core.Supplier.get(this._options.accountToken)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  body: yield serializers.customModels.models.updateModelVersionDescription.Request.jsonOrThrow(request, {
227
227
  unrecognizedObjectKeys: "strip",
@@ -287,7 +287,7 @@ class Models {
287
287
  method: "GET",
288
288
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
289
289
  ? yield core.Supplier.get(this._options.accountToken)
290
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
290
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
291
  contentType: "application/json",
292
292
  queryParameters: _queryParams,
293
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -356,7 +356,7 @@ class Models {
356
356
  method: "GET",
357
357
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
358
358
  ? yield core.Supplier.get(this._options.accountToken)
359
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
359
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
360
  contentType: "application/json",
361
361
  queryParameters: _queryParams,
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../../../..";
5
- export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.TextInput | Hume.empathicVoice.TtsInput;
5
+ export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput;
@@ -64,7 +64,7 @@ class Chats {
64
64
  method: "GET",
65
65
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
66
66
  ? yield core.Supplier.get(this._options.accountToken)
67
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class Chats {
116
116
  method: "GET",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,