hume 0.5.3 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) 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 +43 -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 +43 -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/{serialization/resources/empathicVoice/types → dist/serialization/resources/empathicVoice/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 +6 -9
  234. package/dist/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
  235. package/dist/wrapper/index.d.ts +0 -1
  236. package/dist/wrapper/index.js +1 -3
  237. package/package.json +3 -6
  238. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
  239. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
  240. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
  241. package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
  242. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  243. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
  244. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
  245. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
  246. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  247. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
  248. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
  249. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
  250. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
  251. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
  252. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
  253. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
  254. package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
  255. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
  256. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
  257. package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +3 -3
  258. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  259. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
  260. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
  261. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
  262. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  263. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
  264. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
  265. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
  266. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  267. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  268. package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
  269. package/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
  270. package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
  271. package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
  272. package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  273. package/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
  274. package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  275. package/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
  276. package/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
  277. package/serialization/resources/empathicVoice/types/Error_.js +1 -0
  278. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  279. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  280. package/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  281. package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
  282. package/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
  283. package/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
  284. package/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  285. package/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
  286. package/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  287. package/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
  288. package/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
  289. package/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
  290. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
  291. package/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
  292. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  293. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
  294. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  295. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
  296. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  297. package/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
  298. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  299. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
  300. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  301. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
  302. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  303. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
  304. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  305. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
  306. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  307. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
  308. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  309. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
  310. package/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
  311. package/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
  312. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
  313. package/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
  314. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  315. package/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
  316. package/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
  317. package/serialization/resources/empathicVoice/types/TextInput.js +1 -2
  318. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
  319. package/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
  320. package/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
  321. package/serialization/resources/empathicVoice/types/UserInput.js +35 -0
  322. package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
  323. package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
  324. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
  325. package/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
  326. package/serialization/resources/empathicVoice/types/index.d.ts +7 -4
  327. package/serialization/resources/empathicVoice/types/index.js +7 -4
  328. package/serialization/resources/index.d.ts +1 -1
  329. package/serialization/resources/index.js +2 -2
  330. package/tests/empathicVoice/chat.test.ts +2 -3
  331. package/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
  332. package/wrapper/empathicVoice/chat/ChatClient.js +5 -6
  333. package/wrapper/empathicVoice/chat/StreamSocket.d.ts +6 -9
  334. package/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
  335. package/wrapper/index.d.ts +0 -1
  336. package/wrapper/index.js +1 -3
  337. package/dist/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  338. package/dist/wrapper/ffplay.d.ts +0 -2
  339. package/dist/wrapper/ffplay.js +0 -58
  340. package/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  341. package/wrapper/ffplay.d.ts +0 -2
  342. package/wrapper/ffplay.js +0 -58
  343. /package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.js +0 -0
  344. /package/api/resources/empathicVoice/{types/PostedPrompt.js → resources/configs/client/requests/PostedConfigVersion.js} +0 -0
  345. /package/{dist/api/resources/empathicVoice/types → api/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +0 -0
  346. /package/{dist/api/resources/empathicVoice/types/PostedConfig.js → api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js} +0 -0
@@ -67,7 +67,7 @@ class Prompts {
67
67
  method: "GET",
68
68
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
69
69
  ? yield core.Supplier.get(this._options.accountToken)
70
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Prompts {
111
111
  method: "POST",
112
112
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
113
113
  ? yield core.Supplier.get(this._options.accountToken)
114
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
117
117
  unrecognizedObjectKeys: "strip",
@@ -120,7 +120,7 @@ class Prompts {
120
120
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
121
121
  });
122
122
  if (_response.ok) {
123
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
123
+ return yield serializers.empathicVoice.prompts.createNewPrompt.Response.parseOrThrow(_response.body, {
124
124
  unrecognizedObjectKeys: "passthrough",
125
125
  allowUnrecognizedUnionMembers: true,
126
126
  allowUnrecognizedEnumValues: true,
@@ -168,7 +168,7 @@ class Prompts {
168
168
  method: "GET",
169
169
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
170
170
  ? yield core.Supplier.get(this._options.accountToken)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
172
  contentType: "application/json",
173
173
  queryParameters: _queryParams,
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,16 +212,16 @@ class Prompts {
212
212
  method: "POST",
213
213
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
214
214
  ? yield core.Supplier.get(this._options.accountToken)
215
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
- body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
217
+ body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
219
219
  }),
220
220
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
221
221
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
222
222
  });
223
223
  if (_response.ok) {
224
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
224
+ return yield serializers.empathicVoice.prompts.addNewPromptVersion.Response.parseOrThrow(_response.body, {
225
225
  unrecognizedObjectKeys: "passthrough",
226
226
  allowUnrecognizedUnionMembers: true,
227
227
  allowUnrecognizedEnumValues: true,
@@ -258,7 +258,7 @@ class Prompts {
258
258
  method: "DELETE",
259
259
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
260
260
  ? yield core.Supplier.get(this._options.accountToken)
261
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -287,7 +287,7 @@ class Prompts {
287
287
  }
288
288
  });
289
289
  }
290
- updatePromptName(id, request = {}, requestOptions) {
290
+ updatePromptName(id, request, requestOptions) {
291
291
  var _a, _b;
292
292
  return __awaiter(this, void 0, void 0, function* () {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -295,7 +295,7 @@ class Prompts {
295
295
  method: "PATCH",
296
296
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
297
297
  ? yield core.Supplier.get(this._options.accountToken)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
299
  contentType: "application/json",
300
300
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
301
301
  unrecognizedObjectKeys: "strip",
@@ -335,13 +335,13 @@ class Prompts {
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.3", "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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
341
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
342
342
  });
343
343
  if (_response.ok) {
344
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
344
+ return yield serializers.empathicVoice.prompts.getReturnPromptByVersionNumber.Response.parseOrThrow(_response.body, {
345
345
  unrecognizedObjectKeys: "passthrough",
346
346
  allowUnrecognizedUnionMembers: true,
347
347
  allowUnrecognizedEnumValues: true,
@@ -378,7 +378,7 @@ class Prompts {
378
378
  method: "DELETE",
379
379
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
380
380
  ? yield core.Supplier.get(this._options.accountToken)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
382
382
  contentType: "application/json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -415,7 +415,7 @@ class Prompts {
415
415
  method: "PATCH",
416
416
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
417
417
  ? yield core.Supplier.get(this._options.accountToken)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
419
419
  contentType: "application/json",
420
420
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
421
421
  unrecognizedObjectKeys: "strip",
@@ -424,7 +424,7 @@ class Prompts {
424
424
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
425
425
  });
426
426
  if (_response.ok) {
427
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
427
+ return yield serializers.empathicVoice.prompts.updatePromptVersionDescription.Response.parseOrThrow(_response.body, {
428
428
  unrecognizedObjectKeys: "passthrough",
429
429
  allowUnrecognizedUnionMembers: true,
430
430
  allowUnrecognizedEnumValues: true,
@@ -2,13 +2,17 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * A prompt to be posted to the server
5
+ * @example
6
+ * {
7
+ * name: "name",
8
+ * text: "text"
9
+ * }
6
10
  */
7
11
  export interface PostedPrompt {
8
12
  /** Name applied to all versions of a particular Prompt. */
9
- name?: string;
13
+ name: string;
10
14
  /** Description that is appended to a specific version of a Prompt. */
11
15
  versionDescription?: string;
12
16
  /** Text used for this version of the Prompt. */
13
- text?: string;
17
+ text: string;
14
18
  }
@@ -3,9 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * name: "name"
8
+ * }
7
9
  */
8
10
  export interface PostedPromptName {
9
11
  /** Name applied to all versions of a particular Prompt. */
10
- name?: string;
12
+ name: string;
11
13
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * text: "text"
8
+ * }
9
+ */
10
+ export interface PostedPromptVersion {
11
+ /** Description that is appended to a specific version of a Prompt. */
12
+ versionDescription?: string;
13
+ /** Text used for this version of the Prompt. */
14
+ text: string;
15
+ }
@@ -1,4 +1,6 @@
1
1
  export { GetReturnPromptsForUserRequest } from "./GetReturnPromptsForUserRequest";
2
+ export { PostedPrompt } from "./PostedPrompt";
2
3
  export { GetReturnPromptByPromptIdRequest } from "./GetReturnPromptByPromptIdRequest";
4
+ export { PostedPromptVersion } from "./PostedPromptVersion";
3
5
  export { PostedPromptName } from "./PostedPromptName";
4
6
  export { PostedPromptVersionDescription } from "./PostedPromptVersionDescription";
@@ -1,6 +1,10 @@
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 assistant end message.
6
+ */
4
7
  export interface AssistantEnd {
8
+ customSessionId?: string;
5
9
  type: "assistant_end";
6
10
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * When provided, the input is spoken by EVI.
6
+ */
7
+ export interface AssistantInput {
8
+ customSessionId?: string;
9
+ /** Text to be synthesized. */
10
+ text: string;
11
+ type: "assistant_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 });
@@ -2,9 +2,13 @@
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 an assistant message.
7
+ */
5
8
  export interface AssistantMessage {
6
- /** Indicates if this message was constructed from a TtsInput message. */
7
- fromTts: boolean;
9
+ customSessionId?: string;
10
+ /** Indicates if this message was constructed from a text input message. */
11
+ fromText: boolean;
8
12
  /** ID of the assistant message. */
9
13
  id?: string;
10
14
  /** Transcript of the message. */
@@ -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 input is audio.
6
+ */
4
7
  export interface AudioInput {
8
+ customSessionId?: string;
5
9
  /** Base64 encoded audio input. */
6
10
  data: string;
7
11
  type: "audio_input";
@@ -1,8 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * When provided, the output is audio.
6
+ */
4
7
  export interface AudioOutput {
5
- /** Base64 encoded Linear16 PCM output. */
8
+ customSessionId?: string;
9
+ /** Base64 encoded audio output. */
6
10
  data: string;
7
11
  /** ID of the audio output. */
8
12
  id: string;
@@ -1,9 +1,13 @@
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 error message.
6
+ */
4
7
  export interface Error_ {
5
8
  /** Error code. */
6
9
  code: string;
10
+ customSessionId?: string;
7
11
  /** Error message. */
8
12
  message: string;
9
13
  /** Error slug. */
@@ -4,10 +4,11 @@
4
4
  /**
5
5
  * The provider of this model. Based on the enum modelProvider.
6
6
  */
7
- export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "BYO_TEXT" | "ANTHROPIC" | "FIREWORKS";
7
+ export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "BYO_TEXT" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS";
8
8
  export declare const PostedLanguageModelModelProvider: {
9
9
  readonly OpenAi: "OPEN_AI";
10
10
  readonly ByoText: "BYO_TEXT";
11
+ readonly CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL";
11
12
  readonly Anthropic: "ANTHROPIC";
12
13
  readonly Fireworks: "FIREWORKS";
13
14
  };
@@ -7,6 +7,7 @@ exports.PostedLanguageModelModelProvider = void 0;
7
7
  exports.PostedLanguageModelModelProvider = {
8
8
  OpenAi: "OPEN_AI",
9
9
  ByoText: "BYO_TEXT",
10
+ CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL",
10
11
  Anthropic: "ANTHROPIC",
11
12
  Fireworks: "FIREWORKS",
12
13
  };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export interface PostedPromptSpec {
8
8
  /** Identifier for a Prompt. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
11
- version?: number;
11
+ version: number;
12
12
  }
@@ -6,11 +6,11 @@
6
6
  */
7
7
  export interface PostedTool {
8
8
  /** Name applied to all versions of a particular Tool. */
9
- name?: string;
9
+ name: string;
10
10
  /** Description that is appended to a specific version of a Tool. */
11
11
  versionDescription?: string;
12
12
  /** Text describing what the tool does. */
13
- docstring?: string;
14
- /** Stringified JSON defining the schema for this version of the Tool. */
15
- schema?: string;
13
+ description?: string;
14
+ /** Stringified JSON defining the parameters used by this version of the Tool. */
15
+ parameters: string;
16
16
  }
@@ -6,5 +6,5 @@
6
6
  */
7
7
  export interface PostedToolName {
8
8
  /** Name applied to all versions of a particular Tool. */
9
- name?: string;
9
+ name: string;
10
10
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export interface PostedToolSpec {
8
8
  /** Identifier for a Tool. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
11
- version?: number;
11
+ version: number;
12
12
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A new version of an existing tool to be posted to the server
6
+ */
7
+ export interface PostedToolVersion {
8
+ /** Description that is appended to a specific version of a Tool. */
9
+ versionDescription?: string;
10
+ /** Text describing what the tool does. */
11
+ description?: string;
12
+ /** Stringified JSON defining the parameters used by this version of the Tool. */
13
+ parameters: string;
14
+ }
@@ -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 });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A Voice specification posted to the server
6
+ */
7
+ export interface PostedVoice {
8
+ /** The provider of the voice to use. Based on the enum VoiceProvider. */
9
+ provider?: string;
10
+ /** String with the name of the voice to use. */
11
+ name: string;
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 });
@@ -7,13 +7,13 @@ import * as Hume from "../../..";
7
7
  */
8
8
  export interface ReturnActiveChatCount {
9
9
  /** The timestamp for when chat status was measured. Formatted as a Unix epoch milliseconds. */
10
- timestamp?: number;
10
+ timestamp: number;
11
11
  /** The total number of active chats for this user. */
12
- totalUserActiveChats?: number;
12
+ totalUserActiveChats: number;
13
13
  /** The maximum number of concurrent active chats for this user. */
14
14
  maxAllowedActiveChats?: number;
15
15
  /** Boolean indicating if the user is allowed to start more chats. */
16
- moreActiveChatsAllowed?: boolean;
16
+ moreActiveChatsAllowed: boolean;
17
17
  /** Optional List of chat counts per tag. */
18
- perTag?: Hume.empathicVoice.ReturnActiveChatCountPerTag[];
18
+ perTag?: (Hume.empathicVoice.ReturnActiveChatCountPerTag | undefined)[];
19
19
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export interface ReturnActiveChatCountPerTag {
8
8
  /** User tag applied to a chat. */
9
- tag?: string;
9
+ tag: string;
10
10
  /** The total number of active chats for this user with the specified tag. */
11
- totalTagActiveChats?: number;
11
+ totalTagActiveChats: number;
12
12
  }
@@ -7,15 +7,15 @@ import * as Hume from "../../..";
7
7
  */
8
8
  export interface ReturnChat {
9
9
  /** Identifier for a chat. Formatted as a UUID. */
10
- id?: string;
10
+ id: string;
11
11
  /** Optional Identifier for the chatId that this chat was resumed from. Formatted as a UUID. */
12
12
  resumedFromId?: string;
13
13
  /** Optional tag applied to this chat used to group chats by user, application, etc. */
14
14
  tag?: string;
15
15
  /** The status of the chat. Values from the ChatStatus enum. */
16
- status?: string;
16
+ status: string;
17
17
  /** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
18
- startTimestamp?: number;
18
+ startTimestamp: number;
19
19
  /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
20
20
  endTimestamp?: number;
21
21
  /** Stringified JSON with additional metadata about the chat. */
@@ -6,13 +6,13 @@
6
6
  */
7
7
  export interface ReturnChatEvent {
8
8
  /** Identifier for a chat event. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds. */
11
- timestamp?: number;
11
+ timestamp: number;
12
12
  /** The role of the user who generated the chat event. Values from the Role enum. */
13
- role?: string;
13
+ role: string;
14
14
  /** The type of chat event. Values from the ChatEventType enum. */
15
- type?: string;
15
+ type: string;
16
16
  /** The text of the chat message, either transcribed from speaker audio or generated by the agent. */
17
17
  messageText?: string;
18
18
  /** Stringified JSON with data about emotional content/prosody of the event. */
@@ -7,24 +7,24 @@ import * as Hume from "../../..";
7
7
  */
8
8
  export interface ReturnChatWithPagedEvents {
9
9
  /** Identifier for a chat. Formatted as a UUID. */
10
- id?: string;
10
+ id: string;
11
11
  /** Optional Identifier for the chatId that this chat was resumed from. Formatted as a UUID. */
12
12
  resumedFromId?: string;
13
13
  /** Optional tag applied to this chat used to group chats by user, application, etc. */
14
14
  tag?: string;
15
15
  /** The status of the chat. Values from the ChatStatus enum. */
16
- status?: string;
16
+ status: string;
17
17
  /** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
18
- startTimestamp?: number;
18
+ startTimestamp: number;
19
19
  /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
20
20
  endTimestamp?: number;
21
21
  /** List of chat events with the specified page number and page size. */
22
- eventsPage?: Hume.empathicVoice.ReturnChatEvent[];
22
+ eventsPage: Hume.empathicVoice.ReturnChatEvent[];
23
23
  /** Stringified JSON with additional metadata about the chat. */
24
24
  metadata?: string;
25
25
  /** The page number of the returned results. */
26
- pageNumber?: number;
26
+ pageNumber: number;
27
27
  /** The number of results returned per page. */
28
- pageSize?: number;
28
+ pageSize: number;
29
29
  config?: Hume.empathicVoice.ReturnConfigSpec;
30
30
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export interface ReturnConfigSpec {
8
8
  /** Identifier for a Config. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
11
11
  version?: number;
12
12
  }
@@ -7,9 +7,9 @@ import * as Hume from "../../..";
7
7
  */
8
8
  export interface ReturnPagedChats {
9
9
  /** The page number of the returned results. */
10
- pageNumber?: number;
10
+ pageNumber: number;
11
11
  /** The number of results returned per page. */
12
- pageSize?: number;
12
+ pageSize: number;
13
13
  /** List of chats and their metadata returned for the specified page number and page size. */
14
- chatsPage?: Hume.empathicVoice.ReturnChat[];
14
+ chatsPage: Hume.empathicVoice.ReturnChat[];
15
15
  }
@@ -7,9 +7,9 @@ import * as Hume from "../../..";
7
7
  */
8
8
  export interface ReturnPagedPrompts {
9
9
  /** The page number of the returned results. */
10
- pageNumber?: number;
10
+ pageNumber: number;
11
11
  /** The number of results returned per page. */
12
- pageSize?: number;
12
+ pageSize: number;
13
13
  /** List of prompts returned for the specified page number and page size. */
14
- promptsPage?: Hume.empathicVoice.ReturnPrompt[];
14
+ promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
15
15
  }
@@ -6,17 +6,17 @@
6
6
  */
7
7
  export interface ReturnPrompt {
8
8
  /** Identifier for a Prompt. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
11
- version?: number;
11
+ version: number;
12
12
  /** Description that is appended to a specific version of a Prompt. */
13
13
  versionDescription?: string;
14
14
  /** Name applied to all versions of a particular Prompt. */
15
- name?: string;
15
+ name: string;
16
16
  /** The timestamp when the first version of this prompt was created. */
17
- createdOn?: number;
17
+ createdOn: number;
18
18
  /** The timestamp when this version of the prompt was created. */
19
- modifiedOn?: number;
19
+ modifiedOn: number;
20
20
  /** Text used for this version of the Prompt. */
21
- text?: string;
21
+ text: string;
22
22
  }
@@ -6,19 +6,19 @@
6
6
  */
7
7
  export interface ReturnTool {
8
8
  /** Identifier for a Tool. Formatted as a UUID. */
9
- id?: string;
9
+ id: string;
10
10
  /** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
11
- version?: number;
11
+ version: number;
12
12
  /** Description that is appended to a specific version of a Tool. */
13
13
  versionDescription?: string;
14
14
  /** Name applied to all versions of a particular Tool. */
15
- name?: string;
15
+ name: string;
16
16
  /** The timestamp when the first version of this tool was created. */
17
- createdOn?: number;
17
+ createdOn: number;
18
18
  /** The timestamp when this version of the tool was created. */
19
- modifiedOn?: number;
19
+ modifiedOn: number;
20
20
  /** Text describing what the tool does. */
21
- docstring?: string;
22
- /** Stringified JSON defining the schema for this version of the Tool. */
23
- schema?: string;
21
+ description?: string;
22
+ /** Stringified JSON defining the parameters used by this version of the Tool. */
23
+ parameters: string;
24
24
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A specific voice specification
6
+ */
7
+ export interface ReturnVoice {
8
+ /** The provider of the voice to use. Based on the enum VoiceProvider. */
9
+ provider: string;
10
+ /** String with the name of the voice to use. */
11
+ name: string;
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 });
@@ -2,8 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../..";
5
+ /**
6
+ * Settings for this chat session.
7
+ */
5
8
  export interface SessionSettings {
9
+ customSessionId?: string;
6
10
  audio?: Hume.empathicVoice.AudioConfiguration;
7
11
  languageModelApiKey?: string;
8
- type?: "session_settings";
12
+ systemPrompt?: string;
13
+ type: "session_settings";
9
14
  }