hume 0.7.0 → 0.7.2

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 (280) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +176 -72
  2. package/.mock/definition/empathic-voice/chat.yml +6 -6
  3. package/.mock/definition/empathic-voice/chatGroups.yml +9 -0
  4. package/.mock/definition/empathic-voice/chats.yml +14 -1
  5. package/.mock/definition/empathic-voice/configs.yml +138 -86
  6. package/.mock/definition/empathic-voice/prompts.yml +4 -2
  7. package/.mock/definition/empathic-voice/tools.yml +4 -2
  8. package/.mock/fern.config.json +1 -1
  9. package/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
  10. package/api/resources/customModels/resources/datasets/client/Client.js +18 -18
  11. package/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
  12. package/api/resources/customModels/resources/files/client/Client.js +14 -14
  13. package/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
  14. package/api/resources/customModels/resources/jobs/client/Client.js +4 -4
  15. package/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
  16. package/api/resources/customModels/resources/models/client/Client.js +12 -12
  17. package/api/resources/empathicVoice/client/StreamSocket.d.ts +8 -0
  18. package/api/resources/empathicVoice/client/StreamSocket.js +16 -0
  19. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  20. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  21. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  22. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  23. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  24. package/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  25. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  26. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  27. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  28. package/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  29. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  30. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  31. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  32. package/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  33. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  34. package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  35. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  36. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  39. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  40. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  41. package/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  42. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  43. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  44. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  45. package/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  46. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  47. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  48. package/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  49. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  50. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  51. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  52. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  53. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  54. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  55. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  56. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  57. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  58. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  60. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  61. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  62. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  63. package/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  64. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  65. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  66. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  67. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  68. package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  69. package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  70. package/api/resources/empathicVoice/types/index.d.ts +9 -6
  71. package/api/resources/empathicVoice/types/index.js +9 -6
  72. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  73. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  74. package/core/runtime/runtime.d.ts +1 -1
  75. package/core/runtime/runtime.js +11 -1
  76. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
  77. package/dist/api/resources/customModels/resources/datasets/client/Client.js +18 -18
  78. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
  79. package/dist/api/resources/customModels/resources/files/client/Client.js +14 -14
  80. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
  81. package/dist/api/resources/customModels/resources/jobs/client/Client.js +4 -4
  82. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
  83. package/dist/api/resources/customModels/resources/models/client/Client.js +12 -12
  84. package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +8 -0
  85. package/dist/api/resources/empathicVoice/client/StreamSocket.js +16 -0
  86. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  87. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  88. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  89. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  90. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  91. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  92. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  93. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  94. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  95. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  96. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  97. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  98. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  99. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  100. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  101. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  102. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  103. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  105. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  106. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  107. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  108. package/dist/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  109. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  110. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  111. package/dist/api/resources/empathicVoice/types/PostedEllmModel.js +5 -0
  112. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  113. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.js +5 -0
  114. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  115. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.js +5 -0
  116. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  117. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  118. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  119. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  120. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  121. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  122. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  123. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  124. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  125. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.js +5 -0
  126. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  127. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.js +5 -0
  128. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  129. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  130. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  131. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  132. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  133. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  134. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  135. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.js +5 -0
  136. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  137. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  138. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  139. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  140. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  141. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  142. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  143. package/dist/api/resources/empathicVoice/types/index.d.ts +9 -6
  144. package/dist/api/resources/empathicVoice/types/index.js +9 -6
  145. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  146. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  147. package/dist/core/runtime/runtime.d.ts +1 -1
  148. package/dist/core/runtime/runtime.js +11 -1
  149. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  150. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  151. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  152. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  153. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  154. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  155. package/{serialization/resources/empathicVoice/types/WebSocketError.d.ts → dist/serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  156. package/{serialization/resources/empathicVoice/types/WebSocketError.js → dist/serialization/resources/empathicVoice/types/Error_.js} +2 -2
  157. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  158. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  159. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  160. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  161. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  162. package/dist/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → PostedEventMessageSpec.js} +4 -3
  163. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  164. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  165. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  166. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  167. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  168. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  169. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  170. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  171. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  172. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  173. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  174. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  175. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  176. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  177. package/dist/serialization/resources/empathicVoice/types/{TtsInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  178. package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  179. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  180. package/dist/serialization/resources/empathicVoice/types/{TextInput.js → ReturnEventMessageSpec.js} +4 -3
  181. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  182. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  183. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  184. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  185. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  186. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  187. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  188. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  189. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  190. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  191. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  192. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  193. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  194. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  195. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  196. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  197. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  198. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  199. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  200. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  201. package/dist/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  202. package/dist/serialization/resources/empathicVoice/types/index.js +9 -6
  203. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  204. package/package.json +6 -1
  205. package/reference.md +208 -122
  206. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  207. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  208. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  209. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  210. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  211. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  212. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts → serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  213. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.js → serialization/resources/empathicVoice/types/Error_.js} +2 -2
  214. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  215. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  216. package/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  217. package/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  218. package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  219. package/{dist/serialization/resources/empathicVoice/types/TtsInput.js → serialization/resources/empathicVoice/types/PostedEventMessageSpec.js} +4 -3
  220. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  221. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  222. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  223. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  224. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  225. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  226. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  227. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  228. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  229. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  230. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  231. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  232. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  233. package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  234. package/serialization/resources/empathicVoice/types/{TextInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  235. package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  236. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  237. package/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → ReturnEventMessageSpec.js} +4 -3
  238. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  239. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  240. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  241. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  242. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  243. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  244. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  245. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  246. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  247. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  248. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  249. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  250. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  251. package/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  252. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  253. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  254. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  255. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  256. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  257. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  258. package/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  259. package/serialization/resources/empathicVoice/types/index.js +9 -6
  260. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  261. package/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  262. package/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  263. package/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  264. package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  265. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  266. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  267. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  268. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
  269. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  270. package/serialization/resources/empathicVoice/types/TextInput.js +0 -33
  271. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
  272. package/serialization/resources/empathicVoice/types/TtsInput.js +0 -33
  273. /package/api/resources/empathicVoice/types/{FunctionCallResponseInput.js → Error_.js} +0 -0
  274. /package/api/resources/empathicVoice/types/{TextInput.js → PostedEllmModel.js} +0 -0
  275. /package/api/resources/empathicVoice/types/{TtsInput.js → PostedEventMessageSpec.js} +0 -0
  276. /package/api/resources/empathicVoice/types/{WebSocketError.js → PostedTimeoutSpec.js} +0 -0
  277. /package/{dist/api/resources/empathicVoice/types/FunctionCallResponseInput.js → api/resources/empathicVoice/types/ReturnEllmModel.js} +0 -0
  278. /package/{dist/api/resources/empathicVoice/types/TextInput.js → api/resources/empathicVoice/types/ReturnEventMessageSpec.js} +0 -0
  279. /package/{dist/api/resources/empathicVoice/types/TtsInput.js → api/resources/empathicVoice/types/ReturnTimeoutSpec.js} +0 -0
  280. /package/dist/api/resources/empathicVoice/types/{WebSocketError.js → Error_.js} +0 -0
