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
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type VoiceProvider = "HUME_AI" | "CUSTOM_VOICE";
5
+ export declare const VoiceProvider: {
6
+ readonly HumeAi: "HUME_AI";
7
+ readonly CustomVoice: "CUSTOM_VOICE";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.VoiceProvider = void 0;
7
+ exports.VoiceProvider = {
8
+ HumeAi: "HUME_AI",
9
+ CustomVoice: "CUSTOM_VOICE",
10
+ };
@@ -0,0 +1,23 @@
1
+ export * from "./PostedContextWithGenerationId";
2
+ export * from "./PostedContextWithUtterances";
3
+ export * from "./AudioEncoding";
4
+ export * from "./AudioFormatType";
5
+ export * from "./ReturnGeneration";
6
+ export * from "./HttpValidationError";
7
+ export * from "./FormatMp3";
8
+ export * from "./PostedContext";
9
+ export * from "./Format";
10
+ export * from "./PostedTts";
11
+ export * from "./ReturnTts";
12
+ export * from "./ReturnVoice";
13
+ export * from "./FormatPcm";
14
+ export * from "./PostedTtsRecord";
15
+ export * from "./Snippet";
16
+ export * from "./PostedUtterance";
17
+ export * from "./ValidationErrorLocItem";
18
+ export * from "./ValidationError";
19
+ export * from "./PostedUtteranceVoiceWithId";
20
+ export * from "./PostedUtteranceVoiceWithName";
21
+ export * from "./VoiceProvider";
22
+ export * from "./PostedUtteranceVoice";
23
+ export * from "./FormatWav";
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PostedContextWithGenerationId"), exports);
18
+ __exportStar(require("./PostedContextWithUtterances"), exports);
19
+ __exportStar(require("./AudioEncoding"), exports);
20
+ __exportStar(require("./AudioFormatType"), exports);
21
+ __exportStar(require("./ReturnGeneration"), exports);
22
+ __exportStar(require("./HttpValidationError"), exports);
23
+ __exportStar(require("./FormatMp3"), exports);
24
+ __exportStar(require("./PostedContext"), exports);
25
+ __exportStar(require("./Format"), exports);
26
+ __exportStar(require("./PostedTts"), exports);
27
+ __exportStar(require("./ReturnTts"), exports);
28
+ __exportStar(require("./ReturnVoice"), exports);
29
+ __exportStar(require("./FormatPcm"), exports);
30
+ __exportStar(require("./PostedTtsRecord"), exports);
31
+ __exportStar(require("./Snippet"), exports);
32
+ __exportStar(require("./PostedUtterance"), exports);
33
+ __exportStar(require("./ValidationErrorLocItem"), exports);
34
+ __exportStar(require("./ValidationError"), exports);
35
+ __exportStar(require("./PostedUtteranceVoiceWithId"), exports);
36
+ __exportStar(require("./PostedUtteranceVoiceWithName"), exports);
37
+ __exportStar(require("./VoiceProvider"), exports);
38
+ __exportStar(require("./PostedUtteranceVoice"), exports);
39
+ __exportStar(require("./FormatWav"), exports);
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
5
5
  import * as Hume from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ReturnPrompt } from "../../../types/ReturnPrompt";
