hume 0.15.4 → 0.15.5
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/empathicVoice/types/ToolCallMessage.d.ts +3 -7
- 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/resources/voices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/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/empathicVoice/types/ToolCallMessage.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ToolCallMessage.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/empathicVoice/types/ToolCallMessage.d.mts +3 -7
- 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/resources/voices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/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/empathicVoice/types/ToolCallMessage.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ToolCallMessage.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
|
@@ -15,8 +15,8 @@ export interface ReturnPagedUserDefinedTools {
|
|
|
15
15
|
* This value corresponds to the `page_size` parameter specified in the request.
|
|
16
16
|
*/
|
|
17
17
|
pageSize: number;
|
|
18
|
-
/** The total number of pages in the collection. */
|
|
19
|
-
totalPages: number;
|
|
20
18
|
/** List of tools returned for the specified `page_number` and `page_size`. */
|
|
21
19
|
toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
20
|
+
/** The total number of pages in the collection. */
|
|
21
|
+
totalPages: number;
|
|
22
22
|
}
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import type * as Hume from "../../../index.js";
|
|
2
1
|
/**
|
|
3
|
-
* A
|
|
2
|
+
* A specific prompt version returned from the server
|
|
4
3
|
*/
|
|
5
4
|
export interface ReturnPrompt {
|
|
6
|
-
/**
|
|
7
|
-
|
|
5
|
+
/** The timestamp when the first version of this prompt was created. */
|
|
6
|
+
createdOn: number;
|
|
8
7
|
/** Identifier for a Prompt. Formatted as a UUID. */
|
|
9
8
|
id: string;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
/** The timestamp when this version of the prompt was created. */
|
|
10
|
+
modifiedOn: number;
|
|
11
|
+
/** Name applied to all versions of a particular Prompt. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Text used for this version of the Prompt. */
|
|
15
14
|
text: string;
|
|
16
|
-
/**
|
|
17
|
-
* Version number for a Prompt.
|
|
18
|
-
*
|
|
19
|
-
* Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
|
|
20
|
-
*
|
|
21
|
-
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
22
|
-
*/
|
|
15
|
+
/** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
23
16
|
version: number;
|
|
24
|
-
/**
|
|
25
|
-
versionType: Hume.empathicVoice.ReturnPromptVersionType;
|
|
26
|
-
/** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
|
|
27
|
-
createdOn: number;
|
|
28
|
-
/** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
|
|
29
|
-
modifiedOn: number;
|
|
30
|
-
/** An optional description of the Prompt version. */
|
|
17
|
+
/** Description that is appended to a specific version of a Prompt. */
|
|
31
18
|
versionDescription?: string;
|
|
19
|
+
/** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
|
|
20
|
+
versionType: string;
|
|
32
21
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* A specific timeout configuration to be returned from the server
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnTimeoutSpec {
|
|
5
|
+
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
6
|
+
durationSecs?: number;
|
|
5
7
|
/**
|
|
6
8
|
* Boolean indicating if this timeout is enabled.
|
|
7
9
|
*
|
|
8
10
|
* If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
|
|
9
11
|
*/
|
|
10
12
|
enabled: boolean;
|
|
11
|
-
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
12
|
-
durationSecs?: number;
|
|
13
13
|
}
|
|
@@ -3,10 +3,26 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A specific tool version returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnUserDefinedTool {
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
|
|
7
|
+
createdOn: number;
|
|
8
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** 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. */
|
|
11
|
+
fallbackContent?: string;
|
|
8
12
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
9
13
|
id: string;
|
|
14
|
+
/** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
|
|
15
|
+
modifiedOn: number;
|
|
16
|
+
/** Name applied to all versions of a particular Tool. */
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
20
|
+
*
|
|
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
|
+
*/
|
|
23
|
+
parameters: string;
|
|
24
|
+
/** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
|
|
25
|
+
toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
|
|
10
26
|
/**
|
|
11
27
|
* Version number for a Tool.
|
|
12
28
|
*
|
|
@@ -15,24 +31,8 @@ export interface ReturnUserDefinedTool {
|
|
|
15
31
|
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
16
32
|
*/
|
|
17
33
|
version: number;
|
|
18
|
-
/** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
19
|
-
versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
|
|
20
34
|
/** An optional description of the Tool version. */
|
|
21
35
|
versionDescription?: string;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
|
|
25
|
-
createdOn: number;
|
|
26
|
-
/** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
|
|
27
|
-
modifiedOn: number;
|
|
28
|
-
/** 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. */
|
|
29
|
-
fallbackContent?: string;
|
|
30
|
-
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
31
|
-
description?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
34
|
-
*
|
|
35
|
-
* 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.
|
|
36
|
-
*/
|
|
37
|
-
parameters: string;
|
|
36
|
+
/** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
37
|
+
versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
|
|
38
38
|
}
|
|
@@ -3,8 +3,8 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* An Octave voice available for text-to-speech
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnVoice {
|
|
6
|
+
compatibleOctaveModels?: string[];
|
|
6
7
|
id?: string;
|
|
7
8
|
name?: string;
|
|
8
9
|
provider?: Hume.empathicVoice.VoiceProvider;
|
|
9
|
-
compatibleOctaveModels?: string[];
|
|
10
10
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export declare const ReturnWebhookEventType: {
|
|
3
3
|
readonly ChatStarted: "chat_started";
|
|
4
4
|
readonly ChatEnded: "chat_ended";
|
|
5
|
+
readonly ToolCall: "tool_call";
|
|
5
6
|
};
|
|
6
7
|
export type ReturnWebhookEventType = (typeof ReturnWebhookEventType)[keyof typeof ReturnWebhookEventType];
|
|
@@ -3,12 +3,12 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* Collection of webhook URL endpoints to be returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnWebhookSpec {
|
|
6
|
-
/** The URL where event payloads will be sent. This must be a valid https URL to ensure secure communication. The server at this URL must accept POST requests with a JSON payload. */
|
|
7
|
-
url: string;
|
|
8
6
|
/**
|
|
9
7
|
* The list of events the specified URL is subscribed to.
|
|
10
8
|
*
|
|
11
9
|
* See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
|
|
12
10
|
*/
|
|
13
11
|
events: Hume.empathicVoice.ReturnWebhookEventType[];
|
|
12
|
+
/** The URL where event payloads will be sent. This must be a valid https URL to ensure secure communication. The server at this URL must accept POST requests with a JSON payload. */
|
|
13
|
+
url: string;
|
|
14
14
|
}
|
|
@@ -1,2 +1,35 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
|
-
export type SubscribeEvent =
|
|
2
|
+
export type SubscribeEvent =
|
|
3
|
+
/**
|
|
4
|
+
* When provided, the output is an assistant end message. */
|
|
5
|
+
Hume.empathicVoice.AssistantEnd
|
|
6
|
+
/**
|
|
7
|
+
* When provided, the output is an assistant message. */
|
|
8
|
+
| Hume.empathicVoice.AssistantMessage
|
|
9
|
+
/**
|
|
10
|
+
* When provided, the output is an Assistant Prosody message. */
|
|
11
|
+
| Hume.empathicVoice.AssistantProsody
|
|
12
|
+
/**
|
|
13
|
+
* The type of message sent through the socket; for an Audio Output message, this must be `audio_output`. */
|
|
14
|
+
| Hume.empathicVoice.AudioOutput
|
|
15
|
+
/**
|
|
16
|
+
* When provided, the output is a chat metadata message. */
|
|
17
|
+
| Hume.empathicVoice.ChatMetadata
|
|
18
|
+
/**
|
|
19
|
+
* When provided, the output is an error message. */
|
|
20
|
+
| Hume.empathicVoice.WebSocketError
|
|
21
|
+
/**
|
|
22
|
+
* When provided, the output is an interruption. */
|
|
23
|
+
| Hume.empathicVoice.UserInterruption
|
|
24
|
+
/**
|
|
25
|
+
* When provided, the output is a user message. */
|
|
26
|
+
| Hume.empathicVoice.UserMessage
|
|
27
|
+
/**
|
|
28
|
+
* When provided, the output is a tool call. */
|
|
29
|
+
| Hume.empathicVoice.ToolCallMessage
|
|
30
|
+
/**
|
|
31
|
+
* When provided, the output is a function call response. */
|
|
32
|
+
| Hume.empathicVoice.ToolResponseMessage
|
|
33
|
+
/**
|
|
34
|
+
* When provided, the output is a function call error. */
|
|
35
|
+
| Hume.empathicVoice.ToolErrorMessage;
|
|
@@ -7,13 +7,9 @@ export interface ToolCallMessage {
|
|
|
7
7
|
customSessionId?: string;
|
|
8
8
|
/** Name of the tool called. */
|
|
9
9
|
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* Parameters of the tool.
|
|
12
|
-
*
|
|
13
|
-
* 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.
|
|
14
|
-
*/
|
|
10
|
+
/** Parameters of the tool call. Is a stringified JSON schema. */
|
|
15
11
|
parameters: string;
|
|
16
|
-
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/
|
|
12
|
+
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type). */
|
|
17
13
|
responseRequired: boolean;
|
|
18
14
|
/**
|
|
19
15
|
* The unique identifier for a specific tool call instance.
|
|
@@ -28,5 +24,5 @@ export interface ToolCallMessage {
|
|
|
28
24
|
*
|
|
29
25
|
* This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
|
|
30
26
|
*/
|
|
31
|
-
type
|
|
27
|
+
type?: "tool_call";
|
|
32
28
|
}
|
|
@@ -26,5 +26,5 @@ export declare class StreamInput {
|
|
|
26
26
|
protected readonly _options: StreamInput.Options;
|
|
27
27
|
constructor(_options?: StreamInput.Options);
|
|
28
28
|
connect(args?: StreamInput.ConnectArgs): Promise<StreamInputSocket>;
|
|
29
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
29
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
|
|
30
30
|
}
|
|
@@ -112,8 +112,13 @@ class StreamInput {
|
|
|
112
112
|
}
|
|
113
113
|
_getCustomAuthorizationHeaders() {
|
|
114
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
var _a;
|
|
116
|
+
const apiKeyValue = core.Supplier.get(this._options.apiKey);
|
|
117
|
+
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
118
|
+
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
119
|
+
// extracts values from the headers and adds them to query parameters.
|
|
120
|
+
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
121
|
+
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
117
122
|
});
|
|
118
123
|
}
|
|
119
124
|
}
|
|
@@ -57,5 +57,5 @@ export declare class Voices {
|
|
|
57
57
|
*/
|
|
58
58
|
delete(request: Hume.tts.VoicesDeleteRequest, requestOptions?: Voices.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
59
|
private __delete;
|
|
60
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
60
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | null | undefined>>;
|
|
61
61
|
}
|
|
@@ -320,8 +320,13 @@ class Voices {
|
|
|
320
320
|
}
|
|
321
321
|
_getCustomAuthorizationHeaders() {
|
|
322
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
var _a;
|
|
324
|
+
const apiKeyValue = core.Supplier.get(this._options.apiKey);
|
|
325
|
+
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
326
|
+
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
327
|
+
// extracts values from the headers and adds them to query parameters.
|
|
328
|
+
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
329
|
+
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
325
330
|
});
|
|
326
331
|
}
|
|
327
332
|
}
|
|
@@ -4,7 +4,7 @@ export interface PostedTts {
|
|
|
4
4
|
context?: Hume.tts.PostedContext;
|
|
5
5
|
/** Specifies the output audio file format. */
|
|
6
6
|
format?: Hume.tts.Format;
|
|
7
|
-
/** The set of timestamp types to include in the response. */
|
|
7
|
+
/** The set of timestamp types to include in the response. Only supported for Octave 2 requests. */
|
|
8
8
|
includeTimestampTypes?: Hume.tts.TimestampType[];
|
|
9
9
|
/**
|
|
10
10
|
* Number of audio generations to produce from the input utterances.
|
|
@@ -3,6 +3,7 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* An Octave voice available for text-to-speech
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnVoice {
|
|
6
|
+
compatibleOctaveModels?: string[];
|
|
6
7
|
/** ID of the voice in the `Voice Library`. */
|
|
7
8
|
id?: string;
|
|
8
9
|
/** Name of the voice in the `Voice Library`. */
|
|
@@ -13,5 +14,4 @@ export interface ReturnVoice {
|
|
|
13
14
|
* Voices created through this endpoint will always have the provider set to `CUSTOM_VOICE`, indicating a custom voice stored in your account.
|
|
14
15
|
*/
|
|
15
16
|
provider?: Hume.tts.VoiceProvider;
|
|
16
|
-
compatibleOctaveModels?: string[];
|
|
17
17
|
}
|
|
@@ -8,7 +8,7 @@ export interface Snippet {
|
|
|
8
8
|
id: string;
|
|
9
9
|
/** The text for this **Snippet**. */
|
|
10
10
|
text: string;
|
|
11
|
-
/** A list of word or phoneme level timestamps for the generated audio. */
|
|
11
|
+
/** A list of word or phoneme level timestamps for the generated audio. Timestamps are only returned for Octave 2 requests. */
|
|
12
12
|
timestamps: Hume.tts.Timestamp[];
|
|
13
13
|
/** The transcribed text of the generated audio. It is only present if `instant_mode` is set to `false`. */
|
|
14
14
|
transcribedText?: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
export interface Timestamp {
|
|
3
|
+
/** The word or phoneme text that the timestamp corresponds to. */
|
|
3
4
|
text: string;
|
|
5
|
+
/** The start and end timestamps for the word or phoneme in milliseconds. */
|
|
4
6
|
time: Hume.tts.MillisecondInterval;
|
|
5
7
|
type: Hume.tts.TimestampType;
|
|
6
8
|
}
|
|
@@ -65,9 +65,10 @@ const DEFAULT_OPTIONS = {
|
|
|
65
65
|
debug: false,
|
|
66
66
|
};
|
|
67
67
|
function addApiKeyFromHeader({ headers, queryParameters, }) {
|
|
68
|
-
|
|
68
|
+
var _a;
|
|
69
|
+
const apiKeyValue = (_a = Object.entries(headers !== null && headers !== void 0 ? headers : {}).find(([k]) => k.toLowerCase() === "x-hume-api-key")) === null || _a === void 0 ? void 0 : _a[1];
|
|
69
70
|
if (apiKeyValue && !(queryParameters === null || queryParameters === void 0 ? void 0 : queryParameters["api_key"])) {
|
|
70
|
-
return Object.assign(Object.assign({}, queryParameters), {
|
|
71
|
+
return Object.assign(Object.assign({}, queryParameters), { api_key: apiKeyValue });
|
|
71
72
|
}
|
|
72
73
|
return queryParameters;
|
|
73
74
|
}
|
|
@@ -14,18 +14,18 @@ import { VoiceRef } from "../../../../types/VoiceRef.js";
|
|
|
14
14
|
export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
|
|
15
15
|
export declare namespace PostedConfig {
|
|
16
16
|
interface Raw {
|
|
17
|
-
evi_version: string;
|
|
18
|
-
name: string;
|
|
19
|
-
version_description?: string | null;
|
|
20
|
-
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
21
|
-
voice?: VoiceRef.Raw | null;
|
|
22
|
-
language_model?: PostedLanguageModel.Raw | null;
|
|
23
|
-
ellm_model?: PostedEllmModel.Raw | null;
|
|
24
|
-
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
25
17
|
builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
|
|
18
|
+
ellm_model?: PostedEllmModel.Raw | null;
|
|
26
19
|
event_messages?: PostedEventMessageSpecs.Raw | null;
|
|
20
|
+
evi_version: string;
|
|
21
|
+
language_model?: PostedLanguageModel.Raw | null;
|
|
22
|
+
name: string;
|
|
27
23
|
nudges?: PostedNudgeSpec.Raw | null;
|
|
24
|
+
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
28
25
|
timeouts?: PostedTimeoutSpecs.Raw | null;
|
|
26
|
+
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
27
|
+
version_description?: string | null;
|
|
28
|
+
voice?: VoiceRef.Raw | null;
|
|
29
29
|
webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -47,17 +47,17 @@ const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefi
|
|
|
47
47
|
const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
|
|
48
48
|
const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
|
|
49
49
|
exports.PostedConfig = core.serialization.object({
|
|
50
|
-
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
51
|
-
name: core.serialization.string(),
|
|
52
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
53
|
-
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
54
|
-
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
55
|
-
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
56
|
-
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
57
|
-
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
58
50
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_js_1.PostedBuiltinTool.optional()).optional()),
|
|
51
|
+
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
59
52
|
eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
|
|
53
|
+
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
54
|
+
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
55
|
+
name: core.serialization.string(),
|
|
60
56
|
nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
|
|
57
|
+
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
61
58
|
timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
|
|
59
|
+
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
60
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
61
|
+
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
62
62
|
webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
|
|
63
63
|
});
|
|
@@ -14,17 +14,17 @@ import { VoiceRef } from "../../../../types/VoiceRef.js";
|
|
|
14
14
|
export declare const PostedConfigVersion: core.serialization.Schema<serializers.empathicVoice.PostedConfigVersion.Raw, Hume.empathicVoice.PostedConfigVersion>;
|
|
15
15
|
export declare namespace PostedConfigVersion {
|
|
16
16
|
interface Raw {
|
|
17
|
-
evi_version: string;
|
|
18
|
-
version_description?: string | null;
|
|
19
|
-
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
20
|
-
voice?: VoiceRef.Raw | null;
|
|
21
|
-
language_model?: PostedLanguageModel.Raw | null;
|
|
22
|
-
ellm_model?: PostedEllmModel.Raw | null;
|
|
23
|
-
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
24
17
|
builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
|
|
18
|
+
ellm_model?: PostedEllmModel.Raw | null;
|
|
25
19
|
event_messages?: PostedEventMessageSpecs.Raw | null;
|
|
26
|
-
|
|
20
|
+
evi_version: string;
|
|
21
|
+
language_model?: PostedLanguageModel.Raw | null;
|
|
27
22
|
nudges?: PostedNudgeSpec.Raw | null;
|
|
23
|
+
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
24
|
+
timeouts?: PostedTimeoutSpecs.Raw | null;
|
|
25
|
+
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
26
|
+
version_description?: string | null;
|
|
27
|
+
voice?: VoiceRef.Raw | null;
|
|
28
28
|
webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -47,16 +47,16 @@ const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefi
|
|
|
47
47
|
const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
|
|
48
48
|
const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
|
|
49
49
|
exports.PostedConfigVersion = core.serialization.object({
|
|
50
|
-
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
51
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
52
|
-
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
53
|
-
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
54
|
-
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
55
|
-
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
56
|
-
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
57
50
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_js_1.PostedBuiltinTool.optional()).optional()),
|
|
51
|
+
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
58
52
|
eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
|
|
59
|
-
|
|
53
|
+
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
54
|
+
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
60
55
|
nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
|
|
56
|
+
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
57
|
+
timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
|
|
58
|
+
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
59
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
60
|
+
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
61
61
|
webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
|
|
62
62
|
});
|
|
@@ -38,6 +38,6 @@ exports.PostedPrompt = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../../../../core/index.js"));
|
|
39
39
|
exports.PostedPrompt = core.serialization.object({
|
|
40
40
|
name: core.serialization.string(),
|
|
41
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
42
41
|
text: core.serialization.string(),
|
|
42
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
43
43
|
});
|
|
@@ -4,7 +4,7 @@ import type * as serializers from "../../../../../../index.js";
|
|
|
4
4
|
export declare const PostedPromptVersion: core.serialization.Schema<serializers.empathicVoice.PostedPromptVersion.Raw, Hume.empathicVoice.PostedPromptVersion>;
|
|
5
5
|
export declare namespace PostedPromptVersion {
|
|
6
6
|
interface Raw {
|
|
7
|
-
version_description?: string | null;
|
|
8
7
|
text: string;
|
|
8
|
+
version_description?: string | null;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -37,6 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.PostedPromptVersion = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../../../core/index.js"));
|
|
39
39
|
exports.PostedPromptVersion = core.serialization.object({
|
|
40
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
41
40
|
text: core.serialization.string(),
|
|
41
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
42
42
|
});
|
|
@@ -4,10 +4,10 @@ import type * as serializers from "../../../../../../index.js";
|
|
|
4
4
|
export declare const PostedUserDefinedTool: core.serialization.Schema<serializers.empathicVoice.PostedUserDefinedTool.Raw, Hume.empathicVoice.PostedUserDefinedTool>;
|
|
5
5
|
export declare namespace PostedUserDefinedTool {
|
|
6
6
|
interface Raw {
|
|
7
|
-
name: string;
|
|
8
|
-
version_description?: string | null;
|
|
9
7
|
description?: string | null;
|
|
10
|
-
parameters: string;
|
|
11
8
|
fallback_content?: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
parameters: string;
|
|
11
|
+
version_description?: string | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -37,9 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.PostedUserDefinedTool = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../../../core/index.js"));
|
|
39
39
|
exports.PostedUserDefinedTool = core.serialization.object({
|
|
40
|
-
name: core.serialization.string(),
|
|
41
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
42
40
|
description: core.serialization.string().optional(),
|
|
43
|
-
parameters: core.serialization.string(),
|
|
44
41
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
parameters: core.serialization.string(),
|
|
44
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
45
45
|
});
|
|
@@ -4,9 +4,9 @@ import type * as serializers from "../../../../../../index.js";
|
|
|
4
4
|
export declare const PostedUserDefinedToolVersion: core.serialization.Schema<serializers.empathicVoice.PostedUserDefinedToolVersion.Raw, Hume.empathicVoice.PostedUserDefinedToolVersion>;
|
|
5
5
|
export declare namespace PostedUserDefinedToolVersion {
|
|
6
6
|
interface Raw {
|
|
7
|
-
version_description?: string | null;
|
|
8
7
|
description?: string | null;
|
|
9
|
-
parameters: string;
|
|
10
8
|
fallback_content?: string | null;
|
|
9
|
+
parameters: string;
|
|
10
|
+
version_description?: string | null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -37,8 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.PostedUserDefinedToolVersion = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../../../core/index.js"));
|
|
39
39
|
exports.PostedUserDefinedToolVersion = core.serialization.object({
|
|
40
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
41
40
|
description: core.serialization.string().optional(),
|
|
42
|
-
parameters: core.serialization.string(),
|
|
43
41
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
42
|
+
parameters: core.serialization.string(),
|
|
43
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
44
44
|
});
|
|
@@ -4,8 +4,8 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
export declare const ErrorResponse: core.serialization.ObjectSchema<serializers.empathicVoice.ErrorResponse.Raw, Hume.empathicVoice.ErrorResponse>;
|
|
5
5
|
export declare namespace ErrorResponse {
|
|
6
6
|
interface Raw {
|
|
7
|
+
code?: string | null;
|
|
7
8
|
error?: string | null;
|
|
8
9
|
message?: string | null;
|
|
9
|
-
code?: string | null;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.ErrorResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
exports.ErrorResponse = core.serialization.object({
|
|
40
|
+
code: core.serialization.string().optional(),
|
|
40
41
|
error: core.serialization.string().optional(),
|
|
41
42
|
message: core.serialization.string().optional(),
|
|
42
|
-
code: core.serialization.string().optional(),
|
|
43
43
|
});
|
|
@@ -5,7 +5,7 @@ import { PostedBuiltinToolName } from "./PostedBuiltinToolName.js";
|
|
|
5
5
|
export declare const PostedBuiltinTool: core.serialization.ObjectSchema<serializers.empathicVoice.PostedBuiltinTool.Raw, Hume.empathicVoice.PostedBuiltinTool>;
|
|
6
6
|
export declare namespace PostedBuiltinTool {
|
|
7
7
|
interface Raw {
|
|
8
|
-
name: PostedBuiltinToolName.Raw;
|
|
9
8
|
fallback_content?: string | null;
|
|
9
|
+
name: PostedBuiltinToolName.Raw;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -38,6 +38,6 @@ exports.PostedBuiltinTool = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const PostedBuiltinToolName_js_1 = require("./PostedBuiltinToolName.js");
|
|
40
40
|
exports.PostedBuiltinTool = core.serialization.object({
|
|
41
|
-
name: PostedBuiltinToolName_js_1.PostedBuiltinToolName,
|
|
42
41
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
42
|
+
name: PostedBuiltinToolName_js_1.PostedBuiltinToolName,
|
|
43
43
|
});
|
|
@@ -38,6 +38,6 @@ exports.PostedConfigPromptSpec = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
exports.PostedConfigPromptSpec = core.serialization.object({
|
|
40
40
|
id: core.serialization.string().optional(),
|
|
41
|
-
version: core.serialization.number().optional(),
|
|
42
41
|
text: core.serialization.string().optional(),
|
|
42
|
+
version: core.serialization.number().optional(),
|
|
43
43
|
});
|