hume 0.15.3 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +8 -8
  3. package/dist/cjs/api/resources/empathicVoice/client/Client.js +8 -8
  4. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -11
  6. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +92 -92
  7. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +18 -18
  8. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -16
  9. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +9 -4
  11. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  12. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -2
  13. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +6 -6
  14. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -4
  15. package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +24 -1
  16. package/dist/cjs/api/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +31 -1
  18. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +2 -2
  19. package/dist/cjs/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -2
  20. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -2
  21. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +2 -2
  22. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -0
  23. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +1 -0
  24. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -2
  25. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -4
  26. package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +11 -11
  27. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +10 -10
  28. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +16 -16
  29. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +6 -6
  30. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +6 -6
  31. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +8 -8
  32. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +4 -4
  33. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +27 -27
  34. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +20 -41
  35. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -2
  36. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -4
  37. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -4
  38. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -2
  39. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -2
  40. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -2
  41. package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +12 -23
  42. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -2
  43. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +20 -20
  44. package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  45. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -0
  46. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -0
  47. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -2
  48. package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +34 -1
  49. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +1 -1
  50. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +7 -2
  51. package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
  52. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +7 -2
  53. package/dist/cjs/api/resources/tts/types/ErrorResponse.d.ts +1 -1
  54. package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +1 -1
  55. package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +1 -1
  56. package/dist/cjs/api/resources/tts/types/Snippet.d.ts +1 -1
  57. package/dist/cjs/api/resources/tts/types/Timestamp.d.ts +2 -0
  58. package/dist/cjs/core/websocket/ws.js +3 -2
  59. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -8
  60. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -8
  61. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -8
  62. package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -8
  63. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  64. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +1 -1
  65. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  66. package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +1 -1
  67. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +3 -3
  68. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +3 -3
  69. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +2 -2
  70. package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +2 -2
  71. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
  72. package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.js +1 -1
  73. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  74. package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +1 -1
  75. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +1 -1
  76. package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +1 -1
  77. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -1
  78. package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +1 -1
  79. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +1 -1
  80. package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +1 -1
  81. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
  82. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +1 -1
  83. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +1 -1
  84. package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +1 -1
  85. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -2
  86. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -2
  87. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
  88. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.js +4 -4
  89. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +3 -3
  90. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +3 -3
  91. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -5
  92. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.js +5 -5
  93. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +3 -3
  94. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.js +3 -3
  95. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +3 -3
  96. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +3 -3
  97. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -4
  98. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +4 -4
  99. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -2
  100. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -2
  101. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +5 -5
  102. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -5
  103. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +12 -12
  104. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.js +12 -12
  105. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -1
  106. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +1 -1
  107. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -2
  108. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -2
  109. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -2
  110. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -2
  111. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -1
  112. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -1
  113. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -1
  114. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -1
  115. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -1
  116. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -1
  117. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +4 -5
  118. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +4 -5
  119. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +1 -1
  120. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +1 -1
  121. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +8 -8
  122. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +8 -8
  123. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  124. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
  125. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
  126. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -1
  127. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +1 -1
  128. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +1 -1
  129. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.d.ts +1 -1
  130. package/dist/cjs/serialization/resources/tts/types/ErrorResponse.js +1 -1
  131. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +1 -1
  132. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +1 -1
  133. package/dist/cjs/version.d.ts +1 -1
  134. package/dist/cjs/version.js +1 -1
  135. package/dist/esm/Client.mjs +2 -2
  136. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +8 -8
  137. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +8 -8
  138. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  139. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -11
  140. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +92 -92
  141. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +18 -18
  142. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +16 -16
  143. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +2 -2
  144. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +9 -4
  145. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -2
  146. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -2
  147. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +6 -6
  148. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -4
  149. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +24 -1
  150. package/dist/esm/api/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  151. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +31 -1
  152. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +2 -2
  153. package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -2
  154. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +2 -2
  155. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +2 -2
  156. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -0
  157. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -0
  158. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -2
  159. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +4 -4
  160. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +11 -11
  161. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +10 -10
  162. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +16 -16
  163. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +6 -6
  164. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +6 -6
  165. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +8 -8
  166. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +4 -4
  167. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +27 -27
  168. package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +20 -41
  169. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +2 -2
  170. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +4 -4
  171. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +4 -4
  172. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -2
  173. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -2
  174. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -2
  175. package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +12 -23
  176. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -2
  177. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +20 -20
  178. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  179. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -0
  180. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -0
  181. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -2
  182. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +34 -1
  183. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +1 -1
  184. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +7 -2
  185. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
  186. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +7 -2
  187. package/dist/esm/api/resources/tts/types/ErrorResponse.d.mts +1 -1
  188. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +1 -1
  189. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +1 -1
  190. package/dist/esm/api/resources/tts/types/Snippet.d.mts +1 -1
  191. package/dist/esm/api/resources/tts/types/Timestamp.d.mts +2 -0
  192. package/dist/esm/core/websocket/ws.mjs +3 -2
  193. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +8 -8
  194. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.mjs +8 -8
  195. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +8 -8
  196. package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.mjs +8 -8
  197. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +1 -1
  198. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +1 -1
  199. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +1 -1
  200. package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +1 -1
  201. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +3 -3
  202. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.mjs +3 -3
  203. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +2 -2
  204. package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.mjs +2 -2
  205. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
  206. package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.mjs +1 -1
  207. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
  208. package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.mjs +1 -1
  209. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +1 -1
  210. package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +1 -1
  211. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -1
  212. package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.mjs +1 -1
  213. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +1 -1
  214. package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.mjs +1 -1
  215. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -1
  216. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -1
  217. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.mts +1 -1
  218. package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.mjs +1 -1
  219. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +2 -2
  220. package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.mjs +2 -2
  221. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
  222. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.mjs +4 -4
  223. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +3 -3
  224. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.mjs +3 -3
  225. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -5
  226. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.mjs +5 -5
  227. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.d.mts +3 -3
  228. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.mjs +3 -3
  229. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +3 -3
  230. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.mjs +3 -3
  231. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +4 -4
  232. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.mjs +4 -4
  233. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +2 -2
  234. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.mjs +2 -2
  235. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +5 -5
  236. package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.mjs +5 -5
  237. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.d.mts +12 -12
  238. package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.mjs +12 -12
  239. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -1
  240. package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.mjs +1 -1
  241. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -2
  242. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.mjs +2 -2
  243. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -2
  244. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.mjs +2 -2
  245. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +1 -1
  246. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.mjs +1 -1
  247. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +1 -1
  248. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.mjs +1 -1
  249. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +1 -1
  250. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.mjs +1 -1
  251. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +4 -5
  252. package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +4 -5
  253. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +1 -1
  254. package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.mjs +1 -1
  255. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +8 -8
  256. package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.mjs +8 -8
  257. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
  258. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +1 -1
  259. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -1
  260. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -1
  261. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +1 -1
  262. package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.mjs +1 -1
  263. package/dist/esm/serialization/resources/tts/types/ErrorResponse.d.mts +1 -1
  264. package/dist/esm/serialization/resources/tts/types/ErrorResponse.mjs +1 -1
  265. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +1 -1
  266. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +1 -1
  267. package/dist/esm/version.d.mts +1 -1
  268. package/dist/esm/version.mjs +1 -1
  269. package/package.json +1 -1
  270. package/reference.md +576 -576
