hume 0.15.9 → 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 (446) 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 +6 -47
  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/expressionMeasurement/ExpressionMeasurementClient.d.ts +1 -1
  217. package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +1 -1
  218. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -1
  219. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +1 -1
  220. package/dist/cjs/wrapper/fetchAccessToken.js +3 -0
  221. package/dist/esm/BaseClient.d.mts +13 -4
  222. package/dist/esm/BaseClient.mjs +24 -1
  223. package/dist/esm/Client.d.mts +13 -13
  224. package/dist/esm/Client.mjs +9 -17
  225. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +27 -27
  226. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +18 -17
  227. package/dist/esm/api/resources/empathicVoice/errors/BadRequestError.mjs +5 -1
  228. package/dist/esm/api/resources/empathicVoice/errors/UnprocessableEntityError.mjs +5 -1
  229. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +5 -5
  230. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  231. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.d.mts +1 -1
  232. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.mjs +1 -1
  233. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +17 -26
  234. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +47 -135
  235. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
  236. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
  237. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
  238. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +2 -6
  239. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +13 -20
  240. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +31 -94
  241. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
  242. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
  243. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +34 -83
  244. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +63 -244
  245. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
  246. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +4 -16
  247. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +3 -14
  248. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
  249. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +7 -7
  250. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +4 -17
  251. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +34 -83
  252. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +63 -244
  253. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -8
  254. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -8
  255. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
  256. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
  257. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +34 -83
  258. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +63 -244
  259. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +4 -8
  260. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -8
  261. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
  262. package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
  263. package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +2 -5
  264. package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +2 -2
  265. package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
  266. package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +6 -4
  267. package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +1 -4
  268. package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -5
  269. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +8 -4
  270. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
  271. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +9 -3
  272. package/dist/esm/api/resources/empathicVoice/types/Context.d.mts +9 -3
  273. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +1 -36
  274. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +1 -50
  275. package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +2 -4
  276. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -9
  277. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.d.mts +0 -8
  278. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.mjs +0 -8
  279. package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -5
  280. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +2 -6
  281. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -14
  282. package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +1 -7
  283. package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
  284. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +1 -13
  285. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.mts +0 -11
  286. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.mts +0 -11
  287. package/dist/esm/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.mts +1 -7
  288. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -6
  289. package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +1 -3
  290. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +1 -2
  291. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.mts +0 -1
  292. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.mjs +0 -1
  293. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -19
  294. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +0 -13
  295. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.mts +0 -13
  296. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.mjs +0 -13
  297. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -30
  298. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.d.mts +0 -7
  299. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.mjs +0 -7
  300. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +0 -14
  301. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +0 -14
  302. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -6
  303. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +1 -10
  304. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.mts +0 -5
  305. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.mjs +0 -5
  306. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +6 -16
  307. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.mts +0 -5
  308. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.mjs +0 -5
  309. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +3 -12
  310. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.mts +0 -5
  311. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.mjs +0 -5
  312. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +6 -30
  313. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.mts +0 -5
  314. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.mjs +0 -5
  315. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.mts +0 -15
  316. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.mjs +0 -15
  317. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.d.mts +0 -15
  318. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.mjs +0 -15
  319. package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +2 -8
  320. package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -5
  321. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +2 -6
  322. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -14
  323. package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +1 -7
  324. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -11
  325. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.mts +0 -5
  326. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.mjs +0 -5
  327. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -11
  328. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.mts +0 -5
  329. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.mjs +0 -5
  330. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -6
  331. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -6
  332. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -6
  333. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.d.mts +0 -1
  334. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.mjs +0 -1
  335. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -6
  336. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +1 -13
  337. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +7 -19
  338. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.mts +0 -1
  339. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.mjs +0 -1
  340. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.mts +0 -1
  341. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.mjs +0 -1
  342. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +5 -3
  343. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -6
  344. package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +10 -19
  345. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +1 -55
  346. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -9
  347. package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -5
  348. package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -11
  349. package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +6 -2
  350. package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +1 -3
  351. package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -17
  352. package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +11 -2
  353. package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +11 -2
  354. package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +1 -3
  355. package/dist/esm/api/resources/expressionMeasurement/client/Client.d.mts +9 -9
  356. package/dist/esm/api/resources/expressionMeasurement/client/Client.mjs +6 -5
  357. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.d.mts +17 -18
  358. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.mjs +61 -149
  359. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +7 -8
  360. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +5 -10
  361. package/dist/esm/api/resources/tts/client/Client.d.mts +19 -20
  362. package/dist/esm/api/resources/tts/client/Client.mjs +56 -138
  363. package/dist/esm/api/resources/tts/errors/BadRequestError.mjs +5 -1
  364. package/dist/esm/api/resources/tts/errors/UnprocessableEntityError.mjs +5 -1
  365. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +15 -14
  366. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +8 -4
  367. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +13 -14
  368. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +32 -86
  369. package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
  370. package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
  371. package/dist/esm/api/resources/tts/types/OctaveVersion.d.mts +7 -3
  372. package/dist/esm/api/resources/tts/types/OctaveVersion.mjs +7 -3
  373. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +0 -6
  374. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
  375. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
  376. package/dist/esm/api/resources/tts/types/PublishTts.d.mts +14 -4
  377. package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -9
  378. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +3 -3
  379. package/dist/esm/auth/HeaderAuthProvider.d.mts +26 -0
  380. package/dist/esm/auth/HeaderAuthProvider.mjs +54 -0
  381. package/dist/esm/auth/index.d.mts +1 -0
  382. package/dist/esm/auth/index.mjs +1 -0
  383. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  384. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  385. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  386. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  387. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  388. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  389. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  390. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  391. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  392. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  393. package/dist/esm/core/auth/index.d.mts +5 -0
  394. package/dist/esm/core/auth/index.mjs +3 -0
  395. package/dist/esm/core/base64.d.mts +2 -0
  396. package/dist/esm/core/base64.mjs +22 -0
  397. package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
  398. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  399. package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
  400. package/dist/esm/core/fetcher/Fetcher.mjs +42 -24
  401. package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
  402. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  403. package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
  404. package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
  405. package/dist/esm/core/fetcher/signals.d.mts +1 -7
  406. package/dist/esm/core/fetcher/signals.mjs +0 -12
  407. package/dist/esm/core/headers.d.mts +2 -2
  408. package/dist/esm/core/index.d.mts +2 -0
  409. package/dist/esm/core/index.mjs +2 -0
  410. package/dist/esm/core/logging/logger.mjs +1 -1
  411. package/dist/esm/core/pagination/CustomPager.d.mts +67 -0
  412. package/dist/esm/core/pagination/CustomPager.mjs +189 -0
  413. package/dist/esm/core/pagination/index.d.mts +1 -0
  414. package/dist/esm/core/pagination/index.mjs +1 -0
  415. package/dist/esm/core/runtime/runtime.mjs +11 -10
  416. package/dist/esm/core/schemas/Schema.d.mts +1 -0
  417. package/dist/esm/core/schemas/Schema.mjs +1 -0
  418. package/dist/esm/core/schemas/builders/object/object.mjs +14 -1
  419. package/dist/esm/core/schemas/builders/primitives/index.d.mts +1 -0
  420. package/dist/esm/core/schemas/builders/primitives/index.mjs +1 -0
  421. package/dist/esm/core/schemas/builders/primitives/never.d.mts +2 -0
  422. package/dist/esm/core/schemas/builders/primitives/never.mjs +11 -0
  423. package/dist/esm/core/url/join.mjs +0 -1
  424. package/dist/esm/errors/HumeError.mjs +5 -1
  425. package/dist/esm/errors/HumeTimeoutError.mjs +5 -1
  426. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  427. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  428. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +3 -3
  429. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +3 -3
  430. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.d.mts +4 -4
  431. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.mjs +4 -4
  432. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +3 -3
  433. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +3 -3
  434. package/dist/esm/version.d.mts +1 -1
  435. package/dist/esm/version.mjs +1 -1
  436. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.mts +1 -1
  437. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.mjs +1 -1
  438. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -1
  439. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +1 -1
  440. package/dist/esm/wrapper/fetchAccessToken.mjs +3 -0
  441. package/package.json +5 -2
  442. package/reference.md +85 -669
  443. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  444. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  445. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  446. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -3,45 +3,20 @@ import type * as Hume from "../../../index.js";
