hume 0.7.1 → 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 (276) 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/resources/chat/types/SubscribeEvent.d.ts +1 -1
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  19. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  20. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  21. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  22. package/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  23. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  24. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  25. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  26. package/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  27. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  28. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  29. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  30. package/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  31. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  32. package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  33. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  36. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  39. package/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  40. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  41. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  42. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  43. package/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  44. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  45. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  46. package/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  47. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  48. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  49. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  50. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  51. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  52. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  53. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  54. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  55. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  56. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  57. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  58. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  60. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  61. package/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  62. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  63. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  64. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  65. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  66. package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  67. package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  68. package/api/resources/empathicVoice/types/index.d.ts +9 -6
  69. package/api/resources/empathicVoice/types/index.js +9 -6
  70. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  71. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  72. package/core/runtime/runtime.d.ts +1 -1
  73. package/core/runtime/runtime.js +11 -1
  74. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
  75. package/dist/api/resources/customModels/resources/datasets/client/Client.js +18 -18
  76. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
  77. package/dist/api/resources/customModels/resources/files/client/Client.js +14 -14
  78. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
  79. package/dist/api/resources/customModels/resources/jobs/client/Client.js +4 -4
  80. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
  81. package/dist/api/resources/customModels/resources/models/client/Client.js +12 -12
  82. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  86. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
  87. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
  88. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
  89. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  90. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
  92. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
  93. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
  95. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
  96. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  97. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  98. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  99. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  100. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  101. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  102. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
  103. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
  105. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  106. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
  107. package/dist/api/resources/empathicVoice/types/PostedEllmModel.js +5 -0
  108. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
  109. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
  111. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.js +5 -0
  112. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  113. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
  114. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
  115. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  116. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
  117. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
  118. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
  119. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
  120. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
  121. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.js +5 -0
  122. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
  123. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.js +5 -0
  124. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
  125. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
  126. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
  127. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
  128. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
  129. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  130. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
  131. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.js +5 -0
  132. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  133. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  134. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  135. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  136. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  137. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  138. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  139. package/dist/api/resources/empathicVoice/types/index.d.ts +9 -6
  140. package/dist/api/resources/empathicVoice/types/index.js +9 -6
  141. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
  142. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
  143. package/dist/core/runtime/runtime.d.ts +1 -1
  144. package/dist/core/runtime/runtime.js +11 -1
  145. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  146. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  147. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  148. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  149. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  150. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  151. package/{serialization/resources/empathicVoice/types/WebSocketError.d.ts → dist/serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  152. package/{serialization/resources/empathicVoice/types/WebSocketError.js → dist/serialization/resources/empathicVoice/types/Error_.js} +2 -2
  153. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  154. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  155. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  156. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  157. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  158. package/dist/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → PostedEventMessageSpec.js} +4 -3
  159. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  160. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  161. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  162. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  163. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  164. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  165. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  166. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  167. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  168. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  169. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  170. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  171. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  172. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  173. package/dist/serialization/resources/empathicVoice/types/{TtsInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  174. package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  175. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  176. package/dist/serialization/resources/empathicVoice/types/{TextInput.js → ReturnEventMessageSpec.js} +4 -3
  177. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  178. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  179. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  180. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  181. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  182. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  183. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  184. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  185. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  186. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  187. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  188. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  189. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  190. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  191. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  192. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  193. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  194. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  195. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  196. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  197. package/dist/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  198. package/dist/serialization/resources/empathicVoice/types/index.js +9 -6
  199. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  200. package/package.json +6 -1
  201. package/reference.md +208 -122
  202. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
  203. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
  204. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
  205. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
  206. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
  207. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
  208. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts → serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
  209. package/{dist/serialization/resources/empathicVoice/types/WebSocketError.js → serialization/resources/empathicVoice/types/Error_.js} +2 -2
  210. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  211. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  212. package/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
  213. package/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
  214. package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
  215. package/{dist/serialization/resources/empathicVoice/types/TtsInput.js → serialization/resources/empathicVoice/types/PostedEventMessageSpec.js} +4 -3
  216. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
  217. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
  218. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
  219. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
  220. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  221. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  222. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
  223. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
  224. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
  225. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
  226. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  227. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
  228. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
  229. package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
  230. package/serialization/resources/empathicVoice/types/{TextInput.d.ts → ReturnEllmModel.d.ts} +3 -3
  231. package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
  232. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
  233. package/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → ReturnEventMessageSpec.js} +4 -3
  234. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
  235. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
  236. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
  237. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
  238. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
  239. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
  240. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
  241. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
  242. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
  243. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
  244. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
  245. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
  246. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  247. package/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
  248. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
  249. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
  250. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
  251. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
  252. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
  253. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
  254. package/serialization/resources/empathicVoice/types/index.d.ts +9 -6
  255. package/serialization/resources/empathicVoice/types/index.js +9 -6
  256. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
  257. package/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  258. package/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  259. package/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  260. package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  261. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  262. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  263. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  264. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
  265. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  266. package/serialization/resources/empathicVoice/types/TextInput.js +0 -33
  267. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
  268. package/serialization/resources/empathicVoice/types/TtsInput.js +0 -33
  269. /package/api/resources/empathicVoice/types/{FunctionCallResponseInput.js → Error_.js} +0 -0
  270. /package/api/resources/empathicVoice/types/{TextInput.js → PostedEllmModel.js} +0 -0
  271. /package/api/resources/empathicVoice/types/{TtsInput.js → PostedEventMessageSpec.js} +0 -0
  272. /package/api/resources/empathicVoice/types/{WebSocketError.js → PostedTimeoutSpec.js} +0 -0
  273. /package/{dist/api/resources/empathicVoice/types/FunctionCallResponseInput.js → api/resources/empathicVoice/types/ReturnEllmModel.js} +0 -0
  274. /package/{dist/api/resources/empathicVoice/types/TextInput.js → api/resources/empathicVoice/types/ReturnEventMessageSpec.js} +0 -0
  275. /package/{dist/api/resources/empathicVoice/types/TtsInput.js → api/resources/empathicVoice/types/ReturnTimeoutSpec.js} +0 -0
  276. /package/dist/api/resources/empathicVoice/types/{WebSocketError.js → Error_.js} +0 -0
