hume 0.8.4 → 0.8.5

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 (316) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +820 -182
  2. package/.mock/definition/empathic-voice/chatGroups.yml +54 -17
  3. package/.mock/definition/empathic-voice/chats.yml +51 -19
  4. package/.mock/definition/empathic-voice/configs.yml +198 -61
  5. package/.mock/definition/empathic-voice/prompts.yml +126 -27
  6. package/.mock/definition/empathic-voice/tools.yml +116 -23
  7. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  8. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  9. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  10. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
  11. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  12. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  13. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  14. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  15. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
  16. package/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
  17. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  18. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
  19. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
  20. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  22. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
  23. package/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
  24. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
  25. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
  26. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  27. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
  29. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
  30. package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
  31. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  32. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  33. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  34. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  35. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  36. package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  39. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  40. package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  41. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  42. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  43. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  44. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  45. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  46. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  47. package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  48. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  49. package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  50. package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  51. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  52. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  53. package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  54. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  55. package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  56. package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  57. package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  58. package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  59. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  60. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  61. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  62. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  63. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  64. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  65. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  66. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  67. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  68. package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  69. package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  70. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  71. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  72. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  73. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  74. package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  75. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  76. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  77. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  78. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  79. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  80. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  81. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  82. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  83. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  84. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  85. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  86. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  87. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  88. package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  89. package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  90. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  91. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  92. package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  93. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  94. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  95. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  96. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  97. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  98. package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  99. package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  100. package/api/resources/empathicVoice/types/index.d.ts +14 -0
  101. package/api/resources/empathicVoice/types/index.js +14 -0
  102. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  103. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  105. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  106. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
  107. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  108. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  109. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  110. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  111. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
  112. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
  113. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  114. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
  115. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
  116. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
  117. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  118. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
  119. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
  120. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
  121. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
  122. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  123. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  124. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
  125. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
  126. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
  127. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  128. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  129. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  130. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  131. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  132. package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  133. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  134. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  135. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  136. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  137. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  138. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  139. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  140. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  141. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  142. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  143. package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  144. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  145. package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  146. package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  147. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  148. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  149. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  150. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  151. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  152. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  153. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  154. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  155. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  156. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  157. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  158. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  159. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  160. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  161. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  162. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  163. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  164. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  165. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  166. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  167. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  168. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  169. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  170. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  171. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  172. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  173. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  174. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  175. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  176. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  177. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  178. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  179. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  180. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  181. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  182. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  183. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  184. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  185. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  186. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  187. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  188. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  189. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  190. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  191. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  192. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  193. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  194. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  195. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  196. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
  197. package/dist/api/resources/empathicVoice/types/index.js +14 -0
  198. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  199. package/dist/errors/HumeError.js +1 -1
  200. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  201. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  202. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  203. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  204. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  205. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  206. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  207. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  208. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  209. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  210. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  211. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  212. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  213. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  214. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  215. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  216. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  217. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  218. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  219. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  220. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  221. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  222. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  223. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  224. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  225. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  226. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  227. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  228. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  229. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  230. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  231. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  232. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  233. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  234. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  235. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  236. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  237. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  238. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  239. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  240. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  241. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  242. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  243. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  244. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  245. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  246. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  247. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  248. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  249. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  250. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  251. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  252. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  253. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  254. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  255. package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
  256. package/errors/HumeError.js +1 -1
  257. package/eslint.config.mjs +1 -1
  258. package/{jest.config.mjs → jest.config.js} +1 -3
  259. package/package.json +2 -2
  260. package/reference.md +86 -32
  261. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  262. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  263. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  264. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  265. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  266. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  267. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  268. package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  269. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  270. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  271. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  272. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  273. package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  274. package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  275. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  276. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  277. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  278. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  279. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  280. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  281. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  282. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  283. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  284. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  285. package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  286. package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  287. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  288. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  289. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  290. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  291. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  292. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  293. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  294. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  295. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  296. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  297. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  298. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  299. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  300. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  301. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  302. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  303. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  304. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  305. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  306. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  307. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  308. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  309. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  310. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  311. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  312. package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  313. package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  314. package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  315. package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  316. package/serialization/resources/empathicVoice/types/index.js +14 -0
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of chat_groups returned from the server
7
7
  */
