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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Indicates the conclusion of the assistant's response**, signaling that the assistant has finished speaking for the current conversational turn.
|
|
3
3
|
*/
|
|
4
4
|
export interface AssistantEnd {
|
|
5
5
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Assistant text to synthesize into spoken audio and insert into the conversation.** EVI uses this text to generate spoken audio using our proprietary expressive text-to-speech model.
|
|
3
|
+
*
|
|
4
|
+
* Our model adds appropriate emotional inflections and tones to the text based on the user's expressions and the context of the conversation. The synthesized audio is streamed back to the user as an Assistant Message.
|
|
3
5
|
*/
|
|
4
6
|
export interface AssistantInput {
|
|
5
7
|
customSessionId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Transcript of the assistant's message.** Contains the message role, content, and optionally tool call information including the tool name, parameters, response requirement status, tool call ID, and tool type.
|
|
4
4
|
*/
|
|
5
5
|
export interface AssistantMessage {
|
|
6
6
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Expression measurement predictions of the assistant's audio output.** Contains inference model results including prosody scores for 48 emotions within the detected expression of the assistant's audio sample.
|
|
4
4
|
*/
|
|
5
5
|
export interface AssistantProsody {
|
|
6
6
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Base64 encoded audio input to insert into the conversation.** The content is treated as the user's speech to EVI and must be streamed continuously. Pre-recorded audio files are not supported.
|
|
3
|
+
*
|
|
4
|
+
* For optimal transcription quality, the audio data should be transmitted in small chunks. Hume recommends streaming audio with a buffer window of `20` milliseconds (ms), or `100` milliseconds (ms) for web applications. See our [Audio Guide](/docs/speech-to-speech-evi/guides/audio) for more details on preparing and processing audio.
|
|
3
5
|
*/
|
|
4
6
|
export interface AudioInput {
|
|
5
7
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Base64 encoded audio output.** This encoded audio is transmitted to the client, where it can be decoded and played back as part of the user interaction. The returned audio format is WAV and the sample rate is 48kHz.
|
|
3
|
+
*
|
|
4
|
+
* Contains the audio data, an ID to track and reference the audio output, and an index indicating the chunk position relative to the whole audio segment. See our [Audio Guide](/docs/speech-to-speech-evi/guides/audio) for more details on preparing and processing audio.
|
|
3
5
|
*/
|
|
4
6
|
export interface AudioOutput {
|
|
5
7
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **The first message received after establishing a connection with EVI**, containing important identifiers for the current Chat session.
|
|
3
|
+
*
|
|
4
|
+
* Includes the Chat ID (which allows the Chat session to be tracked and referenced) and the Chat Group ID (used to resume a Chat when passed in the `resumed_chat_group_id` query parameter of a subsequent connection request, allowing EVI to continue the conversation from where it left off within the Chat Group).
|
|
3
5
|
*/
|
|
4
6
|
export interface ChatMetadata {
|
|
5
7
|
/**
|
|
@@ -7,11 +7,11 @@ export interface ConnectSessionSettings {
|
|
|
7
7
|
*/
|
|
8
8
|
audio?: Hume.empathicVoice.ConnectSessionSettingsAudio;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
|
|
11
11
|
*
|
|
12
12
|
* 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.
|
|
13
13
|
*
|
|
14
|
-
* Set to `null` to
|
|
14
|
+
* Set to `null` to clear injected context.
|
|
15
15
|
*/
|
|
16
16
|
context?: Hume.empathicVoice.ConnectSessionSettingsContext;
|
|
17
17
|
/**
|
|
@@ -22,6 +22,7 @@ export interface ConnectSessionSettings {
|
|
|
22
22
|
* It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/custom-language-model) with EVI to learn more.
|
|
23
23
|
*/
|
|
24
24
|
customSessionId?: string;
|
|
25
|
+
/** The maximum number of chat events to return from chat history. By default, the system returns up to 300 events (100 events per page × 3 pages). Set this parameter to a smaller value to limit the number of events returned. */
|
|
25
26
|
eventLimit?: number;
|
|
26
27
|
/**
|
|
27
28
|
* Third party API key for the supplemental language model.
|
|
@@ -39,6 +40,7 @@ export interface ConnectSessionSettings {
|
|
|
39
40
|
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
40
41
|
*/
|
|
41
42
|
systemPrompt?: string;
|
|
43
|
+
/** Allows you to change the voice during an active chat. Updating the voice does not affect chat context or conversation history. */
|
|
42
44
|
voiceId?: string;
|
|
43
45
|
/**
|
|
44
46
|
* This field allows you to assign values to dynamic variables referenced in your system prompt.
|
|
@@ -5,10 +5,10 @@ import type * as Hume from "../../../index.js";
|
|
|
5
5
|
* This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
|
|
6
6
|
*/
|
|
7
7
|
export interface ConnectSessionSettingsAudio {
|
|
8
|
-
/**
|
|
8
|
+
/** Sets number of audio channels for audio input. */
|
|
9
9
|
channels?: number;
|
|
10
|
-
/**
|
|
10
|
+
/** Sets encoding format of the audio input, such as `linear16`. */
|
|
11
11
|
encoding?: Hume.empathicVoice.Encoding;
|
|
12
|
-
/**
|
|
12
|
+
/** Sets the sample rate for audio input. (Number of samples per second in the audio input, measured in Hertz.) */
|
|
13
13
|
sampleRate?: number;
|
|
14
14
|
}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
|
|
4
4
|
*
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* Set to `null` to
|
|
7
|
+
* Set to `null` to clear injected context.
|
|
8
8
|
*/
|
|
9
9
|
export interface ConnectSessionSettingsContext {
|
|
10
10
|
/**
|
|
11
11
|
* The context to be injected into the conversation. Helps inform the LLM's response by providing relevant information about the ongoing conversation.
|
|
12
12
|
*
|
|
13
|
-
* This text will be appended to the end of
|
|
13
|
+
* This text will be appended to the end of [user_messages](/reference/speech-to-speech-evi/chat#receive.UserMessage.message.content) based on the chosen persistence level. For example, if you want to remind EVI of its role as a helpful weather assistant, the context you insert will be appended to the end of user messages as `{Context: You are a helpful weather assistant}`.
|
|
14
14
|
*/
|
|
15
15
|
text?: string;
|
|
16
16
|
/**
|
|
17
17
|
* The persistence level of the injected context. Specifies how long the injected context will remain active in the session.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* - **Temporary**: Context that is only applied to the following assistant response.
|
|
20
20
|
*
|
|
21
|
-
* - **Persistent**:
|
|
22
|
-
*
|
|
23
|
-
* - **Temporary**: The context is appended only to the next user message.
|
|
24
|
-
*
|
|
25
|
-
* - **Editable**: The original context is updated to reflect the new context.
|
|
26
|
-
*
|
|
27
|
-
* If the type is not specified, it will default to `temporary`.
|
|
21
|
+
* - **Persistent**: Context that is applied to all subsequent assistant responses for the remainder of the Chat.
|
|
28
22
|
*/
|
|
29
23
|
type?: Hume.empathicVoice.ContextType;
|
|
30
24
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pause responses from EVI
|
|
2
|
+
* **Pause responses from EVI.** Chat history is still saved and sent after resuming. Once this message is sent, EVI will not respond until a Resume Assistant message is sent.
|
|
3
|
+
*
|
|
4
|
+
* When paused, EVI won't respond, but transcriptions of your audio inputs will still be recorded. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details.
|
|
3
5
|
*/
|
|
4
6
|
export interface PauseAssistantMessage {
|
|
5
7
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -3,7 +3,7 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A configuration of a built-in tool to be posted to the server
|
|
4
4
|
*/
|
|
5
5
|
export interface PostedBuiltinTool {
|
|
6
|
-
/**
|
|
6
|
+
/** 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. */
|
|
7
7
|
fallbackContent?: string;
|
|
8
8
|
name: Hume.empathicVoice.PostedBuiltinToolName;
|
|
9
9
|
}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* A eLLM model configuration to be posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedEllmModel {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Boolean indicating if the eLLM is allowed to generate short responses.
|
|
7
|
+
*
|
|
8
|
+
* If omitted, short responses from the eLLM are enabled by default.
|
|
9
|
+
*/
|
|
6
10
|
allowShortResponses?: boolean;
|
|
7
11
|
}
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* Settings for a specific event_message to be posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedEventMessageSpec {
|
|
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 PostedEventMessageSpecs {
|
|
6
8
|
onInactivityTimeout?: Hume.empathicVoice.PostedEventMessageSpec;
|
|
@@ -5,6 +5,10 @@ import type * as Hume from "../../../index.js";
|
|
|
5
5
|
export interface PostedLanguageModel {
|
|
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 nudge specification posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedNudgeSpec {
|
|
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
|
}
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* Settings for a specific timeout to be posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedTimeoutSpec {
|
|
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 PostedTimeoutSpecs {
|
|
6
8
|
inactivity?: Hume.empathicVoice.PostedTimeoutSpecsInactivity;
|
|
@@ -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 PostedWebhookEventType: {
|
|
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.PostedWebhookEventType = 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.PostedWebhookEventType = {
|
|
7
11
|
ChatStarted: "chat_started",
|
|
8
12
|
ChatEnded: "chat_ended",
|
|
@@ -3,8 +3,12 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* URL and settings for a specific webhook to be posted to the server
|
|
4
4
|
*/
|
|
5
5
|
export interface PostedWebhookSpec {
|
|
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.PostedWebhookEventType[];
|
|
8
|
-
/** URL
|
|
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,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Resume responses from EVI
|
|
2
|
+
* **Resume responses from EVI.** Chat history sent while paused will now be sent.
|
|
3
|
+
*
|
|
4
|
+
* Upon resuming, if any audio input was sent during the pause, EVI will retain context from all messages sent but only respond to the last user message. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details.
|
|
3
5
|
*/
|
|
4
6
|
export interface ResumeAssistantMessage {
|
|
5
7
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -3,9 +3,16 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A specific builtin tool version returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnBuiltinTool {
|
|
6
|
-
/**
|
|
6
|
+
/** 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. */
|
|
7
7
|
fallbackContent?: string;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Name of the built-in tool to use. Hume supports the following built-in tools:
|
|
10
|
+
*
|
|
11
|
+
* - **web_search:** enables EVI to search the web for up-to-date information when applicable.
|
|
12
|
+
* - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
|
|
13
|
+
*
|
|
14
|
+
* For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
|
|
15
|
+
*/
|
|
9
16
|
name: string;
|
|
10
17
|
toolType: Hume.empathicVoice.ReturnBuiltinToolToolType;
|
|
11
18
|
}
|
|
@@ -3,18 +3,18 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A description of chat and its status
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChat {
|
|
6
|
-
/** Identifier for the
|
|
6
|
+
/** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
|
|
7
7
|
chatGroupId: string;
|
|
8
8
|
config?: Hume.empathicVoice.ReturnConfigSpec;
|
|
9
|
-
/**
|
|
9
|
+
/** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
|
|
10
10
|
endTimestamp?: number;
|
|
11
11
|
/** The total number of events currently in this chat. */
|
|
12
12
|
eventCount?: number;
|
|
13
|
-
/** Identifier for a
|
|
13
|
+
/** Identifier for a Chat. Formatted as a UUID. */
|
|
14
14
|
id: string;
|
|
15
15
|
/** Stringified JSON with additional metadata about the chat. */
|
|
16
16
|
metadata?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Time at which the Chat started. Measured in seconds since the Unix epoch. */
|
|
18
18
|
startTimestamp: number;
|
|
19
19
|
status: Hume.empathicVoice.ReturnChatStatus;
|
|
20
20
|
}
|
|
@@ -3,20 +3,24 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A description of a single event in a chat returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChatEvent {
|
|
6
|
-
/** Identifier for the
|
|
6
|
+
/** Identifier for the Chat this event occurred in. Formatted as a UUID. */
|
|
7
7
|
chatId: string;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Stringified JSON containing the prosody model inference results.
|
|
10
|
+
*
|
|
11
|
+
* EVI uses the prosody model to measure 48 expressions related to speech and vocal characteristics. These results contain a detailed emotional and tonal analysis of the audio. Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute.
|
|
12
|
+
*/
|
|
9
13
|
emotionFeatures?: string;
|
|
10
|
-
/** Identifier for a
|
|
14
|
+
/** Identifier for a Chat Event. Formatted as a UUID. */
|
|
11
15
|
id: string;
|
|
12
|
-
/** The text of the
|
|
16
|
+
/** The text of the Chat Event. This field contains the message content for each event type listed in the `type` field. */
|
|
13
17
|
messageText?: string;
|
|
14
18
|
/** Stringified JSON with additional metadata about the chat event. */
|
|
15
19
|
metadata?: string;
|
|
16
20
|
/** Identifier for a related chat event. Currently only seen on ASSISTANT_PROSODY events, to point back to the ASSISTANT_MESSAGE that generated these prosody scores */
|
|
17
21
|
relatedEventId?: string;
|
|
18
22
|
role: Hume.empathicVoice.ReturnChatEventRole;
|
|
19
|
-
/**
|
|
23
|
+
/** Time at which the Chat Event occurred. Measured in seconds since the Unix epoch. */
|
|
20
24
|
timestamp: number;
|
|
21
25
|
type: Hume.empathicVoice.ReturnChatEventType;
|
|
22
26
|
}
|
|
@@ -4,15 +4,15 @@ import type * as Hume from "../../../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChatGroup {
|
|
6
6
|
active?: boolean;
|
|
7
|
-
/**
|
|
7
|
+
/** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
|
|
8
8
|
firstStartTimestamp: number;
|
|
9
|
-
/** Identifier for the
|
|
9
|
+
/** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
|
|
10
10
|
id: string;
|
|
11
|
-
/** The chat_id of the most recent
|
|
11
|
+
/** The `chat_id` of the most recent Chat in this Chat Group. Formatted as a UUID. */
|
|
12
12
|
mostRecentChatId?: string;
|
|
13
13
|
mostRecentConfig?: Hume.empathicVoice.ReturnConfigSpec;
|
|
14
|
-
/**
|
|
14
|
+
/** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
|
|
15
15
|
mostRecentStartTimestamp: number;
|
|
16
|
-
/** The total number of
|
|
16
|
+
/** The total number of Chats associated with this Chat Group. */
|
|
17
17
|
numChats: number;
|
|
18
18
|
}
|
package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts
CHANGED
|
@@ -9,7 +9,11 @@ export interface ReturnChatGroupPagedAudioReconstructions {
|
|
|
9
9
|
id: string;
|
|
10
10
|
/** Total number of chats in this chatgroup */
|
|
11
11
|
numChats: number;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The page number of the returned list.
|
|
14
|
+
*
|
|
15
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
16
|
+
*/
|
|
13
17
|
pageNumber: number;
|
|
14
18
|
/**
|
|
15
19
|
* The maximum number of items returned per page.
|
|
@@ -4,17 +4,21 @@ import type * as Hume from "../../../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChatGroupPagedChats {
|
|
6
6
|
active?: boolean;
|
|
7
|
-
/** List of
|
|
7
|
+
/** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
|
|
8
8
|
chatsPage: Hume.empathicVoice.ReturnChat[];
|
|
9
|
-
/**
|
|
9
|
+
/** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
|
|
10
10
|
firstStartTimestamp: number;
|
|
11
|
-
/** Identifier for the
|
|
11
|
+
/** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
|
|
12
12
|
id: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
|
|
14
14
|
mostRecentStartTimestamp: number;
|
|
15
|
-
/** The total number of
|
|
15
|
+
/** The total number of Chats associated with this Chat Group. */
|
|
16
16
|
numChats: number;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The page number of the returned list.
|
|
19
|
+
*
|
|
20
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
21
|
+
*/
|
|
18
22
|
pageNumber: number;
|
|
19
23
|
/**
|
|
20
24
|
* The maximum number of items returned per page.
|
|
@@ -3,11 +3,15 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A paginated list of chat events that occurred across chats in this chat_group from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChatGroupPagedEvents {
|
|
6
|
-
/** List of
|
|
6
|
+
/** List of Chat Events for the specified `page_number` and `page_size`. */
|
|
7
7
|
eventsPage: Hume.empathicVoice.ReturnChatEvent[];
|
|
8
|
-
/** Identifier for the
|
|
8
|
+
/** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
|
|
9
9
|
id: string;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The page number of the returned list.
|
|
12
|
+
*
|
|
13
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
14
|
+
*/
|
|
11
15
|
pageNumber: number;
|
|
12
16
|
/**
|
|
13
17
|
* The maximum number of items returned per page.
|
|
@@ -3,18 +3,22 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A description of chat status with a paginated list of chat events returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChatPagedEvents {
|
|
6
|
-
/** Identifier for the
|
|
6
|
+
/** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
|
|
7
7
|
chatGroupId: string;
|
|
8
8
|
config?: Hume.empathicVoice.ReturnConfigSpec;
|
|
9
|
-
/**
|
|
9
|
+
/** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
|
|
10
10
|
endTimestamp?: number;
|
|
11
|
-
/** List of
|
|
11
|
+
/** List of Chat Events for the specified `page_number` and `page_size`. */
|
|
12
12
|
eventsPage: Hume.empathicVoice.ReturnChatEvent[];
|
|
13
|
-
/** Identifier for a
|
|
13
|
+
/** Identifier for a Chat. Formatted as a UUID. */
|
|
14
14
|
id: string;
|
|
15
15
|
/** Stringified JSON with additional metadata about the chat. */
|
|
16
16
|
metadata?: string;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The page number of the returned list.
|
|
19
|
+
*
|
|
20
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
21
|
+
*/
|
|
18
22
|
pageNumber: number;
|
|
19
23
|
/**
|
|
20
24
|
* The maximum number of items returned per page.
|
|
@@ -23,7 +27,7 @@ export interface ReturnChatPagedEvents {
|
|
|
23
27
|
*/
|
|
24
28
|
pageSize: number;
|
|
25
29
|
paginationDirection: Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection;
|
|
26
|
-
/**
|
|
30
|
+
/** Time at which the Chat started. Measured in seconds since the Unix epoch. */
|
|
27
31
|
startTimestamp: number;
|
|
28
32
|
status: Hume.empathicVoice.ReturnChatPagedEventsStatus;
|
|
29
33
|
/** The total number of pages in the collection. */
|
|
@@ -3,29 +3,39 @@ import type * as Hume from "../../../index.js";
|
|
|
3
3
|
* A specific config version returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnConfig {
|
|
6
|
-
/** List of built-in tools associated with this
|
|
6
|
+
/** List of built-in tools associated with this Config. */
|
|
7
7
|
builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
|
|
8
|
-
/**
|
|
8
|
+
/** Time at which the Config was created. Measured in seconds since the Unix epoch. */
|
|
9
9
|
createdOn?: number;
|
|
10
10
|
ellmModel?: Hume.empathicVoice.ReturnEllmModel;
|
|
11
11
|
eventMessages?: Hume.empathicVoice.ReturnEventMessageSpecs;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the EVI version to use. See our [EVI Version Guide](/docs/speech-to-speech-evi/configuration/evi-version) for differences between versions.
|
|
14
|
+
*
|
|
15
|
+
* **We're officially sunsetting EVI versions 1 and 2 on August 30, 2025**. To keep things running smoothly, be sure to [migrate to EVI 3](/docs/speech-to-speech-evi/configuration/evi-version#migrating-to-evi-3) before then.
|
|
16
|
+
*/
|
|
13
17
|
eviVersion?: string;
|
|
14
18
|
/** Identifier for a Config. Formatted as a UUID. */
|
|
15
19
|
id?: string;
|
|
16
20
|
languageModel?: Hume.empathicVoice.ReturnLanguageModel;
|
|
17
|
-
/**
|
|
21
|
+
/** Time at which the Config was last modified. Measured in seconds since the Unix epoch. */
|
|
18
22
|
modifiedOn?: number;
|
|
19
23
|
/** Name applied to all versions of a particular Config. */
|
|
20
24
|
name?: string;
|
|
21
25
|
nudges?: Hume.empathicVoice.ReturnNudgeSpec;
|
|
22
26
|
prompt?: Hume.empathicVoice.ReturnPrompt;
|
|
23
27
|
timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
|
|
24
|
-
/** List of user-defined tools associated with this
|
|
28
|
+
/** List of user-defined tools associated with this Config. */
|
|
25
29
|
tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Version number for a Config.
|
|
32
|
+
*
|
|
33
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
34
|
+
*
|
|
35
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
36
|
+
*/
|
|
27
37
|
version?: number;
|
|
28
|
-
/**
|
|
38
|
+
/** An optional description of the Config version. */
|
|
29
39
|
versionDescription?: string;
|
|
30
40
|
voice?: Hume.empathicVoice.ReturnVoice;
|
|
31
41
|
/** Map of webhooks associated with this config. */
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The Config associated with this Chat.
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnConfigSpec {
|
|
5
5
|
/** Identifier for a Config. Formatted as a UUID. */
|
|
6
6
|
id: string;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Version number for a Config.
|
|
9
|
+
*
|
|
10
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
11
|
+
*
|
|
12
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
13
|
+
*/
|
|
8
14
|
version?: number;
|
|
9
15
|
}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* A specific eLLM Model configuration
|
|
3
3
|
*/
|
|
4
4
|
export interface ReturnEllmModel {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Boolean indicating if the eLLM is allowed to generate short responses.
|
|
7
|
+
*
|
|
8
|
+
* If omitted, short responses from the eLLM are enabled by default.
|
|
9
|
+
*/
|
|
6
10
|
allowShortResponses: boolean;
|
|
7
11
|
}
|