@@ -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.TtsInput = void 0;
29
+ exports.PostedEventMessageSpec = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.TtsInput = core.serialization.object({
32
- type: core.serialization.stringLiteral("tts").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
  }
@@ -30,5 +30,5 @@ exports.ResumeAssistantMessage = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ResumeAssistantMessage = core.serialization.object({
32
32
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
- type: core.serialization.stringLiteral("resume_assistant_message").optional(),
33
+ type: core.serialization.stringLiteral("resume_assistant_message"),
34
34
  });
@@ -14,6 +14,8 @@ export declare namespace ReturnChatGroupPagedChats {
14
14
  num_chats: number;
15
15
  page_number: number;
16
16
  page_size: number;
17
+ total_pages: number;
18
+ pagination_direction: string;
17
19
  chats_page: ReturnChat.Raw[];
18
20
  active?: boolean | null;
19
21
  }
@@ -36,6 +36,8 @@ exports.ReturnChatGroupPagedChats = core.serialization.object({
36
36
  numChats: core.serialization.property("num_chats", core.serialization.number()),
37
37
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
38
38
  pageSize: core.serialization.property("page_size", core.serialization.number()),
39
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
40
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
39
41
  chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
40
42
  active: core.serialization.boolean().optional(),
41
43
  });
@@ -11,6 +11,7 @@ export declare namespace ReturnChatGroupPagedEvents {
11
11
  id: string;
12
12
  page_number: number;
13
13
  page_size: number;
14
+ total_pages: number;
14
15
  pagination_direction: string;
15
16
  events_page: ReturnChatEvent.Raw[];
16
17
  }
@@ -33,6 +33,7 @@ exports.ReturnChatGroupPagedEvents = core.serialization.object({
33
33
  id: core.serialization.string(),
34
34
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
35
35
  pageSize: core.serialization.property("page_size", core.serialization.number()),
36
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
37
  paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
37
38
  eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
38
39
  });
@@ -15,10 +15,12 @@ export declare namespace ReturnChatPagedEvents {
15
15
  status: string;
16
16
  start_timestamp: number;
17
17
  end_timestamp?: number | null;
18
+ pagination_direction: string;
18
19
  events_page: ReturnChatEvent.Raw[];
19
20
  metadata?: string | null;
20
21
  page_number: number;
21
22
  page_size: number;
23
+ total_pages: number;
22
24
  config?: ReturnConfigSpec.Raw | null;
23
25
  }
24
26
  }