@@ -1,32 +1,21 @@
1
- import type * as Hume from "../../../index.js";
2
1
  /**
3
- * A Prompt associated with this Config.
2
+ * A specific prompt version returned from the server
4
3
  */
5
4
  export interface ReturnPrompt {
6
- /** Name applied to all versions of a particular Prompt. */
7
- name: string;
5
+ /** The timestamp when the first version of this prompt was created. */
6
+ createdOn: number;
8
7
  /** Identifier for a Prompt. Formatted as a UUID. */
9
8
  id: string;
10
- /**
11
- * Instructions used to shape EVI's behavior, responses, and style.
12
- *
13
- * 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. For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
14
- */
9
+ /** The timestamp when this version of the prompt was created. */
10
+ modifiedOn: number;
11
+ /** Name applied to all versions of a particular Prompt. */
12
+ name: string;
13
+ /** Text used for this version of the Prompt. */
15
14
  text: string;
16
- /**
17
- * Version number for a Prompt.
18
- *
19
- * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
20
- *
21
- * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
22
- */
15
+ /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
23
16
  version: number;
24
- /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
25
- versionType: Hume.empathicVoice.ReturnPromptVersionType;
26
- /** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
27
- createdOn: number;
28
- /** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
29
- modifiedOn: number;
30
- /** An optional description of the Prompt version. */
17
+ /** Description that is appended to a specific version of a Prompt. */
31
18
  versionDescription?: string;
19
+ /** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
20
+ versionType: string;
32
21
  }
@@ -2,12 +2,12 @@
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). */
6
+ durationSecs?: number;
5
7
  /**
6
8
  * Boolean indicating if this timeout is enabled.
7
9
  *
8
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.
9
11
  */
10
12
  enabled: boolean;
11
- /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
12
- durationSecs?: number;
13
13
  }