3
3
  * A description of a single event in a chat returned from the server
4
4
  */
5
5
  export interface ReturnChatEvent {
6
- /** Identifier for the Chat this event occurred in. Formatted as a UUID. */
6
+ /** Identifier for the chat this event occurred in. Formatted as a UUID. */
7
7
  chatId: string;
8
- /**
9
- * Stringified JSON containing the prosody model inference results.
10
- *
11
- * EVI uses the prosody model to measure 48 expressions related to speech and vocal characteristics. These results contain a detailed emotional and tonal analysis of the audio. Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute.
12
- */
8
+ /** Stringified JSON with data about emotional content/prosody of the event. */
13
9
  emotionFeatures?: string;
14
- /** Identifier for a Chat Event. Formatted as a UUID. */
10
+ /** Identifier for a chat event. Formatted as a UUID. */
15
11
  id: string;
16
- /** The text of the Chat Event. This field contains the message content for each event type listed in the `type` field. */
12
+ /** The text of the chat message, either transcribed from speaker audio or generated by the agent. */
17
13
  messageText?: string;
18
14
  /** Stringified JSON with additional metadata about the chat event. */
19
15
  metadata?: string;
20
16
  /** Identifier for a related chat event. Currently only seen on ASSISTANT_PROSODY events, to point back to the ASSISTANT_MESSAGE that generated these prosody scores */
21
17
  relatedEventId?: string;
22
- /**
23
- * The role of the entity which generated the Chat Event. There are four possible values:
24
- * - `USER`: The user, capable of sending user messages and interruptions.
25
- * - `AGENT`: The assistant, capable of sending agent messages.
26
- * - `SYSTEM`: The backend server, capable of transmitting errors.
27
- * - `TOOL`: The function calling mechanism.
28
- */
29
18
  role: Hume.empathicVoice.ReturnChatEventRole;
30
- /** Time at which the Chat Event occurred. Measured in seconds since the Unix epoch. */
19
+ /** The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds. */
31
20
  timestamp: number;
32
- /**
33
- * Type of Chat Event. There are eleven Chat Event types:
34
- * - `SYSTEM_PROMPT`: The system prompt used to initialize the session.
35
- * - `CHAT_START_MESSAGE`: Marks the beginning of the chat session.
36
- * - `USER_RECORDING_START_MESSAGE`: Marks when the client began streaming audio and the start of audio processing.
37
- * - `USER_MESSAGE`: A message sent by the user.
38
- * - `USER_INTERRUPTION`: A user-initiated interruption while the assistant is speaking.
39
- * - `AGENT_MESSAGE`: A response generated by the assistant.
40
- * - `FUNCTION_CALL`: A record of a tool invocation by the assistant.
41
- * - `FUNCTION_CALL_RESPONSE`: The result of a previously invoked function or tool.
42
- * - `PAUSE_ONSET`: Marks when the client sent a `pause_assistant_message` to pause the assistant.
43
- * - `RESUME_ONSET`: Marks when the client sent a `resume_assistant_message` to resume the assistant.
44
- * - `CHAT_END_MESSAGE`: Indicates the end of the chat session.
45
- */
46
21
  type: Hume.empathicVoice.ReturnChatEventType;
47
22
  }
