hume 0.15.8 → 0.15.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/dist/cjs/BaseClient.d.ts +13 -4
  2. package/dist/cjs/BaseClient.js +59 -0
  3. package/dist/cjs/Client.d.ts +13 -13
  4. package/dist/cjs/Client.js +8 -49
  5. package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +27 -27
  6. package/dist/cjs/api/resources/empathicVoice/client/Client.js +13 -12
  7. package/dist/cjs/api/resources/empathicVoice/errors/BadRequestError.js +5 -1
  8. package/dist/cjs/api/resources/empathicVoice/errors/UnprocessableEntityError.js +5 -1
  9. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.d.ts +5 -5
  10. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +3 -3
  11. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.js +2 -2
  13. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +17 -26
  14. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +48 -136
  15. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
  18. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +2 -6
  19. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -20
  20. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +32 -95
  21. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
  22. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  23. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +34 -83
  24. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +64 -245
  25. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
  26. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +4 -16
  27. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -14
  28. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  29. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +7 -7
  30. package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +6 -19
  31. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +34 -83
  32. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +64 -245
  33. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -8
  34. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -8
  35. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  36. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
  37. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +34 -83
  38. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +64 -245
  39. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +4 -8
  40. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -8
  41. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  42. package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  43. package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -5
  44. package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  45. package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
  46. package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +6 -4
  47. package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -4
  48. package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -5
  49. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +8 -4
  50. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
  51. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +9 -3
  52. package/dist/cjs/api/resources/empathicVoice/types/Context.d.ts +9 -3
  53. package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +1 -36
  54. package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -50
  55. package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -4
  56. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -9
  57. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +0 -8
  58. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.js +0 -8
  59. package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +1 -5
  60. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +2 -6
  61. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -14
  62. package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -7
  63. package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
  64. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +1 -13
  65. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +0 -11
  66. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +0 -11
  67. package/dist/cjs/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +1 -7
  68. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -6
  69. package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -3
  70. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +1 -2
  71. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +0 -1
  72. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +0 -1
  73. package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -19
  74. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +0 -13
  75. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +0 -13
  76. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +0 -13
  77. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -30
  78. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +0 -7
  79. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.js +0 -7
  80. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +0 -14
  81. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.js +0 -14
  82. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -6
  83. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +1 -10
  84. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +0 -5
  85. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +0 -5
  86. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +6 -16
  87. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +0 -5
  88. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +0 -5
  89. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +3 -12
  90. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +0 -5
  91. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +0 -5
  92. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +6 -30
  93. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +0 -5
  94. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +0 -5
  95. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +0 -15
  96. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +0 -15
  97. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +0 -15
  98. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.js +0 -15
  99. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +2 -8
  100. package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +1 -5
  101. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +2 -6
  102. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -14
  103. package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -7
  104. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -11
  105. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +0 -5
  106. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +0 -5
  107. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -11
  108. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +0 -5
  109. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +0 -5
  110. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -6
  111. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -6
  112. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -6
  113. package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +0 -1
  114. package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.js +0 -1
  115. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -6
  116. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +1 -13
  117. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +7 -19
  118. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +0 -1
  119. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +0 -1
  120. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +0 -1
  121. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +0 -1
  122. package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +5 -3
  123. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -6
  124. package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +10 -19
  125. package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +1 -55
  126. package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -9
  127. package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -5
  128. package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -11
  129. package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +6 -2
  130. package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -3
  131. package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -17
  132. package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +11 -2
  133. package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +11 -2
  134. package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -3
  135. package/dist/cjs/api/resources/expressionMeasurement/client/Client.d.ts +9 -9
  136. package/dist/cjs/api/resources/expressionMeasurement/client/Client.js +7 -6
  137. package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +17 -18
  138. package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.js +63 -151
  139. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +7 -8
  140. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +7 -12
  141. package/dist/cjs/api/resources/tts/client/Client.d.ts +19 -20
  142. package/dist/cjs/api/resources/tts/client/Client.js +56 -138
  143. package/dist/cjs/api/resources/tts/errors/BadRequestError.js +5 -1
  144. package/dist/cjs/api/resources/tts/errors/UnprocessableEntityError.js +5 -1
  145. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +15 -14
  146. package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +10 -6
  147. package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +13 -14
  148. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +33 -87
  149. package/dist/cjs/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
  150. package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
  151. package/dist/cjs/api/resources/tts/types/OctaveVersion.d.ts +7 -3
  152. package/dist/cjs/api/resources/tts/types/OctaveVersion.js +7 -3
  153. package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +0 -6
  154. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
  155. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
  156. package/dist/cjs/api/resources/tts/types/PublishTts.d.ts +14 -4
  157. package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -9
  158. package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +3 -3
  159. package/dist/cjs/auth/HeaderAuthProvider.d.ts +26 -0
  160. package/dist/cjs/auth/HeaderAuthProvider.js +91 -0
  161. package/dist/cjs/auth/index.d.ts +1 -0
  162. package/dist/cjs/auth/index.js +5 -0
  163. package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
  164. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  165. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  166. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  167. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  168. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  169. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  170. package/dist/cjs/core/auth/BearerToken.js +16 -0
  171. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  172. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  173. package/dist/cjs/core/auth/index.d.ts +5 -0
  174. package/dist/cjs/core/auth/index.js +9 -0
  175. package/dist/cjs/core/base64.d.ts +2 -0
  176. package/dist/cjs/core/base64.js +26 -0
  177. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
  178. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  179. package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
  180. package/dist/cjs/core/fetcher/Fetcher.js +42 -24
  181. package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
  182. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
  183. package/dist/cjs/core/fetcher/makeRequest.js +0 -2
  184. package/dist/cjs/core/fetcher/requestWithRetries.js +0 -9
  185. package/dist/cjs/core/fetcher/signals.d.ts +1 -7
  186. package/dist/cjs/core/fetcher/signals.js +0 -12
  187. package/dist/cjs/core/headers.d.ts +2 -2
  188. package/dist/cjs/core/index.d.ts +2 -0
  189. package/dist/cjs/core/index.js +2 -0
  190. package/dist/cjs/core/logging/logger.js +1 -1
  191. package/dist/cjs/core/pagination/CustomPager.d.ts +67 -0
  192. package/dist/cjs/core/pagination/CustomPager.js +194 -0
  193. package/dist/cjs/core/pagination/index.d.ts +1 -0
  194. package/dist/cjs/core/pagination/index.js +4 -1
  195. package/dist/cjs/core/runtime/runtime.js +11 -10
  196. package/dist/cjs/core/schemas/Schema.d.ts +1 -0
  197. package/dist/cjs/core/schemas/Schema.js +1 -0
  198. package/dist/cjs/core/schemas/builders/object/object.js +14 -1
  199. package/dist/cjs/core/schemas/builders/primitives/index.d.ts +1 -0
  200. package/dist/cjs/core/schemas/builders/primitives/index.js +3 -1
  201. package/dist/cjs/core/schemas/builders/primitives/never.d.ts +2 -0
  202. package/dist/cjs/core/schemas/builders/primitives/never.js +14 -0
  203. package/dist/cjs/core/url/join.js +0 -1
  204. package/dist/cjs/errors/HumeError.js +5 -1
  205. package/dist/cjs/errors/HumeTimeoutError.js +5 -1
  206. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  207. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  208. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -3
  209. package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -3
  210. package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.d.ts +4 -4
  211. package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.js +4 -4
  212. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +3 -3
  213. package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +3 -3
  214. package/dist/cjs/version.d.ts +1 -1
  215. package/dist/cjs/version.js +1 -1
  216. package/dist/cjs/wrapper/SilenceFiller.d.ts +64 -10
  217. package/dist/cjs/wrapper/SilenceFiller.js +109 -26
  218. package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.ts +1 -1
  219. package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +1 -1
  220. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -1
  221. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +1 -1
  222. package/dist/cjs/wrapper/fetchAccessToken.js +3 -0
  223. package/dist/cjs/wrapper/index.d.ts +5 -0
  224. package/dist/cjs/wrapper/index.js +6 -6
  225. package/dist/esm/BaseClient.d.mts +13 -4
  226. package/dist/esm/BaseClient.mjs +24 -1
  227. package/dist/esm/Client.d.mts +13 -13
  228. package/dist/esm/Client.mjs +11 -19
  229. package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +27 -27
  230. package/dist/esm/api/resources/empathicVoice/client/Client.mjs +18 -17
  231. package/dist/esm/api/resources/empathicVoice/errors/BadRequestError.mjs +5 -1
  232. package/dist/esm/api/resources/empathicVoice/errors/UnprocessableEntityError.mjs +5 -1
  233. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +5 -5
  234. package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
  235. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.d.mts +1 -1
  236. package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.mjs +1 -1
  237. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +17 -26
  238. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +47 -135
  239. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
  240. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
  241. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
  242. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +2 -6
  243. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +13 -20
  244. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +31 -94
  245. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
  246. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
  247. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +34 -83
  248. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +63 -244
  249. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
  250. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +4 -16
  251. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +3 -14
  252. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
  253. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +7 -7
  254. package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +4 -17
  255. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +34 -83
  256. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +63 -244
  257. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -8
  258. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -8
  259. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
  260. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
  261. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +34 -83
  262. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +63 -244
  263. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +4 -8
  264. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -8
  265. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
  266. package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
  267. package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +2 -5
  268. package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +2 -2
  269. package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
  270. package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +6 -4
  271. package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +1 -4
  272. package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -5
  273. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +8 -4
  274. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
  275. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +9 -3
  276. package/dist/esm/api/resources/empathicVoice/types/Context.d.mts +9 -3
  277. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +1 -36
  278. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +1 -50
  279. package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +2 -4
  280. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -9
  281. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.d.mts +0 -8
  282. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.mjs +0 -8
  283. package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -5
  284. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +2 -6
  285. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -14
  286. package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +1 -7
  287. package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
  288. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +1 -13
  289. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.mts +0 -11
  290. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.mts +0 -11
  291. package/dist/esm/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.mts +1 -7
  292. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -6
  293. package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +1 -3
  294. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +1 -2
  295. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.mts +0 -1
  296. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.mjs +0 -1
  297. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -19
  298. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +0 -13
  299. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.mts +0 -13
  300. package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.mjs +0 -13
  301. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -30
  302. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.d.mts +0 -7
  303. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.mjs +0 -7
  304. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +0 -14
  305. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +0 -14
  306. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -6
  307. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +1 -10
  308. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.mts +0 -5
  309. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.mjs +0 -5
  310. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +6 -16
  311. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.mts +0 -5
  312. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.mjs +0 -5
  313. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +3 -12
  314. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.mts +0 -5
  315. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.mjs +0 -5
  316. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +6 -30
  317. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.mts +0 -5
  318. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.mjs +0 -5
  319. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.mts +0 -15
  320. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.mjs +0 -15
  321. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.d.mts +0 -15
  322. package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.mjs +0 -15
  323. package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +2 -8
  324. package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -5
  325. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +2 -6
  326. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -14
  327. package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +1 -7
  328. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -11
  329. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.mts +0 -5
  330. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.mjs +0 -5
  331. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -11
  332. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.mts +0 -5
  333. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.mjs +0 -5
  334. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -6
  335. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -6
  336. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -6
  337. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.d.mts +0 -1
  338. package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.mjs +0 -1
  339. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -6
  340. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +1 -13
  341. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +7 -19
  342. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.mts +0 -1
  343. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.mjs +0 -1
  344. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.mts +0 -1
  345. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.mjs +0 -1
  346. package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +5 -3
  347. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -6
  348. package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +10 -19
  349. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +1 -55
  350. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -9
  351. package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -5
  352. package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -11
  353. package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +6 -2
  354. package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +1 -3
  355. package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -17
  356. package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +11 -2
  357. package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +11 -2
  358. package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +1 -3
  359. package/dist/esm/api/resources/expressionMeasurement/client/Client.d.mts +9 -9
  360. package/dist/esm/api/resources/expressionMeasurement/client/Client.mjs +6 -5
  361. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.d.mts +17 -18
  362. package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.mjs +61 -149
  363. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +7 -8
  364. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +5 -10
  365. package/dist/esm/api/resources/tts/client/Client.d.mts +19 -20
  366. package/dist/esm/api/resources/tts/client/Client.mjs +56 -138
  367. package/dist/esm/api/resources/tts/errors/BadRequestError.mjs +5 -1
  368. package/dist/esm/api/resources/tts/errors/UnprocessableEntityError.mjs +5 -1
  369. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +15 -14
  370. package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +8 -4
  371. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +13 -14
  372. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +32 -86
  373. package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
  374. package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
  375. package/dist/esm/api/resources/tts/types/OctaveVersion.d.mts +7 -3
  376. package/dist/esm/api/resources/tts/types/OctaveVersion.mjs +7 -3
  377. package/dist/esm/api/resources/tts/types/PostedTts.d.mts +0 -6
  378. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
  379. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
  380. package/dist/esm/api/resources/tts/types/PublishTts.d.mts +14 -4
  381. package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -9
  382. package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +3 -3
  383. package/dist/esm/auth/HeaderAuthProvider.d.mts +26 -0
  384. package/dist/esm/auth/HeaderAuthProvider.mjs +54 -0
  385. package/dist/esm/auth/index.d.mts +1 -0
  386. package/dist/esm/auth/index.mjs +1 -0
  387. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  388. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  389. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  390. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  391. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  392. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  393. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  394. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  395. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  396. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  397. package/dist/esm/core/auth/index.d.mts +5 -0
  398. package/dist/esm/core/auth/index.mjs +3 -0
  399. package/dist/esm/core/base64.d.mts +2 -0
  400. package/dist/esm/core/base64.mjs +22 -0
  401. package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
  402. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  403. package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
  404. package/dist/esm/core/fetcher/Fetcher.mjs +42 -24
  405. package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
  406. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  407. package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
  408. package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
  409. package/dist/esm/core/fetcher/signals.d.mts +1 -7
  410. package/dist/esm/core/fetcher/signals.mjs +0 -12
  411. package/dist/esm/core/headers.d.mts +2 -2
  412. package/dist/esm/core/index.d.mts +2 -0
  413. package/dist/esm/core/index.mjs +2 -0
  414. package/dist/esm/core/logging/logger.mjs +1 -1
  415. package/dist/esm/core/pagination/CustomPager.d.mts +67 -0
  416. package/dist/esm/core/pagination/CustomPager.mjs +189 -0
  417. package/dist/esm/core/pagination/index.d.mts +1 -0
  418. package/dist/esm/core/pagination/index.mjs +1 -0
  419. package/dist/esm/core/runtime/runtime.mjs +11 -10
  420. package/dist/esm/core/schemas/Schema.d.mts +1 -0
  421. package/dist/esm/core/schemas/Schema.mjs +1 -0
  422. package/dist/esm/core/schemas/builders/object/object.mjs +14 -1
  423. package/dist/esm/core/schemas/builders/primitives/index.d.mts +1 -0
  424. package/dist/esm/core/schemas/builders/primitives/index.mjs +1 -0
  425. package/dist/esm/core/schemas/builders/primitives/never.d.mts +2 -0
  426. package/dist/esm/core/schemas/builders/primitives/never.mjs +11 -0
  427. package/dist/esm/core/url/join.mjs +0 -1
  428. package/dist/esm/errors/HumeError.mjs +5 -1
  429. package/dist/esm/errors/HumeTimeoutError.mjs +5 -1
  430. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  431. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  432. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +3 -3
  433. package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +3 -3
  434. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.d.mts +4 -4
  435. package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.mjs +4 -4
  436. package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +3 -3
  437. package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +3 -3
  438. package/dist/esm/version.d.mts +1 -1
  439. package/dist/esm/version.mjs +1 -1
  440. package/dist/esm/wrapper/SilenceFiller.d.mts +64 -10
  441. package/dist/esm/wrapper/SilenceFiller.mjs +109 -26
  442. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.mts +1 -1
  443. package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.mjs +1 -1
  444. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -1
  445. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +1 -1
  446. package/dist/esm/wrapper/fetchAccessToken.mjs +3 -0
  447. package/dist/esm/wrapper/index.d.mts +5 -0
  448. package/dist/esm/wrapper/index.mjs +4 -5
  449. package/package.json +5 -2
  450. package/reference.md +621 -1205
  451. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  452. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  453. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  454. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -1,10 +1,10 @@