@@ -3,10 +3,26 @@ 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
- /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
7
- toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
6
+ /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
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. */
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. */
11
+ fallbackContent?: string;
8
12
  /** Identifier for a Tool. Formatted as a UUID. */
9
13
  id: string;
14
+ /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
15
+ modifiedOn: number;
16
+ /** Name applied to all versions of a particular Tool. */
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
+ */
23
+ parameters: string;
24
+ /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
25
+ toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
10
26
  /**
11
27
  * Version number for a Tool.
12
28
  *
@@ -15,24 +31,8 @@ export interface ReturnUserDefinedTool {
15
31
  * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
16
32
  */
17
33
  version: number;
18
- /** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
19
- versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
20
34
  /** An optional description of the Tool version. */
21
35
  versionDescription?: string;
22
- /** Name applied to all versions of a particular Tool. */
23
- name: string;
24
- /** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
25
- createdOn: number;
26
- /** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
27
- modifiedOn: number;
28
- /** 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. */
29
- fallbackContent?: string;
30
- /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
31
- description?: string;
32
- /**
33
- * Stringified JSON defining the parameters used by this version of the Tool.
34
- *
35
- * 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.
36
- */
37
- parameters: 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
+ versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
38
38
  }
@@ -3,8 +3,8 @@ import type * as Hume from "../../../index.js";
3
3
  * An Octave voice available for text-to-speech
4
4
  */
5
5
  export interface ReturnVoice {
6
+ compatibleOctaveModels?: string[];
6
7
  id?: string;
7
8
  name?: string;
8
9
  provider?: Hume.empathicVoice.VoiceProvider;
9
- compatibleOctaveModels?: string[];
10
10
  }
@@ -2,5 +2,6 @@
2
2
  export declare const ReturnWebhookEventType: {
3
3
  readonly ChatStarted: "chat_started";
4
4
  readonly ChatEnded: "chat_ended";
5
+ readonly ToolCall: "tool_call";
5
6
  };
6
7
  export type ReturnWebhookEventType = (typeof ReturnWebhookEventType)[keyof typeof ReturnWebhookEventType];
@@ -6,4 +6,5 @@ exports.ReturnWebhookEventType = void 0;
6
6
  exports.ReturnWebhookEventType = {
7
7
  ChatStarted: "chat_started",
8
8
  ChatEnded: "chat_ended",
9
+ ToolCall: "tool_call",
9
10
  };
@@ -3,12 +3,12 @@ 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
- /** 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. */
7
- url: string;
8
6
  /**
9
7
  * The list of events the specified URL is subscribed to.
10
8
  *
11
9
  * See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
12
10
  */
13
11
  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. */
13
+ url: string;
14
14
  }
