hume 0.9.9 → 0.9.11

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 (403) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +164 -19
  2. package/.mock/definition/empathic-voice/chat.yml +5 -1
  3. package/.mock/definition/empathic-voice/chatGroups.yml +6 -0
  4. package/.mock/definition/empathic-voice/chatWebhooks.yml +32 -0
  5. package/.mock/definition/empathic-voice/chats.yml +3 -0
  6. package/.mock/definition/empathic-voice/configs.yml +8 -1
  7. package/.mock/definition/empathic-voice/customVoices.yml +23 -12
  8. package/.mock/definition/empathic-voice/prompts.yml +29 -21
  9. package/.mock/definition/empathic-voice/tools.yml +34 -27
  10. package/.mock/definition/expression-measurement/batch/__package__.yml +23 -0
  11. package/.mock/definition/expression-measurement/stream/__package__.yml +0 -435
  12. package/.mock/definition/expression-measurement/v0StreamModels.yml +437 -0
  13. package/.mock/definition/tts/__package__.yml +394 -0
  14. package/.mock/definition/tts/voices.yml +47 -0
  15. package/.mock/fern.config.json +1 -1
  16. package/Client.d.ts +3 -0
  17. package/Client.js +5 -0
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  19. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  20. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  22. package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
  23. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
  24. package/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
  25. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
  27. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  30. package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  31. package/api/resources/empathicVoice/types/Context.d.ts +2 -2
  32. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  33. package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
  36. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
  39. package/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
  40. package/api/resources/empathicVoice/types/WebhookEvent.d.ts +5 -0
  41. package/api/resources/empathicVoice/types/WebhookEvent.js +5 -0
  42. package/api/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
  43. package/api/resources/empathicVoice/types/WebhookEventBase.js +5 -0
  44. package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +18 -0
  45. package/api/resources/empathicVoice/types/WebhookEventChatEnded.js +5 -0
  46. package/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +8 -0
  47. package/api/resources/empathicVoice/types/WebhookEventChatStartType.js +10 -0
  48. package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +16 -0
  49. package/api/resources/empathicVoice/types/WebhookEventChatStarted.js +5 -0
  50. package/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +12 -0
  51. package/api/resources/empathicVoice/types/WebhookEventChatStatus.js +14 -0
  52. package/api/resources/empathicVoice/types/index.d.ts +6 -0
  53. package/api/resources/empathicVoice/types/index.js +6 -0
  54. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  55. package/api/resources/index.d.ts +2 -1
  56. package/api/resources/index.js +3 -2
  57. package/api/resources/tts/client/Client.d.ts +86 -0
  58. package/api/resources/tts/client/Client.js +218 -0
  59. package/api/resources/tts/client/index.d.ts +1 -0
  60. package/api/resources/tts/client/index.js +2 -0
  61. package/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
  62. package/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
  63. package/api/resources/tts/errors/index.d.ts +1 -0
  64. package/api/resources/tts/errors/index.js +17 -0
  65. package/api/resources/tts/index.d.ts +4 -0
  66. package/api/resources/tts/index.js +20 -0
  67. package/api/resources/tts/resources/index.d.ts +2 -0
  68. package/api/resources/tts/resources/index.js +31 -0
  69. package/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
  70. package/api/resources/tts/resources/voices/client/Client.js +126 -0
  71. package/api/resources/tts/resources/voices/client/index.d.ts +1 -0
  72. package/api/resources/tts/resources/voices/client/index.js +17 -0
  73. package/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
  74. package/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
  75. package/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  76. package/api/resources/tts/resources/voices/client/requests/index.js +2 -0
  77. package/api/resources/tts/resources/voices/index.d.ts +1 -0
  78. package/api/resources/tts/resources/voices/index.js +17 -0
  79. package/api/resources/tts/types/AudioEncoding.d.ts +10 -0
  80. package/api/resources/tts/types/AudioEncoding.js +5 -0
  81. package/api/resources/tts/types/AudioFormatType.d.ts +9 -0
  82. package/api/resources/tts/types/AudioFormatType.js +11 -0
  83. package/api/resources/tts/types/Format.d.ts +19 -0
  84. package/api/resources/tts/types/Format.js +5 -0
  85. package/api/resources/tts/types/FormatMp3.d.ts +5 -0
  86. package/api/resources/tts/types/FormatMp3.js +5 -0
  87. package/api/resources/tts/types/FormatPcm.d.ts +5 -0
  88. package/api/resources/tts/types/FormatPcm.js +5 -0
  89. package/api/resources/tts/types/FormatWav.d.ts +5 -0
  90. package/api/resources/tts/types/FormatWav.js +5 -0
  91. package/api/resources/tts/types/HttpValidationError.d.ts +7 -0
  92. package/api/resources/tts/types/HttpValidationError.js +5 -0
  93. package/api/resources/tts/types/PostedContext.d.ts +8 -0
  94. package/api/resources/tts/types/PostedContext.js +5 -0
  95. package/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
  96. package/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
  97. package/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
  98. package/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
  99. package/api/resources/tts/types/PostedTts.d.ts +14 -0
  100. package/api/resources/tts/types/PostedTts.js +5 -0
  101. package/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
  102. package/api/resources/tts/types/PostedTtsRecord.js +5 -0
  103. package/api/resources/tts/types/PostedUtterance.d.ts +22 -0
  104. package/api/resources/tts/types/PostedUtterance.js +5 -0
  105. package/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
  106. package/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
  107. package/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
  108. package/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
  109. package/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
  110. package/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
  111. package/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
  112. package/api/resources/tts/types/ReturnGeneration.js +5 -0
  113. package/api/resources/tts/types/ReturnTts.d.ts +9 -0
  114. package/api/resources/tts/types/ReturnTts.js +5 -0
  115. package/api/resources/tts/types/ReturnVoice.d.ts +9 -0
  116. package/api/resources/tts/types/ReturnVoice.js +5 -0
  117. package/api/resources/tts/types/Snippet.d.ts +11 -0
  118. package/api/resources/tts/types/Snippet.js +5 -0
  119. package/api/resources/tts/types/ValidationError.d.ts +9 -0
  120. package/api/resources/tts/types/ValidationError.js +5 -0
  121. package/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
  122. package/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
  123. package/api/resources/tts/types/VoiceProvider.d.ts +8 -0
  124. package/api/resources/tts/types/VoiceProvider.js +10 -0
  125. package/api/resources/tts/types/index.d.ts +23 -0
  126. package/api/resources/tts/types/index.js +39 -0
  127. package/dist/Client.d.ts +3 -0
  128. package/dist/Client.js +5 -0
  129. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  130. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  131. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  132. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  133. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
  134. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
  135. package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
  136. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
  137. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
  138. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
  139. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
  140. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
  141. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
  142. package/dist/api/resources/empathicVoice/types/Context.d.ts +2 -2
  143. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  144. package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  145. package/dist/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
  146. package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
  147. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
  148. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  149. package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
  150. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
  151. package/dist/api/resources/empathicVoice/types/WebhookEvent.d.ts +5 -0
  152. package/dist/api/resources/empathicVoice/types/WebhookEvent.js +5 -0
  153. package/dist/api/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
  154. package/dist/api/resources/empathicVoice/types/WebhookEventBase.js +5 -0
  155. package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +18 -0
  156. package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.js +5 -0
  157. package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +8 -0
  158. package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.js +10 -0
  159. package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +16 -0
  160. package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.js +5 -0
  161. package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +12 -0
  162. package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.js +14 -0
  163. package/dist/api/resources/empathicVoice/types/index.d.ts +6 -0
  164. package/dist/api/resources/empathicVoice/types/index.js +6 -0
  165. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  166. package/dist/api/resources/index.d.ts +2 -1
  167. package/dist/api/resources/index.js +3 -2
  168. package/dist/api/resources/tts/client/Client.d.ts +86 -0
  169. package/dist/api/resources/tts/client/Client.js +218 -0
  170. package/dist/api/resources/tts/client/index.d.ts +1 -0
  171. package/dist/api/resources/tts/client/index.js +2 -0
  172. package/dist/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
  173. package/dist/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
  174. package/dist/api/resources/tts/errors/index.d.ts +1 -0
  175. package/dist/api/resources/tts/errors/index.js +17 -0
  176. package/dist/api/resources/tts/index.d.ts +4 -0
  177. package/dist/api/resources/tts/index.js +20 -0
  178. package/dist/api/resources/tts/resources/index.d.ts +2 -0
  179. package/dist/api/resources/tts/resources/index.js +31 -0
  180. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
  181. package/dist/api/resources/tts/resources/voices/client/Client.js +126 -0
  182. package/dist/api/resources/tts/resources/voices/client/index.d.ts +1 -0
  183. package/dist/api/resources/tts/resources/voices/client/index.js +17 -0
  184. package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
  185. package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
  186. package/dist/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  187. package/dist/api/resources/tts/resources/voices/client/requests/index.js +2 -0
  188. package/dist/api/resources/tts/resources/voices/index.d.ts +1 -0
  189. package/dist/api/resources/tts/resources/voices/index.js +17 -0
  190. package/dist/api/resources/tts/types/AudioEncoding.d.ts +10 -0
  191. package/dist/api/resources/tts/types/AudioEncoding.js +5 -0
  192. package/dist/api/resources/tts/types/AudioFormatType.d.ts +9 -0
  193. package/dist/api/resources/tts/types/AudioFormatType.js +11 -0
  194. package/dist/api/resources/tts/types/Format.d.ts +19 -0
  195. package/dist/api/resources/tts/types/Format.js +5 -0
  196. package/dist/api/resources/tts/types/FormatMp3.d.ts +5 -0
  197. package/dist/api/resources/tts/types/FormatMp3.js +5 -0
  198. package/dist/api/resources/tts/types/FormatPcm.d.ts +5 -0
  199. package/dist/api/resources/tts/types/FormatPcm.js +5 -0
  200. package/dist/api/resources/tts/types/FormatWav.d.ts +5 -0
  201. package/dist/api/resources/tts/types/FormatWav.js +5 -0
  202. package/dist/api/resources/tts/types/HttpValidationError.d.ts +7 -0
  203. package/dist/api/resources/tts/types/HttpValidationError.js +5 -0
  204. package/dist/api/resources/tts/types/PostedContext.d.ts +8 -0
  205. package/dist/api/resources/tts/types/PostedContext.js +5 -0
  206. package/dist/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
  207. package/dist/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
  208. package/dist/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
  209. package/dist/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
  210. package/dist/api/resources/tts/types/PostedTts.d.ts +14 -0
  211. package/dist/api/resources/tts/types/PostedTts.js +5 -0
  212. package/dist/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
  213. package/dist/api/resources/tts/types/PostedTtsRecord.js +5 -0
  214. package/dist/api/resources/tts/types/PostedUtterance.d.ts +22 -0
  215. package/dist/api/resources/tts/types/PostedUtterance.js +5 -0
  216. package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
  217. package/dist/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
  218. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
  219. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
  220. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
  221. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
  222. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
  223. package/dist/api/resources/tts/types/ReturnGeneration.js +5 -0
  224. package/dist/api/resources/tts/types/ReturnTts.d.ts +9 -0
  225. package/dist/api/resources/tts/types/ReturnTts.js +5 -0
  226. package/dist/api/resources/tts/types/ReturnVoice.d.ts +9 -0
  227. package/dist/api/resources/tts/types/ReturnVoice.js +5 -0
  228. package/dist/api/resources/tts/types/Snippet.d.ts +11 -0
  229. package/dist/api/resources/tts/types/Snippet.js +5 -0
  230. package/dist/api/resources/tts/types/ValidationError.d.ts +9 -0
  231. package/dist/api/resources/tts/types/ValidationError.js +5 -0
  232. package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
  233. package/dist/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
  234. package/dist/api/resources/tts/types/VoiceProvider.d.ts +8 -0
  235. package/dist/api/resources/tts/types/VoiceProvider.js +10 -0
  236. package/dist/api/resources/tts/types/index.d.ts +23 -0
  237. package/dist/api/resources/tts/types/index.js +39 -0
  238. package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
  239. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
  240. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
  241. package/dist/serialization/resources/empathicVoice/types/WebhookEvent.d.ts +12 -0
  242. package/dist/serialization/resources/empathicVoice/types/WebhookEvent.js +33 -0
  243. package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
  244. package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.js +35 -0
  245. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +19 -0
  246. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +42 -0
  247. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +10 -0
  248. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +31 -0
  249. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +18 -0
  250. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +41 -0
  251. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +10 -0
  252. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +38 -0
  253. package/dist/serialization/resources/empathicVoice/types/index.d.ts +6 -0
  254. package/dist/serialization/resources/empathicVoice/types/index.js +6 -0
  255. package/dist/serialization/resources/index.d.ts +2 -1
  256. package/dist/serialization/resources/index.js +3 -2
  257. package/dist/serialization/resources/tts/index.d.ts +2 -0
  258. package/dist/serialization/resources/tts/index.js +18 -0
  259. package/dist/serialization/resources/tts/resources/index.d.ts +2 -0
  260. package/dist/serialization/resources/tts/resources/index.js +31 -0
  261. package/dist/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
  262. package/dist/serialization/resources/tts/resources/voices/client/index.js +17 -0
  263. package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
  264. package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
  265. package/dist/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  266. package/dist/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
  267. package/dist/serialization/resources/tts/resources/voices/index.d.ts +1 -0
  268. package/dist/serialization/resources/tts/resources/voices/index.js +17 -0
  269. package/dist/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
  270. package/dist/serialization/resources/tts/types/AudioEncoding.js +35 -0
  271. package/dist/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
  272. package/dist/serialization/resources/tts/types/AudioFormatType.js +31 -0
  273. package/dist/serialization/resources/tts/types/Format.d.ts +22 -0
  274. package/dist/serialization/resources/tts/types/Format.js +43 -0
  275. package/dist/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
  276. package/dist/serialization/resources/tts/types/FormatMp3.js +31 -0
  277. package/dist/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
  278. package/dist/serialization/resources/tts/types/FormatPcm.js +31 -0
  279. package/dist/serialization/resources/tts/types/FormatWav.d.ts +11 -0
  280. package/dist/serialization/resources/tts/types/FormatWav.js +31 -0
  281. package/dist/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
  282. package/dist/serialization/resources/tts/types/HttpValidationError.js +34 -0
  283. package/dist/serialization/resources/tts/types/PostedContext.d.ts +12 -0
  284. package/dist/serialization/resources/tts/types/PostedContext.js +33 -0
  285. package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
  286. package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
  287. package/dist/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
  288. package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
  289. package/dist/serialization/resources/tts/types/PostedTts.d.ts +18 -0
  290. package/dist/serialization/resources/tts/types/PostedTts.js +39 -0
  291. package/dist/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
  292. package/dist/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
  293. package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
  294. package/dist/serialization/resources/tts/types/PostedUtterance.js +36 -0
  295. package/dist/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
  296. package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
  297. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
  298. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
  299. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
  300. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
  301. package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
  302. package/dist/serialization/resources/tts/types/ReturnGeneration.js +40 -0
  303. package/dist/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
  304. package/dist/serialization/resources/tts/types/ReturnTts.js +35 -0
  305. package/dist/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
  306. package/dist/serialization/resources/tts/types/ReturnVoice.js +34 -0
  307. package/dist/serialization/resources/tts/types/Snippet.d.ts +14 -0
  308. package/dist/serialization/resources/tts/types/Snippet.js +35 -0
  309. package/dist/serialization/resources/tts/types/ValidationError.d.ts +15 -0
  310. package/dist/serialization/resources/tts/types/ValidationError.js +36 -0
  311. package/dist/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
  312. package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
  313. package/dist/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
  314. package/dist/serialization/resources/tts/types/VoiceProvider.js +31 -0
  315. package/dist/serialization/resources/tts/types/index.d.ts +23 -0
  316. package/dist/serialization/resources/tts/types/index.js +39 -0
  317. package/dist/version.d.ts +1 -1
  318. package/dist/version.js +1 -1
  319. package/package.json +1 -1
  320. package/reference.md +489 -178
  321. package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
  322. package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
  323. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
  324. package/serialization/resources/empathicVoice/types/WebhookEvent.d.ts +12 -0
  325. package/serialization/resources/empathicVoice/types/WebhookEvent.js +33 -0
  326. package/serialization/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
  327. package/serialization/resources/empathicVoice/types/WebhookEventBase.js +35 -0
  328. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +19 -0
  329. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +42 -0
  330. package/serialization/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +10 -0
  331. package/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +31 -0
  332. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +18 -0
  333. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +41 -0
  334. package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +10 -0
  335. package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +38 -0
  336. package/serialization/resources/empathicVoice/types/index.d.ts +6 -0
  337. package/serialization/resources/empathicVoice/types/index.js +6 -0
  338. package/serialization/resources/index.d.ts +2 -1
  339. package/serialization/resources/index.js +3 -2
  340. package/serialization/resources/tts/index.d.ts +2 -0
  341. package/serialization/resources/tts/index.js +18 -0
  342. package/serialization/resources/tts/resources/index.d.ts +2 -0
  343. package/serialization/resources/tts/resources/index.js +31 -0
  344. package/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
  345. package/serialization/resources/tts/resources/voices/client/index.js +17 -0
  346. package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
  347. package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
  348. package/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
  349. package/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
  350. package/serialization/resources/tts/resources/voices/index.d.ts +1 -0
  351. package/serialization/resources/tts/resources/voices/index.js +17 -0
  352. package/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
  353. package/serialization/resources/tts/types/AudioEncoding.js +35 -0
  354. package/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
  355. package/serialization/resources/tts/types/AudioFormatType.js +31 -0
  356. package/serialization/resources/tts/types/Format.d.ts +22 -0
  357. package/serialization/resources/tts/types/Format.js +43 -0
  358. package/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
  359. package/serialization/resources/tts/types/FormatMp3.js +31 -0
  360. package/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
  361. package/serialization/resources/tts/types/FormatPcm.js +31 -0
  362. package/serialization/resources/tts/types/FormatWav.d.ts +11 -0
  363. package/serialization/resources/tts/types/FormatWav.js +31 -0
  364. package/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
  365. package/serialization/resources/tts/types/HttpValidationError.js +34 -0
  366. package/serialization/resources/tts/types/PostedContext.d.ts +12 -0
  367. package/serialization/resources/tts/types/PostedContext.js +33 -0
  368. package/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
  369. package/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
  370. package/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
  371. package/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
  372. package/serialization/resources/tts/types/PostedTts.d.ts +18 -0
  373. package/serialization/resources/tts/types/PostedTts.js +39 -0
  374. package/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
  375. package/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
  376. package/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
  377. package/serialization/resources/tts/types/PostedUtterance.js +36 -0
  378. package/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
  379. package/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
  380. package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
  381. package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
  382. package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
  383. package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
  384. package/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
  385. package/serialization/resources/tts/types/ReturnGeneration.js +40 -0
  386. package/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
  387. package/serialization/resources/tts/types/ReturnTts.js +35 -0
  388. package/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
  389. package/serialization/resources/tts/types/ReturnVoice.js +34 -0
  390. package/serialization/resources/tts/types/Snippet.d.ts +14 -0
  391. package/serialization/resources/tts/types/Snippet.js +35 -0
  392. package/serialization/resources/tts/types/ValidationError.d.ts +15 -0
  393. package/serialization/resources/tts/types/ValidationError.js +36 -0
  394. package/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
  395. package/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
  396. package/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
  397. package/serialization/resources/tts/types/VoiceProvider.js +31 -0
  398. package/serialization/resources/tts/types/index.d.ts +23 -0
  399. package/serialization/resources/tts/types/index.js +39 -0
  400. package/version.d.ts +1 -1
  401. package/version.js +1 -1
  402. /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
  403. /package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