1
- import type * as core from "./core/index.js";
1
+ import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.js";
2
+ import * as core from "./core/index.js";
2
3
  import type * as environments from "./environments.js";
3
- export interface BaseClientOptions {
4
+ export type BaseClientOptions = {
4
5
  environment?: core.Supplier<environments.HumeEnvironment | environments.HumeEnvironmentUrls>;
5
6
  /** Specify a custom URL to connect the client to. */
6
7
  baseUrl?: core.Supplier<string>;
7
- apiKey?: core.Supplier<string | undefined>;
8
8
  /** Additional headers to include in requests. */
9
9
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
10
  /** The default maximum time to wait for a response in seconds. */
@@ -16,7 +16,7 @@ export interface BaseClientOptions {
16
16
  fetcher?: core.FetchFunction;
17
17
  /** Configure logging for the client. */
18
18
  logging?: core.logging.LogConfig | core.logging.Logger;
19
- }
19
+ } & HeaderAuthProvider.AuthOptions;
20
20
  export interface BaseRequestOptions {
21
21
  /** The maximum time to wait for a response in seconds. */
22
22
  timeoutInSeconds?: number;
@@ -29,3 +29,12 @@ export interface BaseRequestOptions {
29
29
  /** Additional headers to include in the request. */
30
30
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
31
31
  }
32
+ export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
33
+ logging: core.logging.Logger;
34
+ authProvider?: core.AuthProvider;
35
+ };
36
+ export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
37
+ authProvider: core.AuthProvider;
38
+ };
39
+ export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
40
+ export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -1,3 +1,62 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
3
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.normalizeClientOptions = normalizeClientOptions;
38
+ exports.normalizeClientOptionsWithAuth = normalizeClientOptionsWithAuth;
39
+ const HeaderAuthProvider_js_1 = require("./auth/HeaderAuthProvider.js");
40
+ const headers_js_1 = require("./core/headers.js");
41
+ const core = __importStar(require("./core/index.js"));
42
+ function normalizeClientOptions(options) {
43
+ const headers = (0, headers_js_1.mergeHeaders)({
44
+ "X-Fern-Language": "JavaScript",
45
+ "X-Fern-SDK-Name": "hume",
46
+ "X-Fern-SDK-Version": "0.15.10",
47
+ "User-Agent": "hume/0.15.10",
48
+ "X-Fern-Runtime": core.RUNTIME.type,
49
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ }, options === null || options === void 0 ? void 0 : options.headers);
51
+ return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
+ }
53
+ function normalizeClientOptionsWithAuth(options) {
54
+ var _a;
55
+ const normalized = normalizeClientOptions(options);
56
+ const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
57
+ (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new HeaderAuthProvider_js_1.HeaderAuthProvider(normalizedWithNoOpAuthProvider));
58
+ return normalized;
59
+ }
60
+ function withNoOpAuthProvider(options) {
61
+ return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
62
+ }
@@ -1,20 +1,20 @@
1
- import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client.js";
2
- import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client.js";
3
- import { Tts } from "./api/resources/tts/client/Client.js";
1
+ import { EmpathicVoiceClient } from "./api/resources/empathicVoice/client/Client.js";
2
+ import { ExpressionMeasurementClient } from "./api/resources/expressionMeasurement/client/Client.js";
3
+ import { TtsClient } from "./api/resources/tts/client/Client.js";
4
4
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
5
+ import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
5
6
  export declare namespace HumeClient {
6
- interface Options extends BaseClientOptions {
7
- }
7
+ type Options = BaseClientOptions;
8
8
  interface RequestOptions extends BaseRequestOptions {
9
9
  }
10
10
  }