@@ -1,2 +1,35 @@
1
1
  import type * as Hume from "../../../index.js";
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;
2
+ export type SubscribeEvent =
3
+ /**
4
+ * When provided, the output is an assistant end message. */
5
+ Hume.empathicVoice.AssistantEnd
6
+ /**
7
+ * When provided, the output is an assistant message. */
8
+ | Hume.empathicVoice.AssistantMessage
9
+ /**
10
+ * When provided, the output is an Assistant Prosody message. */
11
+ | Hume.empathicVoice.AssistantProsody
12
+ /**
13
+ * The type of message sent through the socket; for an Audio Output message, this must be `audio_output`. */
14
+ | Hume.empathicVoice.AudioOutput
15
+ /**
16
+ * When provided, the output is a chat metadata message. */
17
+ | Hume.empathicVoice.ChatMetadata
18
+ /**
19
+ * When provided, the output is an error message. */
20
+ | Hume.empathicVoice.WebSocketError
21
+ /**
22
+ * When provided, the output is an interruption. */
23
+ | Hume.empathicVoice.UserInterruption
24
+ /**
25
+ * When provided, the output is a user message. */
26
+ | Hume.empathicVoice.UserMessage
27
+ /**
28
+ * When provided, the output is a tool call. */
29
+ | Hume.empathicVoice.ToolCallMessage
30
+ /**
31
+ * When provided, the output is a function call response. */
32
+ | Hume.empathicVoice.ToolResponseMessage
33
+ /**
34
+ * When provided, the output is a function call error. */
35
+ | Hume.empathicVoice.ToolErrorMessage;
@@ -26,5 +26,5 @@ export declare class StreamInput {
26
26
  protected readonly _options: StreamInput.Options;
27
27
  constructor(_options?: StreamInput.Options);
28
28
  connect(args?: StreamInput.ConnectArgs): Promise<StreamInputSocket>;
29
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
29
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
30
30
  }
@@ -112,8 +112,13 @@ class StreamInput {
112
112
  }
113
113
  _getCustomAuthorizationHeaders() {
114
114
  return __awaiter(this, void 0, void 0, function* () {
115
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
116
- return { "X-Hume-Api-Key": apiKeyValue };
115
+ var _a;
116
+ const apiKeyValue = core.Supplier.get(this._options.apiKey);
117
+ // This `authHeaderValue` is manually added as if you don't provide it it will
118
+ // be omitted from the headers which means it won't reach the logic in ws.ts that
119
+ // extracts values from the headers and adds them to query parameters.
120
+ const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
121
+ return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
117
122
  });
118
123
  }
119
124
  }
@@ -57,5 +57,5 @@ export declare class Voices {
57
57
  */
58
58
  delete(request: Hume.tts.VoicesDeleteRequest, requestOptions?: Voices.RequestOptions): core.HttpResponsePromise<void>;
59
59
  private __delete;
60
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
60
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
61
61
  }
@@ -320,8 +320,13 @@ class Voices {
320
320
  }
321
321
  _getCustomAuthorizationHeaders() {
322
322
  return __awaiter(this, void 0, void 0, function* () {
323
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
324
- return { "X-Hume-Api-Key": apiKeyValue };
323
+ var _a;
324
+ const apiKeyValue = core.Supplier.get(this._options.apiKey);
325
+ // This `authHeaderValue` is manually added as if you don't provide it it will
326
+ // be omitted from the headers which means it won't reach the logic in ws.ts that
327
+ // extracts values from the headers and adds them to query parameters.
328
+ const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
329
+ return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
325
330
  });
326
331
  }
327
332
  }
@@ -1,5 +1,5 @@
1
1
  export interface ErrorResponse {
2
+ code?: string;
2
3
  error?: string;
3
4
  message?: string;
4
- code?: string;
5
5
  }
