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
@@ -77,7 +77,7 @@ class Datasets {
77
77
  method: "GET",
78
78
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
79
79
  ? yield core.Supplier.get(this._options.accountToken)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Datasets {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
135
135
  body: _request,
136
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -180,7 +180,7 @@ class Datasets {
180
180
  method: "GET",
181
181
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
182
182
  ? yield core.Supplier.get(this._options.accountToken)
183
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
186
186
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -231,7 +231,7 @@ class Datasets {
231
231
  method: "POST",
232
232
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
233
233
  ? yield core.Supplier.get(this._options.accountToken)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
234
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
235
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
236
236
  body: _request,
237
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class Datasets {
281
281
  method: "DELETE",
282
282
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
283
283
  ? yield core.Supplier.get(this._options.accountToken)
284
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
284
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
285
  contentType: "application/json",
286
286
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
287
287
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -335,7 +335,7 @@ class Datasets {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  queryParameters: _queryParams,
341
341
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -396,7 +396,7 @@ class Datasets {
396
396
  method: "GET",
397
397
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
398
398
  ? yield core.Supplier.get(this._options.accountToken)
399
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
399
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
400
400
  contentType: "application/json",
401
401
  queryParameters: _queryParams,
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -446,7 +446,7 @@ class Datasets {
446
446
  method: "GET",
447
447
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
448
448
  ? yield core.Supplier.get(this._options.accountToken)
449
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
449
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
450
  contentType: "application/json",
451
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
452
452
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -506,7 +506,7 @@ class Datasets {
506
506
  method: "GET",
507
507
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
508
508
  ? yield core.Supplier.get(this._options.accountToken)
509
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
509
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
510
510
  contentType: "application/json",
511
511
  queryParameters: _queryParams,
512
512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -74,7 +74,7 @@ class Files {
74
74
  method: "GET",
75
75
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
76
76
  ? yield core.Supplier.get(this._options.accountToken)
77
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Files {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "application/json",
135
135
  body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
136
136
  unrecognizedObjectKeys: "strip",
@@ -184,7 +184,7 @@ class Files {
184
184
  method: "POST",
185
185
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
186
186
  ? yield core.Supplier.get(this._options.accountToken)
187
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
189
189
  body: _request,
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +234,7 @@ class Files {
234
234
  method: "GET",
235
235
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
236
236
  ? yield core.Supplier.get(this._options.accountToken)
237
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
237
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
238
  contentType: "application/json",
239
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
240
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -283,7 +283,7 @@ class Files {
283
283
  method: "DELETE",
284
284
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
285
285
  ? yield core.Supplier.get(this._options.accountToken)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
287
287
  contentType: "application/json",
288
288
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
289
289
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -331,7 +331,7 @@ class Files {
331
331
  method: "PATCH",
332
332
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
333
333
  ? yield core.Supplier.get(this._options.accountToken)
334
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
335
335
  contentType: "application/json",
336
336
  queryParameters: _queryParams,
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -381,7 +381,7 @@ class Files {
381
381
  method: "GET",
382
382
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
383
383
  ? yield core.Supplier.get(this._options.accountToken)
384
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
384
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
385
  contentType: "application/json",
386
386
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
387
387
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -69,7 +69,7 @@ class Jobs {
69
69
  method: "POST",
70
70
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
71
71
  ? yield core.Supplier.get(this._options.accountToken)
72
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
75
75
  unrecognizedObjectKeys: "strip",
@@ -125,7 +125,7 @@ class Jobs {
125
125
  method: "POST",
126
126
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
127
127
  ? yield core.Supplier.get(this._options.accountToken)
128
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  body: yield serializers.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
131
131
  unrecognizedObjectKeys: "strip",
@@ -62,7 +62,7 @@ class Models {
62
62
  method: "GET",
63
63
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
64
64
  ? yield core.Supplier.get(this._options.accountToken)
65
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
66
66
  contentType: "application/json",
67
67
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
68
68
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -116,7 +116,7 @@ class Models {
116
116
  method: "PATCH",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -171,7 +171,7 @@ class Models {
171
171
  method: "GET",
172
172
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
173
173
  ? yield core.Supplier.get(this._options.accountToken)
174
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
175
  contentType: "application/json",
176
176
  queryParameters: _queryParams,
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class Models {
221
221
  method: "PATCH",
222
222
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
223
223
  ? yield core.Supplier.get(this._options.accountToken)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  body: yield serializers.customModels.models.updateModelVersionDescription.Request.jsonOrThrow(request, {
227
227
  unrecognizedObjectKeys: "strip",
@@ -287,7 +287,7 @@ class Models {
287
287
  method: "GET",
288
288
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
289
289
  ? yield core.Supplier.get(this._options.accountToken)
290
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
290
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
291
  contentType: "application/json",
292
292
  queryParameters: _queryParams,
293
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -356,7 +356,7 @@ class Models {
356
356
  method: "GET",
357
357
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
358
358
  ? yield core.Supplier.get(this._options.accountToken)
359
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
359
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
360
  contentType: "application/json",
361
361
  queryParameters: _queryParams,
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../../../..";
5
- export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.TextInput | Hume.empathicVoice.TtsInput;
5
+ export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput;
@@ -64,7 +64,7 @@ class Chats {
64
64
  method: "GET",
65
65
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
66
66
  ? yield core.Supplier.get(this._options.accountToken)
67
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class Chats {
116
116
  method: "GET",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -22,9 +22,9 @@ export declare class Configs {
22
22
  getReturnConfigsForUser(request?: Hume.empathicVoice.GetReturnConfigsForUserRequest, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedConfigs>;
23
23
  createNewConfig(request: Hume.empathicVoice.PostedConfig, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
24
24
  getReturnConfigByVersionId(id: string, request?: Hume.empathicVoice.GetReturnConfigByVersionIdRequest, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedConfigs>;
25
- addNewConfigVersion(id: string, request: Hume.empathicVoice.PostedConfig, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
25
+ addNewConfigVersion(id: string, request?: Hume.empathicVoice.PostedConfigVersion, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
26
26
  deleteConfig(id: string, requestOptions?: Configs.RequestOptions): Promise<void>;
27
- updateConfigName(id: string, request?: Hume.empathicVoice.PostedConfigName, requestOptions?: Configs.RequestOptions): Promise<void>;
27
+ updateConfigName(id: string, request: Hume.empathicVoice.PostedConfigName, requestOptions?: Configs.RequestOptions): Promise<void>;
28
28
  getReturnPromptByRevisionId(id: string, version: number, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
29
29
  deleteConfigVersion(id: string, version: number, requestOptions?: Configs.RequestOptions): Promise<void>;
30
30
  updateConfigVersionDescription(id: string, version: number, request?: Hume.empathicVoice.PostedConfigVersionDescription, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
@@ -67,7 +67,7 @@ class Configs {
67
67
  method: "GET",
68
68
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
69
69
  ? yield core.Supplier.get(this._options.accountToken)
70
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Configs {
111
111
  method: "POST",
112
112
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
113
113
  ? yield core.Supplier.get(this._options.accountToken)
114
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
117
117
  unrecognizedObjectKeys: "strip",
@@ -168,7 +168,7 @@ class Configs {
168
168
  method: "GET",
169
169
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
170
170
  ? yield core.Supplier.get(this._options.accountToken)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
172
  contentType: "application/json",
173
173
  queryParameters: _queryParams,
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,7 +204,7 @@ class Configs {
204
204
  }
205
205
  });
206
206
  }
207
- addNewConfigVersion(id, request, requestOptions) {
207
+ addNewConfigVersion(id, request = {}, requestOptions) {
208
208
  var _a, _b;
209
209
  return __awaiter(this, void 0, void 0, function* () {
210
210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -212,9 +212,9 @@ class Configs {
212
212
  method: "POST",
213
213
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
214
214
  ? yield core.Supplier.get(this._options.accountToken)
215
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
- body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
217
+ body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
219
219
  }),
220
220
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -258,7 +258,7 @@ class Configs {
258
258
  method: "DELETE",
259
259
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
260
260
  ? yield core.Supplier.get(this._options.accountToken)
261
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -287,7 +287,7 @@ class Configs {
287
287
  }
288
288
  });
289
289
  }
290
- updateConfigName(id, request = {}, requestOptions) {
290
+ updateConfigName(id, request, requestOptions) {
291
291
  var _a, _b;
292
292
  return __awaiter(this, void 0, void 0, function* () {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -295,7 +295,7 @@ class Configs {
295
295
  method: "PATCH",
296
296
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
297
297
  ? yield core.Supplier.get(this._options.accountToken)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
299
  contentType: "application/json",
300
300
  body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
301
301
  unrecognizedObjectKeys: "strip",
@@ -335,7 +335,7 @@ class Configs {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
341
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -378,7 +378,7 @@ class Configs {
378
378
  method: "DELETE",
379
379
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
380
380
  ? yield core.Supplier.get(this._options.accountToken)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
382
382
  contentType: "application/json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -415,7 +415,7 @@ class Configs {
415
415
  method: "PATCH",
416
416
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
417
417
  ? yield core.Supplier.get(this._options.accountToken)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
419
419
  contentType: "application/json",
420
420
  body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
421
421
  unrecognizedObjectKeys: "strip",
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Hume from "../../..";
4
+ import * as Hume from "../../../../../..";
5
5
  /**
6
- * A configuration to be posted to the server
6
+ * @example
7
+ * {
8
+ * name: "name"
9
+ * }
7
10
  */
8
11
  export interface PostedConfig {
9
12
  /** Name applied to all versions of a particular Config. */
10
- name?: string;
13
+ name: string;
11
14
  /** Description that is appended to a specific version of a Config. */
12
15
  versionDescription?: string;
13
16
  prompt?: Hume.empathicVoice.PostedPromptSpec;
@@ -3,9 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * name: "name"
8
+ * }
7
9
  */
8
10
  export interface PostedConfigName {
9
11
  /** Name applied to all versions of a particular Config. */
10
- name?: string;
12
+ name: string;
11
13
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../../../..";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface PostedConfigVersion {
10
+ /** Description that is appended to a specific version of a Config. */
11
+ versionDescription?: string;
12
+ prompt?: Hume.empathicVoice.PostedPromptSpec;
13
+ languageModel?: Hume.empathicVoice.PostedLanguageModel;
14
+ }
@@ -1,4 +1,6 @@
1
1
  export { GetReturnConfigsForUserRequest } from "./GetReturnConfigsForUserRequest";
2
+ export { PostedConfig } from "./PostedConfig";
2
3
  export { GetReturnConfigByVersionIdRequest } from "./GetReturnConfigByVersionIdRequest";
4
+ export { PostedConfigVersion } from "./PostedConfigVersion";
3
5
  export { PostedConfigName } from "./PostedConfigName";
4
6
  export { PostedConfigVersionDescription } from "./PostedConfigVersionDescription";
@@ -20,14 +20,14 @@ export declare class Prompts {
20
20
  protected readonly _options: Prompts.Options;
21
21
  constructor(_options?: Prompts.Options);
22
22
  getReturnPromptsForUser(request?: Hume.empathicVoice.GetReturnPromptsForUserRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedPrompts>;
23
- createNewPrompt(request: Hume.empathicVoice.PostedPrompt, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt>;
23
+ createNewPrompt(request: Hume.empathicVoice.PostedPrompt, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
24
24
  getReturnPromptByPromptId(id: string, request?: Hume.empathicVoice.GetReturnPromptByPromptIdRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedPrompts>;
25
- addNewPromptVersion(id: string, request: Hume.empathicVoice.PostedPrompt, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt>;
25
+ addNewPromptVersion(id: string, request: Hume.empathicVoice.PostedPromptVersion, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
26
26
  deletePromptVersion(id: string, requestOptions?: Prompts.RequestOptions): Promise<void>;
27
- updatePromptName(id: string, request?: Hume.empathicVoice.PostedPromptName, requestOptions?: Prompts.RequestOptions): Promise<void>;
28
- getReturnPromptByVersionNumber(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt>;
27
+ updatePromptName(id: string, request: Hume.empathicVoice.PostedPromptName, requestOptions?: Prompts.RequestOptions): Promise<void>;
28
+ getReturnPromptByVersionNumber(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
29
29
  deletePromptVersion1(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<void>;
30
- updatePromptVersionDescription(id: string, version: number, request?: Hume.empathicVoice.PostedPromptVersionDescription, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt>;
30
+ updatePromptVersionDescription(id: string, version: number, request?: Hume.empathicVoice.PostedPromptVersionDescription, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
31
31
  protected _getCustomAuthorizationHeaders(): Promise<{
32
32
  "X-Hume-Api-Key": string | undefined;
33
33
  }>;
@@ -67,7 +67,7 @@ class Prompts {
67
67
  method: "GET",
68
68
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
69
69
  ? yield core.Supplier.get(this._options.accountToken)
70
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Prompts {
111
111
  method: "POST",
112
112
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
113
113
  ? yield core.Supplier.get(this._options.accountToken)
114
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
117
117
  unrecognizedObjectKeys: "strip",
@@ -120,7 +120,7 @@ class Prompts {
120
120
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
121
121
  });
122
122
  if (_response.ok) {
123
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
123
+ return yield serializers.empathicVoice.prompts.createNewPrompt.Response.parseOrThrow(_response.body, {
124
124
  unrecognizedObjectKeys: "passthrough",
125
125
  allowUnrecognizedUnionMembers: true,
126
126
  allowUnrecognizedEnumValues: true,
@@ -168,7 +168,7 @@ class Prompts {
168
168
  method: "GET",
169
169
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
170
170
  ? yield core.Supplier.get(this._options.accountToken)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
172
  contentType: "application/json",
173
173
  queryParameters: _queryParams,
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,16 +212,16 @@ class Prompts {
212
212
  method: "POST",
213
213
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
214
214
  ? yield core.Supplier.get(this._options.accountToken)
215
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
- body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
217
+ body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
219
219
  }),
220
220
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
221
221
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
222
222
  });
223
223
  if (_response.ok) {
224
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
224
+ return yield serializers.empathicVoice.prompts.addNewPromptVersion.Response.parseOrThrow(_response.body, {
225
225
  unrecognizedObjectKeys: "passthrough",
226
226
  allowUnrecognizedUnionMembers: true,
227
227
  allowUnrecognizedEnumValues: true,
@@ -258,7 +258,7 @@ class Prompts {
258
258
  method: "DELETE",
259
259
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
260
260
  ? yield core.Supplier.get(this._options.accountToken)
261
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -287,7 +287,7 @@ class Prompts {
287
287
  }
288
288
  });
289
289
  }
290
- updatePromptName(id, request = {}, requestOptions) {
290
+ updatePromptName(id, request, requestOptions) {
291
291
  var _a, _b;
292
292
  return __awaiter(this, void 0, void 0, function* () {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -295,7 +295,7 @@ class Prompts {
295
295
  method: "PATCH",
296
296
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
297
297
  ? yield core.Supplier.get(this._options.accountToken)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
299
  contentType: "application/json",
300
300
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
301
301
  unrecognizedObjectKeys: "strip",
@@ -335,13 +335,13 @@ class Prompts {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
341
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
342
342
  });
343
343
  if (_response.ok) {
344
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
344
+ return yield serializers.empathicVoice.prompts.getReturnPromptByVersionNumber.Response.parseOrThrow(_response.body, {
345
345
  unrecognizedObjectKeys: "passthrough",
346
346
  allowUnrecognizedUnionMembers: true,
347
347
  allowUnrecognizedEnumValues: true,
@@ -378,7 +378,7 @@ class Prompts {
378
378
  method: "DELETE",
379
379
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
380
380
  ? yield core.Supplier.get(this._options.accountToken)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
382
382
  contentType: "application/json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -415,7 +415,7 @@ class Prompts {
415
415
  method: "PATCH",
416
416
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
417
417
  ? yield core.Supplier.get(this._options.accountToken)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
419
419
  contentType: "application/json",
420
420
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
421
421
  unrecognizedObjectKeys: "strip",
@@ -424,7 +424,7 @@ class Prompts {
424
424
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
425
425
  });
426
426
  if (_response.ok) {
427
- return yield serializers.empathicVoice.ReturnPrompt.parseOrThrow(_response.body, {
427
+ return yield serializers.empathicVoice.prompts.updatePromptVersionDescription.Response.parseOrThrow(_response.body, {
428
428
  unrecognizedObjectKeys: "passthrough",
429
429
  allowUnrecognizedUnionMembers: true,
430
430
  allowUnrecognizedEnumValues: true,