11
11
  export declare class HumeClient {
12
- protected readonly _options: HumeClient.Options;
13
- protected _tts: Tts | undefined;
14
- protected _empathicVoice: EmpathicVoice | undefined;
15
- protected _expressionMeasurement: ExpressionMeasurement | undefined;
16
- constructor(_options?: HumeClient.Options);
17
- get tts(): Tts;
18
- get empathicVoice(): EmpathicVoice;
19
- get expressionMeasurement(): ExpressionMeasurement;
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<HumeClient.Options>;
13
+ protected _empathicVoice: EmpathicVoiceClient | undefined;
14
+ protected _tts: TtsClient | undefined;
15
+ protected _expressionMeasurement: ExpressionMeasurementClient | undefined;
16
+ constructor(options?: HumeClient.Options);
17
+ get empathicVoice(): EmpathicVoiceClient;
18
+ get tts(): TtsClient;
19
+ get expressionMeasurement(): ExpressionMeasurementClient;
20
20
  }
@@ -1,67 +1,26 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
3
  Object.defineProperty(exports, "__esModule", { value: true });
37
4
  exports.HumeClient = void 0;
38
5
  const Client_js_1 = require("./api/resources/empathicVoice/client/Client.js");
39
6
  const Client_js_2 = require("./api/resources/expressionMeasurement/client/Client.js");