@@ -4,7 +4,7 @@ export interface PostedTts {
4
4
  context?: Hume.tts.PostedContext;
5
5
  /** Specifies the output audio file format. */
6
6
  format?: Hume.tts.Format;
7
- /** The set of timestamp types to include in the response. */
7
+ /** The set of timestamp types to include in the response. Only supported for Octave 2 requests. */
8
8
  includeTimestampTypes?: Hume.tts.TimestampType[];
9
9
  /**
10
10
  * Number of audio generations to produce from the input utterances.
@@ -3,6 +3,7 @@ import type * as Hume from "../../../index.js";
3
3
  * An Octave voice available for text-to-speech
4
4
  */
5
5
  export interface ReturnVoice {
6
+ compatibleOctaveModels?: string[];
6
7
  /** ID of the voice in the `Voice Library`. */
7
8
  id?: string;
8
9
  /** Name of the voice in the `Voice Library`. */
@@ -13,5 +14,4 @@ export interface ReturnVoice {
13
14
  * Voices created through this endpoint will always have the provider set to `CUSTOM_VOICE`, indicating a custom voice stored in your account.
14
15
  */
15
16
  provider?: Hume.tts.VoiceProvider;
16
- compatibleOctaveModels?: string[];
17
17
  }
@@ -8,7 +8,7 @@ export interface Snippet {
8
8
  id: string;
9
9
  /** The text for this **Snippet**. */
10
10
  text: string;
11
- /** A list of word or phoneme level timestamps for the generated audio. */
11
+ /** A list of word or phoneme level timestamps for the generated audio. Timestamps are only returned for Octave 2 requests. */
12
12
  timestamps: Hume.tts.Timestamp[];
13
13
  /** The transcribed text of the generated audio. It is only present if `instant_mode` is set to `false`. */
14
14
  transcribedText?: string;
@@ -1,6 +1,8 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  export interface Timestamp {
3
+ /** The word or phoneme text that the timestamp corresponds to. */
3
4
  text: string;
5
+ /** The start and end timestamps for the word or phoneme in milliseconds. */
4
6
  time: Hume.tts.MillisecondInterval;
5
7
  type: Hume.tts.TimestampType;
6
8
  }
@@ -65,9 +65,10 @@ const DEFAULT_OPTIONS = {
65
65
  debug: false,
66
66
  };
67
67
  function addApiKeyFromHeader({ headers, queryParameters, }) {
68
- const apiKeyValue = headers === null || headers === void 0 ? void 0 : headers["X-Hume-Api-Key"];
68
+ var _a;
69
+ const apiKeyValue = (_a = Object.entries(headers !== null && headers !== void 0 ? headers : {}).find(([k]) => k.toLowerCase() === "x-hume-api-key")) === null || _a === void 0 ? void 0 : _a[1];
69
70
  if (apiKeyValue && !(queryParameters === null || queryParameters === void 0 ? void 0 : queryParameters["api_key"])) {
70
- return Object.assign(Object.assign({}, queryParameters), { apiKey: apiKeyValue });
71
+ return Object.assign(Object.assign({}, queryParameters), { api_key: apiKeyValue });
71
72
  }
72
73
  return queryParameters;
73
74
  }
@@ -14,18 +14,18 @@ import { VoiceRef } from "../../../../types/VoiceRef.js";
14
14
  export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
15
15
  export declare namespace PostedConfig {
16
16
  interface Raw {
17
- evi_version: string;
18
- name: string;
19
- version_description?: string | null;
20
- prompt?: PostedConfigPromptSpec.Raw | null;
21
- voice?: VoiceRef.Raw | null;
22
- language_model?: PostedLanguageModel.Raw | null;
23
- ellm_model?: PostedEllmModel.Raw | null;
24
- tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
25
17
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
18
+ ellm_model?: PostedEllmModel.Raw | null;
26
19
  event_messages?: PostedEventMessageSpecs.Raw | null;
20
+ evi_version: string;
21
+ language_model?: PostedLanguageModel.Raw | null;
22
+ name: string;
27
23
  nudges?: PostedNudgeSpec.Raw | null;
24
+ prompt?: PostedConfigPromptSpec.Raw | null;
28
25
  timeouts?: PostedTimeoutSpecs.Raw | null;
26
+ tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
27
+ version_description?: string | null;
28
+ voice?: VoiceRef.Raw | null;
29
29
  webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
30
30
  }
31
31
  }
@@ -47,17 +47,17 @@ const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefi
47
47
  const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
48
48
  const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
49
49
  exports.PostedConfig = core.serialization.object({
50
- eviVersion: core.serialization.property("evi_version", core.serialization.string()),
51
- name: core.serialization.string(),
52
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
53
- prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
54
- voice: VoiceRef_js_1.VoiceRef.optional(),
55
- languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
56
- ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
57
- tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
58
50
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_js_1.PostedBuiltinTool.optional()).optional()),
51
+ ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
59
52
  eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
53
+ eviVersion: core.serialization.property("evi_version", core.serialization.string()),
54
+ languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
55
+ name: core.serialization.string(),
60
56
  nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
57
+ prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
61
58
  timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
59
+ tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
60
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
61
+ voice: VoiceRef_js_1.VoiceRef.optional(),
62
62
  webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
63
63
  });
@@ -14,17 +14,17 @@ import { VoiceRef } from "../../../../types/VoiceRef.js";
14
14
  export declare const PostedConfigVersion: core.serialization.Schema<serializers.empathicVoice.PostedConfigVersion.Raw, Hume.empathicVoice.PostedConfigVersion>;
15
15
  export declare namespace PostedConfigVersion {
16
16
  interface Raw {
17
- evi_version: string;
18
- version_description?: string | null;
19
- prompt?: PostedConfigPromptSpec.Raw | null;
20
- voice?: VoiceRef.Raw | null;
21
- language_model?: PostedLanguageModel.Raw | null;
22
- ellm_model?: PostedEllmModel.Raw | null;
23
- tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
24
17
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
18
+ ellm_model?: PostedEllmModel.Raw | null;
25
19
  event_messages?: PostedEventMessageSpecs.Raw | null;
26
- timeouts?: PostedTimeoutSpecs.Raw | null;
20
+ evi_version: string;
21
+ language_model?: PostedLanguageModel.Raw | null;
27
22
  nudges?: PostedNudgeSpec.Raw | null;
23
+ prompt?: PostedConfigPromptSpec.Raw | null;
24
+ timeouts?: PostedTimeoutSpecs.Raw | null;
25
+ tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
26
+ version_description?: string | null;
27
+ voice?: VoiceRef.Raw | null;
28
28
  webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
29
29
  }
30
30
  }
@@ -47,16 +47,16 @@ const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefi
47
47
  const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
48
48
  const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
49
49
  exports.PostedConfigVersion = core.serialization.object({
50
- eviVersion: core.serialization.property("evi_version", core.serialization.string()),
51
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
52
- prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
53
- voice: VoiceRef_js_1.VoiceRef.optional(),
54
- languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
55
- ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
56
- tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
57
50
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_js_1.PostedBuiltinTool.optional()).optional()),
51
+ ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
58
52
  eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
59
- timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
53
+ eviVersion: core.serialization.property("evi_version", core.serialization.string()),
54
+ languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
60
55
  nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
56
+ prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
57
+ timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
58
+ tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
59
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
60
+ voice: VoiceRef_js_1.VoiceRef.optional(),
61
61
  webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
62
62
  });