@@ -1,15 +1,21 @@
1
1
  export * from "./ReturnUserDefinedTool";
2
2
  export * from "./ReturnPrompt";
3
3
  export * from "./PostedBuiltinTool";
4
+ export * from "./PostedEllmModel";
5
+ export * from "./PostedEventMessageSpec";
4
6
  export * from "./PostedLanguageModelModelProvider";
5
7
  export * from "./PostedLanguageModel";
6
8
  export * from "./PostedPromptSpec";
9
+ export * from "./PostedTimeoutSpec";
7
10
  export * from "./PostedUserDefinedToolSpec";
8
11
  export * from "./PostedVoiceName";
9
12
  export * from "./PostedVoice";
10
13
  export * from "./ReturnBuiltinTool";
11
14
  export * from "./ReturnConfig";
15
+ export * from "./ReturnEllmModel";
16
+ export * from "./ReturnEventMessageSpec";
12
17
  export * from "./ReturnLanguageModel";
18
+ export * from "./ReturnTimeoutSpec";
13
19
  export * from "./ReturnVoice";
14
20
  export * from "./ReturnPagedUserDefinedTools";
15
21
  export * from "./ReturnPagedPrompts";
@@ -21,10 +27,10 @@ export * from "./ReturnChatEvent";
21
27
  export * from "./ReturnChatPagedEvents";
