hume 0.5.5 → 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 (325) hide show
  1. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  2. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  3. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  4. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  5. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  6. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  7. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
  8. package/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
  9. package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
  10. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
  11. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
  12. package/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  13. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
  14. package/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
  15. package/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
  16. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
  17. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
  18. package/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  19. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
  20. package/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
  21. package/api/resources/empathicVoice/types/AssistantInput.js +5 -0
  22. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
  23. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
  24. package/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
  25. package/api/resources/empathicVoice/types/Error_.d.ts +4 -0
  26. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
  27. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
  28. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  29. package/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
  30. package/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  31. package/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  32. package/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
  33. package/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
  34. package/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
  35. package/api/resources/empathicVoice/types/PostedVoice.js +5 -0
  36. package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  37. package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  39. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  40. package/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  41. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  42. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  43. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  44. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  45. package/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
  46. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
  47. package/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
  48. package/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
  49. package/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
  50. package/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
  51. package/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
  52. package/api/resources/empathicVoice/types/UserInput.js +5 -0
  53. package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
  54. package/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
  55. package/api/resources/empathicVoice/types/index.d.ts +7 -4
  56. package/api/resources/empathicVoice/types/index.js +7 -4
  57. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  58. package/core/index.d.ts +1 -0
  59. package/core/index.js +1 -0
  60. package/core/websocket/WebSocket.d.ts +1 -0
  61. package/core/websocket/WebSocket.js +43 -0
  62. package/core/websocket/index.d.ts +1 -0
  63. package/core/websocket/index.js +5 -0
  64. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  65. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  66. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  67. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  68. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  69. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  70. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
  71. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
  72. package/dist/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
  73. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +5 -0
  74. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
  75. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
  76. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +5 -0
  77. package/dist/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  78. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
  79. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
  80. package/dist/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
  81. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +5 -0
  82. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
  83. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
  84. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +5 -0
  85. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  86. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
  87. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
  88. package/dist/api/resources/empathicVoice/types/AssistantInput.js +5 -0
  89. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
  90. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
  91. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
  92. package/dist/api/resources/empathicVoice/types/Error_.d.ts +4 -0
  93. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
  94. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
  95. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  96. package/dist/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
  97. package/dist/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  98. package/dist/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  99. package/dist/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
  100. package/dist/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
  101. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
  102. package/dist/api/resources/empathicVoice/types/PostedVoice.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  104. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  105. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  106. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  107. package/dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  108. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  109. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  110. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  111. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  112. package/dist/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
  113. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
  114. package/dist/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
  115. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
  116. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
  117. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
  118. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
  119. package/dist/api/resources/empathicVoice/types/UserInput.js +5 -0
  120. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
  121. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
  122. package/dist/api/resources/empathicVoice/types/index.d.ts +7 -4
  123. package/dist/api/resources/empathicVoice/types/index.js +7 -4
  124. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  125. package/dist/core/index.d.ts +1 -0
  126. package/dist/core/index.js +1 -0
  127. package/dist/core/websocket/WebSocket.d.ts +1 -0
  128. package/dist/core/websocket/WebSocket.js +43 -0
  129. package/dist/core/websocket/index.d.ts +1 -0
  130. package/dist/core/websocket/index.js +5 -0
  131. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
  132. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
  133. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
  134. package/{serialization/resources/empathicVoice/types → dist/serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
  135. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  136. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
  137. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
  138. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
  139. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  140. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
  141. package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
  142. package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
  143. package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
  144. package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
  145. package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
  146. package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
  147. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
  148. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
  149. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
  150. package/dist/serialization/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.js +3 -3
  151. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  152. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
  153. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
  154. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
  155. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  156. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
  157. package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
  158. package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
  159. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  160. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  161. package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
  162. package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
  163. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
  164. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
  165. package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  166. package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
  167. package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  168. package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
  169. package/dist/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
  170. package/dist/serialization/resources/empathicVoice/types/Error_.js +1 -0
  171. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  172. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  173. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  174. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
  175. package/dist/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
  176. package/dist/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
  177. package/dist/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  178. package/dist/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
  179. package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  180. package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
  181. package/dist/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
  182. package/dist/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
  183. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
  184. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
  185. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  186. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
  187. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  188. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
  189. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  190. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
  191. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  192. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
  193. package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  194. package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
  195. package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  196. package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
  197. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  198. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
  199. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  200. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
  201. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  202. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
  203. package/dist/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
  204. package/dist/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
  205. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
  206. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
  207. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  208. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
  209. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
  210. package/dist/serialization/resources/empathicVoice/types/TextInput.js +1 -2
  211. package/dist/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
  212. package/dist/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
  213. package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
  214. package/dist/serialization/resources/empathicVoice/types/UserInput.js +35 -0
  215. package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
  216. package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
  217. package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
  218. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
  219. package/dist/serialization/resources/empathicVoice/types/index.d.ts +7 -4
  220. package/dist/serialization/resources/empathicVoice/types/index.js +7 -4
  221. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
  222. package/dist/wrapper/empathicVoice/chat/ChatClient.js +5 -6
  223. package/dist/wrapper/empathicVoice/chat/StreamSocket.d.ts +6 -9
  224. package/dist/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
  225. package/package.json +1 -1
  226. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
  227. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
  228. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
  229. package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
  230. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  231. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
  232. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
  233. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
  234. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
  235. package/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
  236. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
  237. package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
  238. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
  239. package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
  240. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
  241. package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
  242. package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
  243. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
  244. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
  245. package/serialization/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.js +3 -3
  246. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  247. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
  248. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
  249. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
  250. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
  251. package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
  252. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
  253. package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
  254. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  255. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  256. package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
  257. package/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
  258. package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
  259. package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
  260. package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  261. package/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
  262. package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  263. package/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
  264. package/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
  265. package/serialization/resources/empathicVoice/types/Error_.js +1 -0
  266. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  267. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  268. package/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
  269. package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
  270. package/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
  271. package/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
  272. package/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
  273. package/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
  274. package/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
  275. package/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
  276. package/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
  277. package/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
  278. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
  279. package/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
  280. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
  281. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
  282. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
  283. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
  284. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
  285. package/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
  286. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
  287. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
  288. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
  289. package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
  290. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
  291. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
  292. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
  293. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
  294. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
  295. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
  296. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
  297. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
  298. package/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
  299. package/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
  300. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
  301. package/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
  302. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  303. package/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
  304. package/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
  305. package/serialization/resources/empathicVoice/types/TextInput.js +1 -2
  306. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
  307. package/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
  308. package/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
  309. package/serialization/resources/empathicVoice/types/UserInput.js +35 -0
  310. package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
  311. package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
  312. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
  313. package/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
  314. package/serialization/resources/empathicVoice/types/index.d.ts +7 -4
  315. package/serialization/resources/empathicVoice/types/index.js +7 -4
  316. package/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
  317. package/wrapper/empathicVoice/chat/ChatClient.js +5 -6
  318. package/wrapper/empathicVoice/chat/StreamSocket.d.ts +6 -9
  319. package/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
  320. package/dist/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  321. package/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
  322. /package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.js +0 -0
  323. /package/api/resources/empathicVoice/{types/PostedPrompt.js → resources/configs/client/requests/PostedConfigVersion.js} +0 -0
  324. /package/{dist/api/resources/empathicVoice/types → api/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +0 -0
  325. /package/{dist/api/resources/empathicVoice/types/PostedConfig.js → api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js} +0 -0
@@ -6,9 +6,9 @@ import * as Hume from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  import { AudioInput } from "../../../types/AudioInput";
8
8
  import { SessionSettings } from "../../../types/SessionSettings";
9
- import { TextInput } from "../../../types/TextInput";
10
- import { TtsInput } from "../../../types/TtsInput";
9
+ import { UserInput } from "../../../types/UserInput";
10
+ import { AssistantInput } from "../../../types/AssistantInput";
11
11
  export declare const PublishEvent: core.serialization.Schema<serializers.empathicVoice.PublishEvent.Raw, Hume.empathicVoice.PublishEvent>;
12
12
  export declare namespace PublishEvent {
13
- type Raw = AudioInput.Raw | SessionSettings.Raw | TextInput.Raw | TtsInput.Raw;
13
+ type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw;
14
14
  }
@@ -30,6 +30,6 @@ exports.PublishEvent = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const AudioInput_1 = require("../../../types/AudioInput");
32
32
  const SessionSettings_1 = require("../../../types/SessionSettings");
33
- const TextInput_1 = require("../../../types/TextInput");
34
- const TtsInput_1 = require("../../../types/TtsInput");
35
- exports.PublishEvent = core.serialization.undiscriminatedUnion([AudioInput_1.AudioInput, SessionSettings_1.SessionSettings, TextInput_1.TextInput, TtsInput_1.TtsInput]);
33
+ const UserInput_1 = require("../../../types/UserInput");
34
+ const AssistantInput_1 = require("../../../types/AssistantInput");
35
+ exports.PublishEvent = core.serialization.undiscriminatedUnion([AudioInput_1.AudioInput, SessionSettings_1.SessionSettings, UserInput_1.UserInput, AssistantInput_1.AssistantInput]);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as Hume from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
+ import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
9
+ export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
10
+ export declare namespace PostedConfig {
11
+ interface Raw {
12
+ name: string;
13
+ version_description?: string | null;
14
+ prompt?: PostedPromptSpec.Raw | null;
15
+ language_model?: PostedLanguageModel.Raw | null;
16
+ }
17
+ }
@@ -27,11 +27,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedConfig = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- const PostedPromptSpec_1 = require("./PostedPromptSpec");
32
- const PostedLanguageModel_1 = require("./PostedLanguageModel");
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
+ const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
33
33
  exports.PostedConfig = core.serialization.object({
34
- name: core.serialization.string().optional(),
34
+ name: core.serialization.string(),
35
35
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
36
36
  prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
37
37
  languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
@@ -7,6 +7,6 @@ import * as core from "../../../../../../../core";
7
7
  export declare const PostedConfigName: core.serialization.Schema<serializers.empathicVoice.PostedConfigName.Raw, Hume.empathicVoice.PostedConfigName>;
8
8
  export declare namespace PostedConfigName {
9
9
  interface Raw {
10
- name?: string | null;
10
+ name: string;
11
11
  }
12
12
  }
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedConfigName = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  exports.PostedConfigName = core.serialization.object({
32
- name: core.serialization.string().optional(),
32
+ name: core.serialization.string(),
33
33
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as Hume from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
+ import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
9
+ export declare const PostedConfigVersion: core.serialization.Schema<serializers.empathicVoice.PostedConfigVersion.Raw, Hume.empathicVoice.PostedConfigVersion>;
10
+ export declare namespace PostedConfigVersion {
11
+ interface Raw {
12
+ version_description?: string | null;
13
+ prompt?: PostedPromptSpec.Raw | null;
14
+ language_model?: PostedLanguageModel.Raw | null;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PostedConfigVersion = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
+ const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
33
+ exports.PostedConfigVersion = core.serialization.object({
34
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
35
+ prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
36
+ languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
37
+ });
@@ -1,2 +1,4 @@
1
+ export { PostedConfig } from "./PostedConfig";
2
+ export { PostedConfigVersion } from "./PostedConfigVersion";
1
3
  export { PostedConfigName } from "./PostedConfigName";
2
4
  export { PostedConfigVersionDescription } from "./PostedConfigVersionDescription";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PostedConfigVersionDescription = exports.PostedConfigName = void 0;
3
+ exports.PostedConfigVersionDescription = exports.PostedConfigName = exports.PostedConfigVersion = exports.PostedConfig = void 0;
4
+ var PostedConfig_1 = require("./PostedConfig");
5
+ Object.defineProperty(exports, "PostedConfig", { enumerable: true, get: function () { return PostedConfig_1.PostedConfig; } });
6
+ var PostedConfigVersion_1 = require("./PostedConfigVersion");
7
+ Object.defineProperty(exports, "PostedConfigVersion", { enumerable: true, get: function () { return PostedConfigVersion_1.PostedConfigVersion; } });
4
8
  var PostedConfigName_1 = require("./PostedConfigName");
5
9
  Object.defineProperty(exports, "PostedConfigName", { enumerable: true, get: function () { return PostedConfigName_1.PostedConfigName; } });
6
10
  var PostedConfigVersionDescription_1 = require("./PostedConfigVersionDescription");
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as Hume from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ import { ReturnPrompt } from "../../../types/ReturnPrompt";
8
+ export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.addNewPromptVersion.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
9
+ export declare namespace Response {
10
+ type Raw = ReturnPrompt.Raw | null | undefined;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Response = void 0;
7
+ const ReturnPrompt_1 = require("../../../types/ReturnPrompt");
8
+ exports.Response = ReturnPrompt_1.ReturnPrompt.optional();
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as Hume from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ import { ReturnPrompt } from "../../../types/ReturnPrompt";
8
+ export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.createNewPrompt.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
9
+ export declare namespace Response {
10
+ type Raw = ReturnPrompt.Raw | null | undefined;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Response = void 0;
7
+ const ReturnPrompt_1 = require("../../../types/ReturnPrompt");
8
+ exports.Response = ReturnPrompt_1.ReturnPrompt.optional();
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as Hume from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ import { ReturnPrompt } from "../../../types/ReturnPrompt";
8
+ export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.getReturnPromptByVersionNumber.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
9
+ export declare namespace Response {
10
+ type Raw = ReturnPrompt.Raw | null | undefined;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Response = void 0;
7
+ const ReturnPrompt_1 = require("../../../types/ReturnPrompt");
8
+ exports.Response = ReturnPrompt_1.ReturnPrompt.optional();
@@ -1 +1,5 @@
1
+ export * as createNewPrompt from "./createNewPrompt";
2
+ export * as addNewPromptVersion from "./addNewPromptVersion";
3
+ export * as getReturnPromptByVersionNumber from "./getReturnPromptByVersionNumber";
4
+ export * as updatePromptVersionDescription from "./updatePromptVersionDescription";
1
5
  export * from "./requests";
@@ -10,8 +10,25 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
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
+ };
13
25
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
27
  };
16
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.updatePromptVersionDescription = exports.getReturnPromptByVersionNumber = exports.addNewPromptVersion = exports.createNewPrompt = void 0;
30
+ exports.createNewPrompt = __importStar(require("./createNewPrompt"));
31
+ exports.addNewPromptVersion = __importStar(require("./addNewPromptVersion"));
32
+ exports.getReturnPromptByVersionNumber = __importStar(require("./getReturnPromptByVersionNumber"));
33
+ exports.updatePromptVersionDescription = __importStar(require("./updatePromptVersionDescription"));
17
34
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as Hume from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const PostedPrompt: core.serialization.Schema<serializers.empathicVoice.PostedPrompt.Raw, Hume.empathicVoice.PostedPrompt>;
8
+ export declare namespace PostedPrompt {
9
+ interface Raw {
10
+ name: string;
11
+ version_description?: string | null;
12
+ text: string;
13
+ }
14
+ }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedPrompt = void 0;
30
- const core = __importStar(require("../../../../core"));
30
+ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.PostedPrompt = core.serialization.object({
32
- name: core.serialization.string().optional(),
32
+ name: core.serialization.string(),
33
33
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
34
- text: core.serialization.string().optional(),
34
+ text: core.serialization.string(),
35
35
  });
@@ -7,6 +7,6 @@ import * as core from "../../../../../../../core";
7
7
  export declare const PostedPromptName: core.serialization.Schema<serializers.empathicVoice.PostedPromptName.Raw, Hume.empathicVoice.PostedPromptName>;
8
8
  export declare namespace PostedPromptName {
9
9
  interface Raw {
10
- name?: string | null;
10
+ name: string;
11
11
  }
12
12
  }
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedPromptName = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  exports.PostedPromptName = core.serialization.object({
32
- name: core.serialization.string().optional(),
32
+ name: core.serialization.string(),
33
33
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as Hume from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const PostedPromptVersion: core.serialization.Schema<serializers.empathicVoice.PostedPromptVersion.Raw, Hume.empathicVoice.PostedPromptVersion>;
8
+ export declare namespace PostedPromptVersion {
9
+ interface Raw {
10
+ version_description?: string | null;
11
+ text: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PostedPromptVersion = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.PostedPromptVersion = core.serialization.object({
32
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
33
+ text: core.serialization.string(),
34
+ });
@@ -1,2 +1,4 @@
1
+ export { PostedPrompt } from "./PostedPrompt";
2
+ export { PostedPromptVersion } from "./PostedPromptVersion";
1
3
  export { PostedPromptName } from "./PostedPromptName";
2
4
  export { PostedPromptVersionDescription } from "./PostedPromptVersionDescription";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PostedPromptVersionDescription = exports.PostedPromptName = void 0;
3
+ exports.PostedPromptVersionDescription = exports.PostedPromptName = exports.PostedPromptVersion = exports.PostedPrompt = void 0;
4
+ var PostedPrompt_1 = require("./PostedPrompt");
5
+ Object.defineProperty(exports, "PostedPrompt", { enumerable: true, get: function () { return PostedPrompt_1.PostedPrompt; } });
6
+ var PostedPromptVersion_1 = require("./PostedPromptVersion");
7
+ Object.defineProperty(exports, "PostedPromptVersion", { enumerable: true, get: function () { return PostedPromptVersion_1.PostedPromptVersion; } });
4
8
  var PostedPromptName_1 = require("./PostedPromptName");
5
9
  Object.defineProperty(exports, "PostedPromptName", { enumerable: true, get: function () { return PostedPromptName_1.PostedPromptName; } });
6
10
  var PostedPromptVersionDescription_1 = require("./PostedPromptVersionDescription");
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as Hume from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ import { ReturnPrompt } from "../../../types/ReturnPrompt";
8
+ export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.updatePromptVersionDescription.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
9
+ export declare namespace Response {
10
+ type Raw = ReturnPrompt.Raw | null | undefined;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Response = void 0;
7
+ const ReturnPrompt_1 = require("../../../types/ReturnPrompt");
8
+ exports.Response = ReturnPrompt_1.ReturnPrompt.optional();
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const AssistantEnd: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantEnd.Raw, Hume.empathicVoice.AssistantEnd>;
8
8
  export declare namespace AssistantEnd {
9
9
  interface Raw {
10
+ custom_session_id?: string | null;
10
11
  type: "assistant_end";
11
12
  }
12
13
  }
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AssistantEnd = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.AssistantEnd = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
32
33
  type: core.serialization.stringLiteral("assistant_end"),
33
34
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as Hume from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const AssistantInput: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantInput.Raw, Hume.empathicVoice.AssistantInput>;
8
+ export declare namespace AssistantInput {
9
+ interface Raw {
10
+ custom_session_id?: string | null;
11
+ text: string;
12
+ type: "assistant_input";
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AssistantInput = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.AssistantInput = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
+ text: core.serialization.string(),
34
+ type: core.serialization.stringLiteral("assistant_input"),
35
+ });
@@ -9,7 +9,8 @@ import { Inference } from "./Inference";
9
9
  export declare const AssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantMessage.Raw, Hume.empathicVoice.AssistantMessage>;
10
10
  export declare namespace AssistantMessage {
11
11
  interface Raw {
12
- from_tts: boolean;
12
+ custom_session_id?: string | null;
13
+ from_text: boolean;
13
14
  id?: string | null;
14
15
  message: ChatMessage.Raw;
15
16
  models: Inference.Raw;
@@ -31,7 +31,8 @@ const core = __importStar(require("../../../../core"));
31
31
  const ChatMessage_1 = require("./ChatMessage");
32
32
  const Inference_1 = require("./Inference");
33
33
  exports.AssistantMessage = core.serialization.object({
34
- fromTts: core.serialization.property("from_tts", core.serialization.boolean()),
34
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
35
+ fromText: core.serialization.property("from_text", core.serialization.boolean()),
35
36
  id: core.serialization.string().optional(),
36
37
  message: ChatMessage_1.ChatMessage,
37
38
  models: Inference_1.Inference,
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const AudioInput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioInput.Raw, Hume.empathicVoice.AudioInput>;
8
8
  export declare namespace AudioInput {
9
9
  interface Raw {
10
+ custom_session_id?: string | null;
10
11
  data: string;
11
12
  type: "audio_input";
12
13
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AudioInput = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.AudioInput = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
32
33
  data: core.serialization.string(),
33
34
  type: core.serialization.stringLiteral("audio_input"),
34
35
  });
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const AudioOutput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioOutput.Raw, Hume.empathicVoice.AudioOutput>;
8
8
  export declare namespace AudioOutput {
9
9
  interface Raw {
10
+ custom_session_id?: string | null;
10
11
  data: string;
11
12
  id: string;
12
13
  type: "audio_output";
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AudioOutput = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.AudioOutput = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
32
33
  data: core.serialization.string(),
33
34
  id: core.serialization.string(),
34
35
  type: core.serialization.stringLiteral("audio_output"),
@@ -8,6 +8,7 @@ export declare const Error_: core.serialization.ObjectSchema<serializers.empathi
8
8
  export declare namespace Error_ {
9
9
  interface Raw {
10
10
  code: string;
11
+ custom_session_id?: string | null;
11
12
  message: string;
12
13
  slug: string;
13
14
  type: "error";
@@ -30,6 +30,7 @@ exports.Error_ = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.Error_ = core.serialization.object({
32
32
  code: core.serialization.string(),
33
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
34
  message: core.serialization.string(),
34
35
  slug: core.serialization.string(),
35
36
  type: core.serialization.stringLiteral("error"),
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api";
6
6
  import * as core from "../../../../core";
7
7
  export declare const PostedLanguageModelModelProvider: core.serialization.Schema<serializers.empathicVoice.PostedLanguageModelModelProvider.Raw, Hume.empathicVoice.PostedLanguageModelModelProvider>;
8
8
  export declare namespace PostedLanguageModelModelProvider {
9
- type Raw = "OPEN_AI" | "BYO_TEXT" | "ANTHROPIC" | "FIREWORKS";
9
+ type Raw = "OPEN_AI" | "BYO_TEXT" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedLanguageModelModelProvider = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.PostedLanguageModelModelProvider = core.serialization.enum_(["OPEN_AI", "BYO_TEXT", "ANTHROPIC", "FIREWORKS"]);
31
+ exports.PostedLanguageModelModelProvider = core.serialization.enum_(["OPEN_AI", "BYO_TEXT", "CUSTOM_LANGUAGE_MODEL", "ANTHROPIC", "FIREWORKS"]);
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const PostedPromptSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedPromptSpec.Raw, Hume.empathicVoice.PostedPromptSpec>;
8
8
  export declare namespace PostedPromptSpec {
9
9
  interface Raw {
10
- id?: string | null;
11
- version?: number | null;
10
+ id: string;
11
+ version: number;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedPromptSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PostedPromptSpec = core.serialization.object({
32
- id: core.serialization.string().optional(),
33
- version: core.serialization.number().optional(),
32
+ id: core.serialization.string(),
33
+ version: core.serialization.number(),
34
34
  });
@@ -7,9 +7,9 @@ import * as core from "../../../../core";
7
7
  export declare const PostedTool: core.serialization.ObjectSchema<serializers.empathicVoice.PostedTool.Raw, Hume.empathicVoice.PostedTool>;
8
8
  export declare namespace PostedTool {
9
9
  interface Raw {
10
- name?: string | null;
10
+ name: string;
11
11
  version_description?: string | null;
12
- docstring?: string | null;
13
- schema?: string | null;
12
+ description?: string | null;
13
+ parameters: string;
14
14
  }
15
15
  }
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedTool = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PostedTool = core.serialization.object({
32
- name: core.serialization.string().optional(),
32
+ name: core.serialization.string(),
33
33
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
34
- docstring: core.serialization.string().optional(),
35
- schema: core.serialization.string().optional(),
34
+ description: core.serialization.string().optional(),
35
+ parameters: core.serialization.string(),
36
36
  });