8
- export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.createPromptVerison.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
8
+ export declare const Response: core.serialization.Schema<serializers.empathicVoice.prompts.createPromptVersion.Response.Raw, Hume.empathicVoice.ReturnPrompt | undefined>;
9
9
  export declare namespace Response {
10
10
  type Raw = ReturnPrompt.Raw | null | undefined;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  export * as createPrompt from "./createPrompt";
2
- export * as createPromptVerison from "./createPromptVerison";
2
+ export * as createPromptVersion from "./createPromptVersion";
3
3
  export * as getPromptVersion from "./getPromptVersion";
4
4
  export * as updatePromptDescription from "./updatePromptDescription";
5
5
  export * from "./requests";
@@ -26,9 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.updatePromptDescription = exports.getPromptVersion = exports.createPromptVerison = exports.createPrompt = void 0;
29
+ exports.updatePromptDescription = exports.getPromptVersion = exports.createPromptVersion = exports.createPrompt = void 0;
30
30
  exports.createPrompt = __importStar(require("./createPrompt"));
31
- exports.createPromptVerison = __importStar(require("./createPromptVerison"));
31
+ exports.createPromptVersion = __importStar(require("./createPromptVersion"));
32
32
  exports.getPromptVersion = __importStar(require("./getPromptVersion"));
33
33
  exports.updatePromptDescription = __importStar(require("./updatePromptDescription"));
34
34
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { WebhookEventChatStarted } from "./WebhookEventChatStarted";
8
+ import { WebhookEventChatEnded } from "./WebhookEventChatEnded";
9
+ export declare const WebhookEvent: core.serialization.Schema<serializers.empathicVoice.WebhookEvent.Raw, Hume.empathicVoice.WebhookEvent>;
10
+ export declare namespace WebhookEvent {
11
+ type Raw = WebhookEventChatStarted.Raw | WebhookEventChatEnded.Raw;
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEvent = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const WebhookEventChatStarted_1 = require("./WebhookEventChatStarted");
32
+ const WebhookEventChatEnded_1 = require("./WebhookEventChatEnded");
33
+ exports.WebhookEvent = core.serialization.undiscriminatedUnion([WebhookEventChatStarted_1.WebhookEventChatStarted, WebhookEventChatEnded_1.WebhookEventChatEnded]);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const WebhookEventBase: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventBase.Raw, Hume.empathicVoice.WebhookEventBase>;
8
+ export declare namespace WebhookEventBase {
9
+ interface Raw {
10
+ chat_group_id: string;
11
+ chat_id: string;
12
+ config_id?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEventBase = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.WebhookEventBase = core.serialization.object({
32
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
33
+ chatId: core.serialization.property("chat_id", core.serialization.string()),
34
+ configId: core.serialization.property("config_id", core.serialization.string().optional()),
35
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { WebhookEventChatStatus } from "./WebhookEventChatStatus";
8
+ import { WebhookEventBase } from "./WebhookEventBase";
9
+ export declare const WebhookEventChatEnded: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatEnded.Raw, Hume.empathicVoice.WebhookEventChatEnded>;
10
+ export declare namespace WebhookEventChatEnded {
11
+ interface Raw extends WebhookEventBase.Raw {
12
+ event_name?: "chat_ended" | null;
13
+ end_time: number;
14
+ duration_seconds: number;
15
+ end_reason: WebhookEventChatStatus.Raw;
16
+ caller_number?: string | null;
17
+ custom_session_id?: string | null;
18
+ }
19
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEventChatEnded = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const WebhookEventChatStatus_1 = require("./WebhookEventChatStatus");
32
+ const WebhookEventBase_1 = require("./WebhookEventBase");
33
+ exports.WebhookEventChatEnded = core.serialization
34
+ .object({
35
+ eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
36
+ endTime: core.serialization.property("end_time", core.serialization.number()),
37
+ durationSeconds: core.serialization.property("duration_seconds", core.serialization.number()),
38
+ endReason: core.serialization.property("end_reason", WebhookEventChatStatus_1.WebhookEventChatStatus),
39
+ callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
40
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
41
+ })
42
+ .extend(WebhookEventBase_1.WebhookEventBase);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const WebhookEventChatStartType: core.serialization.Schema<serializers.empathicVoice.WebhookEventChatStartType.Raw, Hume.empathicVoice.WebhookEventChatStartType>;
8
+ export declare namespace WebhookEventChatStartType {
9
+ type Raw = "new_chat_group" | "resumed_chat_group";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEventChatStartType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.WebhookEventChatStartType = core.serialization.enum_(["new_chat_group", "resumed_chat_group"]);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { WebhookEventChatStartType } from "./WebhookEventChatStartType";
8
+ import { WebhookEventBase } from "./WebhookEventBase";
9
+ export declare const WebhookEventChatStarted: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatStarted.Raw, Hume.empathicVoice.WebhookEventChatStarted>;
10
+ export declare namespace WebhookEventChatStarted {
11
+ interface Raw extends WebhookEventBase.Raw {
12
+ event_name?: "chat_started" | null;
13
+ start_time: number;
14
+ chat_start_type: WebhookEventChatStartType.Raw;
15
+ caller_number?: string | null;
16
+ custom_session_id?: string | null;
17
+ }
18
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEventChatStarted = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const WebhookEventChatStartType_1 = require("./WebhookEventChatStartType");
32
+ const WebhookEventBase_1 = require("./WebhookEventBase");
33
+ exports.WebhookEventChatStarted = core.serialization
34
+ .object({
35
+ eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_started").optional()),
36
+ startTime: core.serialization.property("start_time", core.serialization.number()),
37
+ chatStartType: core.serialization.property("chat_start_type", WebhookEventChatStartType_1.WebhookEventChatStartType),
38
+ callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
39
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
40
+ })
41
+ .extend(WebhookEventBase_1.WebhookEventBase);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const WebhookEventChatStatus: core.serialization.Schema<serializers.empathicVoice.WebhookEventChatStatus.Raw, Hume.empathicVoice.WebhookEventChatStatus>;
8
+ export declare namespace WebhookEventChatStatus {
9
+ type Raw = "ACTIVE" | "USER_ENDED" | "USER_TIMEOUT" | "INACTIVITY_TIMEOUT" | "MAX_DURATION_TIMEOUT" | "ERROR";
10
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebhookEventChatStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.WebhookEventChatStatus = core.serialization.enum_([
32
+ "ACTIVE",
33
+ "USER_ENDED",
34
+ "USER_TIMEOUT",
35
+ "INACTIVITY_TIMEOUT",
36
+ "MAX_DURATION_TIMEOUT",
37
+ "ERROR",
38
+ ]);
@@ -110,3 +110,9 @@ export * from "./FunctionCallResponseInput";
110
110
  export * from "./HttpValidationError";
111
111
  export * from "./ValidationErrorLocItem";
112
112
  export * from "./ValidationError";
113
+ export * from "./WebhookEventChatEnded";
114
+ export * from "./WebhookEventChatStartType";
115
+ export * from "./WebhookEventChatStarted";
116
+ export * from "./WebhookEventChatStatus";
117
+ export * from "./WebhookEvent";
118
+ export * from "./WebhookEventBase";
@@ -126,3 +126,9 @@ __exportStar(require("./FunctionCallResponseInput"), exports);
126
126
  __exportStar(require("./HttpValidationError"), exports);
127
127
  __exportStar(require("./ValidationErrorLocItem"), exports);
128
128
  __exportStar(require("./ValidationError"), exports);
129
+ __exportStar(require("./WebhookEventChatEnded"), exports);
130
+ __exportStar(require("./WebhookEventChatStartType"), exports);
131
+ __exportStar(require("./WebhookEventChatStarted"), exports);
132
+ __exportStar(require("./WebhookEventChatStatus"), exports);
133
+ __exportStar(require("./WebhookEvent"), exports);
134
+ __exportStar(require("./WebhookEventBase"), exports);
@@ -1,2 +1,3 @@
1
- export * as expressionMeasurement from "./expressionMeasurement";
1
+ export * as tts from "./tts";
2
2
  export * as empathicVoice from "./empathicVoice";
3
+ export * as expressionMeasurement from "./expressionMeasurement";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.empathicVoice = exports.expressionMeasurement = void 0;
27
- exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
26
+ exports.expressionMeasurement = exports.empathicVoice = exports.tts = void 0;
27
+ exports.tts = __importStar(require("./tts"));
28
28
  exports.empathicVoice = __importStar(require("./empathicVoice"));
29
+ exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./resources";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,2 @@
1
+ export * as voices from "./voices";
2
+ export * from "./voices/client/requests";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.voices = void 0;
30
+ exports.voices = __importStar(require("./voices"));
31
+ __exportStar(require("./voices/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as Hume from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const PostedVoice: core.serialization.Schema<serializers.tts.PostedVoice.Raw, Hume.tts.PostedVoice>;
8
+ export declare namespace PostedVoice {
9
+ interface Raw {
10
+ generation_id: string;
11
+ name: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PostedVoice = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.PostedVoice = core.serialization.object({
32
+ generationId: core.serialization.property("generation_id", core.serialization.string()),
33
+ name: core.serialization.string(),
34
+ });
@@ -0,0 +1 @@
1
+ export { PostedVoice } from "./PostedVoice";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostedVoice = void 0;
4
+ var PostedVoice_1 = require("./PostedVoice");
5
+ Object.defineProperty(exports, "PostedVoice", { enumerable: true, get: function () { return PostedVoice_1.PostedVoice; } });
@@ -0,0 +1 @@
1
+ export * from "./client";