@@ -1,439 +1,4 @@
1
- channel:
2
- path: /v0/stream/models
3
- auth: false
4
- display-name: Stream
5
- headers:
6
- X-Hume-Api-Key:
7
- type: string
8
- name: humeApiKey
9
- messages:
10
- subscribe:
11
- origin: server
12
- body: SubscribeEvent
13
- publish:
14
- origin: client
15
- body:
16
- type: StreamModelsEndpointPayload
17
- docs: Models endpoint payload
18
- examples:
19
- - messages:
20
- - type: publish
21
- body: {}
22
- - type: subscribe
23
- body: {}
24
1
  types:
25
- StreamModelPredictionsJobDetails:
26
- docs: >
27
- If the job_details flag was set in the request, details about the current
28
- streaming job will be returned in the response body.
29
- properties:
30
- job_id:
31
- type: optional<string>
32
- docs: ID of the current streaming job.
33
- source:
34
- openapi: streaming-asyncapi.yml
35
- inline: true
36
- StreamModelPredictionsBurstPredictionsItem:
37
- properties:
38
- time: optional<TimeRange>
39
- emotions: optional<EmotionEmbedding>
40
- source:
41
- openapi: streaming-asyncapi.yml
42
- inline: true
43
- StreamModelPredictionsBurst:
44
- docs: Response for the vocal burst emotion model.
45
- properties:
46
- predictions: optional<list<StreamModelPredictionsBurstPredictionsItem>>
47
- source:
48
- openapi: streaming-asyncapi.yml
49
- inline: true
50
- StreamModelPredictionsFacePredictionsItem:
51
- properties:
52
- frame:
53
- type: optional<double>
54
- docs: Frame number
55
- time:
56
- type: optional<double>
57
- docs: Time in seconds when face detection occurred.
58
- bbox: optional<StreamBoundingBox>
59
- prob:
60
- type: optional<double>
61
- docs: The predicted probability that a detected face was actually a face.
62
- face_id:
63
- type: optional<string>
64
- docs: >-
65
- Identifier for a face. Not that this defaults to `unknown` unless face
66
- identification is enabled in the face model configuration.
67
- emotions: optional<EmotionEmbedding>
68
- facs: optional<EmotionEmbedding>
69
- descriptions: optional<EmotionEmbedding>
70
- source:
71
- openapi: streaming-asyncapi.yml
72
- inline: true
73
- StreamModelPredictionsFace:
74
- docs: Response for the facial expression emotion model.
75
- properties:
76
- predictions: optional<list<StreamModelPredictionsFacePredictionsItem>>
77
- source:
78
- openapi: streaming-asyncapi.yml
79
- inline: true
80
- StreamModelPredictionsFacemeshPredictionsItem:
81
- properties:
82
- emotions: optional<EmotionEmbedding>
83
- source:
84
- openapi: streaming-asyncapi.yml
85
- inline: true
86
- StreamModelPredictionsFacemesh:
87
- docs: Response for the facemesh emotion model.
88
- properties:
89
- predictions: optional<list<StreamModelPredictionsFacemeshPredictionsItem>>
90
- source:
91
- openapi: streaming-asyncapi.yml
92
- inline: true
93
- StreamModelPredictionsLanguagePredictionsItem:
94
- properties:
95
- text:
96
- type: optional<string>
97
- docs: A segment of text (like a word or a sentence).
98
- position: optional<TextPosition>
99
- emotions: optional<EmotionEmbedding>
100
- sentiment: optional<Sentiment>
101
- toxicity: optional<Toxicity>
102
- source:
103
- openapi: streaming-asyncapi.yml
104
- inline: true
105
- StreamModelPredictionsLanguage:
106
- docs: Response for the language emotion model.
107
- properties:
108
- predictions: optional<list<StreamModelPredictionsLanguagePredictionsItem>>
109
- source:
110
- openapi: streaming-asyncapi.yml
111
- inline: true
112
- StreamModelPredictionsProsodyPredictionsItem:
113
- properties:
114
- time: optional<TimeRange>
115
- emotions: optional<EmotionEmbedding>
116
- source:
117
- openapi: streaming-asyncapi.yml
118
- inline: true
119
- StreamModelPredictionsProsody:
120
- docs: Response for the speech prosody emotion model.
121
- properties:
122
- predictions: optional<list<StreamModelPredictionsProsodyPredictionsItem>>
123
- source:
124
- openapi: streaming-asyncapi.yml
125
- inline: true
126
- StreamModelPredictions:
127
- docs: Model predictions
128
- properties:
129
- payload_id:
130
- type: optional<string>
131
- docs: >
132
- If a payload ID was passed in the request, the same payload ID will be
133
- sent back in the response body.
134
- job_details:
135
- type: optional<StreamModelPredictionsJobDetails>
136
- docs: >
137
- If the job_details flag was set in the request, details about the
138
- current streaming job will be returned in the response body.
139
- burst:
140
- type: optional<StreamModelPredictionsBurst>
141
- docs: Response for the vocal burst emotion model.
142
- face:
143
- type: optional<StreamModelPredictionsFace>
144
- docs: Response for the facial expression emotion model.
145
- facemesh:
146
- type: optional<StreamModelPredictionsFacemesh>
147
- docs: Response for the facemesh emotion model.
148
- language:
149
- type: optional<StreamModelPredictionsLanguage>
150
- docs: Response for the language emotion model.
151
- prosody:
152
- type: optional<StreamModelPredictionsProsody>
153
- docs: Response for the speech prosody emotion model.
154
- source:
155
- openapi: streaming-asyncapi.yml
156
- inline: true
157
- JobDetails:
158
- docs: >
159
- If the job_details flag was set in the request, details about the current
160
- streaming job will be returned in the response body.
161
- properties:
162
- job_id:
163
- type: optional<string>
164
- docs: ID of the current streaming job.
165
- source:
166
- openapi: streaming-asyncapi.yml
167
- inline: true
168
- StreamErrorMessage:
169
- docs: Error message
170
- properties:
171
- error:
172
- type: optional<string>
173
- docs: Error message text.
174
- code:
175
- type: optional<string>
176
- docs: Unique identifier for the error.
177
- payload_id:
178
- type: optional<string>
179
- docs: >
180
- If a payload ID was passed in the request, the same payload ID will be
181
- sent back in the response body.
182
- job_details:
183
- type: optional<JobDetails>
184
- docs: >
185
- If the job_details flag was set in the request, details about the
186
- current streaming job will be returned in the response body.
187
- source:
188
- openapi: streaming-asyncapi.yml
189
- inline: true
190
- StreamWarningMessageJobDetails:
191
- docs: >
192
- If the job_details flag was set in the request, details about the current
193
- streaming job will be returned in the response body.
194
- properties:
195
- job_id:
196
- type: optional<string>
197
- docs: ID of the current streaming job.
198
- source:
199
- openapi: streaming-asyncapi.yml
200
- inline: true
201
- StreamWarningMessage:
202
- docs: Warning message
203
- properties:
204
- warning:
205
- type: optional<string>
206
- docs: Warning message text.
207
- code:
208
- type: optional<string>
209
- docs: Unique identifier for the error.
210
- payload_id:
211
- type: optional<string>
212
- docs: >
213
- If a payload ID was passed in the request, the same payload ID will be
214
- sent back in the response body.
215
- job_details:
216
- type: optional<StreamWarningMessageJobDetails>
217
- docs: >
218
- If the job_details flag was set in the request, details about the
219
- current streaming job will be returned in the response body.
220
- source:
221
- openapi: streaming-asyncapi.yml
222
- inline: true
223
- SubscribeEvent:
224
- discriminated: false
225
- union:
226
- - type: StreamModelPredictions
227
- docs: Model predictions
228
- - type: StreamErrorMessage
229
- docs: Error message
230
- - type: StreamWarningMessage
231
- docs: Warning message
232
- source:
233
- openapi: streaming-asyncapi.yml
234
- StreamFace:
235
- docs: >
236
- Configuration for the facial expression emotion model.
237
-
238
-
239
- Note: Using the `reset_stream` parameter does not have any effect on face
240
- identification. A single face identifier cache is maintained over a full
241
- session whether `reset_stream` is used or not.
242
- properties:
243
- facs:
244
- type: optional<map<string, unknown>>
245
- docs: >-
246
- Configuration for FACS predictions. If missing or null, no FACS
247
- predictions will be generated.
248
- descriptions:
249
- type: optional<map<string, unknown>>
250
- docs: >-
251
- Configuration for Descriptions predictions. If missing or null, no
252
- Descriptions predictions will be generated.
253
- identify_faces:
254
- type: optional<boolean>
255
- docs: >
256
- Whether to return identifiers for faces across frames. If true, unique
257
- identifiers will be assigned to face bounding boxes to differentiate
258
- different faces. If false, all faces will be tagged with an "unknown"
259
- ID.
260
- default: false
261
- fps_pred:
262
- type: optional<double>
263
- docs: >
264
- Number of frames per second to process. Other frames will be omitted
265
- from the response.
266
- default: 3
267
- prob_threshold:
268
- type: optional<double>
269
- docs: >
270
- Face detection probability threshold. Faces detected with a
271
- probability less than this threshold will be omitted from the
272
- response.
273
- default: 3
274
- min_face_size:
275
- type: optional<double>
276
- docs: >
277
- Minimum bounding box side length in pixels to treat as a face. Faces
278
- detected with a bounding box side length in pixels less than this
279
- threshold will be omitted from the response.
280
- default: 3
281
- source:
282
- openapi: streaming-asyncapi.yml
283
- inline: true
284
- StreamLanguage:
285
- docs: Configuration for the language emotion model.
286
- properties:
287
- sentiment:
288
- type: optional<map<string, unknown>>
289
- docs: >-
290
- Configuration for sentiment predictions. If missing or null, no
291
- sentiment predictions will be generated.
292
- toxicity:
293
- type: optional<map<string, unknown>>
294
- docs: >-
295
- Configuration for toxicity predictions. If missing or null, no
296
- toxicity predictions will be generated.
297
- granularity:
298
- type: optional<string>
299
- docs: >-
300
- The granularity at which to generate predictions. Values are `word`,
301
- `sentence`, `utterance`, or `passage`. To get a single prediction for
302
- the entire text of your streaming payload use `passage`. Default value
303
- is `word`.
304
- source:
305
- openapi: streaming-asyncapi.yml
306
- inline: true
307
- Config:
308
- docs: >
309
- Configuration used to specify which models should be used and with what
310
- settings.
311
- properties:
312
- burst:
313
- type: optional<map<string, unknown>>
314
- docs: |
315
- Configuration for the vocal burst emotion model.
316
-
317
- Note: Model configuration is not currently available in streaming.
318
-
319
- Please use the default configuration by passing an empty object `{}`.
320
- face:
321
- type: optional<StreamFace>
322
- docs: >
323
- Configuration for the facial expression emotion model.
324
-
325
-
326
- Note: Using the `reset_stream` parameter does not have any effect on
327
- face identification. A single face identifier cache is maintained over
328
- a full session whether `reset_stream` is used or not.
329
- facemesh:
330
- type: optional<map<string, unknown>>
331
- docs: |
332
- Configuration for the facemesh emotion model.
333
-
334
- Note: Model configuration is not currently available in streaming.
335
-
336
- Please use the default configuration by passing an empty object `{}`.
337
- language:
338
- type: optional<StreamLanguage>
339
- docs: Configuration for the language emotion model.
340
- prosody:
341
- type: optional<map<string, unknown>>
342
- docs: |
343
- Configuration for the speech prosody emotion model.
344
-
345
- Note: Model configuration is not currently available in streaming.
346
-
347
- Please use the default configuration by passing an empty object `{}`.
348
- source:
349
- openapi: streaming-asyncapi.yml
350
- inline: true
351
- StreamModelsEndpointPayload:
352
- docs: Models endpoint payload
353
- properties:
354
- data:
355
- type: optional<string>
356
- models:
357
- type: optional<Config>
358
- docs: >
359
- Configuration used to specify which models should be used and with
360
- what settings.
361
- stream_window_ms:
362
- type: optional<double>
363
- docs: >
364
- Length in milliseconds of streaming sliding window.
365
-
366
-
367
- Extending the length of this window will prepend media context from
368
- past payloads into the current payload.
369
-
370
-
371
- For example, if on the first payload you send 500ms of data and on the
372
- second payload you send an additional 500ms of data, a window of at
373
- least 1000ms will allow the model to process all 1000ms of stream
374
- data.
375
-
376
-
377
- A window of 600ms would append the full 500ms of the second payload to
378
- the last 100ms of the first payload.
379
-
380
-
381
- Note: This feature is currently only supported for audio data and
382
- audio models. For other file types and models this parameter will be
383
- ignored.
384
- default: 5000
385
- validation:
386
- min: 500
387
- max: 10000
388
- reset_stream:
389
- type: optional<boolean>
390
- docs: >
391
- Whether to reset the streaming sliding window before processing the
392
- current payload.
393
-
394
-
395
- If this parameter is set to `true` then past context will be deleted
396
- before processing the current payload.
397
-
398
-
399
- Use reset_stream when one audio file is done being processed and you
400
- do not want context to leak across files.
401
- default: false
402
- raw_text:
403
- type: optional<boolean>
404
- docs: >
405
- Set to `true` to enable the data parameter to be parsed as raw text
406
- rather than base64 encoded bytes.
407
-
408
- This parameter is useful if you want to send text to be processed by
409
- the language model, but it cannot be used with other file types like
410
- audio, image, or video.
411
- default: false
412
- job_details:
413
- type: optional<boolean>
414
- docs: >
415
- Set to `true` to get details about the job.
416
-
417
-
418
- This parameter can be set in the same payload as data or it can be set
419
- without data and models configuration to get the job details between
420
- payloads.
421
-
422
-
423
- This parameter is useful to get the unique job ID.
424
- default: false
425
- payload_id:
426
- type: optional<string>
427
- docs: >
428
- Pass an arbitrary string as the payload ID and get it back at the top
429
- level of the socket response.
430
-
431
-
432
- This can be useful if you have multiple requests running
433
- asynchronously and want to disambiguate responses as they are
434
- received.
435
- source:
436
- openapi: streaming-asyncapi.yml
437
2
  EmotionEmbeddingItem:
438
3
  properties:
439
4
  name: