hume 0.9.10 → 0.9.12

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