8
8
  export interface ReturnPagedChatGroups {
9
- /** The page number of the returned results. */
9
+ /**
10
+ * The page number of the returned list.
11
+ *
12
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
13
+ */
10
14
  pageNumber: number;
11
- /** The number of results returned per page. */
15
+ /**
16
+ * The maximum number of items returned per page.
17
+ *
18
+ * This value corresponds to the `page_size` parameter specified in the request.
19
+ */
12
20
  pageSize: number;
13
- /** The total number of pages in the collection */
21
+ /** The total number of pages in the collection. */
14
22
  totalPages: number;
15
- /** The direction of the pagination (ASC or DESC). */
16
- paginationDirection: string;
17
- /** List of chat_groups and their metadata returned for the specified page number and page size. */
23
+ /**
24
+ * Indicates the order in which the paginated results are presented, based on their creation date.
25
+ *
26
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
27
+ */
28
+ paginationDirection: Hume.empathicVoice.ReturnPagedChatGroupsPaginationDirection;
29
+ /** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
18
30
  chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
19
31
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the order in which the paginated results are presented, based on their creation date.
6
+ *
7
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
8
+ */
9
+ export declare type ReturnPagedChatGroupsPaginationDirection = 'ASC' | 'DESC';
10
+ export declare const ReturnPagedChatGroupsPaginationDirection: {
11
+ readonly Asc: "ASC";
12
+ readonly Desc: "DESC";
13
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnPagedChatGroupsPaginationDirection = void 0;
7
+ exports.ReturnPagedChatGroupsPaginationDirection = {
8
+ Asc: 'ASC',
9
+ Desc: 'DESC',
10
+ };
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of chats returned from the server
7
7
  */
8
8
  export interface ReturnPagedChats {
9
- /** The page number of the returned results. */
9
+ /**
10
+ * The page number of the returned list.
11
+ *
12
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
13
+ */
10
14
  pageNumber: number;
11
- /** The number of results returned per page. */
15
+ /**
16
+ * The maximum number of items returned per page.
17
+ *
18
+ * This value corresponds to the `page_size` parameter specified in the request.
19
+ */
12
20
  pageSize: number;
13
- /** The total number of pages in the collection */
21
+ /** The total number of pages in the collection. */
14
22
  totalPages: number;
15
- /** The direction of the pagination (ASC or DESC). */
16
- paginationDirection: string;
17
- /** List of chats and their metadata returned for the specified page number and page size. */
23
+ /**
24
+ * Indicates the order in which the paginated results are presented, based on their creation date.
25
+ *
26
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
27
+ */
28
+ paginationDirection: Hume.empathicVoice.ReturnPagedChatsPaginationDirection;
29
+ /** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
18
30
  chatsPage: Hume.empathicVoice.ReturnChat[];
19
31
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the order in which the paginated results are presented, based on their creation date.
6
+ *
7
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
8
+ */
9
+ export declare type ReturnPagedChatsPaginationDirection = 'ASC' | 'DESC';
10
+ export declare const ReturnPagedChatsPaginationDirection: {
11
+ readonly Asc: "ASC";
12
+ readonly Desc: "DESC";
13
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnPagedChatsPaginationDirection = void 0;
7
+ exports.ReturnPagedChatsPaginationDirection = {
8
+ Asc: 'ASC',
9
+ Desc: 'DESC',
10
+ };
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of config versions returned from the server
7
7
  */
8
8
  export interface ReturnPagedConfigs {
9
- /** The page number of the returned results. */
9
+ /**
10
+ * The page number of the returned list.
11
+ *
12
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
13
+ */
10
14
  pageNumber?: number;
11
- /** The number of results returned per page. */
15
+ /**
16
+ * The maximum number of items returned per page.
17
+ *
18
+ * This value corresponds to the `page_size` parameter specified in the request.
19
+ */
12
20
  pageSize?: number;
13
- /** The total number of pages in the collection */
21
+ /** The total number of pages in the collection. */
14
22
  totalPages: number;
15
- /** List of prompts returned for the specified page number and page size. */
23
+ /** List of configs returned for the specified `page_number` and `page_size`. */
16
24
  configsPage?: Hume.empathicVoice.ReturnConfig[];
17
25
  }
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of prompt versions returned from the server
7
7
  */
8
8
  export interface ReturnPagedPrompts {
9
- /** The page number of the returned results. */
9
+ /**
10
+ * The page number of the returned list.
11
+ *
12
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
13
+ */
10
14
  pageNumber: number;
11
- /** The number of results returned per page. */
15
+ /**
16
+ * The maximum number of items returned per page.
17
+ *
18
+ * This value corresponds to the `page_size` parameter specified in the request.
19
+ */
12
20
  pageSize: number;
13
- /** The total number of pages in the collection */
21
+ /** The total number of pages in the collection. */
14
22
  totalPages: number;
15
- /** List of prompts returned for the specified page number and page size. */
23
+ /** List of prompts returned for the specified `page_number` and `page_size`. */
16
24
  promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
17
25
  }
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of user defined tool versions returned from the server
7
7
  */
8
8
  export interface ReturnPagedUserDefinedTools {
9
- /** The page number of the returned results. */
9
+ /**
10
+ * The page number of the returned list.
11
+ *
12
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
13
+ */
10
14
  pageNumber: number;
11
- /** The number of results returned per page. */
15
+ /**
16
+ * The maximum number of items returned per page.
17
+ *
18
+ * This value corresponds to the `page_size` parameter specified in the request.
19
+ */
12
20
  pageSize: number;
13
- /** The total number of pages in the collection */
21
+ /** The total number of pages in the collection. */
14
22
  totalPages: number;
15
- /** List of tools returned for the specified page number and page size. */
23
+ /** List of tools returned for the specified `page_number` and `page_size`. */
16
24
  toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
17
25
  }
@@ -1,24 +1,37 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from '../../../index';
4
5
  /**
5
- * A specific prompt version returned from the server
6
+ * A Prompt associated with this Config.
6
7
  */
7
8
  export interface ReturnPrompt {
8
9
  /** Identifier for a Prompt. Formatted as a UUID. */
9
10
  id: string;
10
- /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
11
+ /**
12
+ * Version number for a Prompt.
13
+ *
14
+ * Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
15
+ *
16
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
17
+ */
11
18
  version: number;
12
- /** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
13
- versionType: string;
14
- /** Description that is appended to a specific version of a Prompt. */
19
+ /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
20
+ versionType: Hume.empathicVoice.ReturnPromptVersionType;
21
+ /** An optional description of the Prompt version. */
15
22
  versionDescription?: string;
16
23
  /** Name applied to all versions of a particular Prompt. */
17
24
  name: string;
18
- /** The timestamp when the first version of this prompt was created. */
25
+ /** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
19
26
  createdOn: number;
20
- /** The timestamp when this version of the prompt was created. */
27
+ /** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
21
28
  modifiedOn: number;
22
- /** Text used for this version of the Prompt. */
29
+ /**
30
+ * Instructions used to shape EVI’s behavior, responses, and style.
31
+ *
32
+ * You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
33
+ *
34
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
35
+ */
23
36
  text: string;
24
37
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
6
+ */
7
+ export declare type ReturnPromptVersionType = 'FIXED' | 'LATEST';
8
+ export declare const ReturnPromptVersionType: {
9
+ readonly Fixed: "FIXED";
10
+ readonly Latest: "LATEST";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnPromptVersionType = void 0;
7
+ exports.ReturnPromptVersionType = {
8
+ Fixed: 'FIXED',
9
+ Latest: 'LATEST',
10
+ };
@@ -5,8 +5,12 @@
5
5
  * A specific timeout configuration to be returned from the server
6
6
  */
7
7
  export interface ReturnTimeoutSpec {
8
- /** Boolean indicating if this event message is enabled. */
8
+ /**
9
+ * Boolean indicating if this timeout is enabled.
10
+ *
11
+ * If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
12
+ */
9
13
  enabled: boolean;
10
- /** Duration in seconds for the timeout. */
14
+ /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
11
15
  durationSecs?: number;
12
16
  }
@@ -3,9 +3,21 @@
3
3
  */
4
4
  import * as Hume from '../../../index';
5
5
  /**
6
- * Collection of timeout specs to be returned from the server
6
+ * Collection of timeout specifications returned by the server.
7
+ *
8
+ * Timeouts are sent by the server when specific time-based events occur during a chat session. These specifications set the inactivity timeout and the maximum duration an EVI WebSocket connection can stay open before it is automatically disconnected.
7
9
  */
8
10
  export interface ReturnTimeoutSpecs {
11
+ /**
12
+ * Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
13
+ *
14
+ * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
15
+ */
9
16
  inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
17
+ /**
18
+ * Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
19
+ *
20
+ * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
21
+ */
10
22
  maxDuration: Hume.empathicVoice.ReturnTimeoutSpec;
11
23
  }
@@ -1,30 +1,41 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from '../../../index';
4
5
  /**
5
6
  * A specific tool version returned from the server
6
7
  */
7
8
  export interface ReturnUserDefinedTool {
8
- /** Type of Tool. Values from the ToolType enum. */
9
- toolType: string;
9
+ /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
10
+ toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
10
11
  /** Identifier for a Tool. Formatted as a UUID. */
11
12
  id: string;
12
- /** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
13
+ /**
14
+ * Version number for a Tool.
15
+ *
16
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
17
+ *
18
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
19
+ */
13
20
  version: number;
14
- /** Indicates whether this tool is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
15
- versionType: string;
16
- /** Description that is appended to a specific version of a Tool. */
21
+ /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
22
+ versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
23
+ /** An optional description of the Tool version. */
17
24
  versionDescription?: string;
18
25
  /** Name applied to all versions of a particular Tool. */
19
26
  name: string;
20
- /** The timestamp when the first version of this tool was created. */
27
+ /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
21
28
  createdOn: number;
22
- /** The timestamp when this version of the tool was created. */
29
+ /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
23
30
  modifiedOn: number;
24
- /** Text to use if the tool fails to generate content. */
31
+ /** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
25
32
  fallbackContent?: string;
26
- /** Text describing what the tool does. */
33
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
27
34
  description?: string;
28
- /** Stringified JSON defining the parameters used by this version of the Tool. */
35
+ /**
36
+ * Stringified JSON defining the parameters used by this version of the Tool.
37
+ *
38
+ * These parameters define the inputs needed for the Tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
39
+ */
29
40
  parameters: string;
30
41
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools.
6
+ */
7
+ export declare type ReturnUserDefinedToolToolType = 'BUILTIN' | 'FUNCTION';
8
+ export declare const ReturnUserDefinedToolToolType: {
9
+ readonly Builtin: "BUILTIN";
10
+ readonly Function: "FUNCTION";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnUserDefinedToolToolType = void 0;
7
+ exports.ReturnUserDefinedToolToolType = {
8
+ Builtin: 'BUILTIN',
9
+ Function: 'FUNCTION',
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
6
+ */
7
+ export declare type ReturnUserDefinedToolVersionType = 'FIXED' | 'LATEST';
8
+ export declare const ReturnUserDefinedToolVersionType: {
9
+ readonly Fixed: "FIXED";
10
+ readonly Latest: "LATEST";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnUserDefinedToolVersionType = void 0;
7
+ exports.ReturnUserDefinedToolVersionType = {
8
+ Fixed: 'FIXED',
9
+ Latest: 'LATEST',
10
+ };
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from '../../../index';
4
5
  /**
5
6
  * A specific voice specification
6
7
  */
7
8
  export interface ReturnVoice {
8
- /** The provider of the voice to use. Based on the enum VoiceProvider. */
9
- provider: string;
9
+ /** The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider. */
10
+ provider: 'HUME_AI';
10
11
  /** String with the name of the voice to use. Maximum length of 75 characters. Will be converted to all-uppercase. */
11
- name?: string;
12
+ name?: Hume.empathicVoice.ReturnVoiceName;
12
13
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * String with the name of the voice to use. Maximum length of 75 characters. Will be converted to all-uppercase.
6
+ */
7
+ export declare type ReturnVoiceName = 'ITO' | 'DACHER' | 'KORA';
8
+ export declare const ReturnVoiceName: {
9
+ readonly Ito: "ITO";
10
+ readonly Dacher: "DACHER";
11
+ readonly Kora: "KORA";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnVoiceName = void 0;
7
+ exports.ReturnVoiceName = {
8
+ Ito: 'ITO',
9
+ Dacher: 'DACHER',
10
+ Kora: 'KORA',
11
+ };
@@ -1,4 +1,7 @@
1
+ export * from './ReturnUserDefinedToolToolType';
2
+ export * from './ReturnUserDefinedToolVersionType';
1
3
  export * from './ReturnUserDefinedTool';
4
+ export * from './ReturnPromptVersionType';
2
5
  export * from './ReturnPrompt';
3
6
  export * from './PostedCustomVoice';
4
7
  export * from './ReturnCustomVoice';
@@ -16,30 +19,41 @@ export * from './PostedTimeoutSpecs';
16
19
  export * from './PostedUserDefinedToolSpec';
17
20
  export * from './PostedVoiceName';
18
21
  export * from './PostedVoice';
22
+ export * from './ReturnBuiltinToolToolType';
19
23
  export * from './ReturnBuiltinTool';
20
24
  export * from './ReturnConfig';
21
25
  export * from './ReturnEllmModel';
22
26
  export * from './ReturnEventMessageSpec';
23
27
  export * from './ReturnEventMessageSpecs';
28
+ export * from './ReturnLanguageModelModelProvider';
24
29
  export * from './ReturnLanguageModel';
25
30
  export * from './ReturnTimeoutSpec';
26
31
  export * from './ReturnTimeoutSpecs';
32
+ export * from './ReturnVoiceName';
27
33
  export * from './ReturnVoice';
28
34
  export * from './PostedCustomVoiceName';
29
35
  export * from './ReturnPagedUserDefinedTools';
30
36
  export * from './ReturnPagedPrompts';
31
37
  export * from './ReturnPagedCustomVoices';
32
38
  export * from './ReturnPagedConfigs';
39
+ export * from './ReturnChatStatus';
33
40
  export * from './ReturnChat';
34
41
  export * from './ReturnConfigSpec';
42
+ export * from './ReturnPagedChatsPaginationDirection';
35
43
  export * from './ReturnPagedChats';
44
+ export * from './ReturnChatEventRole';
45
+ export * from './ReturnChatEventType';
36
46
  export * from './ReturnChatEvent';
47
+ export * from './ReturnChatPagedEventsStatus';
48
+ export * from './ReturnChatPagedEventsPaginationDirection';
37
49
  export * from './ReturnChatPagedEvents';
38
50
  export * from './ReturnActiveChatCount';
39
51
  export * from './ReturnActiveChatCountPerTag';
40
52
  export * from './ReturnChatGroup';
53
+ export * from './ReturnPagedChatGroupsPaginationDirection';
41
54
  export * from './ReturnPagedChatGroups';
42
55
  export * from './ReturnChatGroupPagedChats';
56
+ export * from './ReturnChatGroupPagedEventsPaginationDirection';
43
57
  export * from './ReturnChatGroupPagedEvents';
44
58
  export * from './AssistantInput';
45
59
  export * from './AudioConfiguration';
@@ -14,7 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ReturnUserDefinedToolToolType"), exports);
18
+ __exportStar(require("./ReturnUserDefinedToolVersionType"), exports);
17
19
  __exportStar(require("./ReturnUserDefinedTool"), exports);
20
+ __exportStar(require("./ReturnPromptVersionType"), exports);
18
21
  __exportStar(require("./ReturnPrompt"), exports);
19
22
  __exportStar(require("./PostedCustomVoice"), exports);
20
23
  __exportStar(require("./ReturnCustomVoice"), exports);
@@ -32,30 +35,41 @@ __exportStar(require("./PostedTimeoutSpecs"), exports);
32
35
  __exportStar(require("./PostedUserDefinedToolSpec"), exports);
33
36
  __exportStar(require("./PostedVoiceName"), exports);
34
37
  __exportStar(require("./PostedVoice"), exports);
38
+ __exportStar(require("./ReturnBuiltinToolToolType"), exports);
35
39
  __exportStar(require("./ReturnBuiltinTool"), exports);
36
40
  __exportStar(require("./ReturnConfig"), exports);
37
41
  __exportStar(require("./ReturnEllmModel"), exports);
38
42
  __exportStar(require("./ReturnEventMessageSpec"), exports);
39
43
  __exportStar(require("./ReturnEventMessageSpecs"), exports);
44
+ __exportStar(require("./ReturnLanguageModelModelProvider"), exports);
40
45
  __exportStar(require("./ReturnLanguageModel"), exports);
41
46
  __exportStar(require("./ReturnTimeoutSpec"), exports);
42
47
  __exportStar(require("./ReturnTimeoutSpecs"), exports);
48
+ __exportStar(require("./ReturnVoiceName"), exports);
43
49
  __exportStar(require("./ReturnVoice"), exports);
44
50
  __exportStar(require("./PostedCustomVoiceName"), exports);
45
51
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
46
52
  __exportStar(require("./ReturnPagedPrompts"), exports);
47
53
  __exportStar(require("./ReturnPagedCustomVoices"), exports);
48
54
  __exportStar(require("./ReturnPagedConfigs"), exports);
55
+ __exportStar(require("./ReturnChatStatus"), exports);
49
56
  __exportStar(require("./ReturnChat"), exports);
50
57
  __exportStar(require("./ReturnConfigSpec"), exports);
58
+ __exportStar(require("./ReturnPagedChatsPaginationDirection"), exports);
51
59
  __exportStar(require("./ReturnPagedChats"), exports);
60
+ __exportStar(require("./ReturnChatEventRole"), exports);
61
+ __exportStar(require("./ReturnChatEventType"), exports);
52
62
  __exportStar(require("./ReturnChatEvent"), exports);
63
+ __exportStar(require("./ReturnChatPagedEventsStatus"), exports);
64
+ __exportStar(require("./ReturnChatPagedEventsPaginationDirection"), exports);
53
65
  __exportStar(require("./ReturnChatPagedEvents"), exports);
54
66
  __exportStar(require("./ReturnActiveChatCount"), exports);
55
67
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
56
68
  __exportStar(require("./ReturnChatGroup"), exports);
69
+ __exportStar(require("./ReturnPagedChatGroupsPaginationDirection"), exports);
57
70
  __exportStar(require("./ReturnPagedChatGroups"), exports);
58
71
  __exportStar(require("./ReturnChatGroupPagedChats"), exports);
72
+ __exportStar(require("./ReturnChatGroupPagedEventsPaginationDirection"), exports);
59
73
  __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
60
74
  __exportStar(require("./AssistantInput"), exports);
61
75
  __exportStar(require("./AudioConfiguration"), exports);
@@ -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.8.2', '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.8.5', '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
@@ -152,7 +152,7 @@ class Batch {
152
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
153
  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'),
154
154
  method: 'POST',
155
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
156
156
  contentType: 'application/json',
157
157
  body: serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
158
158
  unrecognizedObjectKeys: 'strip',
@@ -207,7 +207,7 @@ class Batch {
207
207
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
208
208
  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)}`),
209
209
  method: 'GET',
210
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
210
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
211
211
  contentType: 'application/json',
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
213
213
  ? requestOptions.timeoutInSeconds * 1000
@@ -259,7 +259,7 @@ class Batch {
259
259
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
260
260
  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`),
261
261
  method: 'GET',
262
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
263
263
  contentType: 'application/json',
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
265
265
  ? requestOptions.timeoutInSeconds * 1000
@@ -305,7 +305,7 @@ class Batch {
305
305
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
306
306
  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`),
307
307
  method: 'GET',
308
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
309
  contentType: 'application/json',
310
310
  responseType: 'streaming',
311
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -362,7 +362,7 @@ class Batch {
362
362
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
363
363
  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'),
364
364
  method: 'POST',
365
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
365
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
366
366
  body: yield _maybeEncodedRequest.getBody(),
367
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
368
368
  ? requestOptions.timeoutInSeconds * 1000
@@ -18,7 +18,7 @@ class HumeError extends Error {
18
18
  }
19
19
  exports.HumeError = HumeError;
20
20
  function buildMessage({ message, statusCode, body, }) {
21
- let lines = [];
21
+ const lines = [];
22
22
  if (message != null) {
23
23
  lines.push(message);
24
24
  }