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
@@ -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
  });
@@ -7,6 +7,6 @@ import * as core from "../../../../core";
7
7
  export declare const PostedToolName: core.serialization.ObjectSchema<serializers.empathicVoice.PostedToolName.Raw, Hume.empathicVoice.PostedToolName>;
8
8
  export declare namespace PostedToolName {
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.PostedToolName = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PostedToolName = core.serialization.object({
32
- name: core.serialization.string().optional(),
32
+ name: core.serialization.string(),
33
33
  });
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const PostedToolSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedToolSpec.Raw, Hume.empathicVoice.PostedToolSpec>;
8
8
  export declare namespace PostedToolSpec {
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.PostedToolSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PostedToolSpec = 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
  });
@@ -4,11 +4,11 @@
4
4
  import * as serializers from "../../..";
5
5
  import * as Hume from "../../../../api";
6
6
  import * as core from "../../../../core";
7
- export declare const PostedPrompt: core.serialization.ObjectSchema<serializers.empathicVoice.PostedPrompt.Raw, Hume.empathicVoice.PostedPrompt>;
8
- export declare namespace PostedPrompt {
7
+ export declare const PostedToolVersion: core.serialization.ObjectSchema<serializers.empathicVoice.PostedToolVersion.Raw, Hume.empathicVoice.PostedToolVersion>;
8
+ export declare namespace PostedToolVersion {
9
9
  interface Raw {
10
- name?: string | null;
11
10
  version_description?: string | null;
12
- text?: string | null;
11
+ description?: string | null;
12
+ parameters: string;
13
13
  }
14
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.PostedToolVersion = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedToolVersion = core.serialization.object({
32
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
33
+ description: core.serialization.string().optional(),
34
+ parameters: core.serialization.string(),
35
+ });
@@ -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 PostedVoice: core.serialization.ObjectSchema<serializers.empathicVoice.PostedVoice.Raw, Hume.empathicVoice.PostedVoice>;
8
+ export declare namespace PostedVoice {
9
+ interface Raw {
10
+ provider?: string | null;
11
+ name: 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.PostedVoice = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedVoice = core.serialization.object({
32
+ provider: core.serialization.string().optional(),
33
+ name: core.serialization.string(),
34
+ });
@@ -8,10 +8,10 @@ import { ReturnActiveChatCountPerTag } from "./ReturnActiveChatCountPerTag";
8
8
  export declare const ReturnActiveChatCount: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnActiveChatCount.Raw, Hume.empathicVoice.ReturnActiveChatCount>;
9
9
  export declare namespace ReturnActiveChatCount {
10
10
  interface Raw {
11
- timestamp?: number | null;
12
- total_user_active_chats?: number | null;
11
+ timestamp: number;
12
+ total_user_active_chats: number;
13
13
  max_allowed_active_chats?: number | null;
14
- more_active_chats_allowed?: boolean | null;
15
- per_tag?: ReturnActiveChatCountPerTag.Raw[] | null;
14
+ more_active_chats_allowed: boolean;
15
+ per_tag?: (ReturnActiveChatCountPerTag.Raw | null | undefined)[] | null;
16
16
  }
17
17
  }
@@ -30,9 +30,9 @@ exports.ReturnActiveChatCount = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const ReturnActiveChatCountPerTag_1 = require("./ReturnActiveChatCountPerTag");
32
32
  exports.ReturnActiveChatCount = core.serialization.object({
33
- timestamp: core.serialization.number().optional(),
34
- totalUserActiveChats: core.serialization.property("total_user_active_chats", core.serialization.number().optional()),
33
+ timestamp: core.serialization.number(),
34
+ totalUserActiveChats: core.serialization.property("total_user_active_chats", core.serialization.number()),
35
35
  maxAllowedActiveChats: core.serialization.property("max_allowed_active_chats", core.serialization.number().optional()),
36
- moreActiveChatsAllowed: core.serialization.property("more_active_chats_allowed", core.serialization.boolean().optional()),
37
- perTag: core.serialization.property("per_tag", core.serialization.list(ReturnActiveChatCountPerTag_1.ReturnActiveChatCountPerTag).optional()),
36
+ moreActiveChatsAllowed: core.serialization.property("more_active_chats_allowed", core.serialization.boolean()),
37
+ perTag: core.serialization.property("per_tag", core.serialization.list(ReturnActiveChatCountPerTag_1.ReturnActiveChatCountPerTag.optional()).optional()),
38
38
  });
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const ReturnActiveChatCountPerTag: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnActiveChatCountPerTag.Raw, Hume.empathicVoice.ReturnActiveChatCountPerTag>;
8
8
  export declare namespace ReturnActiveChatCountPerTag {
9
9
  interface Raw {
10
- tag?: string | null;
11
- total_tag_active_chats?: number | null;
10
+ tag: string;
11
+ total_tag_active_chats: number;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnActiveChatCountPerTag = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ReturnActiveChatCountPerTag = core.serialization.object({
32
- tag: core.serialization.string().optional(),
33
- totalTagActiveChats: core.serialization.property("total_tag_active_chats", core.serialization.number().optional()),
32
+ tag: core.serialization.string(),
33
+ totalTagActiveChats: core.serialization.property("total_tag_active_chats", core.serialization.number()),
34
34
  });
@@ -8,11 +8,11 @@ import { ReturnConfigSpec } from "./ReturnConfigSpec";
8
8
  export declare const ReturnChat: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChat.Raw, Hume.empathicVoice.ReturnChat>;
9
9
  export declare namespace ReturnChat {
10
10
  interface Raw {
11
- id?: string | null;
11
+ id: string;
12
12
  resumed_from_id?: string | null;
13
13
  tag?: string | null;
14
- status?: string | null;
15
- start_timestamp?: number | null;
14
+ status: string;
15
+ start_timestamp: number;
16
16
  end_timestamp?: number | null;
17
17
  metadata?: string | null;
18
18
  config?: ReturnConfigSpec.Raw | null;
@@ -30,11 +30,11 @@ exports.ReturnChat = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
32
32
  exports.ReturnChat = core.serialization.object({
33
- id: core.serialization.string().optional(),
33
+ id: core.serialization.string(),
34
34
  resumedFromId: core.serialization.property("resumed_from_id", core.serialization.string().optional()),
35
35
  tag: core.serialization.string().optional(),
36
- status: core.serialization.string().optional(),
37
- startTimestamp: core.serialization.property("start_timestamp", core.serialization.number().optional()),
36
+ status: core.serialization.string(),
37
+ startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
38
38
  endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
39
39
  metadata: core.serialization.string().optional(),
40
40
  config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
@@ -7,10 +7,10 @@ import * as core from "../../../../core";
7
7
  export declare const ReturnChatEvent: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatEvent.Raw, Hume.empathicVoice.ReturnChatEvent>;
8
8
  export declare namespace ReturnChatEvent {
9
9
  interface Raw {
10
- id?: string | null;
11
- timestamp?: number | null;
12
- role?: string | null;
13
- type?: string | null;
10
+ id: string;
11
+ timestamp: number;
12
+ role: string;
13
+ type: string;
14
14
  message_text?: string | null;
15
15
  emotion_features?: string | null;
16
16
  metadata?: string | null;
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChatEvent = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ReturnChatEvent = core.serialization.object({
32
- id: core.serialization.string().optional(),
33
- timestamp: core.serialization.number().optional(),
34
- role: core.serialization.string().optional(),
35
- type: core.serialization.string().optional(),
32
+ id: core.serialization.string(),
33
+ timestamp: core.serialization.number(),
34
+ role: core.serialization.string(),
35
+ type: core.serialization.string(),
36
36
  messageText: core.serialization.property("message_text", core.serialization.string().optional()),
37
37
  emotionFeatures: core.serialization.property("emotion_features", core.serialization.string().optional()),
38
38
  metadata: core.serialization.string().optional(),
@@ -9,16 +9,16 @@ import { ReturnConfigSpec } from "./ReturnConfigSpec";
9
9
  export declare const ReturnChatWithPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatWithPagedEvents.Raw, Hume.empathicVoice.ReturnChatWithPagedEvents>;
10
10
  export declare namespace ReturnChatWithPagedEvents {
11
11
  interface Raw {
12
- id?: string | null;
12
+ id: string;
13
13
  resumed_from_id?: string | null;
14
14
  tag?: string | null;
15
- status?: string | null;
16
- start_timestamp?: number | null;
15
+ status: string;
16
+ start_timestamp: number;
17
17
  end_timestamp?: number | null;
18
- events_page?: ReturnChatEvent.Raw[] | null;
18
+ events_page: ReturnChatEvent.Raw[];
19
19
  metadata?: string | null;
20
- page_number?: number | null;
21
- page_size?: number | null;
20
+ page_number: number;
21
+ page_size: number;
22
22
  config?: ReturnConfigSpec.Raw | null;
23
23
  }
24
24
  }
@@ -31,15 +31,15 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
32
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
33
33
  exports.ReturnChatWithPagedEvents = core.serialization.object({
34
- id: core.serialization.string().optional(),
34
+ id: core.serialization.string(),
35
35
  resumedFromId: core.serialization.property("resumed_from_id", core.serialization.string().optional()),
36
36
  tag: core.serialization.string().optional(),
37
- status: core.serialization.string().optional(),
38
- startTimestamp: core.serialization.property("start_timestamp", core.serialization.number().optional()),
37
+ status: core.serialization.string(),
38
+ startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
39
39
  endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
40
- eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent).optional()),
40
+ eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
41
41
  metadata: core.serialization.string().optional(),
42
- pageNumber: core.serialization.property("page_number", core.serialization.number().optional()),
43
- pageSize: core.serialization.property("page_size", core.serialization.number().optional()),
42
+ pageNumber: core.serialization.property("page_number", core.serialization.number()),
43
+ pageSize: core.serialization.property("page_size", core.serialization.number()),
44
44
  config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
45
45
  });
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const ReturnConfigSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfigSpec.Raw, Hume.empathicVoice.ReturnConfigSpec>;
8
8
  export declare namespace ReturnConfigSpec {
9
9
  interface Raw {
10
- id?: string | null;
10
+ id: string;
11
11
  version?: number | null;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnConfigSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ReturnConfigSpec = core.serialization.object({
32
- id: core.serialization.string().optional(),
32
+ id: core.serialization.string(),
33
33
  version: core.serialization.number().optional(),
34
34
  });
@@ -8,8 +8,8 @@ import { ReturnChat } from "./ReturnChat";
8
8
  export declare const ReturnPagedChats: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPagedChats.Raw, Hume.empathicVoice.ReturnPagedChats>;
9
9
  export declare namespace ReturnPagedChats {
10
10
  interface Raw {
11
- page_number?: number | null;
12
- page_size?: number | null;
13
- chats_page?: ReturnChat.Raw[] | null;
11
+ page_number: number;
12
+ page_size: number;
13
+ chats_page: ReturnChat.Raw[];
14
14
  }
15
15
  }
@@ -30,7 +30,7 @@ exports.ReturnPagedChats = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const ReturnChat_1 = require("./ReturnChat");
32
32
  exports.ReturnPagedChats = core.serialization.object({
33
- pageNumber: core.serialization.property("page_number", core.serialization.number().optional()),
34
- pageSize: core.serialization.property("page_size", core.serialization.number().optional()),
35
- chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat).optional()),
33
+ pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
+ pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
36
36
  });
@@ -8,8 +8,8 @@ import { ReturnPrompt } from "./ReturnPrompt";
8
8
  export declare const ReturnPagedPrompts: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPagedPrompts.Raw, Hume.empathicVoice.ReturnPagedPrompts>;
9
9
  export declare namespace ReturnPagedPrompts {
10
10
  interface Raw {
11
- page_number?: number | null;
12
- page_size?: number | null;
13
- prompts_page?: ReturnPrompt.Raw[] | null;
11
+ page_number: number;
12
+ page_size: number;
13
+ prompts_page: (ReturnPrompt.Raw | null | undefined)[];
14
14
  }
15
15
  }