40
7
  const Client_js_3 = require("./api/resources/tts/client/Client.js");
41
- const headers_js_1 = require("./core/headers.js");
42
- const core = __importStar(require("./core/index.js"));
8
+ const BaseClient_js_1 = require("./BaseClient.js");
43
9
  class HumeClient {
44
- constructor(_options = {}) {
45
- this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
46
- "X-Fern-Language": "JavaScript",
47
- "X-Fern-SDK-Name": "hume",
48
- "X-Fern-SDK-Version": "0.15.8",
49
- "User-Agent": "hume/0.15.8",
50
- "X-Fern-Runtime": core.RUNTIME.type,
51
- "X-Fern-Runtime-Version": core.RUNTIME.version,
52
- }, _options === null || _options === void 0 ? void 0 : _options.headers) });
10
+ constructor(options = {}) {
11
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
53
12
  }
54
- get tts() {
13
+ get empathicVoice() {
55
14
  var _a;
56
- return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.Tts(this._options)));
15
+ return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoiceClient(this._options)));
57
16
  }
58
- get empathicVoice() {
17
+ get tts() {
59
18
  var _a;
60
- return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoice(this._options)));
19
+ return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.TtsClient(this._options)));
61
20
  }
62
21
  get expressionMeasurement() {
63
22
  var _a;
64
- return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurement(this._options)));
23
+ return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurementClient(this._options)));
65
24
  }