@@ -1,10 +1,3 @@
1
- /**
2
- * The role of the entity which generated the Chat Event. There are four possible values:
3
- * - `USER`: The user, capable of sending user messages and interruptions.
4
- * - `AGENT`: The assistant, capable of sending agent messages.
5
- * - `SYSTEM`: The backend server, capable of transmitting errors.
6
- * - `TOOL`: The function calling mechanism.
7
- */
8
1
  export declare const ReturnChatEventRole: {
9
2
  readonly User: "USER";
10
3
  readonly Agent: "AGENT";
@@ -2,13 +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.ReturnChatEventRole = void 0;
5
- /**
6
- * The role of the entity which generated the Chat Event. There are four possible values:
7
- * - `USER`: The user, capable of sending user messages and interruptions.
8
- * - `AGENT`: The assistant, capable of sending agent messages.
9
- * - `SYSTEM`: The backend server, capable of transmitting errors.
10
- * - `TOOL`: The function calling mechanism.
11
- */
12
5
  exports.ReturnChatEventRole = {
13
6
  User: "USER",
14
7
  Agent: "AGENT",
@@ -1,17 +1,3 @@
1
- /**
2
- * Type of Chat Event. There are eleven Chat Event types:
3
- * - `SYSTEM_PROMPT`: The system prompt used to initialize the session.
4
- * - `CHAT_START_MESSAGE`: Marks the beginning of the chat session.
5
- * - `USER_RECORDING_START_MESSAGE`: Marks when the client began streaming audio and the start of audio processing.
6
- * - `USER_MESSAGE`: A message sent by the user.
7
- * - `USER_INTERRUPTION`: A user-initiated interruption while the assistant is speaking.
8
- * - `AGENT_MESSAGE`: A response generated by the assistant.
9
- * - `FUNCTION_CALL`: A record of a tool invocation by the assistant.
10
- * - `FUNCTION_CALL_RESPONSE`: The result of a previously invoked function or tool.
11
- * - `PAUSE_ONSET`: Marks when the client sent a `pause_assistant_message` to pause the assistant.
12
- * - `RESUME_ONSET`: Marks when the client sent a `resume_assistant_message` to resume the assistant.
13
- * - `CHAT_END_MESSAGE`: Indicates the end of the chat session.
14
- */
15
1
  export declare const ReturnChatEventType: {
16
2
  readonly FunctionCall: "FUNCTION_CALL";
17
3
  readonly FunctionCallResponse: "FUNCTION_CALL_RESPONSE";
@@ -2,20 +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.ReturnChatEventType = void 0;
5
- /**
6
- * Type of Chat Event. There are eleven Chat Event types:
7
- * - `SYSTEM_PROMPT`: The system prompt used to initialize the session.
8
- * - `CHAT_START_MESSAGE`: Marks the beginning of the chat session.
9
- * - `USER_RECORDING_START_MESSAGE`: Marks when the client began streaming audio and the start of audio processing.
10
- * - `USER_MESSAGE`: A message sent by the user.
11
- * - `USER_INTERRUPTION`: A user-initiated interruption while the assistant is speaking.
12
- * - `AGENT_MESSAGE`: A response generated by the assistant.
13
- * - `FUNCTION_CALL`: A record of a tool invocation by the assistant.
14
- * - `FUNCTION_CALL_RESPONSE`: The result of a previously invoked function or tool.
15
- * - `PAUSE_ONSET`: Marks when the client sent a `pause_assistant_message` to pause the assistant.
16
- * - `RESUME_ONSET`: Marks when the client sent a `resume_assistant_message` to resume the assistant.
17
- * - `CHAT_END_MESSAGE`: Indicates the end of the chat session.
18
- */
19
5
  exports.ReturnChatEventType = {
20
6
  FunctionCall: "FUNCTION_CALL",
21
7
  FunctionCallResponse: "FUNCTION_CALL_RESPONSE",
@@ -3,17 +3,16 @@ import type * as Hume from "../../../index.js";
3
3
  * A description of chat_group and its status
4
4
  */
5
5
  export interface ReturnChatGroup {
6
- /** Denotes whether there is an active Chat associated with this Chat Group. */
7
6
  active?: boolean;
8
- /** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
7
+ /** The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds. */
9
8
  firstStartTimestamp: number;
10
- /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
9
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
11
10
  id: string;
12
- /** The `chat_id` of the most recent Chat in this Chat Group. Formatted as a UUID. */
11
+ /** The chat_id of the most recent chat in this chat group. Formatted as a UUID. */
13
12
  mostRecentChatId?: string;
14
13
  mostRecentConfig?: Hume.empathicVoice.ReturnConfigSpec;
15
- /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
14
+ /** The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds. */
16
15
  mostRecentStartTimestamp: number;
17
- /** The total number of Chats in this Chat Group. */
16
+ /** The total number of chats in this chat group. */
18
17
  numChats: number;
19
18
  }
@@ -9,11 +9,7 @@ export interface ReturnChatGroupPagedAudioReconstructions {
9
9
  id: string;
10
10
  /** Total number of chats in this chatgroup */
11
11
  numChats: number;
12
- /**
13
- * The page number of the returned list.
14
- *
15
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
16
- */
12
+ /** The page number of the returned results. */
17
13
  pageNumber: number;
18
14
  /**
19
15
  * The maximum number of items returned per page.
@@ -21,11 +17,6 @@ export interface ReturnChatGroupPagedAudioReconstructions {
21
17
  * This value corresponds to the `page_size` parameter specified in the request.
22
18
  */
23
19
  pageSize: number;
24
- /**
25
- * Indicates the order in which the paginated results are presented, based on their creation date.
26
- *
27
- * 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.
28
- */
29
20
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructionsPaginationDirection;
30
21
  /** The total number of pages in the collection. */
31
22
  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 ReturnChatGroupPagedAudioReconstructionsPaginationDirection: {
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.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = 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.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",
@@ -3,23 +3,18 @@ import type * as Hume from "../../../index.js";
3
3
  * A description of chat_group and its status with a paginated list of each chat in the chat_group
4
4
  */
5
5
  export interface ReturnChatGroupPagedChats {
6
- /** Denotes whether there is an active Chat associated with this Chat Group. */
7
6
  active?: boolean;
8
- /** List of Chats for the specified `page_number` and `page_size`. */
7
+ /** List of chats and their metadata returned for the specified page number and page size. */
9
8
  chatsPage: Hume.empathicVoice.ReturnChat[];
10
- /** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
9
+ /** The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds. */
11
10
  firstStartTimestamp: number;
12
- /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
11
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
13
12
  id: string;
14
- /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
13
+ /** The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds. */
15
14
  mostRecentStartTimestamp: number;
16
- /** The total number of Chats associated with this Chat Group. */
15
+ /** The total number of chats in this chat group. */
17
16
  numChats: number;
18
- /**
19
- * The page number of the returned list.
20
- *
21
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
22
- */
17
+ /** The page number of the returned results. */
23
18
  pageNumber: number;
24
19
  /**
25
20
  * The maximum number of items returned per page.
@@ -27,11 +22,6 @@ export interface ReturnChatGroupPagedChats {
27
22
  * This value corresponds to the `page_size` parameter specified in the request.
28
23
  */
29
24
  pageSize: number;
30
- /**
31
- * Indicates the order in which the paginated results are presented, based on their creation date.
32
- *
33
- * 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.
34
- */
35
25
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedChatsPaginationDirection;
36
26
  /** The total number of pages in the collection. */
37
27
  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 ReturnChatGroupPagedChatsPaginationDirection: {
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.ReturnChatGroupPagedChatsPaginationDirection = 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.ReturnChatGroupPagedChatsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",
@@ -3,15 +3,11 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of chat events that occurred across chats in this chat_group from the server
4
4
  */
5
5
  export interface ReturnChatGroupPagedEvents {
6
- /** List of Chat Events for the specified `page_number` and `page_size`. */
6
+ /** List of chat_events returned for the specified page number and page size. */
7
7
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
8
- /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
8
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
9
9
  id: string;
10
- /**
11
- * The page number of the returned list.
12
- *
13
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
14
- */
10
+ /** The page number of the returned results. */
15
11
  pageNumber: number;
16
12
  /**
17
13
  * The maximum number of items returned per page.
@@ -19,11 +15,6 @@ export interface ReturnChatGroupPagedEvents {
19
15
  * This value corresponds to the `page_size` parameter specified in the request.
20
16
  */
21
17
  pageSize: number;
22
- /**
23
- * Indicates the order in which the paginated results are presented, based on their creation date.
24
- *
25
- * 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.
26
- */
27
18
  paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection;
28
19
  /** The total number of pages in the collection. */
29
20
  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 ReturnChatGroupPagedEventsPaginationDirection: {
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.ReturnChatGroupPagedEventsPaginationDirection = 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.ReturnChatGroupPagedEventsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",
@@ -3,22 +3,18 @@ import type * as Hume from "../../../index.js";
3
3
  * A description of chat status with a paginated list of chat events returned from the server
4
4
  */
5
5
  export interface ReturnChatPagedEvents {
6
- /** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
6
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
7
7
  chatGroupId: string;
8
8
  config?: Hume.empathicVoice.ReturnConfigSpec;
9
- /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
9
+ /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
10
10
  endTimestamp?: number;
11
- /** List of Chat Events for the specified `page_number` and `page_size`. */
11
+ /** List of chat events with the specified page number and page size. */
12
12
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
13
- /** Identifier for a Chat. Formatted as a UUID. */
13
+ /** Identifier for a chat. Formatted as a UUID. */
14
14
  id: string;
15
15
  /** Stringified JSON with additional metadata about the chat. */
16
16
  metadata?: string;
17
- /**
18
- * The page number of the returned list.
19
- *
20
- * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
21
- */
17
+ /** The page number of the returned results. */
22
18
  pageNumber: number;
23
19
  /**
24
20
  * The maximum number of items returned per page.
@@ -26,29 +22,9 @@ export interface ReturnChatPagedEvents {
26
22
  * This value corresponds to the `page_size` parameter specified in the request.
27
23
  */
28
24
  pageSize: number;
29
- /**
30
- * Indicates the order in which the paginated results are presented, based on their creation date.
31
- *
32
- * 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.
33
- */
34
25
  paginationDirection: Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection;
35
- /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
26
+ /** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
36
27
  startTimestamp: number;
37
- /**
38
- * Indicates the current state of the chat. There are six possible statuses:
39
- *
40
- * - `ACTIVE`: The chat is currently active and ongoing.
41
- *
42
- * - `USER_ENDED`: The chat was manually ended by the user.
43
- *
44
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
45
- *
46
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
47
- *
48
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
49
- *
50
- * - `ERROR`: The chat ended unexpectedly due to an error.
51
- */
52
28
  status: Hume.empathicVoice.ReturnChatPagedEventsStatus;
53
29
  /** The total number of pages in the collection. */
54
30
  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 ReturnChatPagedEventsPaginationDirection: {
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.ReturnChatPagedEventsPaginationDirection = 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.ReturnChatPagedEventsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",
@@ -1,18 +1,3 @@
1
- /**
2
- * Indicates the current state of the chat. There are six possible statuses:
3
- *
4
- * - `ACTIVE`: The chat is currently active and ongoing.
5
- *
6
- * - `USER_ENDED`: The chat was manually ended by the user.
7
- *
8
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
9
- *
10
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
11
- *
12
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
13
- *
14
- * - `ERROR`: The chat ended unexpectedly due to an error.
15
- */
16
1
  export declare const ReturnChatPagedEventsStatus: {
17
2
  readonly Active: "ACTIVE";
18
3
  readonly UserEnded: "USER_ENDED";
@@ -2,21 +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.ReturnChatPagedEventsStatus = void 0;
5
- /**
6
- * Indicates the current state of the chat. There are six possible statuses:
7
- *
8
- * - `ACTIVE`: The chat is currently active and ongoing.
9
- *
10
- * - `USER_ENDED`: The chat was manually ended by the user.
11
- *
12
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
13
- *
14
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
15
- *
16
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
17
- *
18
- * - `ERROR`: The chat ended unexpectedly due to an error.
19
- */
20
5
  exports.ReturnChatPagedEventsStatus = {
21
6
  Active: "ACTIVE",
22
7
  UserEnded: "USER_ENDED",
@@ -1,18 +1,3 @@
1
- /**
2
- * Indicates the current state of the chat. There are six possible statuses:
3
- *
4
- * - `ACTIVE`: The chat is currently active and ongoing.
5
- *
6
- * - `USER_ENDED`: The chat was manually ended by the user.
7
- *
8
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
9
- *
10
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
11
- *
12
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
13
- *
14
- * - `ERROR`: The chat ended unexpectedly due to an error.
15
- */
16
1
  export declare const ReturnChatStatus: {
17
2
  readonly Active: "ACTIVE";
18
3
  readonly UserEnded: "USER_ENDED";
@@ -2,21 +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.ReturnChatStatus = void 0;
5
- /**
6
- * Indicates the current state of the chat. There are six possible statuses:
7
- *
8
- * - `ACTIVE`: The chat is currently active and ongoing.
9
- *
10
- * - `USER_ENDED`: The chat was manually ended by the user.
11
- *
12
- * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
13
- *
14
- * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
15
- *
16
- * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
17
- *
18
- * - `ERROR`: The chat ended unexpectedly due to an error.
19
- */
20
5
  exports.ReturnChatStatus = {
21
6
  Active: "ACTIVE",
22
7
  UserEnded: "USER_ENDED",
@@ -1,15 +1,9 @@
1
1
  /**
2
- * The Config associated with this Chat.
2
+ * An id/version number for a specific config version
3
3
  */
4
4
  export interface ReturnConfigSpec {
5
5
  /** Identifier for a Config. Formatted as a UUID. */
6
6
  id: string;
7
- /**
8
- * Version number for a Config.
9
- *
10
- * Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
11
- *
12
- * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
13
- */
7
+ /** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
14
8
  version?: number;
15
9
  }
@@ -2,10 +2,6 @@
2
2
  * A specific eLLM Model configuration
3
3
  */
4
4
  export interface ReturnEllmModel {
5
- /**
6
- * Boolean indicating if the eLLM is allowed to generate short responses.
7
- *
8
- * If omitted, short responses from the eLLM are enabled by default.
9
- */
5
+ /** Boolean indicating if the model is allowed to generate short responses. */
10
6
  allowShortResponses: boolean;
11
7
  }
@@ -2,12 +2,8 @@
2
2
  * A specific event message configuration to be returned from the server
3
3
  */
4
4
  export interface ReturnEventMessageSpec {
5
- /**
6
- * Boolean indicating if this event message is enabled.
7
- *
8
- * If set to `true`, a message will be sent when the circumstances for the specific event are met.
9
- */
5
+ /** Boolean indicating if this event message is enabled. */
10
6
  enabled: boolean;
11
- /** Text to use as the event message when the corresponding event occurs. If no text is specified, EVI will generate an appropriate message based on its current context and the system prompt. */
7
+ /** Optional text that will be used as a verbatim event message. If the text is null and the event message is enabled, the system will generate a message based using the language model. */
12
8
  text?: string;
13
9
  }
@@ -1,22 +1,9 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * Collection of event messages returned by the server.
4
- *
5
- * Event messages are sent by the server when specific events occur during a chat session. These messages are used to configure behaviors for EVI, such as controlling how EVI starts a new conversation.
3
+ * Collection of event_message specs to be returned from the server
6
4
  */
7
5
  export interface ReturnEventMessageSpecs {
8
- /**
9
- * Specifies the message EVI provides when the chat is about to be disconnected due to a user inactivity timeout, such as a message mentioning a lack of user input for a period of time.
10
- *
11
- * Enabling an inactivity message allows developers to use this message event for "checking in" with the user if they are not responding to see if they are still active.
12
- *
13
- * If the user does not respond in the number of seconds specified in the `inactivity_timeout` field, then EVI will say the message and the user has 15 seconds to respond. If they respond in time, the conversation will continue; if not, the conversation will end.
14
- *
15
- * However, if the inactivity message is not enabled, then reaching the inactivity timeout will immediately end the connection.
16
- */
17
6
  onInactivityTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
18
- /** Specifies the message EVI provides when the chat is disconnected due to reaching the maximum chat duration, such as a message mentioning the time limit for the chat has been reached. */
19
7
  onMaxDurationTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
20
- /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
21
8
  onNewChat?: Hume.empathicVoice.ReturnEventMessageSpec;
22
9
  }
@@ -3,14 +3,8 @@ import type * as Hume from "../../../index.js";
3
3
  * A specific LanguageModel
4
4
  */
5
5
  export interface ReturnLanguageModel {
6
- /** The provider of the supplemental language model. */
7
6
  modelProvider?: Hume.empathicVoice.ModelProviderEnum;
8
- /** String that specifies the language model to use with `model_provider`. */
9
7
  modelResource?: Hume.empathicVoice.LanguageModelType;
10
- /**
11
- * The model temperature, with values between 0 to 1 (inclusive).
12
- *
13
- * Controls the randomness of the LLM's output, with values closer to 0 yielding focused, deterministic responses and values closer to 1 producing more creative, diverse responses.
14
- */
8
+ /** Model temperature. */
15
9
  temperature?: number;
16
10
  }
@@ -3,13 +3,9 @@ import type * as Hume from "../../../index.js";
3
3
  * A paginated list of chat_groups returned from the server
4
4
  */
5
5
  export interface ReturnPagedChatGroups {
6
- /** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
6
+ /** List of chat_groups and their metadata returned for the specified page number and page size. */
7
7
  chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
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 ReturnPagedChatGroups {
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.ReturnPagedChatGroupsPaginationDirection;
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 ReturnPagedChatGroupsPaginationDirection: {
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.ReturnPagedChatGroupsPaginationDirection = 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.ReturnPagedChatGroupsPaginationDirection = {
11
6
  Asc: "ASC",
12
7
  Desc: "DESC",