hume 0.15.4 → 0.15.6
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.
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +6 -6
- package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/empathicVoice/client/Client.js +8 -8
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +92 -92
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +18 -18
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -16
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +9 -4
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +6 -6
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +24 -1
- package/dist/cjs/api/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +31 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +11 -11
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +10 -10
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +16 -16
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +6 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +6 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +8 -8
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +27 -27
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +20 -41
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +12 -23
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +20 -20
- package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +34 -1
- package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +7 -2
- package/dist/cjs/api/resources/tts/types/ErrorResponse.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/Snippet.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/Timestamp.d.ts +2 -0
- package/dist/cjs/core/websocket/ws.js +3 -2
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ErrorResponse.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChat.js +4 -4
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEvent.js +5 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroup.js +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -4
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +4 -4
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +5 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +12 -12
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.js +12 -12
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +4 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +4 -5
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +8 -8
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +1 -1
- package/dist/cjs/serialization/resources/tts/types/ErrorResponse.d.ts +1 -1
- package/dist/cjs/serialization/resources/tts/types/ErrorResponse.js +1 -1
- package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +1 -1
- package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +6 -6
- package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/empathicVoice/client/Client.mjs +8 -8
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +92 -92
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +18 -18
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +16 -16
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +9 -4
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +6 -6
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +24 -1
- package/dist/esm/api/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +31 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +11 -11
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +10 -10
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +16 -16
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +6 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +6 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +8 -8
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +27 -27
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +20 -41
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +12 -23
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +20 -20
- package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +34 -1
- package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +7 -2
- package/dist/esm/api/resources/tts/types/ErrorResponse.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedTts.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/Snippet.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/Timestamp.d.mts +2 -0
- package/dist/esm/core/websocket/ws.mjs +3 -2
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +8 -8
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.mjs +8 -8
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +8 -8
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.mjs +8 -8
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +3 -3
- package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.mjs +3 -3
- package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +2 -2
- package/dist/esm/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.mjs +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ErrorResponse.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedBuiltinTool.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedTimeoutSpec.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookEventType.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/PostedWebhookSpec.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnBuiltinTool.mjs +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChat.mjs +4 -4
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.mjs +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEvent.mjs +5 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.d.mts +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroup.mjs +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.mjs +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +4 -4
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.mjs +4 -4
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.mjs +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +5 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.mjs +5 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.d.mts +12 -12
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.mjs +12 -12
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.mjs +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedChats.mjs +2 -2
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedConfigs.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedPrompts.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +4 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +4 -5
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +8 -8
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.mjs +8 -8
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookEventType.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnWebhookSpec.mjs +1 -1
- package/dist/esm/serialization/resources/tts/types/ErrorResponse.d.mts +1 -1
- package/dist/esm/serialization/resources/tts/types/ErrorResponse.mjs +1 -1
- package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +1 -1
- package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +740 -740
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare namespace HumeClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class HumeClient {
|
|
12
12
|
protected readonly _options: HumeClient.Options;
|
|
13
|
-
protected _empathicVoice: EmpathicVoice | undefined;
|
|
14
13
|
protected _tts: Tts | undefined;
|
|
14
|
+
protected _empathicVoice: EmpathicVoice | undefined;
|
|
15
15
|
protected _expressionMeasurement: ExpressionMeasurement | undefined;
|
|
16
16
|
constructor(_options?: HumeClient.Options);
|
|
17
|
-
get empathicVoice(): EmpathicVoice;
|
|
18
17
|
get tts(): Tts;
|
|
18
|
+
get empathicVoice(): EmpathicVoice;
|
|
19
19
|
get expressionMeasurement(): ExpressionMeasurement;
|
|
20
20
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,20 +45,20 @@ class HumeClient {
|
|
|
45
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
46
|
"X-Fern-Language": "JavaScript",
|
|
47
47
|
"X-Fern-SDK-Name": "hume",
|
|
48
|
-
"X-Fern-SDK-Version": "0.15.
|
|
49
|
-
"User-Agent": "hume/0.15.
|
|
48
|
+
"X-Fern-SDK-Version": "0.15.6",
|
|
49
|
+
"User-Agent": "hume/0.15.6",
|
|
50
50
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
51
51
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
52
52
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
53
53
|
}
|
|
54
|
-
get empathicVoice() {
|
|
55
|
-
var _a;
|
|
56
|
-
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoice(this._options)));
|
|
57
|
-
}
|
|
58
54
|
get tts() {
|
|
59
55
|
var _a;
|
|
60
56
|
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.Tts(this._options)));
|
|
61
57
|
}
|
|
58
|
+
get empathicVoice() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoice(this._options)));
|
|
61
|
+
}
|
|
62
62
|
get expressionMeasurement() {
|
|
63
63
|
var _a;
|
|
64
64
|
return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurement(this._options)));
|
|
@@ -13,18 +13,18 @@ export declare namespace EmpathicVoice {
|
|
|
13
13
|
export declare class EmpathicVoice {
|
|
14
14
|
protected readonly _options: EmpathicVoice.Options;
|
|
15
15
|
protected _controlPlane: ControlPlane | undefined;
|
|
16
|
-
protected _tools: Tools | undefined;
|
|
17
|
-
protected _prompts: Prompts | undefined;
|
|
18
|
-
protected _configs: Configs | undefined;
|
|
19
|
-
protected _chats: Chats | undefined;
|
|
20
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
21
|
protected _chat: Chat | undefined;
|
|
22
22
|
constructor(_options?: EmpathicVoice.Options);
|
|
23
23
|
get controlPlane(): ControlPlane;
|
|
24
|
-
get tools(): Tools;
|
|
25
|
-
get prompts(): Prompts;
|
|
26
|
-
get configs(): Configs;
|
|
27
|
-
get chats(): Chats;
|
|
28
24
|
get chatGroups(): ChatGroups;
|
|
25
|
+
get chats(): Chats;
|
|
26
|
+
get configs(): Configs;
|
|
27
|
+
get prompts(): Prompts;
|
|
28
|
+
get tools(): Tools;
|
|
29
29
|
get chat(): Chat;
|
|
30
30
|
}
|
|
@@ -17,25 +17,25 @@ class EmpathicVoice {
|
|
|
17
17
|
var _a;
|
|
18
18
|
return ((_a = this._controlPlane) !== null && _a !== void 0 ? _a : (this._controlPlane = new Client_js_5.ControlPlane(this._options)));
|
|
19
19
|
}
|
|
20
|
-
get
|
|
20
|
+
get chatGroups() {
|
|
21
21
|
var _a;
|
|
22
|
-
return ((_a = this.
|
|
22
|
+
return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_js_2.ChatGroups(this._options)));
|
|
23
23
|
}
|
|
24
|
-
get
|
|
24
|
+
get chats() {
|
|
25
25
|
var _a;
|
|
26
|
-
return ((_a = this.
|
|
26
|
+
return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_js_3.Chats(this._options)));
|
|
27
27
|
}
|
|
28
28
|
get configs() {
|
|
29
29
|
var _a;
|
|
30
30
|
return ((_a = this._configs) !== null && _a !== void 0 ? _a : (this._configs = new Client_js_4.Configs(this._options)));
|
|
31
31
|
}
|
|
32
|
-
get
|
|
32
|
+
get prompts() {
|
|
33
33
|
var _a;
|
|
34
|
-
return ((_a = this.
|
|
34
|
+
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_js_6.Prompts(this._options)));
|
|
35
35
|
}
|
|
36
|
-
get
|
|
36
|
+
get tools() {
|
|
37
37
|
var _a;
|
|
38
|
-
return ((_a = this.
|
|
38
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_7.Tools(this._options)));
|
|
39
39
|
}
|
|
40
40
|
get chat() {
|
|
41
41
|
var _a;
|
|
@@ -107,7 +107,7 @@ class Chat {
|
|
|
107
107
|
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
108
108
|
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
109
109
|
// extracts values from the headers and adds them to query parameters.
|
|
110
|
-
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.
|
|
110
|
+
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
111
111
|
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -46,39 +46,39 @@ export declare class ChatGroups {
|
|
|
46
46
|
getChatGroup(id: string, request?: Hume.empathicVoice.ChatGroupsGetChatGroupRequest, requestOptions?: ChatGroups.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedChats>;
|
|
47
47
|
private __getChatGroup;
|
|
48
48
|
/**
|
|
49
|
-
* Fetches a paginated list of **Chat**
|
|
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
50
|
*
|
|
51
51
|
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
52
|
-
* @param {Hume.empathicVoice.
|
|
52
|
+
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
53
53
|
* @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.empathicVoice.chatGroups.
|
|
58
|
+
* await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", {
|
|
59
59
|
* pageNumber: 0,
|
|
60
|
-
* pageSize:
|
|
60
|
+
* pageSize: 10,
|
|
61
61
|
* ascendingOrder: true
|
|
62
62
|
* })
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroups.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
|
|
65
|
+
private __getAudio;
|
|
65
66
|
/**
|
|
66
|
-
* Fetches a paginated list of
|
|
67
|
+
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
67
68
|
*
|
|
68
69
|
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
69
|
-
* @param {Hume.empathicVoice.
|
|
70
|
+
* @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
|
|
70
71
|
* @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
72
|
*
|
|
72
73
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
73
74
|
*
|
|
74
75
|
* @example
|
|
75
|
-
* await client.empathicVoice.chatGroups.
|
|
76
|
+
* await client.empathicVoice.chatGroups.listChatGroupEvents("697056f0-6c7e-487d-9bd8-9c19df79f05f", {
|
|
76
77
|
* pageNumber: 0,
|
|
77
|
-
* pageSize:
|
|
78
|
+
* pageSize: 3,
|
|
78
79
|
* ascendingOrder: true
|
|
79
80
|
* })
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
-
private __getAudio;
|
|
82
|
+
listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatEvent, Hume.empathicVoice.ReturnChatGroupPagedEvents>>;
|
|
83
83
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
84
84
|
}
|
|
@@ -253,6 +253,98 @@ class ChatGroups {
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* 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).
|
|
258
|
+
*
|
|
259
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
260
|
+
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
261
|
+
* @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
|
+
*
|
|
263
|
+
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", {
|
|
267
|
+
* pageNumber: 0,
|
|
268
|
+
* pageSize: 10,
|
|
269
|
+
* ascendingOrder: true
|
|
270
|
+
* })
|
|
271
|
+
*/
|
|
272
|
+
getAudio(id, request = {}, requestOptions) {
|
|
273
|
+
return core.HttpResponsePromise.fromPromise(this.__getAudio(id, request, requestOptions));
|
|
274
|
+
}
|
|
275
|
+
__getAudio(id_1) {
|
|
276
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
277
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
278
|
+
const { pageNumber, pageSize, ascendingOrder } = request;
|
|
279
|
+
const _queryParams = {};
|
|
280
|
+
if (pageNumber != null) {
|
|
281
|
+
_queryParams.page_number = pageNumber.toString();
|
|
282
|
+
}
|
|
283
|
+
if (pageSize != null) {
|
|
284
|
+
_queryParams.page_size = pageSize.toString();
|
|
285
|
+
}
|
|
286
|
+
if (ascendingOrder != null) {
|
|
287
|
+
_queryParams.ascending_order = ascendingOrder.toString();
|
|
288
|
+
}
|
|
289
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
290
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
291
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/chat_groups/${core.url.encodePathParam(id)}/audio`),
|
|
292
|
+
method: "GET",
|
|
293
|
+
headers: _headers,
|
|
294
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
295
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
296
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
297
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
298
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
299
|
+
logging: this._options.logging,
|
|
300
|
+
});
|
|
301
|
+
if (_response.ok) {
|
|
302
|
+
return {
|
|
303
|
+
data: serializers.empathicVoice.ReturnChatGroupPagedAudioReconstructions.parseOrThrow(_response.body, {
|
|
304
|
+
unrecognizedObjectKeys: "passthrough",
|
|
305
|
+
allowUnrecognizedUnionMembers: true,
|
|
306
|
+
allowUnrecognizedEnumValues: true,
|
|
307
|
+
skipValidation: true,
|
|
308
|
+
breadcrumbsPrefix: ["response"],
|
|
309
|
+
}),
|
|
310
|
+
rawResponse: _response.rawResponse,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
if (_response.error.reason === "status-code") {
|
|
314
|
+
switch (_response.error.statusCode) {
|
|
315
|
+
case 400:
|
|
316
|
+
throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
317
|
+
unrecognizedObjectKeys: "passthrough",
|
|
318
|
+
allowUnrecognizedUnionMembers: true,
|
|
319
|
+
allowUnrecognizedEnumValues: true,
|
|
320
|
+
skipValidation: true,
|
|
321
|
+
breadcrumbsPrefix: ["response"],
|
|
322
|
+
}), _response.rawResponse);
|
|
323
|
+
default:
|
|
324
|
+
throw new errors.HumeError({
|
|
325
|
+
statusCode: _response.error.statusCode,
|
|
326
|
+
body: _response.error.body,
|
|
327
|
+
rawResponse: _response.rawResponse,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
switch (_response.error.reason) {
|
|
332
|
+
case "non-json":
|
|
333
|
+
throw new errors.HumeError({
|
|
334
|
+
statusCode: _response.error.statusCode,
|
|
335
|
+
body: _response.error.rawBody,
|
|
336
|
+
rawResponse: _response.rawResponse,
|
|
337
|
+
});
|
|
338
|
+
case "timeout":
|
|
339
|
+
throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/chat_groups/{id}/audio.");
|
|
340
|
+
case "unknown":
|
|
341
|
+
throw new errors.HumeError({
|
|
342
|
+
message: _response.error.errorMessage,
|
|
343
|
+
rawResponse: _response.rawResponse,
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
256
348
|
/**
|
|
257
349
|
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
258
350
|
*
|
|
@@ -357,98 +449,6 @@ class ChatGroups {
|
|
|
357
449
|
});
|
|
358
450
|
});
|
|
359
451
|
}
|
|
360
|
-
/**
|
|
361
|
-
* 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).
|
|
362
|
-
*
|
|
363
|
-
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
364
|
-
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
365
|
-
* @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
366
|
-
*
|
|
367
|
-
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", {
|
|
371
|
-
* pageNumber: 0,
|
|
372
|
-
* pageSize: 10,
|
|
373
|
-
* ascendingOrder: true
|
|
374
|
-
* })
|
|
375
|
-
*/
|
|
376
|
-
getAudio(id, request = {}, requestOptions) {
|
|
377
|
-
return core.HttpResponsePromise.fromPromise(this.__getAudio(id, request, requestOptions));
|
|
378
|
-
}
|
|
379
|
-
__getAudio(id_1) {
|
|
380
|
-
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
381
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
382
|
-
const { pageNumber, pageSize, ascendingOrder } = request;
|
|
383
|
-
const _queryParams = {};
|
|
384
|
-
if (pageNumber != null) {
|
|
385
|
-
_queryParams.page_number = pageNumber.toString();
|
|
386
|
-
}
|
|
387
|
-
if (pageSize != null) {
|
|
388
|
-
_queryParams.page_size = pageSize.toString();
|
|
389
|
-
}
|
|
390
|
-
if (ascendingOrder != null) {
|
|
391
|
-
_queryParams.ascending_order = ascendingOrder.toString();
|
|
392
|
-
}
|
|
393
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
394
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
395
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/chat_groups/${core.url.encodePathParam(id)}/audio`),
|
|
396
|
-
method: "GET",
|
|
397
|
-
headers: _headers,
|
|
398
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
399
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
400
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
401
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
402
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
403
|
-
logging: this._options.logging,
|
|
404
|
-
});
|
|
405
|
-
if (_response.ok) {
|
|
406
|
-
return {
|
|
407
|
-
data: serializers.empathicVoice.ReturnChatGroupPagedAudioReconstructions.parseOrThrow(_response.body, {
|
|
408
|
-
unrecognizedObjectKeys: "passthrough",
|
|
409
|
-
allowUnrecognizedUnionMembers: true,
|
|
410
|
-
allowUnrecognizedEnumValues: true,
|
|
411
|
-
skipValidation: true,
|
|
412
|
-
breadcrumbsPrefix: ["response"],
|
|
413
|
-
}),
|
|
414
|
-
rawResponse: _response.rawResponse,
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
if (_response.error.reason === "status-code") {
|
|
418
|
-
switch (_response.error.statusCode) {
|
|
419
|
-
case 400:
|
|
420
|
-
throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
421
|
-
unrecognizedObjectKeys: "passthrough",
|
|
422
|
-
allowUnrecognizedUnionMembers: true,
|
|
423
|
-
allowUnrecognizedEnumValues: true,
|
|
424
|
-
skipValidation: true,
|
|
425
|
-
breadcrumbsPrefix: ["response"],
|
|
426
|
-
}), _response.rawResponse);
|
|
427
|
-
default:
|
|
428
|
-
throw new errors.HumeError({
|
|
429
|
-
statusCode: _response.error.statusCode,
|
|
430
|
-
body: _response.error.body,
|
|
431
|
-
rawResponse: _response.rawResponse,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
switch (_response.error.reason) {
|
|
436
|
-
case "non-json":
|
|
437
|
-
throw new errors.HumeError({
|
|
438
|
-
statusCode: _response.error.statusCode,
|
|
439
|
-
body: _response.error.rawBody,
|
|
440
|
-
rawResponse: _response.rawResponse,
|
|
441
|
-
});
|
|
442
|
-
case "timeout":
|
|
443
|
-
throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/chat_groups/{id}/audio.");
|
|
444
|
-
case "unknown":
|
|
445
|
-
throw new errors.HumeError({
|
|
446
|
-
message: _response.error.errorMessage,
|
|
447
|
-
rawResponse: _response.rawResponse,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
452
|
_getCustomAuthorizationHeaders() {
|
|
453
453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
454
454
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts
CHANGED
|
@@ -34,35 +34,35 @@ import type * as Hume from "../../../../../../index.js";
|
|
|
34
34
|
* }
|
|
35
35
|
*/
|
|
36
36
|
export interface PostedConfig {
|
|
37
|
+
/** List of built-in tools associated with this Config. */
|
|
38
|
+
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
39
|
+
/**
|
|
40
|
+
* The eLLM setup associated with this Config.
|
|
41
|
+
*
|
|
42
|
+
* Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
|
|
43
|
+
*/
|
|
44
|
+
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
45
|
+
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
37
46
|
/** EVI version to use. Only versions `3` and `4-mini` are supported. */
|
|
38
47
|
eviVersion: string;
|
|
39
|
-
/** Name applied to all versions of a particular Config. */
|
|
40
|
-
name: string;
|
|
41
|
-
/** An optional description of the Config version. */
|
|
42
|
-
versionDescription?: string;
|
|
43
|
-
prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
|
|
44
|
-
/** A voice specification associated with this Config. */
|
|
45
|
-
voice?: Hume.empathicVoice.VoiceRef;
|
|
46
48
|
/**
|
|
47
49
|
* The supplemental language model associated with this Config.
|
|
48
50
|
*
|
|
49
51
|
* This model is used to generate longer, more detailed responses from EVI. Choosing an appropriate supplemental language model for your use case is crucial for generating fast, high-quality responses from EVI.
|
|
50
52
|
*/
|
|
51
53
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
* Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
|
|
56
|
-
*/
|
|
57
|
-
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
58
|
-
/** List of user-defined tools associated with this Config. */
|
|
59
|
-
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
60
|
-
/** List of built-in tools associated with this Config. */
|
|
61
|
-
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
62
|
-
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
54
|
+
/** Name applied to all versions of a particular Config. */
|
|
55
|
+
name: string;
|
|
63
56
|
/** Configures nudges, brief audio prompts that can guide conversations when users pause or need encouragement to continue speaking. Nudges help create more natural, flowing interactions by providing gentle conversational cues. */
|
|
64
57
|
nudges?: Hume.empathicVoice.PostedNudgeSpec;
|
|
58
|
+
prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
|
|
65
59
|
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
|
60
|
+
/** List of user-defined tools associated with this Config. */
|
|
61
|
+
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
62
|
+
/** An optional description of the Config version. */
|
|
63
|
+
versionDescription?: string;
|
|
64
|
+
/** A voice specification associated with this Config. */
|
|
65
|
+
voice?: Hume.empathicVoice.VoiceRef;
|
|
66
66
|
/** Webhook config specifications for each subscriber. */
|
|
67
67
|
webhooks?: (Hume.empathicVoice.PostedWebhookSpec | undefined)[];
|
|
68
68
|
}
|
|
@@ -37,32 +37,32 @@ import type * as Hume from "../../../../../../index.js";
|
|
|
37
37
|
* }
|
|
38
38
|
*/
|
|
39
39
|
export interface PostedConfigVersion {
|
|
40
|
+
/** List of built-in tools associated with this Config version. */
|
|
41
|
+
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
42
|
+
/**
|
|
43
|
+
* The eLLM setup associated with this Config version.
|
|
44
|
+
*
|
|
45
|
+
* Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
|
|
46
|
+
*/
|
|
47
|
+
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
48
|
+
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
40
49
|
/** The version of the EVI used with this config. */
|
|
41
50
|
eviVersion: string;
|
|
42
|
-
/** An optional description of the Config version. */
|
|
43
|
-
versionDescription?: string;
|
|
44
|
-
prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
|
|
45
|
-
/** A voice specification associated with this Config version. */
|
|
46
|
-
voice?: Hume.empathicVoice.VoiceRef;
|
|
47
51
|
/**
|
|
48
52
|
* The supplemental language model associated with this Config version.
|
|
49
53
|
*
|
|
50
54
|
* This model is used to generate longer, more detailed responses from EVI. Choosing an appropriate supplemental language model for your use case is crucial for generating fast, high-quality responses from EVI.
|
|
51
55
|
*/
|
|
52
56
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
|
|
57
|
-
*/
|
|
58
|
-
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
57
|
+
nudges?: Hume.empathicVoice.PostedNudgeSpec;
|
|
58
|
+
prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
|
|
59
|
+
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
|
59
60
|
/** List of user-defined tools associated with this Config version. */
|
|
60
61
|
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
61
|
-
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
nudges?: Hume.empathicVoice.PostedNudgeSpec;
|
|
62
|
+
/** An optional description of the Config version. */
|
|
63
|
+
versionDescription?: string;
|
|
64
|
+
/** A voice specification associated with this Config version. */
|
|
65
|
+
voice?: Hume.empathicVoice.VoiceRef;
|
|
66
66
|
/** Webhook config specifications for each subscriber. */
|
|
67
67
|
webhooks?: (Hume.empathicVoice.PostedWebhookSpec | undefined)[];
|
|
68
68
|
}
|
|
@@ -8,7 +8,7 @@ export declare namespace ControlPlane {
|
|
|
8
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
9
|
}
|
|
10
10
|
interface ConnectArgs {
|
|
11
|
-
|
|
11
|
+
chat_id: string;
|
|
12
12
|
accessToken?: string | undefined;
|
|
13
13
|
/** Arbitrary headers to send with the websocket connect request. */
|
|
14
14
|
headers?: Record<string, string>;
|
|
@@ -38,5 +38,5 @@ export declare class ControlPlane {
|
|
|
38
38
|
send(chatId: string, request: Hume.empathicVoice.ControlPlanePublishEvent, requestOptions?: ControlPlane.RequestOptions): core.HttpResponsePromise<void>;
|
|
39
39
|
private __send;
|
|
40
40
|
connect(args: ControlPlane.ConnectArgs): Promise<ControlPlaneSocket>;
|
|
41
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
41
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
|
|
42
42
|
}
|
|
@@ -134,14 +134,14 @@ class ControlPlane {
|
|
|
134
134
|
connect(args) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
var _a, _b;
|
|
137
|
-
const {
|
|
137
|
+
const { chat_id, accessToken, headers, debug, reconnectAttempts } = args;
|
|
138
138
|
const _queryParams = {};
|
|
139
139
|
if (accessToken != null) {
|
|
140
140
|
_queryParams.access_token = accessToken;
|
|
141
141
|
}
|
|
142
142
|
const _headers = (0, headers_js_1.mergeHeaders)((0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), headers);
|
|
143
143
|
const socket = new core.ReconnectingWebSocket({
|
|
144
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, `/chat/${core.url.encodePathParam(
|
|
144
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, `/chat/${core.url.encodePathParam(chat_id)}/connect`),
|
|
145
145
|
protocols: [],
|
|
146
146
|
queryParameters: _queryParams,
|
|
147
147
|
headers: _headers,
|
|
@@ -152,8 +152,13 @@ class ControlPlane {
|
|
|
152
152
|
}
|
|
153
153
|
_getCustomAuthorizationHeaders() {
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
var _a;
|
|
156
|
+
const apiKeyValue = core.Supplier.get(this._options.apiKey);
|
|
157
|
+
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
158
|
+
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
159
|
+
// extracts values from the headers and adds them to query parameters.
|
|
160
|
+
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
161
|
+
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
164
|
}
|
package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
export interface PostedPrompt {
|
|
9
9
|
/** Name applied to all versions of a particular Prompt. */
|
|
10
10
|
name: string;
|
|
11
|
-
/** An optional description of the Prompt version. */
|
|
12
|
-
versionDescription?: string;
|
|
13
11
|
/**
|
|
14
12
|
* Instructions used to shape EVI's behavior, responses, and style.
|
|
15
13
|
*
|
|
@@ -18,4 +16,6 @@ export interface PostedPrompt {
|
|
|
18
16
|
* For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
|
|
19
17
|
*/
|
|
20
18
|
text: string;
|
|
19
|
+
/** An optional description of the Prompt version. */
|
|
20
|
+
versionDescription?: string;
|
|
21
21
|
}
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface PostedPromptVersion {
|
|
9
|
-
/** An optional description of the Prompt version. */
|
|
10
|
-
versionDescription?: string;
|
|
11
9
|
/**
|
|
12
10
|
* Instructions used to shape EVI's behavior, responses, and style for this version of the Prompt.
|
|
13
11
|
*
|
|
@@ -16,4 +14,6 @@ export interface PostedPromptVersion {
|
|
|
16
14
|
* For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
|
|
17
15
|
*/
|
|
18
16
|
text: string;
|
|
17
|
+
/** An optional description of the Prompt version. */
|
|
18
|
+
versionDescription?: string;
|
|
19
19
|
}
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface PostedUserDefinedTool {
|
|
12
|
-
/** Name applied to all versions of a particular Tool. */
|
|
13
|
-
name: string;
|
|
14
|
-
/** An optional description of the Tool version. */
|
|
15
|
-
versionDescription?: string;
|
|
16
12
|
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
17
13
|
description?: string;
|
|
14
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
|
|
15
|
+
fallbackContent?: string;
|
|
16
|
+
/** Name applied to all versions of a particular Tool. */
|
|
17
|
+
name: string;
|
|
18
18
|
/**
|
|
19
19
|
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
20
20
|
*
|
|
21
21
|
* These parameters define the inputs needed for the Tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the Tool receives data in the expected format.
|
|
22
22
|
*/
|
|
23
23
|
parameters: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/** An optional description of the Tool version. */
|
|
25
|
+
versionDescription?: string;
|
|
26
26
|
}
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface PostedUserDefinedToolVersion {
|
|
11
|
-
/** An optional description of the Tool version. */
|
|
12
|
-
versionDescription?: string;
|
|
13
11
|
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
14
12
|
description?: string;
|
|
13
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
|
|
14
|
+
fallbackContent?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
17
17
|
*
|
|
18
18
|
* These parameters define the inputs needed for the Tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the Tool receives data in the expected format.
|
|
19
19
|
*/
|
|
20
20
|
parameters: string;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/** An optional description of the Tool version. */
|
|
22
|
+
versionDescription?: string;
|
|
23
23
|
}
|
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
|
-
export type ControlPlanePublishEvent =
|
|
2
|
+
export type ControlPlanePublishEvent =
|
|
3
|
+
/**
|
|
4
|
+
* Settings for this chat session. */
|
|
5
|
+
Hume.empathicVoice.SessionSettings
|
|
6
|
+
/**
|
|
7
|
+
* User text to insert into the conversation. Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
|
|
8
|
+
*
|
|
9
|
+
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone. */
|
|
10
|
+
| Hume.empathicVoice.UserInput
|
|
11
|
+
/**
|
|
12
|
+
* When provided, the input is spoken by EVI. */
|
|
13
|
+
| Hume.empathicVoice.AssistantInput
|
|
14
|
+
/**
|
|
15
|
+
* When provided, the output is a function call response. */
|
|
16
|
+
| Hume.empathicVoice.ToolResponseMessage
|
|
17
|
+
/**
|
|
18
|
+
* When provided, the output is a function call error. */
|
|
19
|
+
| Hume.empathicVoice.ToolErrorMessage
|
|
20
|
+
/**
|
|
21
|
+
* Pause responses from EVI. Chat history is still saved and sent after resuming. */
|
|
22
|
+
| Hume.empathicVoice.PauseAssistantMessage
|
|
23
|
+
/**
|
|
24
|
+
* Resume responses from EVI. Chat history sent while paused will now be sent. */
|
|
25
|
+
| Hume.empathicVoice.ResumeAssistantMessage;
|