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
@@ -9,5 +9,7 @@ export declare const PostedEventMessageSpecs: core.serialization.ObjectSchema<se
9
9
  export declare namespace PostedEventMessageSpecs {
10
10
  interface Raw {
11
11
  on_new_chat?: PostedEventMessageSpec.Raw | null;
12
+ on_inactivity_timeout?: PostedEventMessageSpec.Raw | null;
13
+ on_max_duration_timeout?: PostedEventMessageSpec.Raw | null;
12
14
  }
13
15
  }
@@ -31,4 +31,6 @@ const core = __importStar(require("../../../../core"));
31
31
  const PostedEventMessageSpec_1 = require("./PostedEventMessageSpec");
32
32
  exports.PostedEventMessageSpecs = core.serialization.object({
33
33
  onNewChat: core.serialization.property('on_new_chat', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
34
+ onInactivityTimeout: core.serialization.property('on_inactivity_timeout', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
35
+ onMaxDurationTimeout: core.serialization.property('on_max_duration_timeout', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
34
36
  });
@@ -4,10 +4,11 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { ReturnBuiltinToolToolType } from './ReturnBuiltinToolToolType';
7
8
  export declare const ReturnBuiltinTool: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnBuiltinTool.Raw, Hume.empathicVoice.ReturnBuiltinTool>;
8
9
  export declare namespace ReturnBuiltinTool {
9
10
  interface Raw {
10
- tool_type: string;
11
+ tool_type: ReturnBuiltinToolToolType.Raw;
11
12
  name: string;
12
13
  fallback_content?: string | null;
13
14
  }
@@ -28,8 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnBuiltinTool = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnBuiltinToolToolType_1 = require("./ReturnBuiltinToolToolType");
31
32
  exports.ReturnBuiltinTool = core.serialization.object({
32
- toolType: core.serialization.property('tool_type', core.serialization.string()),
33
+ toolType: core.serialization.property('tool_type', ReturnBuiltinToolToolType_1.ReturnBuiltinToolToolType),
33
34
  name: core.serialization.string(),
34
35
  fallbackContent: core.serialization.property('fallback_content', core.serialization.string().optional()),
35
36
  });
@@ -0,0 +1,10 @@
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 ReturnBuiltinToolToolType: core.serialization.Schema<serializers.empathicVoice.ReturnBuiltinToolToolType.Raw, Hume.empathicVoice.ReturnBuiltinToolToolType>;
8
+ export declare namespace ReturnBuiltinToolToolType {
9
+ type Raw = 'BUILTIN' | 'FUNCTION';
10
+ }
@@ -0,0 +1,31 @@
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.ReturnBuiltinToolToolType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnBuiltinToolToolType = core.serialization.enum_(['BUILTIN', 'FUNCTION']);
@@ -4,14 +4,14 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { ReturnChatStatus } from './ReturnChatStatus';
7
8
  import { ReturnConfigSpec } from './ReturnConfigSpec';
8
9
  export declare const ReturnChat: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChat.Raw, Hume.empathicVoice.ReturnChat>;
9
10
  export declare namespace ReturnChat {
10
11
  interface Raw {
11
12
  id: string;
12
13
  chat_group_id: string;
13
- tag?: string | null;
14
- status: string;
14
+ status: ReturnChatStatus.Raw;
15
15
  start_timestamp: number;
16
16
  end_timestamp?: number | null;
17
17
  event_count?: number | null;
@@ -28,12 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChat = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnChatStatus_1 = require("./ReturnChatStatus");
31
32
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
32
33
  exports.ReturnChat = core.serialization.object({
33
34
  id: core.serialization.string(),
34
35
  chatGroupId: core.serialization.property('chat_group_id', core.serialization.string()),
35
- tag: core.serialization.string().optional(),
36
- status: core.serialization.string(),
36
+ status: ReturnChatStatus_1.ReturnChatStatus,
37
37
  startTimestamp: core.serialization.property('start_timestamp', core.serialization.number()),
38
38
  endTimestamp: core.serialization.property('end_timestamp', core.serialization.number().optional()),
39
39
  eventCount: core.serialization.property('event_count', core.serialization.number().optional()),
@@ -4,14 +4,16 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { ReturnChatEventRole } from './ReturnChatEventRole';
8
+ import { ReturnChatEventType } from './ReturnChatEventType';
7
9
  export declare const ReturnChatEvent: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatEvent.Raw, Hume.empathicVoice.ReturnChatEvent>;
8
10
  export declare namespace ReturnChatEvent {
9
11
  interface Raw {
10
12
  id: string;
11
13
  chat_id: string;
12
14
  timestamp: number;
13
- role: string;
14
- type: string;
15
+ role: ReturnChatEventRole.Raw;
16
+ type: ReturnChatEventType.Raw;
15
17
  message_text?: string | null;
16
18
  emotion_features?: string | null;
17
19
  metadata?: string | null;
@@ -28,12 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChatEvent = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnChatEventRole_1 = require("./ReturnChatEventRole");
32
+ const ReturnChatEventType_1 = require("./ReturnChatEventType");
31
33
  exports.ReturnChatEvent = core.serialization.object({
32
34
  id: core.serialization.string(),
33
35
  chatId: core.serialization.property('chat_id', core.serialization.string()),
34
36
  timestamp: core.serialization.number(),
35
- role: core.serialization.string(),
36
- type: core.serialization.string(),
37
+ role: ReturnChatEventRole_1.ReturnChatEventRole,
38
+ type: ReturnChatEventType_1.ReturnChatEventType,
37
39
  messageText: core.serialization.property('message_text', core.serialization.string().optional()),
38
40
  emotionFeatures: core.serialization.property('emotion_features', core.serialization.string().optional()),
39
41
  metadata: core.serialization.string().optional(),
@@ -0,0 +1,10 @@
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 ReturnChatEventRole: core.serialization.Schema<serializers.empathicVoice.ReturnChatEventRole.Raw, Hume.empathicVoice.ReturnChatEventRole>;
8
+ export declare namespace ReturnChatEventRole {
9
+ type Raw = 'USER' | 'AGENT' | 'SYSTEM' | 'TOOL';
10
+ }
@@ -0,0 +1,31 @@
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.ReturnChatEventRole = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatEventRole = core.serialization.enum_(['USER', 'AGENT', 'SYSTEM', 'TOOL']);
@@ -0,0 +1,10 @@
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 ReturnChatEventType: core.serialization.Schema<serializers.empathicVoice.ReturnChatEventType.Raw, Hume.empathicVoice.ReturnChatEventType>;
8
+ export declare namespace ReturnChatEventType {
9
+ type Raw = 'SYSTEM_PROMPT' | 'USER_MESSAGE' | 'USER_INTERRUPTION' | 'AGENT_MESSAGE' | 'FUNCTION_CALL' | 'FUNCTION_CALL_RESPONSE';
10
+ }
@@ -0,0 +1,38 @@
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.ReturnChatEventType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatEventType = core.serialization.enum_([
32
+ 'SYSTEM_PROMPT',
33
+ 'USER_MESSAGE',
34
+ 'USER_INTERRUPTION',
35
+ 'AGENT_MESSAGE',
36
+ 'FUNCTION_CALL',
37
+ 'FUNCTION_CALL_RESPONSE',
38
+ ]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { ReturnChatGroupPagedEventsPaginationDirection } from './ReturnChatGroupPagedEventsPaginationDirection';
7
8
  import { ReturnChatEvent } from './ReturnChatEvent';
8
9
  export declare const ReturnChatGroupPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroupPagedEvents.Raw, Hume.empathicVoice.ReturnChatGroupPagedEvents>;
9
10
  export declare namespace ReturnChatGroupPagedEvents {
@@ -12,7 +13,7 @@ export declare namespace ReturnChatGroupPagedEvents {
12
13
  page_number: number;
13
14
  page_size: number;
14
15
  total_pages: number;
15
- pagination_direction: string;
16
+ pagination_direction: ReturnChatGroupPagedEventsPaginationDirection.Raw;
16
17
  events_page: ReturnChatEvent.Raw[];
17
18
  }
18
19
  }
@@ -28,12 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChatGroupPagedEvents = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnChatGroupPagedEventsPaginationDirection_1 = require("./ReturnChatGroupPagedEventsPaginationDirection");
31
32
  const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
33
  exports.ReturnChatGroupPagedEvents = core.serialization.object({
33
34
  id: core.serialization.string(),
34
35
  pageNumber: core.serialization.property('page_number', core.serialization.number()),
35
36
  pageSize: core.serialization.property('page_size', core.serialization.number()),
36
37
  totalPages: core.serialization.property('total_pages', core.serialization.number()),
37
- paginationDirection: core.serialization.property('pagination_direction', core.serialization.string()),
38
+ paginationDirection: core.serialization.property('pagination_direction', ReturnChatGroupPagedEventsPaginationDirection_1.ReturnChatGroupPagedEventsPaginationDirection),
38
39
  eventsPage: core.serialization.property('events_page', core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
39
40
  });
@@ -0,0 +1,10 @@
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 ReturnChatGroupPagedEventsPaginationDirection: core.serialization.Schema<serializers.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection.Raw, Hume.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection>;
8
+ export declare namespace ReturnChatGroupPagedEventsPaginationDirection {
9
+ type Raw = 'ASC' | 'DESC';
10
+ }
@@ -0,0 +1,31 @@
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.ReturnChatGroupPagedEventsPaginationDirection = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatGroupPagedEventsPaginationDirection = core.serialization.enum_(['ASC', 'DESC']);
@@ -4,6 +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
+ import { ReturnChatPagedEventsStatus } from './ReturnChatPagedEventsStatus';
8
+ import { ReturnChatPagedEventsPaginationDirection } from './ReturnChatPagedEventsPaginationDirection';
7
9
  import { ReturnChatEvent } from './ReturnChatEvent';
8
10
  import { ReturnConfigSpec } from './ReturnConfigSpec';
9
11
  export declare const ReturnChatPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatPagedEvents.Raw, Hume.empathicVoice.ReturnChatPagedEvents>;
@@ -11,11 +13,10 @@ export declare namespace ReturnChatPagedEvents {
11
13
  interface Raw {
12
14
  id: string;
13
15
  chat_group_id: string;
14
- tag?: string | null;
15
- status: string;
16
+ status: ReturnChatPagedEventsStatus.Raw;
16
17
  start_timestamp: number;
17
18
  end_timestamp?: number | null;
18
- pagination_direction: string;
19
+ pagination_direction: ReturnChatPagedEventsPaginationDirection.Raw;
19
20
  events_page: ReturnChatEvent.Raw[];
20
21
  metadata?: string | null;
21
22
  page_number: number;
@@ -28,16 +28,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChatPagedEvents = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnChatPagedEventsStatus_1 = require("./ReturnChatPagedEventsStatus");
32
+ const ReturnChatPagedEventsPaginationDirection_1 = require("./ReturnChatPagedEventsPaginationDirection");
31
33
  const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
34
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
33
35
  exports.ReturnChatPagedEvents = core.serialization.object({
34
36
  id: core.serialization.string(),
35
37
  chatGroupId: core.serialization.property('chat_group_id', core.serialization.string()),
36
- tag: core.serialization.string().optional(),
37
- status: core.serialization.string(),
38
+ status: ReturnChatPagedEventsStatus_1.ReturnChatPagedEventsStatus,
38
39
  startTimestamp: core.serialization.property('start_timestamp', core.serialization.number()),
39
40
  endTimestamp: core.serialization.property('end_timestamp', core.serialization.number().optional()),
40
- paginationDirection: core.serialization.property('pagination_direction', core.serialization.string()),
41
+ paginationDirection: core.serialization.property('pagination_direction', ReturnChatPagedEventsPaginationDirection_1.ReturnChatPagedEventsPaginationDirection),
41
42
  eventsPage: core.serialization.property('events_page', core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
42
43
  metadata: core.serialization.string().optional(),
43
44
  pageNumber: core.serialization.property('page_number', core.serialization.number()),
@@ -0,0 +1,10 @@
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 ReturnChatPagedEventsPaginationDirection: core.serialization.Schema<serializers.empathicVoice.ReturnChatPagedEventsPaginationDirection.Raw, Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection>;
8
+ export declare namespace ReturnChatPagedEventsPaginationDirection {
9
+ type Raw = 'ASC' | 'DESC';
10
+ }
@@ -0,0 +1,31 @@
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.ReturnChatPagedEventsPaginationDirection = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatPagedEventsPaginationDirection = core.serialization.enum_(['ASC', 'DESC']);
@@ -0,0 +1,10 @@
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 ReturnChatPagedEventsStatus: core.serialization.Schema<serializers.empathicVoice.ReturnChatPagedEventsStatus.Raw, Hume.empathicVoice.ReturnChatPagedEventsStatus>;
8
+ export declare namespace ReturnChatPagedEventsStatus {
9
+ type Raw = 'ACTIVE' | 'USER_ENDED' | 'USER_TIMEOUT' | 'MAX_DURATION_TIMEOUT' | 'INACTIVITY_TIMEOUT' | 'ERROR';
10
+ }
@@ -0,0 +1,38 @@
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.ReturnChatPagedEventsStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatPagedEventsStatus = core.serialization.enum_([
32
+ 'ACTIVE',
33
+ 'USER_ENDED',
34
+ 'USER_TIMEOUT',
35
+ 'MAX_DURATION_TIMEOUT',
36
+ 'INACTIVITY_TIMEOUT',
37
+ 'ERROR',
38
+ ]);
@@ -0,0 +1,10 @@
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 ReturnChatStatus: core.serialization.Schema<serializers.empathicVoice.ReturnChatStatus.Raw, Hume.empathicVoice.ReturnChatStatus>;
8
+ export declare namespace ReturnChatStatus {
9
+ type Raw = 'ACTIVE' | 'USER_ENDED' | 'USER_TIMEOUT' | 'MAX_DURATION_TIMEOUT' | 'INACTIVITY_TIMEOUT' | 'ERROR';
10
+ }
@@ -0,0 +1,38 @@
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.ReturnChatStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatStatus = core.serialization.enum_([
32
+ 'ACTIVE',
33
+ 'USER_ENDED',
34
+ 'USER_TIMEOUT',
35
+ 'MAX_DURATION_TIMEOUT',
36
+ 'INACTIVITY_TIMEOUT',
37
+ 'ERROR',
38
+ ]);
@@ -9,5 +9,7 @@ export declare const ReturnEventMessageSpecs: core.serialization.ObjectSchema<se
9
9
  export declare namespace ReturnEventMessageSpecs {
10
10
  interface Raw {
11
11
  on_new_chat?: ReturnEventMessageSpec.Raw | null;
12
+ on_inactivity_timeout?: ReturnEventMessageSpec.Raw | null;
13
+ on_max_duration_timeout?: ReturnEventMessageSpec.Raw | null;
12
14
  }
13
15
  }
@@ -31,4 +31,6 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnEventMessageSpec_1 = require("./ReturnEventMessageSpec");
32
32
  exports.ReturnEventMessageSpecs = core.serialization.object({
33
33
  onNewChat: core.serialization.property('on_new_chat', ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()),
34
+ onInactivityTimeout: core.serialization.property('on_inactivity_timeout', ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()),
35
+ onMaxDurationTimeout: core.serialization.property('on_max_duration_timeout', ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()),
34
36
  });
@@ -4,10 +4,11 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { ReturnLanguageModelModelProvider } from './ReturnLanguageModelModelProvider';
7
8
  export declare const ReturnLanguageModel: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnLanguageModel.Raw, Hume.empathicVoice.ReturnLanguageModel>;
8
9
  export declare namespace ReturnLanguageModel {
9
10
  interface Raw {
10
- model_provider?: string | null;
11
+ model_provider?: ReturnLanguageModelModelProvider.Raw | null;
11
12
  model_resource?: string | null;
12
13
  temperature?: number | null;
13
14
  }
@@ -28,8 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnLanguageModel = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnLanguageModelModelProvider_1 = require("./ReturnLanguageModelModelProvider");
31
32
  exports.ReturnLanguageModel = core.serialization.object({
32
- modelProvider: core.serialization.property('model_provider', core.serialization.string().optional()),
33
+ modelProvider: core.serialization.property('model_provider', ReturnLanguageModelModelProvider_1.ReturnLanguageModelModelProvider.optional()),
33
34
  modelResource: core.serialization.property('model_resource', core.serialization.string().optional()),
34
35
  temperature: core.serialization.number().optional(),
35
36
  });
@@ -0,0 +1,10 @@
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 ReturnLanguageModelModelProvider: core.serialization.Schema<serializers.empathicVoice.ReturnLanguageModelModelProvider.Raw, Hume.empathicVoice.ReturnLanguageModelModelProvider>;
8
+ export declare namespace ReturnLanguageModelModelProvider {
9
+ type Raw = 'OPEN_AI' | 'CUSTOM_LANGUAGE_MODEL' | 'ANTHROPIC' | 'FIREWORKS' | 'GROQ' | 'GOOGLE';
10
+ }
@@ -0,0 +1,38 @@
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.ReturnLanguageModelModelProvider = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnLanguageModelModelProvider = core.serialization.enum_([
32
+ 'OPEN_AI',
33
+ 'CUSTOM_LANGUAGE_MODEL',
34
+ 'ANTHROPIC',
35
+ 'FIREWORKS',
36
+ 'GROQ',
37
+ 'GOOGLE',
38
+ ]);