hume 0.15.8 → 0.15.10

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 (454) hide show
  1. package/dist/cjs/BaseClient.d.ts +13 -4
  2. package/dist/cjs/BaseClient.js +59 -0
  3. package/dist/cjs/Client.d.ts +13 -13
  4. package/dist/cjs/Client.js +8 -49
  5. package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +27 -27
  6. package/dist/cjs/api/resources/empathicVoice/client/Client.js +13 -12
  7. package/dist/cjs/api/resources/empathicVoice/errors/BadRequestError.js +5 -1
  8. package/dist/cjs/api/resources/empathicVoice/errors/UnprocessableEntityError.js +5 -1
  9. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.d.ts +5 -5
  10. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +3 -3
  11. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.js +2 -2
  13. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +17 -26
  14. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +48 -136
  15. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
  18. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +2 -6
  19. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -20
  20. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +32 -95
  21. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
  22. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  23. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +34 -83
  24. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +64 -245
  25. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
  26. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +4 -16
  27. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -14
  28. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  29. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +7 -7
  30. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +6 -19
  31. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +34 -83
  32. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +64 -245
  33. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -8
  34. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -8
  35. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  36. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
  37. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +34 -83
  38. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +64 -245
  39. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +4 -8
  40. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -8
  41. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  42. package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  43. package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -5
  44. package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  45. package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
  46. package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +6 -4
  47. package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -4
  48. package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -5
  49. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +8 -4
  50. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
  51. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +9 -3
  52. package/dist/cjs/api/resources/empathicVoice/types/Context.d.ts +9 -3
  53. package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +1 -36
  54. package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -50
  55. package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -4
  56. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -9
  57. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +0 -8
  58. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.js +0 -8
  59. package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +1 -5
  60. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +2 -6
  61. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -14
  62. package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -7
  63. package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
  64. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +1 -13
  65. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +0 -11
  66. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +0 -11
  67. package/dist/cjs/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +1 -7
  68. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -6
  69. package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -3
  70. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +1 -2
  71. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +0 -1
  72. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +0 -1
  73. package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -19
  74. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +0 -13
  75. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +0 -13
  76. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +0 -13
  77. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -30
  78. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +0 -7
  79. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.js +0 -7
  80. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +0 -14
  81. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.js +0 -14
  82. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -6
  83. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +1 -10
  84. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +0 -5
  85. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +0 -5
  86. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +6 -16
  87. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +0 -5
  88. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +0 -5
  89. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +3 -12
  90. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +0 -5
  91. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +0 -5
  92. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +6 -30
  93. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +0 -5
  94. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +0 -5
  95. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +0 -15
  96. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +0 -15
  97. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +0 -15
  98. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.js +0 -15
  99. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +2 -8
  100. package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +1 -5
  101. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +2 -6
  102. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -14
  103. package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -7
  104. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -11
  105. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +0 -5
  106. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +0 -5
  107. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -11
  108. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +0 -5
  109. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +0 -5
  110. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -6
  111. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -6
  112. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -6
  113. package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +0 -1
  114. package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.js +0 -1
  115. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -6
  116. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +1 -13
  117. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +7 -19
  118. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +0 -1
  119. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +0 -1
  120. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +0 -1
  121. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +0 -1
  122. package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +5 -3
  123. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -6
  124. package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +10 -19
  125. package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +1 -55
  126. package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -9
  127. package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -5
  128. package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -11
  129. package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +6 -2
  130. package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -3
  131. package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -17
  132. package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +11 -2
  133. package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +11 -2
  134. package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -3
  135. package/dist/cjs/api/resources/expressionMeasurement/client/Client.d.ts +9 -9
  136. package/dist/cjs/api/resources/expressionMeasurement/client/Client.js +7 -6
  137. package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +17 -18
  138. package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.js +63 -151
  139. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +7 -8
  140. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +7 -12
  141. package/dist/cjs/api/resources/tts/client/Client.d.ts +19 -20
  142. package/dist/cjs/api/resources/tts/client/Client.js +56 -138
  143. package/dist/cjs/api/resources/tts/errors/BadRequestError.js +5 -1
  144. package/dist/cjs/api/resources/tts/errors/UnprocessableEntityError.js +5 -1
  145. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +15 -14
  146. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +10 -6
  147. package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +13 -14
  148. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +33 -87
  149. package/dist/cjs/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
  150. package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
  151. package/dist/cjs/api/resources/tts/types/OctaveVersion.d.ts +7 -3
  152. package/dist/cjs/api/resources/tts/types/OctaveVersion.js +7 -3
  153. package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +0 -6
  154. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
  155. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
  156. package/dist/cjs/api/resources/tts/types/PublishTts.d.ts +14 -4
  157. package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -9
  158. package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +3 -3
  159. package/dist/cjs/auth/HeaderAuthProvider.d.ts +26 -0
  160. package/dist/cjs/auth/HeaderAuthProvider.js +91 -0
  161. package/dist/cjs/auth/index.d.ts +1 -0
  162. package/dist/cjs/auth/index.js +5 -0
  163. package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
  164. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  165. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  166. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  167. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  168. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  169. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  170. package/dist/cjs/core/auth/BearerToken.js +16 -0
  171. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  172. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  173. package/dist/cjs/core/auth/index.d.ts +5 -0
  174. package/dist/cjs/core/auth/index.js +9 -0
  175. package/dist/cjs/core/base64.d.ts +2 -0
  176. package/dist/cjs/core/base64.js +26 -0
  177. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
  178. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  179. package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
  180. package/dist/cjs/core/fetcher/Fetcher.js +42 -24
  181. package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
  182. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
  183. package/dist/cjs/core/fetcher/makeRequest.js +0 -2
  184. package/dist/cjs/core/fetcher/requestWithRetries.js +0 -9
  185. package/dist/cjs/core/fetcher/signals.d.ts +1 -7
  186. package/dist/cjs/core/fetcher/signals.js +0 -12
  187. package/dist/cjs/core/headers.d.ts +2 -2
  188. package/dist/cjs/core/index.d.ts +2 -0
  189. package/dist/cjs/core/index.js +2 -0
  190. package/dist/cjs/core/logging/logger.js +1 -1
  191. package/dist/cjs/core/pagination/CustomPager.d.ts +67 -0
  192. package/dist/cjs/core/pagination/CustomPager.js +194 -0
  193. package/dist/cjs/core/pagination/index.d.ts +1 -0
  194. package/dist/cjs/core/pagination/index.js +4 -1
  195. package/dist/cjs/core/runtime/runtime.js +11 -10
  196. package/dist/cjs/core/schemas/Schema.d.ts +1 -0
  197. package/dist/cjs/core/schemas/Schema.js +1 -0
  198. package/dist/cjs/core/schemas/builders/object/object.js +14 -1
  199. package/dist/cjs/core/schemas/builders/primitives/index.d.ts +1 -0
  200. package/dist/cjs/core/schemas/builders/primitives/index.js +3 -1
  201. package/dist/cjs/core/schemas/builders/primitives/never.d.ts +2 -0
  202. package/dist/cjs/core/schemas/builders/primitives/never.js +14 -0
  203. package/dist/cjs/core/url/join.js +0 -1
  204. package/dist/cjs/errors/HumeError.js +5 -1
  205. package/dist/cjs/errors/HumeTimeoutError.js +5 -1
  206. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  207. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  208. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -3
  209. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -3
  210. package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.d.ts +4 -4
  211. package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.js +4 -4
  212. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +3 -3
  213. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +3 -3
  214. package/dist/cjs/version.d.ts +1 -1
  215. package/dist/cjs/version.js +1 -1
  216. package/dist/cjs/wrapper/SilenceFiller.d.ts +64 -10
  217. package/dist/cjs/wrapper/SilenceFiller.js +109 -26
  218. package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.ts +1 -1
  219. package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +1 -1
  220. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -1
  221. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +1 -1
  222. package/dist/cjs/wrapper/fetchAccessToken.js +3 -0
  223. package/dist/cjs/wrapper/index.d.ts +5 -0
  224. package/dist/cjs/wrapper/index.js +6 -6
  225. package/dist/esm/BaseClient.d.mts +13 -4
  226. package/dist/esm/BaseClient.mjs +24 -1
  227. package/dist/esm/Client.d.mts +13 -13
  228. package/dist/esm/Client.mjs +11 -19
  229. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +27 -27
  230. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +18 -17
  231. package/dist/esm/api/resources/empathicVoice/errors/BadRequestError.mjs +5 -1
  232. package/dist/esm/api/resources/empathicVoice/errors/UnprocessableEntityError.mjs +5 -1
  233. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +5 -5
  234. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  235. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.d.mts +1 -1
  236. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.mjs +1 -1
  237. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +17 -26
  238. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +47 -135
  239. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
  240. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
  241. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
  242. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +2 -6
  243. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +13 -20
  244. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +31 -94
  245. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
  246. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
  247. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +34 -83
  248. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +63 -244
  249. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
  250. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +4 -16
  251. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +3 -14
  252. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
  253. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +7 -7
  254. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +4 -17
  255. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +34 -83
  256. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +63 -244
  257. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -8
  258. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -8
  259. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
  260. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
  261. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +34 -83
  262. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +63 -244
  263. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +4 -8
  264. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -8
  265. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
  266. package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
  267. package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +2 -5
  268. package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +2 -2
  269. package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
  270. package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +6 -4
  271. package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +1 -4
  272. package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -5
  273. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +8 -4
  274. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
  275. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +9 -3
  276. package/dist/esm/api/resources/empathicVoice/types/Context.d.mts +9 -3
  277. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +1 -36
  278. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +1 -50
  279. package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +2 -4
  280. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -9
  281. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.d.mts +0 -8
  282. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.mjs +0 -8
  283. package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -5
  284. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +2 -6
  285. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -14
  286. package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +1 -7
  287. package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
  288. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +1 -13
  289. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.mts +0 -11
  290. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.mts +0 -11
  291. package/dist/esm/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.mts +1 -7
  292. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -6
  293. package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +1 -3
  294. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +1 -2
  295. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.mts +0 -1
  296. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.mjs +0 -1
  297. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -19
  298. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +0 -13
  299. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.mts +0 -13
  300. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.mjs +0 -13
  301. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -30
  302. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.d.mts +0 -7
  303. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.mjs +0 -7
  304. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +0 -14
  305. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +0 -14
  306. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -6
  307. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +1 -10
  308. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.mts +0 -5
  309. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.mjs +0 -5
  310. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +6 -16
  311. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.mts +0 -5
  312. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.mjs +0 -5
  313. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +3 -12
  314. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.mts +0 -5
  315. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.mjs +0 -5
  316. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +6 -30
  317. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.mts +0 -5
  318. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.mjs +0 -5
  319. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.mts +0 -15
  320. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.mjs +0 -15
  321. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.d.mts +0 -15
  322. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.mjs +0 -15
  323. package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +2 -8
  324. package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -5
  325. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +2 -6
  326. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -14
  327. package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +1 -7
  328. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -11
  329. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.mts +0 -5
  330. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.mjs +0 -5
  331. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -11
  332. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.mts +0 -5
  333. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.mjs +0 -5
  334. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -6
  335. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -6
  336. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -6
  337. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.d.mts +0 -1
  338. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.mjs +0 -1
  339. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -6
  340. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +1 -13
  341. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +7 -19
  342. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.mts +0 -1
  343. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.mjs +0 -1
  344. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.mts +0 -1
  345. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.mjs +0 -1
  346. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +5 -3
  347. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -6
  348. package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +10 -19
  349. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +1 -55
  350. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -9
  351. package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -5
  352. package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -11
  353. package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +6 -2
  354. package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +1 -3
  355. package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -17
  356. package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +11 -2
  357. package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +11 -2
  358. package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +1 -3
  359. package/dist/esm/api/resources/expressionMeasurement/client/Client.d.mts +9 -9
  360. package/dist/esm/api/resources/expressionMeasurement/client/Client.mjs +6 -5
  361. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.d.mts +17 -18
  362. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.mjs +61 -149
  363. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +7 -8
  364. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +5 -10
  365. package/dist/esm/api/resources/tts/client/Client.d.mts +19 -20
  366. package/dist/esm/api/resources/tts/client/Client.mjs +56 -138
  367. package/dist/esm/api/resources/tts/errors/BadRequestError.mjs +5 -1
  368. package/dist/esm/api/resources/tts/errors/UnprocessableEntityError.mjs +5 -1
  369. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +15 -14
  370. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +8 -4
  371. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +13 -14
  372. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +32 -86
  373. package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
  374. package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
  375. package/dist/esm/api/resources/tts/types/OctaveVersion.d.mts +7 -3
  376. package/dist/esm/api/resources/tts/types/OctaveVersion.mjs +7 -3
  377. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +0 -6
  378. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
  379. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
  380. package/dist/esm/api/resources/tts/types/PublishTts.d.mts +14 -4
  381. package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -9
  382. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +3 -3
  383. package/dist/esm/auth/HeaderAuthProvider.d.mts +26 -0
  384. package/dist/esm/auth/HeaderAuthProvider.mjs +54 -0
  385. package/dist/esm/auth/index.d.mts +1 -0
  386. package/dist/esm/auth/index.mjs +1 -0
  387. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  388. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  389. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  390. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  391. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  392. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  393. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  394. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  395. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  396. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  397. package/dist/esm/core/auth/index.d.mts +5 -0
  398. package/dist/esm/core/auth/index.mjs +3 -0
  399. package/dist/esm/core/base64.d.mts +2 -0
  400. package/dist/esm/core/base64.mjs +22 -0
  401. package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
  402. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  403. package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
  404. package/dist/esm/core/fetcher/Fetcher.mjs +42 -24
  405. package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
  406. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  407. package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
  408. package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
  409. package/dist/esm/core/fetcher/signals.d.mts +1 -7
  410. package/dist/esm/core/fetcher/signals.mjs +0 -12
  411. package/dist/esm/core/headers.d.mts +2 -2
  412. package/dist/esm/core/index.d.mts +2 -0
  413. package/dist/esm/core/index.mjs +2 -0
  414. package/dist/esm/core/logging/logger.mjs +1 -1
  415. package/dist/esm/core/pagination/CustomPager.d.mts +67 -0
  416. package/dist/esm/core/pagination/CustomPager.mjs +189 -0
  417. package/dist/esm/core/pagination/index.d.mts +1 -0
  418. package/dist/esm/core/pagination/index.mjs +1 -0
  419. package/dist/esm/core/runtime/runtime.mjs +11 -10
  420. package/dist/esm/core/schemas/Schema.d.mts +1 -0
  421. package/dist/esm/core/schemas/Schema.mjs +1 -0
  422. package/dist/esm/core/schemas/builders/object/object.mjs +14 -1
  423. package/dist/esm/core/schemas/builders/primitives/index.d.mts +1 -0
  424. package/dist/esm/core/schemas/builders/primitives/index.mjs +1 -0
  425. package/dist/esm/core/schemas/builders/primitives/never.d.mts +2 -0
  426. package/dist/esm/core/schemas/builders/primitives/never.mjs +11 -0
  427. package/dist/esm/core/url/join.mjs +0 -1
  428. package/dist/esm/errors/HumeError.mjs +5 -1
  429. package/dist/esm/errors/HumeTimeoutError.mjs +5 -1
  430. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  431. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  432. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +3 -3
  433. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +3 -3
  434. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.d.mts +4 -4
  435. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.mjs +4 -4
  436. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +3 -3
  437. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +3 -3
  438. package/dist/esm/version.d.mts +1 -1
  439. package/dist/esm/version.mjs +1 -1
  440. package/dist/esm/wrapper/SilenceFiller.d.mts +64 -10
  441. package/dist/esm/wrapper/SilenceFiller.mjs +109 -26
  442. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.mts +1 -1
  443. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.mjs +1 -1
  444. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -1
  445. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +1 -1
  446. package/dist/esm/wrapper/fetchAccessToken.mjs +3 -0
  447. package/dist/esm/wrapper/index.d.mts +5 -0
  448. package/dist/esm/wrapper/index.mjs +4 -5
  449. package/package.json +5 -2
  450. package/reference.md +621 -1205
  451. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  452. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  453. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  454. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -3,13 +3,9 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of chats returned from the server