66
25
  }
67
26
  exports.HumeClient = HumeClient;
@@ -1,30 +1,30 @@
1
1
  import type { BaseClientOptions } from "../../../../BaseClient.js";
2
- import { Chat } from "../resources/chat/client/Client.js";
3
- import { ChatGroups } from "../resources/chatGroups/client/Client.js";
4
- import { Chats } from "../resources/chats/client/Client.js";
5
- import { Configs } from "../resources/configs/client/Client.js";
6
- import { ControlPlane } from "../resources/controlPlane/client/Client.js";
7
- import { Prompts } from "../resources/prompts/client/Client.js";
8
- import { Tools } from "../resources/tools/client/Client.js";
9
- export declare namespace EmpathicVoice {
10
- interface Options extends BaseClientOptions {
11
- }
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import { ChatClient } from "../resources/chat/client/Client.js";
4
+ import { ChatGroupsClient } from "../resources/chatGroups/client/Client.js";
5
+ import { ChatsClient } from "../resources/chats/client/Client.js";
6
+ import { ConfigsClient } from "../resources/configs/client/Client.js";
7
+ import { ControlPlaneClient } from "../resources/controlPlane/client/Client.js";
8
+ import { PromptsClient } from "../resources/prompts/client/Client.js";
9
+ import { ToolsClient } from "../resources/tools/client/Client.js";
10
+ export declare namespace EmpathicVoiceClient {
11
+ type Options = BaseClientOptions;
12
12
  }
13
- export declare class EmpathicVoice {
14
- protected readonly _options: EmpathicVoice.Options;
15
- protected _controlPlane: ControlPlane | undefined;
16
- protected _chatGroups: ChatGroups | undefined;
17
- protected _chats: Chats | undefined;
18
- protected _configs: Configs | undefined;
19
- protected _prompts: Prompts | undefined;
20
- protected _tools: Tools | undefined;
21
- protected _chat: Chat | undefined;
22
- constructor(_options?: EmpathicVoice.Options);
23
- get controlPlane(): ControlPlane;
24
- get chatGroups(): ChatGroups;
25
- get chats(): Chats;
26
- get configs(): Configs;
27
- get prompts(): Prompts;
28
- get tools(): Tools;
29
- get chat(): Chat;
13
+ export declare class EmpathicVoiceClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<EmpathicVoiceClient.Options>;
15
+ protected _controlPlane: ControlPlaneClient | undefined;
16
+ protected _chatGroups: ChatGroupsClient | undefined;
17
+ protected _chats: ChatsClient | undefined;
18
+ protected _configs: ConfigsClient | undefined;
19
+ protected _prompts: PromptsClient | undefined;
20
+ protected _tools: ToolsClient | undefined;
21
+ protected _chat: ChatClient | undefined;
22
+ constructor(options?: EmpathicVoiceClient.Options);
23
+ get controlPlane(): ControlPlaneClient;
24
+ get chatGroups(): ChatGroupsClient;
25
+ get chats(): ChatsClient;
26
+ get configs(): ConfigsClient;
27
+ get prompts(): PromptsClient;
28
+ get tools(): ToolsClient;
29
+ get chat(): ChatClient;
30
30
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.EmpathicVoice = void 0;
4
+ exports.EmpathicVoiceClient = void 0;
5
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
5
6
  const Client_js_1 = require("../resources/chat/client/Client.js");
6
7
  const Client_js_2 = require("../resources/chatGroups/client/Client.js");
7
8
  const Client_js_3 = require("../resources/chats/client/Client.js");
@@ -9,37 +10,37 @@ const Client_js_4 = require("../resources/configs/client/Client.js");
9
10
  const Client_js_5 = require("../resources/controlPlane/client/Client.js");
10
11
  const Client_js_6 = require("../resources/prompts/client/Client.js");
11
12
  const Client_js_7 = require("../resources/tools/client/Client.js");
12
- class EmpathicVoice {
13
- constructor(_options = {}) {
14
- this._options = _options;
13
+ class EmpathicVoiceClient {
14
+ constructor(options = {}) {
15
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
15
16
  }
16
17
  get controlPlane() {
17
18
  var _a;
18
- return ((_a = this._controlPlane) !== null && _a !== void 0 ? _a : (this._controlPlane = new Client_js_5.ControlPlane(this._options)));
19
+ return ((_a = this._controlPlane) !== null && _a !== void 0 ? _a : (this._controlPlane = new Client_js_5.ControlPlaneClient(this._options)));
19
20
  }
20
21
  get chatGroups() {
21
22
  var _a;
22
- return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_js_2.ChatGroups(this._options)));
23
+ return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_js_2.ChatGroupsClient(this._options)));
23
24
  }
24
25
  get chats() {
25
26
  var _a;
26
- return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_js_3.Chats(this._options)));
27
+ return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_js_3.ChatsClient(this._options)));
27
28
  }
