hume 0.15.11 → 0.15.13
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/BaseClient.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.d.ts +7 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +16 -5
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +11 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +58 -10
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +58 -10
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -2
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +8 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +5 -11
- package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +9 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +9 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +7 -3
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +17 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +13 -4
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventToolCall.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +2 -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 +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -1
- package/dist/cjs/core/schemas/builders/object/object.js +20 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +7 -1
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +16 -5
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -3
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +11 -3
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +58 -10
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +58 -10
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +3 -2
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.mts +8 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +5 -11
- package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +9 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +9 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +7 -3
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +17 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +13 -4
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventToolCall.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +2 -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 +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -1
- package/dist/esm/core/schemas/builders/object/object.mjs +20 -2
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +630 -46
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* A specific event message configuration to be returned from the server
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnEventMessageSpec {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Boolean indicating if this event message is enabled.
|
|
7
|
+
*
|
|
8
|
+
* If set to `true`, a message will be sent when the circumstances for the specific event are met.
|
|
9
|
+
*/
|
|
6
10
|
enabled: boolean;
|
|
7
|
-
/**
|
|
11
|
+
/** Text to use as the event message when the corresponding event occurs. If no text is specified, EVI will generate an appropriate message based on its current context and the system prompt. */
|
|
8
12
|
text?: string;
|
|
9
13
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Collection of
|
|
3
|
+
* Collection of event messages returned by the server.
|
|
4
|
+
*
|
|
5
|
+
* Event messages are sent by the server when specific events occur during a chat session. These messages are used to configure behaviors for EVI, such as controlling how EVI starts a new conversation.
|
|
4
6
|
*/
|
|
5
7
|
export interface ReturnEventMessageSpecs {
|
|
6
8
|
onInactivityTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
|
|
@@ -5,6 +5,10 @@ import type * as Hume from "../../../index.js";
|
|
|
5
5
|
export interface ReturnLanguageModel {
|
|
6
6
|
modelProvider?: Hume.empathicVoice.ModelProviderEnum;
|
|
7
7
|
modelResource?: Hume.empathicVoice.LanguageModelType;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The model temperature, with values between 0 to 1 (inclusive).
|
|
10
|
+
*
|
|
11
|
+
* Controls the randomness of the LLM's output, with values closer to 0 yielding focused, deterministic responses and values closer to 1 producing more creative, diverse responses.
|
|
12
|
+
*/
|
|
9
13
|
temperature?: number;
|
|
10
14
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* A specific nudge configuration returned from the server
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnNudgeSpec {
|
|
5
|
-
/** EVI will nudge user after
|
|
5
|
+
/** If true, EVI will 'nudge' the user to speak after a determined interval of silence. */
|
|
6
6
|
enabled: boolean;
|
|
7
|
-
/**
|
|
7
|
+
/** The interval of inactivity (in seconds) before a nudge is triggered. */
|
|
8
8
|
intervalSecs?: number;
|
|
9
9
|
}
|
|
@@ -3,9 +3,13 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of chat_groups returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedChatGroups {
|
|
6
|
-
/** List of
|
|
6
|
+
/** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
|
|
7
7
|
chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The page number of the returned list.
|
|
10
|
+
*
|
|
11
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
12
|
+
*/
|
|
9
13
|
pageNumber: number;
|
|
10
14
|
/**
|
|
11
15
|
* The maximum number of items returned per page.
|
|
@@ -3,9 +3,13 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of chats returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedChats {
|
|
6
|
-
/** List of
|
|
6
|
+
/** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
|
|
7
7
|
chatsPage: Hume.empathicVoice.ReturnChat[];
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The page number of the returned list.
|
|
10
|
+
*
|
|
11
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
12
|
+
*/
|
|
9
13
|
pageNumber: number;
|
|
10
14
|
/**
|
|
11
15
|
* The maximum number of items returned per page.
|
|
@@ -3,9 +3,13 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of config versions returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedConfigs {
|
|
6
|
-
/** List of
|
|
6
|
+
/** List of configs returned for the specified `page_number` and `page_size`. */
|
|
7
7
|
configsPage?: Hume.empathicVoice.ReturnConfig[];
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The page number of the returned list.
|
|
10
|
+
*
|
|
11
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
12
|
+
*/
|
|
9
13
|
pageNumber?: number;
|
|
10
14
|
/**
|
|
11
15
|
* The maximum number of items returned per page.
|
|
@@ -3,7 +3,11 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of prompt versions returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedPrompts {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The page number of the returned list.
|
|
8
|
+
*
|
|
9
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
10
|
+
*/
|
|
7
11
|
pageNumber: number;
|
|
8
12
|
/**
|
|
9
13
|
* The maximum number of items returned per page.
|
|
@@ -11,7 +15,7 @@ export interface ReturnPagedPrompts {
|
|
|
11
15
|
* This value corresponds to the `page_size` parameter specified in the request.
|
|
12
16
|
*/
|
|
13
17
|
pageSize: number;
|
|
14
|
-
/** List of prompts returned for the specified
|
|
18
|
+
/** List of prompts returned for the specified `page_number` and `page_size`. */
|
|
15
19
|
promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
|
|
16
20
|
/** The total number of pages in the collection. */
|
|
17
21
|
totalPages: number;
|
|
@@ -3,7 +3,11 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of user defined tool versions returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedUserDefinedTools {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The page number of the returned list.
|
|
8
|
+
*
|
|
9
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
10
|
+
*/
|
|
7
11
|
pageNumber: number;
|
|
8
12
|
/**
|
|
9
13
|
* The maximum number of items returned per page.
|
|
@@ -11,7 +15,7 @@ export interface ReturnPagedUserDefinedTools {
|
|
|
11
15
|
* This value corresponds to the `page_size` parameter specified in the request.
|
|
12
16
|
*/
|
|
13
17
|
pageSize: number;
|
|
14
|
-
/** List of tools returned for the specified
|
|
18
|
+
/** List of tools returned for the specified `page_number` and `page_size`. */
|
|
15
19
|
toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
16
20
|
/** The total number of pages in the collection. */
|
|
17
21
|
totalPages: number;
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
* A specific prompt version returned from the server
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnPrompt {
|
|
5
|
-
/**
|
|
5
|
+
/** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
|
|
6
6
|
createdOn: number;
|
|
7
7
|
/** Identifier for a Prompt. Formatted as a UUID. */
|
|
8
8
|
id: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
|
|
10
10
|
modifiedOn: number;
|
|
11
11
|
/** Name applied to all versions of a particular Prompt. */
|
|
12
12
|
name: string;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Instructions used to shape EVI's behavior, responses, and style.
|
|
15
|
+
*
|
|
16
|
+
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles. For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
|
|
17
|
+
*/
|
|
14
18
|
text: string;
|
|
15
19
|
/** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
16
20
|
version: number;
|
|
17
|
-
/**
|
|
21
|
+
/** An optional description of the Prompt version. */
|
|
18
22
|
versionDescription?: string;
|
|
19
23
|
/** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
|
|
20
24
|
versionType: string;
|
|
@@ -2,8 +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. */
|
|
5
|
+
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
6
6
|
durationSecs?: number;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Boolean indicating if this timeout is enabled.
|
|
9
|
+
*
|
|
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.
|
|
11
|
+
*/
|
|
8
12
|
enabled: boolean;
|
|
9
13
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Collection of timeout
|
|
3
|
+
* Collection of timeout specifications returned by the server.
|
|
4
|
+
*
|
|
5
|
+
* Timeouts are sent by the server when specific time-based events occur during a chat session. These specifications set the inactivity timeout and the maximum duration an EVI WebSocket connection can stay open before it is automatically disconnected.
|
|
4
6
|
*/
|
|
5
7
|
export interface ReturnTimeoutSpecs {
|
|
6
8
|
inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
|
|
@@ -5,22 +5,33 @@ import type * as Hume from "../../../index.js";
|
|
|
5
5
|
export interface ReturnUserDefinedTool {
|
|
6
6
|
/** The timestamp when the first version of this tool was created. */
|
|
7
7
|
createdOn: number;
|
|
8
|
-
/**
|
|
8
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
9
9
|
description?: string;
|
|
10
|
-
/**
|
|
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
11
|
fallbackContent?: string;
|
|
12
12
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
13
13
|
id: string;
|
|
14
14
|
/** The timestamp when this version of the tool was created. */
|
|
15
15
|
modifiedOn: number;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Name of the built-in tool to use. Hume supports the following built-in tools:
|
|
18
|
+
*
|
|
19
|
+
* - **web_search:** enables EVI to search the web for up-to-date information when applicable.
|
|
20
|
+
* - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
|
|
21
|
+
*
|
|
22
|
+
* For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
|
|
23
|
+
*/
|
|
17
24
|
name: string;
|
|
18
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
27
|
+
*
|
|
28
|
+
* 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.
|
|
29
|
+
*/
|
|
19
30
|
parameters: string;
|
|
20
31
|
toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
|
|
21
32
|
/** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
22
33
|
version: number;
|
|
23
|
-
/**
|
|
34
|
+
/** An optional description of the Tool version. */
|
|
24
35
|
versionDescription?: string;
|
|
25
36
|
versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
|
|
26
37
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* The list of events the specified URL is subscribed to.
|
|
3
|
+
*
|
|
4
|
+
* See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
|
|
5
|
+
*/
|
|
2
6
|
export declare const ReturnWebhookEventType: {
|
|
3
7
|
readonly ChatStarted: "chat_started";
|
|
4
8
|
readonly ChatEnded: "chat_ended";
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ReturnWebhookEventType = void 0;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The list of events the specified URL is subscribed to.
|
|
7
|
+
*
|
|
8
|
+
* See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
|
|
9
|
+
*/
|
|
6
10
|
exports.ReturnWebhookEventType = {
|
|
7
11
|
ChatStarted: "chat_started",
|
|
8
12
|
ChatEnded: "chat_ended",
|
|
@@ -3,8 +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
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The list of events the specified URL is subscribed to.
|
|
8
|
+
*
|
|
9
|
+
* See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
|
|
10
|
+
*/
|
|
7
11
|
events: Hume.empathicVoice.ReturnWebhookEventType[];
|
|
8
|
-
/**
|
|
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. */
|
|
9
13
|
url: string;
|
|
10
14
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Settings for this chat session.
|
|
3
|
+
* **Settings for this chat session.** Session settings are temporary and apply only to the current Chat session.
|
|
4
|
+
*
|
|
5
|
+
* These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience. See our [Session Settings Guide](/docs/speech-to-speech-evi/configuration/session-settings) for a complete list of configurable settings.
|
|
4
6
|
*/
|
|
5
7
|
export interface SessionSettings {
|
|
6
8
|
/**
|
|
@@ -18,11 +20,11 @@ export interface SessionSettings {
|
|
|
18
20
|
*/
|
|
19
21
|
builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
|
|
22
24
|
*
|
|
23
25
|
* When included in a Session Settings message, the provided context can be used to remind the LLM of its role in every user message, prevent it from forgetting important details, or add new relevant information to the conversation.
|
|
24
26
|
*
|
|
25
|
-
* Set to `null` to
|
|
27
|
+
* Set to `null` to clear injected context.
|
|
26
28
|
*/
|
|
27
29
|
context?: Hume.empathicVoice.Context;
|
|
28
30
|
/**
|
|
@@ -64,7 +66,14 @@ export interface SessionSettings {
|
|
|
64
66
|
* For more information, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
|
|
65
67
|
*/
|
|
66
68
|
type: "session_settings";
|
|
67
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* This field allows you to assign values to dynamic variables referenced in your system prompt.
|
|
71
|
+
*
|
|
72
|
+
* Each key represents the variable name, and the corresponding value is the specific content you wish to assign to that variable within the session. While the values for variables can be strings, numbers, or booleans, the value will ultimately be converted to a string when injected into your system prompt.
|
|
73
|
+
*
|
|
74
|
+
* Using this field, you can personalize responses based on session-specific details. For more guidance, see our [guide on using dynamic variables](/docs/speech-to-speech-evi/features/dynamic-variables).
|
|
75
|
+
*/
|
|
68
76
|
variables?: Record<string, Hume.empathicVoice.SessionSettingsVariablesValue>;
|
|
77
|
+
/** Allows you to change the voice during an active chat. Updating the voice does not affect chat context or conversation history. */
|
|
69
78
|
voiceId?: string;
|
|
70
79
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
|
|
4
|
+
*
|
|
5
|
+
* Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
|
|
4
6
|
*/
|
|
5
7
|
export interface ToolCallMessage {
|
|
6
8
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
7
9
|
customSessionId?: string;
|
|
8
10
|
/** Name of the tool called. */
|
|
9
11
|
name: string;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Parameters of the tool.
|
|
14
|
+
*
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
11
17
|
parameters: string;
|
|
12
18
|
/** 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). */
|
|
13
19
|
responseRequired: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Error message from the tool call**, not exposed to the LLM or user. Upon receiving a Tool Call message and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
|
|
4
|
+
*
|
|
5
|
+
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage` if the tool fails. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
|
|
4
6
|
*/
|
|
5
7
|
export interface ToolErrorMessage {
|
|
6
8
|
/** Error code. Identifies the type of error encountered. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Return value of the tool call.** Contains the output generated by the tool to pass back to EVI. Upon receiving a Tool Call message and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
|
|
4
|
+
*
|
|
5
|
+
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage`. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
|
|
4
6
|
*/
|
|
5
7
|
export interface ToolResponseMessage {
|
|
6
8
|
/** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* User text to insert into the conversation
|
|
2
|
+
* **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.
|
|
3
3
|
*
|
|
4
4
|
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Indicates the user has interrupted the assistant's response.** EVI detects the interruption in real-time and sends this message to signal the interruption event.
|
|
3
|
+
*
|
|
4
|
+
* This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input. Contains a Unix timestamp of when the user interruption was detected. For more details, see our [Interruptibility Guide](/docs/speech-to-speech-evi/features/interruptibility)
|
|
3
5
|
*/
|
|
4
6
|
export interface UserInterruption {
|
|
5
7
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Transcript of the user's message.** Contains the message role and content, along with a `from_text` field indicating if this message was inserted into the conversation as text from a `UserInput` message.
|
|
4
|
+
*
|
|
5
|
+
* Includes an `interim` field indicating whether the transcript is provisional (words may be repeated or refined in subsequent `UserMessage` responses as additional audio is processed) or final and complete. Interim transcripts are only sent when the `verbose_transcription` query parameter is set to true in the initial handshake.
|
|
4
6
|
*/
|
|
5
7
|
export interface UserMessage {
|
|
6
8
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -5,7 +5,7 @@ export interface VoiceId {
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the source provider associated with the chosen voice.
|
|
7
7
|
*
|
|
8
|
-
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/
|
|
8
|
+
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/tts/voice-library), containing a variety of preset, shared voices.
|
|
9
9
|
* - **`CUSTOM_VOICE`**: Select from voices you've personally generated and saved in your account.
|
|
10
10
|
*
|
|
11
11
|
* If no provider is explicitly set, the default provider is `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you must explicitly set the provider to `HUME_AI`.
|
|
@@ -5,7 +5,7 @@ export interface VoiceName {
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the source provider associated with the chosen voice.
|
|
7
7
|
*
|
|
8
|
-
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/
|
|
8
|
+
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/tts/voice-library), containing a variety of preset, shared voices.
|
|
9
9
|
* - **`CUSTOM_VOICE`**: Select from voices you've personally generated and saved in your account.
|
|
10
10
|
*
|
|
11
11
|
* If no provider is explicitly set, the default provider is `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you must explicitly set the provider to `HUME_AI`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Indicates a disruption in the WebSocket connection**, such as an unexpected disconnection, protocol error, or data transmission issue.
|
|
3
|
+
*
|
|
4
|
+
* Contains an error code identifying the type of error encountered, a detailed description of the error, and a short, human-readable identifier and description (slug) for the error.
|
|
3
5
|
*/
|
|
4
6
|
export interface WebSocketError {
|
|
5
7
|
/** Error code. Identifies the type of error encountered. */
|
|
@@ -12,4 +12,6 @@ export interface WebhookEventChatEnded extends Hume.empathicVoice.WebhookEventBa
|
|
|
12
12
|
endTime: number;
|
|
13
13
|
/** Always `chat_ended`. */
|
|
14
14
|
eventName?: "chat_ended";
|
|
15
|
+
/** Twilio metadata associated with the chat. This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. Fields may include `call_sid`, `account_sid`, `from_number`, `to_number`, `caller_name`, `caller_number`, `from_city`, `from_state`, `from_zip`, `from_country`, `to_city`, `to_state`, `to_zip`, and `to_country`.If a specific metadata is not available, this field will be set to an empty string. */
|
|
16
|
+
twilioMetadata?: Record<string, string | undefined>;
|
|
15
17
|
}
|
|
@@ -10,4 +10,6 @@ export interface WebhookEventChatStarted extends Hume.empathicVoice.WebhookEvent
|
|
|
10
10
|
eventName?: "chat_started";
|
|
11
11
|
/** Unix timestamp (in milliseconds) indicating when the session started. */
|
|
12
12
|
startTime: number;
|
|
13
|
+
/** Twilio metadata associated with the chat. This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. Fields may include `call_sid`, `account_sid`, `from_number`, `to_number`, `caller_name`, `caller_number`, `from_city`, `from_state`, `from_zip`, `from_country`, `to_city`, `to_state`, `to_zip`, and `to_country`. If a specific metadata is not available, this field will be set to an empty string. */
|
|
14
|
+
twilioMetadata?: Record<string, string | undefined>;
|
|
13
15
|
}
|
|
@@ -10,4 +10,6 @@ export interface WebhookEventToolCall extends Hume.empathicVoice.WebhookEventBas
|
|
|
10
10
|
timestamp: number;
|
|
11
11
|
/** The tool call. */
|
|
12
12
|
toolCallMessage: Hume.empathicVoice.ToolCallMessage;
|
|
13
|
+
/** Twilio metadata associated with the chat. This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. Fields may include `call_sid`, `account_sid`, `from_number`, `to_number`, `caller_name`, `caller_number`, `from_city`, `from_state`, `from_zip`, `from_country`, `to_city`, `to_state`, `to_zip`, and `to_country`.If a specific metadata is not available, this field will be set to an empty string. */
|
|
14
|
+
twilioMetadata?: Record<string, string | undefined>;
|
|
13
15
|
}
|
|
@@ -5,6 +5,8 @@ export declare namespace StreamClient {
|
|
|
5
5
|
type Options = BaseClientOptions;
|
|
6
6
|
interface ConnectArgs {
|
|
7
7
|
"X-Hume-Api-Key": string;
|
|
8
|
+
/** Additional query parameters to send with the websocket connect request. */
|
|
9
|
+
queryParams?: Record<string, unknown>;
|
|
8
10
|
/** Arbitrary headers to send with the websocket connect request. */
|
|
9
11
|
headers?: Record<string, string>;
|
|
10
12
|
/** Enable debug mode on the websocket. Defaults to false. */
|
|
@@ -56,12 +56,12 @@ class StreamClient {
|
|
|
56
56
|
connect(args) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
const { headers, debug, reconnectAttempts } = args;
|
|
59
|
+
const { queryParams, headers, debug, reconnectAttempts } = args;
|
|
60
60
|
const _headers = (0, headers_js_1.mergeHeaders)((0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hume-Api-Key": args["X-Hume-Api-Key"] }), headers);
|
|
61
61
|
const socket = new core.ReconnectingWebSocket({
|
|
62
62
|
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).stream, "/models"),
|
|
63
63
|
protocols: [],
|
|
64
|
-
queryParameters: {},
|
|
64
|
+
queryParameters: (queryParams !== null && queryParams !== void 0 ? queryParams : {}),
|
|
65
65
|
headers: _headers,
|
|
66
66
|
options: { debug: debug !== null && debug !== void 0 ? debug : false, maxRetries: reconnectAttempts !== null && reconnectAttempts !== void 0 ? reconnectAttempts : 30 },
|
|
67
67
|
});
|
|
@@ -11,7 +11,7 @@ export declare class VoicesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<VoicesClient.Options>;
|
|
12
12
|
constructor(options?: VoicesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Lists voices you have saved in your account, or voices from the [Voice Library](https://app.hume.ai/
|
|
14
|
+
* Lists voices you have saved in your account, or voices from the [Voice Library](https://app.hume.ai/tts/voice-library).
|
|
15
15
|
*
|
|
16
16
|
* @param {Hume.tts.VoicesListRequest} request
|
|
17
17
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -57,7 +57,7 @@ class VoicesClient {
|
|
|
57
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Lists voices you have saved in your account, or voices from the [Voice Library](https://app.hume.ai/
|
|
60
|
+
* Lists voices you have saved in your account, or voices from the [Voice Library](https://app.hume.ai/tts/voice-library).
|
|
61
61
|
*
|
|
62
62
|
* @param {Hume.tts.VoicesListRequest} request
|
|
63
63
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,7 +9,7 @@ export interface VoicesListRequest {
|
|
|
9
9
|
/**
|
|
10
10
|
* Specify the voice provider to filter voices returned by the endpoint:
|
|
11
11
|
*
|
|
12
|
-
* - **`HUME_AI`**: Lists preset, shared voices from Hume's [Voice Library](https://app.hume.ai/
|
|
12
|
+
* - **`HUME_AI`**: Lists preset, shared voices from Hume's [Voice Library](https://app.hume.ai/tts/voice-library).
|
|
13
13
|
* - **`CUSTOM_VOICE`**: Lists custom voices created and saved to your account.
|
|
14
14
|
*/
|
|
15
15
|
provider: Hume.tts.VoiceProvider;
|
|
@@ -5,7 +5,7 @@ export interface PostedUtteranceVoiceWithId {
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the source provider associated with the chosen voice.
|
|
7
7
|
*
|
|
8
|
-
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/
|
|
8
|
+
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/tts/voice-library), containing a variety of preset, shared voices.
|
|
9
9
|
* - **`CUSTOM_VOICE`**: Select from voices you've personally generated and saved in your account.
|
|
10
10
|
*
|
|
11
11
|
* If no provider is explicitly set, the default provider is `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you must explicitly set the provider to `HUME_AI`.
|
|
@@ -5,7 +5,7 @@ export interface PostedUtteranceVoiceWithName {
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the source provider associated with the chosen voice.
|
|
7
7
|
*
|
|
8
|
-
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/
|
|
8
|
+
* - **`HUME_AI`**: Select voices from Hume's [Voice Library](https://app.hume.ai/tts/voice-library), containing a variety of preset, shared voices.
|
|
9
9
|
* - **`CUSTOM_VOICE`**: Select from voices you've personally generated and saved in your account.
|
|
10
10
|
*
|
|
11
11
|
* If no provider is explicitly set, the default provider is `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you must explicitly set the provider to `HUME_AI`.
|
|
@@ -3,7 +3,11 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list Octave voices available for text-to-speech
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnPagedVoices {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The page number of the returned list.
|
|
8
|
+
*
|
|
9
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
10
|
+
*/
|
|
7
11
|
pageNumber: number;
|
|
8
12
|
/**
|
|
9
13
|
* The maximum number of items returned per page.
|
|
@@ -197,6 +197,8 @@ function getObjectUtils(schema) {
|
|
|
197
197
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, index_js_2.getSchemaUtils)(baseSchema)), (0, index_js_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
198
198
|
},
|
|
199
199
|
passthrough: () => {
|
|
200
|
+
const knownRawKeys = new Set(schema._getRawProperties());
|
|
201
|
+
const knownParsedKeys = new Set(schema._getParsedProperties());
|
|
200
202
|
const baseSchema = {
|
|
201
203
|
_getParsedProperties: () => schema._getParsedProperties(),
|
|
202
204
|
_getRawProperties: () => schema._getRawProperties(),
|
|
@@ -205,9 +207,17 @@ function getObjectUtils(schema) {
|
|
|
205
207
|
if (!transformed.ok) {
|
|
206
208
|
return transformed;
|
|
207
209
|
}
|
|
210
|
+
const extraProperties = {};
|
|
211
|
+
if (typeof raw === "object" && raw != null) {
|
|
212
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
213
|
+
if (!knownRawKeys.has(key)) {
|
|
214
|
+
extraProperties[key] = value;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
208
218
|
return {
|
|
209
219
|
ok: true,
|
|
210
|
-
value: Object.assign(Object.assign({},
|
|
220
|
+
value: Object.assign(Object.assign({}, extraProperties), transformed.value),
|
|
211
221
|
};
|
|
212
222
|
},
|
|
213
223
|
json: (parsed, opts) => {
|
|
@@ -215,9 +225,17 @@ function getObjectUtils(schema) {
|
|
|
215
225
|
if (!transformed.ok) {
|
|
216
226
|
return transformed;
|
|
217
227
|
}
|
|
228
|
+
const extraProperties = {};
|
|
229
|
+
if (typeof parsed === "object" && parsed != null) {
|
|
230
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
231
|
+
if (!knownParsedKeys.has(key)) {
|
|
232
|
+
extraProperties[key] = value;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
218
236
|
return {
|
|
219
237
|
ok: true,
|
|
220
|
-
value: Object.assign(Object.assign({},
|
|
238
|
+
value: Object.assign(Object.assign({}, extraProperties), transformed.value),
|
|
221
239
|
};
|
|
222
240
|
},
|
|
223
241
|
getType: () => Schema_js_1.SchemaType.OBJECT,
|