4
4
  */
5
5
  export interface ReturnPagedChats {
6
- /** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
6
+ /** List of chats and their metadata returned for the specified page number and page size. */
7
7
  chatsPage: Hume.empathicVoice.ReturnChat[];
8
- /**
9
- * The page number of the returned list.
10
- *
11
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
12
- */
8
+ /** The page number of the returned results. */
13
9
  pageNumber: number;
14
10
  /**
15
11
  * The maximum number of items returned per page.
@@ -17,11 +13,6 @@ export interface ReturnPagedChats {
17
13
  * This value corresponds to the `page_size` parameter specified in the request.
18
14
  */
19
15
  pageSize: number;
20
- /**
21
- * Indicates the order in which the paginated results are presented, based on their creation date.
22
- *
23
- * 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.
24
- */
25
16
  paginationDirection: Hume.empathicVoice.ReturnPagedChatsPaginationDirection;
26
17
  /** The total number of pages in the collection. */
27
18
  totalPages: number;
@@ -1,8 +1,3 @@
1
- /**
2
- * Indicates the order in which the paginated results are presented, based on their creation date.
3
- *
4
- * 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.
5
- */
6
1
  export declare const ReturnPagedChatsPaginationDirection: {
7
2
  readonly Asc: "ASC";
8
3
  readonly Desc: "DESC";
@@ -2,11 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ReturnPagedChatsPaginationDirection = void 0;
5
- /**
6
- * Indicates the order in which the paginated results are presented, based on their creation date.
7
- *
8
- * 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.
9
- */
10
5
  exports.ReturnPagedChatsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",
@@ -3,13 +3,9 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of config versions returned from the server
4
4
  */
5
5
  export interface ReturnPagedConfigs {
6
- /** List of configs returned for the specified `page_number` and `page_size`. */
6
+ /** List of prompts returned for the specified page number and page size. */
7
7
  configsPage?: Hume.empathicVoice.ReturnConfig[];
8
- /**
9
- * The page number of the returned list.
10
- *
11
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
12
- */
8
+ /** The page number of the returned results. */
13
9
  pageNumber?: number;
14
10
  /**
15
11
  * The maximum number of items returned per page.
@@ -3,11 +3,7 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of prompt versions returned from the server
4
4
  */
5
5
  export interface ReturnPagedPrompts {
6
- /**
7
- * The page number of the returned list.
8
- *
9
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
10
- */
6
+ /** The page number of the returned results. */
11
7
  pageNumber: number;
12
8
  /**
13
9
  * The maximum number of items returned per page.
@@ -15,7 +11,7 @@ export interface ReturnPagedPrompts {
15
11
  * This value corresponds to the `page_size` parameter specified in the request.
16
12
  */
17
13
  pageSize: number;
18
- /** List of prompts returned for the specified `page_number` and `page_size`. */
14
+ /** List of prompts returned for the specified page number and page size. */
19
15
  promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
20
16
  /** The total number of pages in the collection. */
21
17
  totalPages: number;
@@ -3,11 +3,7 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of user defined tool versions returned from the server
4
4
  */
5
5
  export interface ReturnPagedUserDefinedTools {
6
- /**
7
- * The page number of the returned list.
8
- *
9
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
10
- */
6
+ /** The page number of the returned results. */
11
7
  pageNumber: number;
12
8
  /**
13
9
  * The maximum number of items returned per page.
@@ -15,7 +11,7 @@ export interface ReturnPagedUserDefinedTools {
15
11
  * This value corresponds to the `page_size` parameter specified in the request.
16
12
  */
17
13
  pageSize: number;
18
- /** List of tools returned for the specified `page_number` and `page_size`. */
14
+ /** List of tools returned for the specified page number and page size. */
19
15
  toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
20
16
  /** The total number of pages in the collection. */
21
17
  totalPages: number;
@@ -1,4 +1,3 @@
1
- /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
2
1
  export declare const ReturnPromptVersionType: {
3
2
  readonly Fixed: "FIXED";
4
3
  readonly Latest: "LATEST";
@@ -2,7 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ReturnPromptVersionType = void 0;
5
- /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
6
5
  exports.ReturnPromptVersionType = {
7
6
  Fixed: "FIXED",
8
7
  Latest: "LATEST",
@@ -2,12 +2,8 @@
2
2
  * A specific timeout configuration to be returned from the server
3
3
  */
4
4
  export interface ReturnTimeoutSpec {
5
- /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
5
+ /** Duration in seconds for the timeout. */
6
6
  durationSecs?: number;
7
- /**
8
- * Boolean indicating if this timeout is enabled.
9
- *
10
- * 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.
11
- */
7
+ /** Boolean indicating if this event message is enabled. */
12
8
  enabled: boolean;
13
9
  }
@@ -1,20 +1,8 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * Collection of timeout specifications returned by the server.
4
- *
5
- * 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.
3
+ * Collection of timeout specs to be returned from the server
6
4
  */
7
5
  export interface ReturnTimeoutSpecs {
8
- /**
9
- * Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
10
- *
11
- * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
12
- */
13
6
  inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
14
- /**
15
- * Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
16
- *
17
- * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
18
- */
19
7
  maxDuration: Hume.empathicVoice.ReturnTimeoutSpec;
20
8
  }
@@ -3,36 +3,24 @@ import type * as Hume from "../../../index.js";
3
3
  * A specific tool version returned from the server
4
4
  */
5
5
  export interface ReturnUserDefinedTool {
6
- /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
6
+ /** The timestamp when the first version of this tool was created. */
7
7
  createdOn: number;
8
- /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
8
+ /** Text describing what the tool does. */
9
9
  description?: string;
10
- /** 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. */
10
+ /** Text to use if the tool fails to generate content. */
11
11
  fallbackContent?: string;
12
12
  /** Identifier for a Tool. Formatted as a UUID. */
13
13
  id: string;
14
- /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
14
+ /** The timestamp when this version of the tool was created. */
15
15
  modifiedOn: number;
16
16
  /** Name applied to all versions of a particular Tool. */
17
17
  name: string;
18
- /**
19
- * Stringified JSON defining the parameters used by this version of the Tool.
20
- *
21
- * 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.
22
- */
18
+ /** Stringified JSON defining the parameters used by this version of the Tool. */
23
19
  parameters: string;
24
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
25
20
  toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
26
- /**
27
- * Version number for a Tool.
28
- *
29
- * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
30
- *
31
- * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
32
- */
21
+ /** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
33
22
  version: number;
34
- /** An optional description of the Tool version. */
23
+ /** Description that is appended to a specific version of a Tool. */
35
24
  versionDescription?: string;
36
- /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
37
25
  versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
38
26
  }
@@ -1,4 +1,3 @@
1
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
2
1
  export declare const ReturnUserDefinedToolToolType: {
3
2
  readonly Builtin: "BUILTIN";
4
3
  readonly Function: "FUNCTION";
@@ -2,7 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ReturnUserDefinedToolToolType = void 0;
5
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
6
5
  exports.ReturnUserDefinedToolToolType = {
7
6
  Builtin: "BUILTIN",
8
7
  Function: "FUNCTION",
@@ -1,4 +1,3 @@
1
- /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
2
1
  export declare const ReturnUserDefinedToolVersionType: {
3
2
  readonly Fixed: "FIXED";
4
3
  readonly Latest: "LATEST";
@@ -2,7 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ReturnUserDefinedToolVersionType = void 0;
5
- /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
6
5
  exports.ReturnUserDefinedToolVersionType = {
7
6
  Fixed: "FIXED",
8
7
  Latest: "LATEST",
@@ -4,7 +4,9 @@ import type * as Hume from "../../../index.js";
4
4
  */
5
5
  export interface ReturnVoice {
6
6
  compatibleOctaveModels?: string[];
7
- id?: string;
8
- name?: string;
9
- provider?: Hume.empathicVoice.VoiceProvider;
7
+ /** ID of the voice in the `Voice Library`. */
8
+ id: string;
9
+ /** Name of the voice in the `Voice Library`. */
10
+ name: string;
11
+ provider: Hume.empathicVoice.VoiceProvider;
10
12
  }
@@ -3,12 +3,8 @@ import type * as Hume from "../../../index.js";
3
3
  * Collection of webhook URL endpoints to be returned from the server
4
4
  */
5
5
  export interface ReturnWebhookSpec {
6
- /**
7
- * The list of events the specified URL is subscribed to.
8
- *
9
- * See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
10
- */
6
+ /** Events this URL is subscribed to */
11
7
  events: Hume.empathicVoice.ReturnWebhookEventType[];
12
- /** The URL where event payloads will be sent. This must be a valid https URL to ensure secure communication. The server at this URL must accept POST requests with a JSON payload. */
8
+ /** Webhook URL to send the event updates to */
13
9
  url: string;
14
10
  }
@@ -1,30 +1,28 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * **Settings for this chat session.** Session settings are temporary and apply only to the current Chat session.
4
- *
5
- * These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience. See our [Session Settings Guide](/docs/speech-to-speech-evi/configuration/session-settings) for a complete list of configurable settings.
3
+ * Settings for this chat session.
6
4
  */
7
5
  export interface SessionSettings {
8
6
  /**
9
7
  * Configuration details for the audio input used during the session. Ensures the audio is being correctly set up for processing.
10
8
  *
11
- * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings guide](/docs/speech-to-speech-evi/configuration/session-settings).
9
+ * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
12
10
  */
13
11
  audio?: Hume.empathicVoice.AudioConfiguration;
14
12
  /**
15
13
  * List of built-in tools to enable for the session.
16
14
  *
17
- * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use).
15
+ * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/tool-use).
18
16
  *
19
17
  * Currently, the only built-in tool Hume provides is **Web Search**. When enabled, Web Search equips EVI with the ability to search the web for up-to-date information.
20
18
  */
21
19
  builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
22
20
  /**
23
- * Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
21
+ * Allows developers to inject additional context into the conversation, which is appended to the end of user messages for the session.
24
22
  *
25
23
  * When included in a Session Settings message, the provided context can be used to remind the LLM of its role in every user message, prevent it from forgetting important details, or add new relevant information to the conversation.
26
24
  *
27
- * Set to `null` to clear injected context.
25
+ * Set to `null` to disable context injection.
28
26
  */
29
27
  context?: Hume.empathicVoice.Context;
30
28
  /**
@@ -32,7 +30,7 @@ export interface SessionSettings {
32
30
  *
33
31
  * If included, the response sent from Hume to your backend will include this ID. This allows you to correlate frontend users with their incoming messages.
34
32
  *
35
- * It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/speech-to-speech-evi/guides/custom-language-model) with EVI to learn more.
33
+ * It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/custom-language-model) with EVI to learn more.
36
34
  */
37
35
  customSessionId?: string;
38
36
  /**
@@ -49,13 +47,13 @@ export interface SessionSettings {
49
47
  *
50
48
  * 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.
51
49
  *
52
- * For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
50
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
53
51
  */
54
52
  systemPrompt?: string;
55
53
  /**
56
54
  * List of user-defined tools to enable for the session.
57
55
  *
58
- * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use).
56
+ * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/tool-use).
59
57
  */
60
58
  tools?: Hume.empathicVoice.Tool[];
61
59
  /**
@@ -63,17 +61,10 @@ export interface SessionSettings {
63
61
  *
64
62
  * Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
65
63
  *
66
- * For more information, please refer to the [Session Settings guide](/docs/speech-to-speech-evi/configuration/session-settings).
64
+ * For more information, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
67
65
  */
68
66
  type: "session_settings";
69
- /**
70
- * This field allows you to assign values to dynamic variables referenced in your system prompt.
71
- *
72
- * Each key represents the variable name, and the corresponding value is the specific content you wish to assign to that variable within the session. While the values for variables can be strings, numbers, or booleans, the value will ultimately be converted to a string when injected into your system prompt.
73
- *
74
- * Using this field, you can personalize responses based on session-specific details. For more guidance, see our [guide on using dynamic variables](/docs/speech-to-speech-evi/features/dynamic-variables).
75
- */
67
+ /** Dynamic values that can be used to populate EVI prompts. */
76
68
  variables?: Record<string, Hume.empathicVoice.SessionSettingsVariablesValue>;
77
- /** Allows you to change the voice during an active chat. Updating the voice does not affect chat context or conversation history. */
78
69
  voiceId?: string;
79
70
  }
@@ -1,56 +1,2 @@
1
1
  import type * as Hume from "../../../index.js";
2
- export type SubscribeEvent =
3
- /**
4
- * **Indicates the conclusion of the assistant's response**, signaling that the assistant has finished speaking for the current conversational turn. */
5
- Hume.empathicVoice.AssistantEnd
6
- /**
7
- * **Transcript of the assistant's message.** Contains the message role, content, and optionally tool call information including the tool name, parameters, response requirement status, tool call ID, and tool type. */
8
- | Hume.empathicVoice.AssistantMessage
9
- /**
10
- * **Expression measurement predictions of the assistant's audio output.** Contains inference model results including prosody scores for 48 emotions within the detected expression of the assistant's audio sample. */
11
- | Hume.empathicVoice.AssistantProsody
12
- /**
13
- * **Base64 encoded audio output.** This encoded audio is transmitted to the client, where it can be decoded and played back as part of the user interaction. The returned audio format is WAV and the sample rate is 48kHz.
14
- *
15
- * Contains the audio data, an ID to track and reference the audio output, and an index indicating the chunk position relative to the whole audio segment. See our [Audio Guide](/docs/speech-to-speech-evi/guides/audio) for more details on preparing and processing audio. */
16
- | Hume.empathicVoice.AudioOutput
17
- /**
18
- * **The first message received after establishing a connection with EVI**, containing important identifiers for the current Chat session.
19
- *
20
- * Includes the Chat ID (which allows the Chat session to be tracked and referenced) and the Chat Group ID (used to resume a Chat when passed in the `resumed_chat_group_id` query parameter of a subsequent connection request, allowing EVI to continue the conversation from where it left off within the Chat Group). */
21
- | Hume.empathicVoice.ChatMetadata
22
- /**
23
- * **Indicates a disruption in the WebSocket connection**, such as an unexpected disconnection, protocol error, or data transmission issue.
24
- *
25
- * Contains an error code identifying the type of error encountered, a detailed description of the error, and a short, human-readable identifier and description (slug) for the error. */
26
- | Hume.empathicVoice.WebSocketError
27
- /**
28
- * **Indicates the user has interrupted the assistant's response.** EVI detects the interruption in real-time and sends this message to signal the interruption event.
29
- *
30
- * This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input. Contains a Unix timestamp of when the user interruption was detected. For more details, see our [Interruptibility Guide](/docs/speech-to-speech-evi/features/interruptibility) */
31
- | Hume.empathicVoice.UserInterruption
32
- /**
33
- * **Transcript of the user's message.** Contains the message role and content, along with a `from_text` field indicating if this message was inserted into the conversation as text from a `UserInput` message.
34
- *
35
- * Includes an `interim` field indicating whether the transcript is provisional (words may be repeated or refined in subsequent `UserMessage` responses as additional audio is processed) or final and complete. Interim transcripts are only sent when the `verbose_transcription` query parameter is set to true in the initial handshake. */
36
- | Hume.empathicVoice.UserMessage
37
- /**
38
- * **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
39
- *
40
- * Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
41
- | Hume.empathicVoice.ToolCallMessage
42
- /**
43
- * **Return value of the tool call.** Contains the output generated by the tool to pass back to EVI. Upon receiving a Tool Call message and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
44
- *
45
- * For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage`. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
46
- | Hume.empathicVoice.ToolResponseMessage
47
- /**
48
- * **Error message from the tool call**, not exposed to the LLM or user. Upon receiving a Tool Call message and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
49
- *
50
- * For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage` if the tool fails. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
51
- | Hume.empathicVoice.ToolErrorMessage
52
- /**
53
- * **Settings for this chat session.** Session settings are temporary and apply only to the current Chat session.
54
- *
55
- * These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience. See our [Session Settings Guide](/docs/speech-to-speech-evi/configuration/session-settings) for a complete list of configurable settings. */
56
- | Hume.empathicVoice.SessionSettings;
2
+ export type SubscribeEvent = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AssistantProsody | Hume.empathicVoice.AudioOutput | Hume.empathicVoice.ChatMetadata | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage | Hume.empathicVoice.SessionSettings;
@@ -1,21 +1,15 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
4
- *
5
- * Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
3
+ * When provided, the output is a tool call.
6
4
  */
7
5
  export interface ToolCallMessage {
8
6
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
7
  customSessionId?: string;
10
8
  /** Name of the tool called. */
11
9
  name: string;
12
- /**
13
- * Parameters of the tool.
14
- *
15
- * 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.
16
- */
10
+ /** Parameters of the tool call. Is a stringified JSON schema. */
17
11
  parameters: string;
18
- /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
12
+ /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type). */
19
13
  responseRequired: boolean;
20
14
  /**
21
15
  * The unique identifier for a specific tool call instance.
@@ -1,8 +1,6 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * **Error message from the tool call**, not exposed to the LLM or user. Upon receiving a Tool Call message and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
4
- *
5
- * For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage` if the tool fails. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
3
+ * When provided, the output is a function call error.
6
4
  */
7
5
  export interface ToolErrorMessage {
8
6
  /** Error code. Identifies the type of error encountered. */
@@ -18,7 +16,7 @@ export interface ToolErrorMessage {
18
16
  /**
19
17
  * The unique identifier for a specific tool call instance.
20
18
  *
21
- * This ID is used to track the request and response of a particular tool invocation, ensuring that the Tool Error message is linked to the appropriate tool call request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage).
19
+ * This ID is used to track the request and response of a particular tool invocation, ensuring that the Tool Error message is linked to the appropriate tool call request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.Tool%20Call%20Message.type).
22
20
  */
23
21
  toolCallId: string;
24
22
  /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
@@ -26,7 +24,7 @@ export interface ToolErrorMessage {
26
24
  /**
27
25
  * The type of message sent through the socket; for a Tool Error message, this must be `tool_error`.
28
26
  *
29
- * Upon receiving a [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage) and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
27
+ * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.Tool%20Call%20Message.type) and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
30
28
  */
31
29
  type: "tool_error";
32
30
  }
@@ -1,8 +1,6 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * **Return value of the tool call.** Contains the output generated by the tool to pass back to EVI. Upon receiving a Tool Call message and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
4
- *
5
- * For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage`. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
3
+ * When provided, the output is a function call response.
6
4
  */
7
5
  export interface ToolResponseMessage {
8
6
  /** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
@@ -12,21 +10,15 @@ export interface ToolResponseMessage {
12
10
  /**
13
11
  * The unique identifier for a specific tool call instance.
14
12
  *
15
- * This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage.tool_call_id).
13
+ * This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.Tool%20Call%20Message.tool_call_id).
16
14
  */
17
15
  toolCallId: string;
18
- /**
19
- * Name of the tool.
20
- *
21
- * Include this optional field to help the supplemental LLM identify which tool generated the response. The specified `tool_name` must match the one received in the [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage).
22
- */
23
16
  toolName?: string;
24
- /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
25
17
  toolType?: Hume.empathicVoice.ToolType;
26
18
  /**
27
19
  * The type of message sent through the socket; for a Tool Response message, this must be `tool_response`.
28
20
  *
29
- * Upon receiving a [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
21
+ * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.Tool%20Call%20Message.type) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
30
22
  */
31
23
  type: "tool_response";
32
24
  }
@@ -1,12 +1,16 @@
1
1
  /**
2
- * **User text to insert into the conversation.** Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
2
+ * User text to insert into the conversation. Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
3
3
  *
4
4
  * Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
5
5
  */
6
6
  export interface UserInput {
7
7
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
8
8
  customSessionId?: string;
9
- /** User text to insert into the conversation. Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response. */
9
+ /**
10
+ * User text to insert into the conversation. Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
11
+ *
12
+ * Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
13
+ */
10
14
  text: string;
11
15
  /** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
12
16
  type: "user_input";
@@ -1,7 +1,5 @@
1
1
  /**
2
- * **Indicates the user has interrupted the assistant's response.** EVI detects the interruption in real-time and sends this message to signal the interruption event.
3
- *
4
- * This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input. Contains a Unix timestamp of when the user interruption was detected. For more details, see our [Interruptibility Guide](/docs/speech-to-speech-evi/features/interruptibility)
2
+ * When provided, the output is an interruption.
5
3
  */
6
4
  export interface UserInterruption {
7
5
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
@@ -1,22 +1,13 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * **Transcript of the user's message.** Contains the message role and content, along with a `from_text` field indicating if this message was inserted into the conversation as text from a `UserInput` message.
4
- *
5
- * Includes an `interim` field indicating whether the transcript is provisional (words may be repeated or refined in subsequent `UserMessage` responses as additional audio is processed) or final and complete. Interim transcripts are only sent when the `verbose_transcription` query parameter is set to true in the initial handshake.
3
+ * When provided, the output is a user message.
6
4
  */
7
5
  export interface UserMessage {
8
6
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
7
  customSessionId?: string;
10
- /** Indicates if this message was inserted into the conversation as text from a [User Input](/reference/speech-to-speech-evi/chat#send.UserInput.text) message. */
8
+ /** Indicates if this message was inserted into the conversation as text from a [User Input](/reference/empathic-voice-interface-evi/chat/chat#send.User%20Input.text) message. */
11
9
  fromText: boolean;
12
- /**
13
- * Indicates whether this `UserMessage` contains an interim (unfinalized) transcript.
14
- *
15
- * - `true`: the transcript is provisional; words may be repeated or refined in subsequent `UserMessage` responses as additional audio is processed.
16
- * - `false`: the transcript is final and complete.
17
- *
18
- * Interim transcripts are only sent when the [`verbose_transcription`](/reference/speech-to-speech-evi/chat#request.query.verbose_transcription) query parameter is set to `true` in the initial handshake.
19
- */
10
+ /** Indicates if this message contains an immediate and unfinalized transcript of the user's audio input. If it does, words may be repeated across successive UserMessage messages as our transcription model becomes more confident about what was said with additional context. Interim messages are useful to detect if the user is interrupting during audio playback on the client. Even without a finalized transcription, along with `UserInterrupt` messages, interim `UserMessages` are useful for detecting if the user is interrupting during audio playback on the client, signaling to stop playback in your application. */
20
11
  interim: boolean;
21
12
  /** Detected language of the message text. */
22
13
  language?: string;
@@ -26,10 +17,5 @@ export interface UserMessage {
26
17
  models: Hume.empathicVoice.Inference;
27
18
  /** Start and End time of user message. */
28
19
  time: Hume.empathicVoice.MillisecondInterval;
29
- /**
30
- * The type of message sent through the socket; for a User Message, this must be `user_message`.
31
- *
32
- * This message contains both a transcript of the user's input and the expression measurement predictions if the input was sent as an [Audio Input message](/reference/speech-to-speech-evi/chat#send.AudioInput). Expression measurement predictions are not provided for a [User Input message](/reference/speech-to-speech-evi/chat#send.UserInput), as the prosody model relies on audio input and cannot process text alone.
33
- */
34
20
  type: "user_message";
35
21
  }
@@ -1,7 +1,16 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  export interface VoiceId {
3
- /** ID of the voice in the `Voice Library`. */
3
+ /** The unique ID associated with the **Voice**. */
4
4
  id: string;
5
- /** Model provider associated with this Voice ID. */
5
+ /**
6
+ * Specifies the source provider associated with the chosen voice.
7
+ *
8
+ * - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/voices), containing a variety of preset, shared voices.
9
+ * - **`CUSTOM_VOICE`**: Select from voices you've personally generated and saved in your account.
10
+ *
11
+ * If no provider is explicitly set, the default provider is `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you must explicitly set the provider to `HUME_AI`.
12
+ *
13
+ * Preset voices from Hume's **Voice Library** are accessible by all users. In contrast, your custom voices are private and accessible only via requests authenticated with your API key.
14
+ */
6
15
  provider?: Hume.empathicVoice.VoiceProvider;
7
16
  }