28
29
  get configs() {
29
30
  var _a;
30
- return ((_a = this._configs) !== null && _a !== void 0 ? _a : (this._configs = new Client_js_4.Configs(this._options)));
31
+ return ((_a = this._configs) !== null && _a !== void 0 ? _a : (this._configs = new Client_js_4.ConfigsClient(this._options)));
31
32
  }
32
33
  get prompts() {
33
34
  var _a;
34
- return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_js_6.Prompts(this._options)));
35
+ return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_js_6.PromptsClient(this._options)));
35
36
  }
36
37
  get tools() {
37
38
  var _a;
38
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_7.Tools(this._options)));
39
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_7.ToolsClient(this._options)));
39
40
  }
40
41
  get chat() {
41
42
  var _a;
42
- return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_js_1.Chat(this._options)));
43
+ return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_js_1.ChatClient(this._options)));
43
44
  }
44
45
  }
45
- exports.EmpathicVoice = EmpathicVoice;
46
+ exports.EmpathicVoiceClient = EmpathicVoiceClient;
@@ -44,7 +44,11 @@ class BadRequestError extends errors.HumeError {
44
44
  body: body,
45
45
  rawResponse: rawResponse,
46
46
  });
47
- Object.setPrototypeOf(this, BadRequestError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
48
52
  }