@@ -37,9 +37,11 @@ exports.ReturnChatPagedEvents = core.serialization.object({
37
37
  status: core.serialization.string(),
38
38
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
39
39
  endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
40
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
40
41
  eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
41
42
  metadata: core.serialization.string().optional(),
42
43
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
43
44
  pageSize: core.serialization.property("page_size", core.serialization.number()),
45
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
44
46
  config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
45
47
  });
@@ -7,8 +7,11 @@ import * as core from "../../../../core";
7
7
  import { ReturnPrompt } from "./ReturnPrompt";
8
8
  import { ReturnVoice } from "./ReturnVoice";
9
9
  import { ReturnLanguageModel } from "./ReturnLanguageModel";
10
+ import { ReturnEllmModel } from "./ReturnEllmModel";
10
11
  import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
11
12
  import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
13
+ import { ReturnEventMessageSpec } from "./ReturnEventMessageSpec";
14
+ import { ReturnTimeoutSpec } from "./ReturnTimeoutSpec";
12
15
  export declare const ReturnConfig: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfig.Raw, Hume.empathicVoice.ReturnConfig>;
13
16
  export declare namespace ReturnConfig {
14
17
  interface Raw {
@@ -21,7 +24,10 @@ export declare namespace ReturnConfig {
21
24
  prompt?: ReturnPrompt.Raw | null;
22
25
  voice?: ReturnVoice.Raw | null;
23
26
  language_model?: ReturnLanguageModel.Raw | null;
24
- tools?: ReturnUserDefinedTool.Raw | null;
25
- builtin_tools?: ReturnBuiltinTool.Raw | null;
27
+ ellm_model?: ReturnEllmModel.Raw | null;
28
+ tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
29
+ builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
30
+ event_messages?: Record<string, ReturnEventMessageSpec.Raw | null | undefined> | null;
31
+ timeouts?: Record<string, ReturnTimeoutSpec.Raw | null | undefined> | null;
26
32
  }
27
33
  }
@@ -31,8 +31,11 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnPrompt_1 = require("./ReturnPrompt");
32
32
  const ReturnVoice_1 = require("./ReturnVoice");
33
33
  const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
34
+ const ReturnEllmModel_1 = require("./ReturnEllmModel");
34
35
  const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
35
36
  const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
37
+ const ReturnEventMessageSpec_1 = require("./ReturnEventMessageSpec");
38
+ const ReturnTimeoutSpec_1 = require("./ReturnTimeoutSpec");
36
39
  exports.ReturnConfig = core.serialization.object({
37
40
  id: core.serialization.string().optional(),
38
41
  version: core.serialization.number().optional(),
@@ -43,6 +46,9 @@ exports.ReturnConfig = core.serialization.object({
43
46
  prompt: ReturnPrompt_1.ReturnPrompt.optional(),
44
47
  voice: ReturnVoice_1.ReturnVoice.optional(),
45
48
  languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
46
- tools: ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional(),
47
- builtinTools: core.serialization.property("builtin_tools", ReturnBuiltinTool_1.ReturnBuiltinTool.optional()),
49
+ ellmModel: core.serialization.property("ellm_model", ReturnEllmModel_1.ReturnEllmModel.optional()),
50
+ tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
51
+ builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
52
+ eventMessages: core.serialization.property("event_messages", core.serialization.record(core.serialization.string(), ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()).optional()),
53
+ timeouts: core.serialization.record(core.serialization.string(), ReturnTimeoutSpec_1.ReturnTimeoutSpec.optional()).optional(),
48
54
  });
@@ -4,9 +4,9 @@
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 TextInput: core.serialization.ObjectSchema<serializers.empathicVoice.TextInput.Raw, Hume.empathicVoice.TextInput>;
8
- export declare namespace TextInput {
7
+ export declare const ReturnEllmModel: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEllmModel.Raw, Hume.empathicVoice.ReturnEllmModel>;
8
+ export declare namespace ReturnEllmModel {
9
9
  interface Raw {
10
- type?: "text_input" | null;
10
+ allow_short_responses: boolean;
11
11
  }
12
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.ReturnEllmModel = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnEllmModel = core.serialization.object({
32
+ allowShortResponses: core.serialization.property("allow_short_responses", core.serialization.boolean()),
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 ReturnEventMessageSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEventMessageSpec.Raw, Hume.empathicVoice.ReturnEventMessageSpec>;
8
+ export declare namespace ReturnEventMessageSpec {
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.ReturnEventMessageSpec = 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.ReturnEventMessageSpec = core.serialization.object({
32
+ enabled: core.serialization.boolean(),
33
+ text: core.serialization.string().optional(),
33
34
  });
@@ -10,6 +10,8 @@ export declare namespace ReturnPagedChatGroups {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
14
+ pagination_direction: string;
13
15
  chat_groups_page: ReturnChatGroup.Raw[];
14
16
  }
15
17
  }
@@ -32,5 +32,7 @@ const ReturnChatGroup_1 = require("./ReturnChatGroup");
32
32
  exports.ReturnPagedChatGroups = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
35
37
  chatGroupsPage: core.serialization.property("chat_groups_page", core.serialization.list(ReturnChatGroup_1.ReturnChatGroup)),
36
38
  });
@@ -10,6 +10,8 @@ export declare namespace ReturnPagedChats {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
14
+ pagination_direction: string;
13
15
  chats_page: ReturnChat.Raw[];
14
16
  }
15
17
  }
@@ -32,5 +32,7 @@ const ReturnChat_1 = require("./ReturnChat");
32
32
  exports.ReturnPagedChats = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
36
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
35
37
  chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
36
38
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedConfigs {
10
10
  interface Raw {
11
11
  page_number?: number | null;
12
12
  page_size?: number | null;
13
+ total_pages: number;
13
14
  configs_page?: ReturnConfig.Raw[] | null;
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ const ReturnConfig_1 = require("./ReturnConfig");
32
32
  exports.ReturnPagedConfigs = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number().optional()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number().optional()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
35
36
  configsPage: core.serialization.property("configs_page", core.serialization.list(ReturnConfig_1.ReturnConfig).optional()),
36
37
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedPrompts {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
13
14
  prompts_page: (ReturnPrompt.Raw | null | undefined)[];
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ const ReturnPrompt_1 = require("./ReturnPrompt");
32
32
  exports.ReturnPagedPrompts = core.serialization.object({
33
33
  pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
34
  pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
35
36
  promptsPage: core.serialization.property("prompts_page", core.serialization.list(ReturnPrompt_1.ReturnPrompt.optional())),
36
37
  });
@@ -10,6 +10,7 @@ export declare namespace ReturnPagedUserDefinedTools {
10
10
  interface Raw {
11
11
  page_number: number;
12
12
  page_size: number;
13
+ total_pages: number;
13
14
  tools_page: (ReturnUserDefinedTool.Raw | null | undefined)[];
14
15
  }
15
16
  }