22
28
  export * from "./ReturnActiveChatCount";
23
29
  export * from "./ReturnActiveChatCountPerTag";
24
- export * from "./ReturnChatGroupPagedEvents";
25
- export * from "./ReturnChatGroupPagedChats";
26
30
  export * from "./ReturnChatGroup";
27
31
  export * from "./ReturnPagedChatGroups";
32
+ export * from "./ReturnChatGroupPagedChats";
33
+ export * from "./ReturnChatGroupPagedEvents";
28
34
  export * from "./AssistantEnd";
29
35
  export * from "./AssistantInput";
30
36
  export * from "./AssistantMessage";
@@ -40,7 +46,7 @@ export * from "./Context";
40
46
  export * from "./ContextType";
41
47
  export * from "./EmotionScores";
42
48
  export * from "./Encoding";
43
- export * from "./WebSocketError";
49
+ export * from "./Error_";
44
50
  export * from "./ErrorLevel";
45
51
  export * from "./Inference";
46
52
  export * from "./MillisecondInterval";
@@ -57,6 +63,3 @@ export * from "./ToolType";
57
63
  export * from "./UserInput";
58
64
  export * from "./UserInterruption";
59
65
  export * from "./UserMessage";
60
- export * from "./TtsInput";
61
- export * from "./TextInput";
62
- export * from "./FunctionCallResponseInput";
@@ -17,15 +17,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ReturnUserDefinedTool"), exports);
18
18
  __exportStar(require("./ReturnPrompt"), exports);
19
19
  __exportStar(require("./PostedBuiltinTool"), exports);
20
+ __exportStar(require("./PostedEllmModel"), exports);
21
+ __exportStar(require("./PostedEventMessageSpec"), exports);
20
22
  __exportStar(require("./PostedLanguageModelModelProvider"), exports);
21
23
  __exportStar(require("./PostedLanguageModel"), exports);
22
24
  __exportStar(require("./PostedPromptSpec"), exports);
25
+ __exportStar(require("./PostedTimeoutSpec"), exports);
23
26
  __exportStar(require("./PostedUserDefinedToolSpec"), exports);
24
27
  __exportStar(require("./PostedVoiceName"), exports);
25
28
  __exportStar(require("./PostedVoice"), exports);
26
29
  __exportStar(require("./ReturnBuiltinTool"), exports);
27
30
  __exportStar(require("./ReturnConfig"), exports);
31
+ __exportStar(require("./ReturnEllmModel"), exports);
32
+ __exportStar(require("./ReturnEventMessageSpec"), exports);
28
33
  __exportStar(require("./ReturnLanguageModel"), exports);
34
+ __exportStar(require("./ReturnTimeoutSpec"), exports);
29
35
  __exportStar(require("./ReturnVoice"), exports);
30
36
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
31
37
  __exportStar(require("./ReturnPagedPrompts"), exports);
@@ -37,10 +43,10 @@ __exportStar(require("./ReturnChatEvent"), exports);
37
43
  __exportStar(require("./ReturnChatPagedEvents"), exports);
38
44
  __exportStar(require("./ReturnActiveChatCount"), exports);