@@ -5,7 +5,7 @@ export declare const PostedPrompt: core.serialization.Schema<serializers.empathi
5
5
  export declare namespace PostedPrompt {
6
6
  interface Raw {
7
7
  name: string;
8
- version_description?: string | null;
9
8
  text: string;
9
+ version_description?: string | null;
10
10
  }
11
11
  }
@@ -38,6 +38,6 @@ exports.PostedPrompt = void 0;
38
38
  const core = __importStar(require("../../../../../../../core/index.js"));
39
39
  exports.PostedPrompt = core.serialization.object({
40
40
  name: core.serialization.string(),
41
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
42
41
  text: core.serialization.string(),
42
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
43
43
  });
@@ -4,7 +4,7 @@ import type * as serializers from "../../../../../../index.js";
4
4
  export declare const PostedPromptVersion: core.serialization.Schema<serializers.empathicVoice.PostedPromptVersion.Raw, Hume.empathicVoice.PostedPromptVersion>;
5
5
  export declare namespace PostedPromptVersion {
6
6
  interface Raw {
7
- version_description?: string | null;
8
7
  text: string;
8
+ version_description?: string | null;
9
9
  }
10
10
  }
@@ -37,6 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PostedPromptVersion = void 0;
38
38
  const core = __importStar(require("../../../../../../../core/index.js"));