49
53
  }
50
54
  exports.BadRequestError = BadRequestError;
@@ -44,7 +44,11 @@ class UnprocessableEntityError extends errors.HumeError {
44
44
  body: body,
45
45
  rawResponse: rawResponse,
46
46
  });
47
- Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
48
52
  }
49
53
  }
50
54
  exports.UnprocessableEntityError = UnprocessableEntityError;
@@ -3,7 +3,7 @@ import * as environments from "../../../../../../environments.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as Hume from "../../../../../index.js";
5
5
  import { ChatSocket } from "./Socket.js";
6
- export declare namespace Chat {
6
+ export declare namespace ChatClient {
7
7
  interface Options {
8
8
  environment?: core.Supplier<environments.HumeEnvironment | environments.HumeEnvironmentUrls>;
9
9
  /** Specify a custom URL to connect the client to. */
@@ -34,9 +34,9 @@ export declare namespace Chat {
34
34
  reconnectAttempts?: number;
35
35
  }
36
36
  }
37
- export declare class Chat {
38
- protected readonly _options: Chat.Options;
39
- constructor(_options?: Chat.Options);
40
- connect(args?: Chat.ConnectArgs): ChatSocket;
37
+ export declare class ChatClient {
38
+ protected readonly _options: ChatClient.Options;
39
+ constructor(_options?: ChatClient.Options);
40
+ connect(args?: ChatClient.ConnectArgs): ChatSocket;
41
41
  protected _getCustomAuthorizationHeaders(): Record<string, string | null | undefined>;
42
42
  }
@@ -34,13 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Chat = void 0;
37
+ exports.ChatClient = void 0;
38
38
  const environments = __importStar(require("../../../../../../environments.js"));
39
39
  const core = __importStar(require("../../../../../../core/index.js"));
40
40
  const headers_js_1 = require("../../../../../../core/headers.js");
41
41
  const serializers = __importStar(require("../../../../../../serialization/index.js"));
42
42
  const Socket_js_1 = require("./Socket.js");
43
- class Chat {
43
+ class ChatClient {
44
44
  constructor(_options = {}) {
45
45
  this._options = _options;
46
46
  }
@@ -111,4 +111,4 @@ class Chat {
111
111
  return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
112
112
  }
113
113
  }
114
- exports.Chat = Chat;
114
+ exports.ChatClient = ChatClient;
@@ -1,3 +1,3 @@
1
1
  /** THIS FILE IS MANUALLY MAINTAINED: see .fernignore */
2
2
  export { ChatSocket } from "./Socket.js";
3
- export { Chat } from "./Client.js";
3
+ export { ChatClient } from "./Client.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Chat = exports.ChatSocket = void 0;
3
+ exports.ChatClient = exports.ChatSocket = void 0;
4
4
  /** THIS FILE IS MANUALLY MAINTAINED: see .fernignore */
5
5
  var Socket_js_1 = require("./Socket.js");
6
6
  Object.defineProperty(exports, "ChatSocket", { enumerable: true, get: function () { return Socket_js_1.ChatSocket; } });
7
7
  var Client_js_1 = require("./Client.js");
8
- Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return Client_js_1.Chat; } });
8
+ Object.defineProperty(exports, "ChatClient", { enumerable: true, get: function () { return Client_js_1.ChatClient; } });
@@ -1,20 +1,18 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
2
3
  import * as core from "../../../../../../core/index.js";
3
4
  import * as Hume from "../../../../../index.js";
4
- export declare namespace ChatGroups {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace ChatGroupsClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class ChatGroups {
11
- protected readonly _options: ChatGroups.Options;
12
- constructor(_options?: ChatGroups.Options);
10
+ export declare class ChatGroupsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ChatGroupsClient.Options>;
12
+ constructor(options?: ChatGroupsClient.Options);
13
13
  /**
14
- * Fetches a paginated list of **Chat Groups**.
15
- *
16
14
  * @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
17
- * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
15
+ * @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
18
16
  *
19
17
  * @throws {@link Hume.empathicVoice.BadRequestError}
20
18
  *
@@ -26,13 +24,11 @@ export declare class ChatGroups {
26
24
  * configId: "1b60e1a0-cc59-424a-8d2c-189d354db3f3"
27
25
  * })
28
26
  */
29
- listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatGroup, Hume.empathicVoice.ReturnPagedChatGroups>>;
27
+ listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroupsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatGroup, Hume.empathicVoice.ReturnPagedChatGroups>>;
30
28
  /**
31
- * Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
32
- *
33
- * @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
29
+ * @param {string} id - Identifier for a chat. Formatted as a UUID.
34
30
  * @param {Hume.empathicVoice.ChatGroupsGetChatGroupRequest} request
35
- * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
31
+ * @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
36
32
  *
37
33
  * @throws {@link Hume.empathicVoice.BadRequestError}
38
34
  *
@@ -43,14 +39,12 @@ export declare class ChatGroups {
43
39
  * ascendingOrder: true
44
40
  * })
45
41
  */
46
- getChatGroup(id: string, request?: Hume.empathicVoice.ChatGroupsGetChatGroupRequest, requestOptions?: ChatGroups.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedChats>;
42
+ getChatGroup(id: string, request?: Hume.empathicVoice.ChatGroupsGetChatGroupRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedChats>;
47
43
  private __getChatGroup;
48
44
  /**
49
- * Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
50
- *
51
- * @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
45
+ * @param {string} id - Identifier for a chat. Formatted as a UUID.
52
46
  * @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
53
- * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
47
+ * @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
54
48
  *
55
49
  * @throws {@link Hume.empathicVoice.BadRequestError}
56
50
  *
@@ -61,14 +55,12 @@ export declare class ChatGroups {
61
55
  * ascendingOrder: true
62
56
  * })
63
57
  */
64
- getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroups.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
58
+ getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
65
59
  private __getAudio;
66
60
  /**
67
- * Fetches a paginated list of **Chat** events associated with a **Chat Group**.
68
- *
69
- * @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
61
+ * @param {string} id - Identifier for a chat. Formatted as a UUID.
70
62
  * @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
71
- * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
63
+ * @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
72
64
  *
73
65
  * @throws {@link Hume.empathicVoice.BadRequestError}
74
66
  *
@@ -79,6 +71,5 @@ export declare class ChatGroups {
79
71
  * ascendingOrder: true
80
72
  * })
81
73
  */
82
- listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatEvent, Hume.empathicVoice.ReturnChatGroupPagedEvents>>;
83
- protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
74
+ listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroupsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatEvent, Hume.empathicVoice.ReturnChatGroupPagedEvents>>;
84
75
  }