39
45
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
40
- __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
41
- __exportStar(require("./ReturnChatGroupPagedChats"), exports);
42
46
  __exportStar(require("./ReturnChatGroup"), exports);
43
47
  __exportStar(require("./ReturnPagedChatGroups"), exports);
48
+ __exportStar(require("./ReturnChatGroupPagedChats"), exports);
49
+ __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
44
50
  __exportStar(require("./AssistantEnd"), exports);
45
51
  __exportStar(require("./AssistantInput"), exports);
46
52
  __exportStar(require("./AssistantMessage"), exports);
@@ -56,7 +62,7 @@ __exportStar(require("./Context"), exports);
56
62
  __exportStar(require("./ContextType"), exports);
57
63
  __exportStar(require("./EmotionScores"), exports);
58
64
  __exportStar(require("./Encoding"), exports);
59
- __exportStar(require("./WebSocketError"), exports);
65
+ __exportStar(require("./Error_"), exports);
60
66
  __exportStar(require("./ErrorLevel"), exports);
61
67
  __exportStar(require("./Inference"), exports);
62
68
  __exportStar(require("./MillisecondInterval"), exports);
@@ -73,6 +79,3 @@ __exportStar(require("./ToolType"), exports);
73
79
  __exportStar(require("./UserInput"), exports);
74
80
  __exportStar(require("./UserInterruption"), exports);
75
81
  __exportStar(require("./UserMessage"), exports);