39
39
  exports.PostedPromptVersion = core.serialization.object({
40
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
41
40
  text: core.serialization.string(),
41
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
42
42
  });
@@ -4,10 +4,10 @@ import type * as serializers from "../../../../../../index.js";
4
4
  export declare const PostedUserDefinedTool: core.serialization.Schema<serializers.empathicVoice.PostedUserDefinedTool.Raw, Hume.empathicVoice.PostedUserDefinedTool>;
5
5
  export declare namespace PostedUserDefinedTool {
6
6
  interface Raw {
7
- name: string;
8
- version_description?: string | null;
9
7
  description?: string | null;
10
- parameters: string;
11
8
  fallback_content?: string | null;
9
+ name: string;
10
+ parameters: string;
11
+ version_description?: string | null;
12
12
  }
13
13
  }
@@ -37,9 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PostedUserDefinedTool = void 0;
38
38
  const core = __importStar(require("../../../../../../../core/index.js"));
39
39
  exports.PostedUserDefinedTool = core.serialization.object({
40
- name: core.serialization.string(),
41
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
42
40
  description: core.serialization.string().optional(),
43
- parameters: core.serialization.string(),
44
41
  fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
42
+ name: core.serialization.string(),
43
+ parameters: core.serialization.string(),
44
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
45
45
  });
@@ -4,9 +4,9 @@ import type * as serializers from "../../../../../../index.js";
4
4
  export declare const PostedUserDefinedToolVersion: core.serialization.Schema<serializers.empathicVoice.PostedUserDefinedToolVersion.Raw, Hume.empathicVoice.PostedUserDefinedToolVersion>;
5
5
  export declare namespace PostedUserDefinedToolVersion {
6
6
  interface Raw {
7
- version_description?: string | null;
8
7
  description?: string | null;
9
- parameters: string;
10
8
  fallback_content?: string | null;
9
+ parameters: string;
10
+ version_description?: string | null;
11
11
  }
12
12
  }
@@ -37,8 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PostedUserDefinedToolVersion = void 0;
38
38
  const core = __importStar(require("../../../../../../../core/index.js"));
39
39
  exports.PostedUserDefinedToolVersion = core.serialization.object({
40
- versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
41
40
  description: core.serialization.string().optional(),
42
- parameters: core.serialization.string(),
43
41
  fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
42
+ parameters: core.serialization.string(),
43
+ versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
44
44
  });
@@ -4,8 +4,8 @@ import type * as serializers from "../../../index.js";
4
4
  export declare const ErrorResponse: core.serialization.ObjectSchema<serializers.empathicVoice.ErrorResponse.Raw, Hume.empathicVoice.ErrorResponse>;
5
5
  export declare namespace ErrorResponse {
6
6
  interface Raw {
7
+ code?: string | null;
7
8
  error?: string | null;
8
9
  message?: string | null;
9
- code?: string | null;
10
10
  }
11
11
  }
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ErrorResponse = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  exports.ErrorResponse = core.serialization.object({
40
+ code: core.serialization.string().optional(),
40
41
  error: core.serialization.string().optional(),
41
42
  message: core.serialization.string().optional(),
42
- code: core.serialization.string().optional(),
43
43
  });
@@ -5,7 +5,7 @@ import { PostedBuiltinToolName } from "./PostedBuiltinToolName.js";
5
5
  export declare const PostedBuiltinTool: core.serialization.ObjectSchema<serializers.empathicVoice.PostedBuiltinTool.Raw, Hume.empathicVoice.PostedBuiltinTool>;