76
- __exportStar(require("./TtsInput"), exports);
77
- __exportStar(require("./TextInput"), exports);
78
- __exportStar(require("./FunctionCallResponseInput"), exports);
@@ -29,7 +29,7 @@ export declare class Batch {
29
29
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
30
30
  *
31
31
  * @example
32
- * await hume.expressionMeasurement.batch.listJobs()
32
+ * await client.expressionMeasurement.batch.listJobs()
33
33
  */
34
34
  listJobs(request?: Hume.expressionMeasurement.BatchListJobsRequest, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionJob[]>;
35
35
  /**
@@ -39,7 +39,7 @@ export declare class Batch {
39
39
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
40
40
  *
41
41
  * @example
42
- * await hume.expressionMeasurement.batch.startInferenceJob({
42
+ * await client.expressionMeasurement.batch.startInferenceJob({
43
43
  * urls: ["https://hume-tutorials.s3.amazonaws.com/faces.zip"],
44
44
  * notify: true
45
45
  * })
@@ -52,7 +52,7 @@ export declare class Batch {
52
52
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
53
53
  *
54
54
  * @example
55
- * await hume.expressionMeasurement.batch.getJobDetails("job_id")
55
+ * await client.expressionMeasurement.batch.getJobDetails("job_id")
56
56
  */
57
57
  getJobDetails(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionJob>;
58
58
  /**
@@ -62,7 +62,7 @@ export declare class Batch {
62
62
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @example
65
- * await hume.expressionMeasurement.batch.getJobPredictions("job_id")
65
+ * await client.expressionMeasurement.batch.getJobPredictions("job_id")
66
66
  */
67
67
  getJobPredictions(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionPredictResult[]>;
68
68
  /**
@@ -77,7 +77,7 @@ export declare class Batch {
77
77
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
78
78
  *
79
79
  * @example
80
- * await hume.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
80
+ * await client.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
81
81
  */
82
82
  startInferenceJobFromLocalFile(file: File[] | fs.ReadStream[], request: Hume.expressionMeasurement.BatchStartInferenceJobFromLocalFileRequest, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.JobId>;
83
83
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -55,7 +55,7 @@ class Batch {
55
55
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
58
- * await hume.expressionMeasurement.batch.listJobs()
58
+ * await client.expressionMeasurement.batch.listJobs()
59
59
  */
60
60
  listJobs(request = {}, requestOptions) {
61
61
  var _a, _b;
@@ -96,7 +96,7 @@ class Batch {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
98
98
  method: "GET",
99
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
99
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -140,7 +140,7 @@ class Batch {
140
140
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
141
141
  *
142
142
  * @example
143
- * await hume.expressionMeasurement.batch.startInferenceJob({
143
+ * await client.expressionMeasurement.batch.startInferenceJob({
144
144
  * urls: ["https://hume-tutorials.s3.amazonaws.com/faces.zip"],
145
145
  * notify: true
146
146
  * })
@@ -151,7 +151,7 @@ class Batch {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
153
153
  method: "POST",
154
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
155
  contentType: "application/json",
156
156
  body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
157
157
  unrecognizedObjectKeys: "strip",
@@ -197,7 +197,7 @@ class Batch {
197
197
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
198
198
  *
199
199
  * @example
200
- * await hume.expressionMeasurement.batch.getJobDetails("job_id")
200
+ * await client.expressionMeasurement.batch.getJobDetails("job_id")
201
201
  */
202
202
  getJobDetails(id, requestOptions) {
203
203
  var _a, _b;
@@ -205,7 +205,7 @@ class Batch {
205
205
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
206
206
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
207
207
  method: "GET",
208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
209
209
  contentType: "application/json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
211
211
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -248,7 +248,7 @@ class Batch {
248
248
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
249
249
  *
250
250
  * @example
251
- * await hume.expressionMeasurement.batch.getJobPredictions("job_id")
251
+ * await client.expressionMeasurement.batch.getJobPredictions("job_id")
252
252
  */
253
253
  getJobPredictions(id, requestOptions) {
254
254
  var _a, _b;
@@ -256,7 +256,7 @@ class Batch {
256
256
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
257
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
258
258
  method: "GET",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
262
262
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -301,7 +301,7 @@ class Batch {
301
301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
302
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
303
303
  method: "GET",
304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
305
305
  contentType: "application/json",
306
306
  responseType: "streaming",
307
307
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +340,7 @@ class Batch {
340
340
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
341
341
  *
342
342
  * @example
343
- * await hume.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
343
+ * await client.expressionMeasurement.batch.startInferenceJobFromLocalFile([fs.createReadStream("/path/to/your/file")], {})
344
344
  */
345
345
  startInferenceJobFromLocalFile(file, request, requestOptions) {
346
346
  var _a, _b;
@@ -356,7 +356,7 @@ class Batch {
356
356
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
357
357
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
358
358
  method: "POST",
359
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
359
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
360
360
  body: yield _maybeEncodedRequest.getBody(),
361
361
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
362
362
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export declare const RUNTIME: Runtime;
5
5
  export interface Runtime {
6
- type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown";
6
+ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
7
7
  version?: string;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _a, _b, _c, _d;
2
+ var _a, _b, _c, _d, _e;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.RUNTIME = void 0;
5
5
  /**
@@ -37,6 +37,11 @@ const isNode = typeof process !== "undefined" &&
37
37
  * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
38
38
  */
39
39
  const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
40
+ /**
41
+ * A constant that indicates whether the environment the code is running is Cloudflare.
42
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
43
+ */
44
+ const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
40
45
  /**
41
46
  * A constant that indicates which environment and version the SDK is running in.
42
47
  */
@@ -48,6 +53,11 @@ function evaluateRuntime() {
48
53
  version: window.navigator.userAgent,
49
54
  };
50
55
  }
56
+ if (isCloudflare) {
57
+ return {
58
+ type: "workerd",
59
+ };
60
+ }
51
61
  if (isWebWorker) {
52
62
  return {
53
63
  type: "web-worker",
@@ -8,7 +8,7 @@ import { AssistantEnd } from "../../../types/AssistantEnd";
8
8
  import { AssistantMessage } from "../../../types/AssistantMessage";
9
9
  import { AudioOutput } from "../../../types/AudioOutput";
10
10
  import { ChatMetadata } from "../../../types/ChatMetadata";
11
- import { WebSocketError } from "../../../types/WebSocketError";
11
+ import { Error_ } from "../../../types/Error_";
12
12
  import { UserInterruption } from "../../../types/UserInterruption";
13
13
  import { UserMessage } from "../../../types/UserMessage";
14
14
  import { ToolCallMessage } from "../../../types/ToolCallMessage";
@@ -16,5 +16,5 @@ import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
16
16
  import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
17
17
  export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
18
18
  export declare namespace SubscribeEvent {
19
- type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
19
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | ChatMetadata.Raw | Error_.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
20
20
  }
@@ -32,7 +32,7 @@ const AssistantEnd_1 = require("../../../types/AssistantEnd");
32
32
  const AssistantMessage_1 = require("../../../types/AssistantMessage");
33
33
  const AudioOutput_1 = require("../../../types/AudioOutput");
34
34
  const ChatMetadata_1 = require("../../../types/ChatMetadata");
35
- const WebSocketError_1 = require("../../../types/WebSocketError");
35
+ const Error_1 = require("../../../types/Error_");
36
36
  const UserInterruption_1 = require("../../../types/UserInterruption");
37
37
  const UserMessage_1 = require("../../../types/UserMessage");
38
38
  const ToolCallMessage_1 = require("../../../types/ToolCallMessage");
@@ -43,7 +43,7 @@ exports.SubscribeEvent = core.serialization.undiscriminatedUnion([
43
43
  AssistantMessage_1.AssistantMessage,
44
44
  AudioOutput_1.AudioOutput,
45
45
  ChatMetadata_1.ChatMetadata,
46
- WebSocketError_1.WebSocketError,
46
+ Error_1.Error_,
47
47
  UserInterruption_1.UserInterruption,
48
48
  UserMessage_1.UserMessage,
49
49
  ToolCallMessage_1.ToolCallMessage,
@@ -7,8 +7,11 @@ import * as core from "../../../../../../../core";
7
7
  import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
8
  import { PostedVoice } from "../../../../types/PostedVoice";
9
9
  import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
10
+ import { PostedEllmModel } from "../../../../types/PostedEllmModel";
10
11
  import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
11
12
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
13
+ import { PostedEventMessageSpec } from "../../../../types/PostedEventMessageSpec";
14
+ import { PostedTimeoutSpec } from "../../../../types/PostedTimeoutSpec";
12
15
  export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
13
16
  export declare namespace PostedConfig {
14
17
  interface Raw {
@@ -17,7 +20,10 @@ export declare namespace PostedConfig {
17
20
  prompt?: PostedPromptSpec.Raw | null;
18
21
  voice?: PostedVoice.Raw | null;
19
22
  language_model?: PostedLanguageModel.Raw | null;
20
- tools?: PostedUserDefinedToolSpec.Raw | null;
21
- builtin_tools?: PostedBuiltinTool.Raw | null;
23
+ ellm_model?: PostedEllmModel.Raw | null;
24
+ tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
25
+ builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
26
+ event_messages?: Record<string, PostedEventMessageSpec.Raw | null | undefined> | null;
27
+ timeouts?: Record<string, PostedTimeoutSpec.Raw | null | undefined> | null;
22
28
  }
23
29
  }
@@ -31,14 +31,20 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
32
  const PostedVoice_1 = require("../../../../types/PostedVoice");
33
33
  const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
34
+ const PostedEllmModel_1 = require("../../../../types/PostedEllmModel");
34
35
  const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
35
36
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
37
+ const PostedEventMessageSpec_1 = require("../../../../types/PostedEventMessageSpec");
38
+ const PostedTimeoutSpec_1 = require("../../../../types/PostedTimeoutSpec");
36
39
  exports.PostedConfig = core.serialization.object({
37
40
  name: core.serialization.string(),
38
41
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
39
42
  prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
40
43
  voice: PostedVoice_1.PostedVoice.optional(),
41
44
  languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
42
- tools: PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional(),
43
- builtinTools: core.serialization.property("builtin_tools", PostedBuiltinTool_1.PostedBuiltinTool.optional()),
45
+ ellmModel: core.serialization.property("ellm_model", PostedEllmModel_1.PostedEllmModel.optional()),
46
+ tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
47
+ builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
48
+ eventMessages: core.serialization.property("event_messages", core.serialization.record(core.serialization.string(), PostedEventMessageSpec_1.PostedEventMessageSpec.optional()).optional()),
49
+ timeouts: core.serialization.record(core.serialization.string(), PostedTimeoutSpec_1.PostedTimeoutSpec.optional()).optional(),
44
50
  });
@@ -7,8 +7,11 @@ import * as core from "../../../../../../../core";
7
7
  import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
8
  import { PostedVoice } from "../../../../types/PostedVoice";
9
9
  import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
10
+ import { PostedEllmModel } from "../../../../types/PostedEllmModel";
10
11
  import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
11
12
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
13
+ import { PostedEventMessageSpec } from "../../../../types/PostedEventMessageSpec";
14
+ import { PostedTimeoutSpec } from "../../../../types/PostedTimeoutSpec";
12
15
  export declare const PostedConfigVersion: core.serialization.Schema<serializers.empathicVoice.PostedConfigVersion.Raw, Hume.empathicVoice.PostedConfigVersion>;
13
16
  export declare namespace PostedConfigVersion {
14
17
  interface Raw {
@@ -16,7 +19,10 @@ export declare namespace PostedConfigVersion {
16
19
  prompt?: PostedPromptSpec.Raw | null;
17
20
  voice?: PostedVoice.Raw | null;
18
21
  language_model?: PostedLanguageModel.Raw | null;
19
- tools?: PostedUserDefinedToolSpec.Raw | null;
20
- builtin_tools?: PostedBuiltinTool.Raw | null;
22
+ ellm_model?: PostedEllmModel.Raw | null;
23
+ tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
24
+ builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
25
+ event_messages?: Record<string, PostedEventMessageSpec.Raw | null | undefined> | null;
26
+ timeouts?: Record<string, PostedTimeoutSpec.Raw | null | undefined> | null;
21
27
  }
22
28
  }
@@ -31,13 +31,19 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
32
  const PostedVoice_1 = require("../../../../types/PostedVoice");
33
33
  const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
34
+ const PostedEllmModel_1 = require("../../../../types/PostedEllmModel");
34
35
  const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
35
36
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
37
+ const PostedEventMessageSpec_1 = require("../../../../types/PostedEventMessageSpec");
38
+ const PostedTimeoutSpec_1 = require("../../../../types/PostedTimeoutSpec");
36
39
  exports.PostedConfigVersion = core.serialization.object({
37
40
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
38
41
  prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
39
42
  voice: PostedVoice_1.PostedVoice.optional(),
40
43
  languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
41
- tools: PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional(),
42
- builtinTools: core.serialization.property("builtin_tools", PostedBuiltinTool_1.PostedBuiltinTool.optional()),
44
+ ellmModel: core.serialization.property("ellm_model", PostedEllmModel_1.PostedEllmModel.optional()),
45
+ tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
46
+ builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
47
+ eventMessages: core.serialization.property("event_messages", core.serialization.record(core.serialization.string(), PostedEventMessageSpec_1.PostedEventMessageSpec.optional()).optional()),
48
+ timeouts: core.serialization.record(core.serialization.string(), PostedTimeoutSpec_1.PostedTimeoutSpec.optional()).optional(),
43
49
  });
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- export declare const WebSocketError: core.serialization.ObjectSchema<serializers.empathicVoice.WebSocketError.Raw, Hume.empathicVoice.WebSocketError>;
8
- export declare namespace WebSocketError {
7
+ export declare const Error_: core.serialization.ObjectSchema<serializers.empathicVoice.Error_.Raw, Hume.empathicVoice.Error_>;
8
+ export declare namespace Error_ {
9
9
  interface Raw {
10
10
  code: string;
11
11
  custom_session_id?: string | null;
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WebSocketError = void 0;
29
+ exports.Error_ = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.WebSocketError = core.serialization.object({
31
+ exports.Error_ = core.serialization.object({
32
32
  code: core.serialization.string(),
33
33
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
34
34
  message: core.serialization.string(),
@@ -8,6 +8,6 @@ export declare const PauseAssistantMessage: core.serialization.ObjectSchema<seri
8
8
  export declare namespace PauseAssistantMessage {
9
9
  interface Raw {
10
10
  custom_session_id?: string | null;
11
- type?: "pause_assistant_message" | null;
11
+ type: "pause_assistant_message";
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.PauseAssistantMessage = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PauseAssistantMessage = core.serialization.object({
32
32
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
- type: core.serialization.stringLiteral("pause_assistant_message").optional(),
33
+ type: core.serialization.stringLiteral("pause_assistant_message"),
34
34
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PostedEllmModel: core.serialization.ObjectSchema<serializers.empathicVoice.PostedEllmModel.Raw, Hume.empathicVoice.PostedEllmModel>;
8
+ export declare namespace PostedEllmModel {
9
+ interface Raw {
10
+ allow_short_responses?: boolean | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
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.PostedEllmModel = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedEllmModel = core.serialization.object({
32
+ allowShortResponses: core.serialization.property("allow_short_responses", core.serialization.boolean().optional()),
33
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PostedEventMessageSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedEventMessageSpec.Raw, Hume.empathicVoice.PostedEventMessageSpec>;
8
+ export declare namespace PostedEventMessageSpec {
9
+ interface Raw {
10
+ enabled: boolean;
11
+ text?: string | null;
12
+ }
13
+ }
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FunctionCallResponseInput = void 0;
29
+ exports.PostedEventMessageSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.FunctionCallResponseInput = core.serialization.object({
32
- type: core.serialization.stringLiteral("function_call_response").optional(),
31
+ exports.PostedEventMessageSpec = core.serialization.object({
32
+ enabled: core.serialization.boolean(),
33
+ text: core.serialization.string().optional(),
33
34
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PostedTimeoutSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedTimeoutSpec.Raw, Hume.empathicVoice.PostedTimeoutSpec>;
8
+ export declare namespace PostedTimeoutSpec {
9
+ interface Raw {
10
+ enabled: boolean;
11
+ duration_secs?: number | null;
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.PostedTimeoutSpec = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedTimeoutSpec = core.serialization.object({
32
+ enabled: core.serialization.boolean(),
33
+ durationSecs: core.serialization.property("duration_secs", core.serialization.number().optional()),
34
+ });
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const PostedVoiceName: core.serialization.Schema<serializers.empathicVoice.PostedVoiceName.Raw, Hume.empathicVoice.PostedVoiceName>;
8
8
  export declare namespace PostedVoiceName {
9
- type Raw = "ITO" | "DACHER";
9
+ type Raw = "ITO" | "DACHER" | "KORA";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedVoiceName = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.PostedVoiceName = core.serialization.enum_(["ITO", "DACHER"]);
31
+ exports.PostedVoiceName = core.serialization.enum_(["ITO", "DACHER", "KORA"]);
@@ -8,6 +8,6 @@ export declare const ResumeAssistantMessage: core.serialization.ObjectSchema<ser
8
8
  export declare namespace ResumeAssistantMessage {
9
9
  interface Raw {
10
10
  custom_session_id?: string | null;
11
- type?: "resume_assistant_message" | null;
11
+ type: "resume_assistant_message";
12
12
  }
13
13
  }