6
6
  export declare namespace PostedBuiltinTool {
7
7
  interface Raw {
8
- name: PostedBuiltinToolName.Raw;
9
8
  fallback_content?: string | null;
9
+ name: PostedBuiltinToolName.Raw;
10
10
  }
11
11
  }
@@ -38,6 +38,6 @@ exports.PostedBuiltinTool = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const PostedBuiltinToolName_js_1 = require("./PostedBuiltinToolName.js");
40
40
  exports.PostedBuiltinTool = core.serialization.object({
41
- name: PostedBuiltinToolName_js_1.PostedBuiltinToolName,
42
41
  fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
42
+ name: PostedBuiltinToolName_js_1.PostedBuiltinToolName,
43
43
  });
@@ -5,7 +5,7 @@ export declare const PostedConfigPromptSpec: core.serialization.ObjectSchema<ser
5
5
  export declare namespace PostedConfigPromptSpec {
6
6
  interface Raw {
7
7
  id?: string | null;
8
- version?: number | null;
9
8
  text?: string | null;
9
+ version?: number | null;
10
10
  }
11
11
  }
@@ -38,6 +38,6 @@ exports.PostedConfigPromptSpec = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  exports.PostedConfigPromptSpec = core.serialization.object({
40
40
  id: core.serialization.string().optional(),
41
- version: core.serialization.number().optional(),
42
41
  text: core.serialization.string().optional(),
42
+ version: core.serialization.number().optional(),
43
43
  });
@@ -5,8 +5,8 @@ import { PostedEventMessageSpec } from "./PostedEventMessageSpec.js";
5
5
  export declare const PostedEventMessageSpecs: core.serialization.ObjectSchema<serializers.empathicVoice.PostedEventMessageSpecs.Raw, Hume.empathicVoice.PostedEventMessageSpecs>;
6
6
  export declare namespace PostedEventMessageSpecs {
7
7
  interface Raw {
8
- on_new_chat?: PostedEventMessageSpec.Raw | null;
9
8
  on_inactivity_timeout?: PostedEventMessageSpec.Raw | null;
10
9
  on_max_duration_timeout?: PostedEventMessageSpec.Raw | null;
10
+ on_new_chat?: PostedEventMessageSpec.Raw | null;
11
11
  }
12
12
  }
@@ -38,7 +38,7 @@ exports.PostedEventMessageSpecs = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const PostedEventMessageSpec_js_1 = require("./PostedEventMessageSpec.js");
40
40
  exports.PostedEventMessageSpecs = core.serialization.object({
41
- onNewChat: core.serialization.property("on_new_chat", PostedEventMessageSpec_js_1.PostedEventMessageSpec.optional()),
42
41
  onInactivityTimeout: core.serialization.property("on_inactivity_timeout", PostedEventMessageSpec_js_1.PostedEventMessageSpec.optional()),
43
42
  onMaxDurationTimeout: core.serialization.property("on_max_duration_timeout", PostedEventMessageSpec_js_1.PostedEventMessageSpec.optional()),
43
+ onNewChat: core.serialization.property("on_new_chat", PostedEventMessageSpec_js_1.PostedEventMessageSpec.optional()),
44
44
  });
@@ -4,7 +4,7 @@ import type * as serializers from "../../../index.js";
4
4
  export declare const PostedTimeoutSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedTimeoutSpec.Raw, Hume.empathicVoice.PostedTimeoutSpec>;
5
5
  export declare namespace PostedTimeoutSpec {
6
6
  interface Raw {
7
- enabled: boolean;
8
7
  duration_secs?: number | null;
8
+ enabled: boolean;
9
9
  }
10
10
  }
@@ -37,6 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PostedTimeoutSpec = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  exports.PostedTimeoutSpec = core.serialization.object({
40
- enabled: core.serialization.boolean(),
41
40
  durationSecs: core.serialization.property("duration_secs", core.serialization.number().optional()),
41
+ enabled: core.serialization.boolean(),
42
42
  });