hume 0.5.3 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
- package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
- package/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
- package/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
- package/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
- package/api/resources/empathicVoice/types/AssistantInput.js +5 -0
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
- package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
- package/api/resources/empathicVoice/types/Error_.d.ts +4 -0
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
- package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
- package/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
- package/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
- package/api/resources/empathicVoice/types/PostedVoice.js +5 -0
- package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
- package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
- package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
- package/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
- package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
- package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
- package/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
- package/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
- package/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
- package/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
- package/api/resources/empathicVoice/types/UserInput.js +5 -0
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
- package/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
- package/api/resources/empathicVoice/types/index.d.ts +7 -4
- package/api/resources/empathicVoice/types/index.js +7 -4
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/websocket/WebSocket.d.ts +1 -0
- package/core/websocket/WebSocket.js +43 -0
- package/core/websocket/index.d.ts +1 -0
- package/core/websocket/index.js +5 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +12 -12
- package/dist/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.d.ts +6 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +5 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +5 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +5 -5
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +15 -15
- package/dist/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +5 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +15 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +5 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/AssistantInput.js +5 -0
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/Error_.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -1
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -0
- package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedTool.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedToolVersion.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/PostedToolVersion.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/PostedVoice.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
- package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
- package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ReturnTool.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoice.js +5 -0
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -1
- package/dist/api/resources/empathicVoice/types/TextInput.d.ts +1 -3
- package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +1 -3
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/UserInput.js +5 -0
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +4 -2
- package/dist/api/resources/empathicVoice/types/index.d.ts +7 -4
- package/dist/api/resources/empathicVoice/types/index.js +7 -4
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/websocket/WebSocket.d.ts +1 -0
- package/dist/core/websocket/WebSocket.js +43 -0
- package/dist/core/websocket/index.d.ts +1 -0
- package/dist/core/websocket/index.js +5 -0
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
- package/{serialization/resources/empathicVoice/types → dist/serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
- package/{serialization/resources/empathicVoice/types → dist/serialization/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +3 -3
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/Error_.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
- package/dist/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
- package/dist/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
- package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
- package/dist/serialization/resources/empathicVoice/types/TextInput.js +1 -2
- package/dist/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
- package/dist/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
- package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/UserInput.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +7 -4
- package/dist/serialization/resources/empathicVoice/types/index.js +7 -4
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
- package/dist/wrapper/empathicVoice/chat/ChatClient.js +5 -6
- package/dist/wrapper/empathicVoice/chat/StreamSocket.d.ts +6 -9
- package/dist/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
- package/dist/wrapper/index.d.ts +0 -1
- package/dist/wrapper/index.js +1 -3
- package/package.json +3 -6
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -3
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +3 -3
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +17 -0
- package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/configs/client/requests}/PostedConfig.js +4 -4
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +1 -1
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +16 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +37 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/index.js +5 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.js +8 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/createNewPrompt.js +8 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.js +8 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +14 -0
- package/{dist/serialization/resources/empathicVoice/types → serialization/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +3 -3
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +13 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +34 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/index.js +5 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.js +8 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/AssistantInput.js +35 -0
- package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -1
- package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/AudioInput.js +1 -0
- package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/AudioOutput.js +1 -0
- package/serialization/resources/empathicVoice/types/Error_.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/Error_.js +1 -0
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +2 -2
- package/serialization/resources/empathicVoice/types/PostedTool.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/PostedTool.js +3 -3
- package/serialization/resources/empathicVoice/types/PostedToolName.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedToolName.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedToolSpec.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/PostedToolSpec.js +2 -2
- package/serialization/resources/empathicVoice/types/{PostedPrompt.d.ts → PostedToolVersion.d.ts} +4 -4
- package/serialization/resources/empathicVoice/types/PostedToolVersion.js +35 -0
- package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/PostedVoice.js +34 -0
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +4 -4
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ReturnChat.js +3 -3
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -4
- package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.d.ts +6 -6
- package/serialization/resources/empathicVoice/types/ReturnChatWithPagedEvents.js +6 -6
- package/serialization/resources/empathicVoice/types/ReturnConfigSpec.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +6 -6
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +6 -6
- package/serialization/resources/empathicVoice/types/ReturnTool.d.ts +7 -7
- package/serialization/resources/empathicVoice/types/ReturnTool.js +7 -7
- package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +34 -0
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.js +3 -1
- package/serialization/resources/empathicVoice/types/TextInput.d.ts +1 -2
- package/serialization/resources/empathicVoice/types/TextInput.js +1 -2
- package/serialization/resources/empathicVoice/types/TtsInput.d.ts +1 -2
- package/serialization/resources/empathicVoice/types/TtsInput.js +1 -2
- package/serialization/resources/empathicVoice/types/UserInput.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/UserInput.js +35 -0
- package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -0
- package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/index.d.ts +7 -4
- package/serialization/resources/empathicVoice/types/index.js +7 -4
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/tests/empathicVoice/chat.test.ts +2 -3
- package/wrapper/empathicVoice/chat/ChatClient.d.ts +3 -4
- package/wrapper/empathicVoice/chat/ChatClient.js +5 -6
- package/wrapper/empathicVoice/chat/StreamSocket.d.ts +6 -9
- package/wrapper/empathicVoice/chat/StreamSocket.js +10 -16
- package/wrapper/index.d.ts +0 -1
- package/wrapper/index.js +1 -3
- package/dist/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
- package/dist/wrapper/ffplay.d.ts +0 -2
- package/dist/wrapper/ffplay.js +0 -58
- package/serialization/resources/empathicVoice/types/PostedConfig.d.ts +0 -17
- package/wrapper/ffplay.d.ts +0 -2
- package/wrapper/ffplay.js +0 -58
- /package/api/resources/empathicVoice/{types → resources/configs/client/requests}/PostedConfig.js +0 -0
- /package/api/resources/empathicVoice/{types/PostedPrompt.js → resources/configs/client/requests/PostedConfigVersion.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types → api/resources/empathicVoice/resources/prompts/client/requests}/PostedPrompt.js +0 -0
- /package/{dist/api/resources/empathicVoice/types/PostedConfig.js → api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js} +0 -0
|
@@ -7,13 +7,13 @@ import * as Hume from "../../..";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnActiveChatCount {
|
|
9
9
|
/** The timestamp for when chat status was measured. Formatted as a Unix epoch milliseconds. */
|
|
10
|
-
timestamp
|
|
10
|
+
timestamp: number;
|
|
11
11
|
/** The total number of active chats for this user. */
|
|
12
|
-
totalUserActiveChats
|
|
12
|
+
totalUserActiveChats: number;
|
|
13
13
|
/** The maximum number of concurrent active chats for this user. */
|
|
14
14
|
maxAllowedActiveChats?: number;
|
|
15
15
|
/** Boolean indicating if the user is allowed to start more chats. */
|
|
16
|
-
moreActiveChatsAllowed
|
|
16
|
+
moreActiveChatsAllowed: boolean;
|
|
17
17
|
/** Optional List of chat counts per tag. */
|
|
18
|
-
perTag?: Hume.empathicVoice.ReturnActiveChatCountPerTag[];
|
|
18
|
+
perTag?: (Hume.empathicVoice.ReturnActiveChatCountPerTag | undefined)[];
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnActiveChatCountPerTag {
|
|
8
8
|
/** User tag applied to a chat. */
|
|
9
|
-
tag
|
|
9
|
+
tag: string;
|
|
10
10
|
/** The total number of active chats for this user with the specified tag. */
|
|
11
|
-
totalTagActiveChats
|
|
11
|
+
totalTagActiveChats: number;
|
|
12
12
|
}
|
|
@@ -7,15 +7,15 @@ import * as Hume from "../../..";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnChat {
|
|
9
9
|
/** Identifier for a chat. Formatted as a UUID. */
|
|
10
|
-
id
|
|
10
|
+
id: string;
|
|
11
11
|
/** Optional Identifier for the chatId that this chat was resumed from. Formatted as a UUID. */
|
|
12
12
|
resumedFromId?: string;
|
|
13
13
|
/** Optional tag applied to this chat used to group chats by user, application, etc. */
|
|
14
14
|
tag?: string;
|
|
15
15
|
/** The status of the chat. Values from the ChatStatus enum. */
|
|
16
|
-
status
|
|
16
|
+
status: string;
|
|
17
17
|
/** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
|
|
18
|
-
startTimestamp
|
|
18
|
+
startTimestamp: number;
|
|
19
19
|
/** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
|
|
20
20
|
endTimestamp?: number;
|
|
21
21
|
/** Stringified JSON with additional metadata about the chat. */
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnChatEvent {
|
|
8
8
|
/** Identifier for a chat event. Formatted as a UUID. */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds. */
|
|
11
|
-
timestamp
|
|
11
|
+
timestamp: number;
|
|
12
12
|
/** The role of the user who generated the chat event. Values from the Role enum. */
|
|
13
|
-
role
|
|
13
|
+
role: string;
|
|
14
14
|
/** The type of chat event. Values from the ChatEventType enum. */
|
|
15
|
-
type
|
|
15
|
+
type: string;
|
|
16
16
|
/** The text of the chat message, either transcribed from speaker audio or generated by the agent. */
|
|
17
17
|
messageText?: string;
|
|
18
18
|
/** Stringified JSON with data about emotional content/prosody of the event. */
|
|
@@ -7,24 +7,24 @@ import * as Hume from "../../..";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnChatWithPagedEvents {
|
|
9
9
|
/** Identifier for a chat. Formatted as a UUID. */
|
|
10
|
-
id
|
|
10
|
+
id: string;
|
|
11
11
|
/** Optional Identifier for the chatId that this chat was resumed from. Formatted as a UUID. */
|
|
12
12
|
resumedFromId?: string;
|
|
13
13
|
/** Optional tag applied to this chat used to group chats by user, application, etc. */
|
|
14
14
|
tag?: string;
|
|
15
15
|
/** The status of the chat. Values from the ChatStatus enum. */
|
|
16
|
-
status
|
|
16
|
+
status: string;
|
|
17
17
|
/** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
|
|
18
|
-
startTimestamp
|
|
18
|
+
startTimestamp: number;
|
|
19
19
|
/** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
|
|
20
20
|
endTimestamp?: number;
|
|
21
21
|
/** List of chat events with the specified page number and page size. */
|
|
22
|
-
eventsPage
|
|
22
|
+
eventsPage: Hume.empathicVoice.ReturnChatEvent[];
|
|
23
23
|
/** Stringified JSON with additional metadata about the chat. */
|
|
24
24
|
metadata?: string;
|
|
25
25
|
/** The page number of the returned results. */
|
|
26
|
-
pageNumber
|
|
26
|
+
pageNumber: number;
|
|
27
27
|
/** The number of results returned per page. */
|
|
28
|
-
pageSize
|
|
28
|
+
pageSize: number;
|
|
29
29
|
config?: Hume.empathicVoice.ReturnConfigSpec;
|
|
30
30
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnConfigSpec {
|
|
8
8
|
/** Identifier for a Config. Formatted as a UUID. */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
11
11
|
version?: number;
|
|
12
12
|
}
|
|
@@ -7,9 +7,9 @@ import * as Hume from "../../..";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedChats {
|
|
9
9
|
/** The page number of the returned results. */
|
|
10
|
-
pageNumber
|
|
10
|
+
pageNumber: number;
|
|
11
11
|
/** The number of results returned per page. */
|
|
12
|
-
pageSize
|
|
12
|
+
pageSize: number;
|
|
13
13
|
/** List of chats and their metadata returned for the specified page number and page size. */
|
|
14
|
-
chatsPage
|
|
14
|
+
chatsPage: Hume.empathicVoice.ReturnChat[];
|
|
15
15
|
}
|
|
@@ -7,9 +7,9 @@ import * as Hume from "../../..";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedPrompts {
|
|
9
9
|
/** The page number of the returned results. */
|
|
10
|
-
pageNumber
|
|
10
|
+
pageNumber: number;
|
|
11
11
|
/** The number of results returned per page. */
|
|
12
|
-
pageSize
|
|
12
|
+
pageSize: number;
|
|
13
13
|
/** List of prompts returned for the specified page number and page size. */
|
|
14
|
-
promptsPage
|
|
14
|
+
promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
|
|
15
15
|
}
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnPrompt {
|
|
8
8
|
/** Identifier for a Prompt. Formatted as a UUID. */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
11
|
-
version
|
|
11
|
+
version: number;
|
|
12
12
|
/** Description that is appended to a specific version of a Prompt. */
|
|
13
13
|
versionDescription?: string;
|
|
14
14
|
/** Name applied to all versions of a particular Prompt. */
|
|
15
|
-
name
|
|
15
|
+
name: string;
|
|
16
16
|
/** The timestamp when the first version of this prompt was created. */
|
|
17
|
-
createdOn
|
|
17
|
+
createdOn: number;
|
|
18
18
|
/** The timestamp when this version of the prompt was created. */
|
|
19
|
-
modifiedOn
|
|
19
|
+
modifiedOn: number;
|
|
20
20
|
/** Text used for this version of the Prompt. */
|
|
21
|
-
text
|
|
21
|
+
text: string;
|
|
22
22
|
}
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnTool {
|
|
8
8
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
11
|
-
version
|
|
11
|
+
version: number;
|
|
12
12
|
/** Description that is appended to a specific version of a Tool. */
|
|
13
13
|
versionDescription?: string;
|
|
14
14
|
/** Name applied to all versions of a particular Tool. */
|
|
15
|
-
name
|
|
15
|
+
name: string;
|
|
16
16
|
/** The timestamp when the first version of this tool was created. */
|
|
17
|
-
createdOn
|
|
17
|
+
createdOn: number;
|
|
18
18
|
/** The timestamp when this version of the tool was created. */
|
|
19
|
-
modifiedOn
|
|
19
|
+
modifiedOn: number;
|
|
20
20
|
/** Text describing what the tool does. */
|
|
21
|
-
|
|
22
|
-
/** Stringified JSON defining the
|
|
23
|
-
|
|
21
|
+
description?: string;
|
|
22
|
+
/** Stringified JSON defining the parameters used by this version of the Tool. */
|
|
23
|
+
parameters: string;
|
|
24
24
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A specific voice specification
|
|
6
|
+
*/
|
|
7
|
+
export interface ReturnVoice {
|
|
8
|
+
/** The provider of the voice to use. Based on the enum VoiceProvider. */
|
|
9
|
+
provider: string;
|
|
10
|
+
/** String with the name of the voice to use. */
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* Settings for this chat session.
|
|
7
|
+
*/
|
|
5
8
|
export interface SessionSettings {
|
|
9
|
+
customSessionId?: string;
|
|
6
10
|
audio?: Hume.empathicVoice.AudioConfiguration;
|
|
7
11
|
languageModelApiKey?: string;
|
|
8
|
-
|
|
12
|
+
systemPrompt?: string;
|
|
13
|
+
type: "session_settings";
|
|
9
14
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* User text to insert into the conversation.
|
|
6
|
+
*/
|
|
7
|
+
export interface UserInput {
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** User text to insert into the conversation. */
|
|
10
|
+
text: string;
|
|
11
|
+
type: "user_input";
|
|
12
|
+
}
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* When provided, the output is a user message.
|
|
7
|
+
*/
|
|
5
8
|
export interface UserMessage {
|
|
9
|
+
customSessionId?: string;
|
|
6
10
|
/** Indicates if this message was constructed from a text input message. */
|
|
7
11
|
fromText: boolean;
|
|
8
12
|
/** Transcript of the message. */
|
|
9
13
|
message: Hume.empathicVoice.ChatMessage;
|
|
10
14
|
/** Inference model results. */
|
|
11
15
|
models: Hume.empathicVoice.Inference;
|
|
12
|
-
/** Segments of the user message. */
|
|
13
|
-
serializedSegments: Record<string, unknown>[];
|
|
14
16
|
/** Start and End time of user message. */
|
|
15
17
|
time: Hume.empathicVoice.MillisecondInterval;
|
|
16
18
|
type: "user_message";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export * from "./PostedTool";
|
|
2
2
|
export * from "./ReturnTool";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./PostedToolVersion";
|
|
4
4
|
export * from "./ReturnPrompt";
|
|
5
|
-
export * from "./PostedConfig";
|
|
6
5
|
export * from "./PostedLanguageModelModelProvider";
|
|
7
6
|
export * from "./PostedLanguageModel";
|
|
8
7
|
export * from "./PostedPromptSpec";
|
|
9
8
|
export * from "./PostedToolSpec";
|
|
9
|
+
export * from "./PostedVoice";
|
|
10
10
|
export * from "./ReturnConfig";
|
|
11
11
|
export * from "./ReturnLanguageModel";
|
|
12
|
+
export * from "./ReturnVoice";
|
|
12
13
|
export * from "./PostedToolName";
|
|
13
14
|
export * from "./PostedToolVersionDescription";
|
|
14
15
|
export * from "./ReturnPagedPrompts";
|
|
@@ -21,6 +22,7 @@ export * from "./ReturnChatWithPagedEvents";
|
|
|
21
22
|
export * from "./ReturnActiveChatCount";
|
|
22
23
|
export * from "./ReturnActiveChatCountPerTag";
|
|
23
24
|
export * from "./AssistantEnd";
|
|
25
|
+
export * from "./AssistantInput";
|
|
24
26
|
export * from "./AssistantMessage";
|
|
25
27
|
export * from "./AudioConfiguration";
|
|
26
28
|
export * from "./AudioInput";
|
|
@@ -34,8 +36,9 @@ export * from "./MillisecondInterval";
|
|
|
34
36
|
export * from "./ProsodyInference";
|
|
35
37
|
export * from "./Role";
|
|
36
38
|
export * from "./SessionSettings";
|
|
37
|
-
export * from "./
|
|
38
|
-
export * from "./TtsInput";
|
|
39
|
+
export * from "./UserInput";
|
|
39
40
|
export * from "./UserInterruption";
|
|
40
41
|
export * from "./UserMessage";
|
|
42
|
+
export * from "./TtsInput";
|
|
43
|
+
export * from "./TextInput";
|
|
41
44
|
export * from "./FunctionCallResponseInput";
|
|
@@ -16,15 +16,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./PostedTool"), exports);
|
|
18
18
|
__exportStar(require("./ReturnTool"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./PostedToolVersion"), exports);
|
|
20
20
|
__exportStar(require("./ReturnPrompt"), exports);
|
|
21
|
-
__exportStar(require("./PostedConfig"), exports);
|
|
22
21
|
__exportStar(require("./PostedLanguageModelModelProvider"), exports);
|
|
23
22
|
__exportStar(require("./PostedLanguageModel"), exports);
|
|
24
23
|
__exportStar(require("./PostedPromptSpec"), exports);
|
|
25
24
|
__exportStar(require("./PostedToolSpec"), exports);
|
|
25
|
+
__exportStar(require("./PostedVoice"), exports);
|
|
26
26
|
__exportStar(require("./ReturnConfig"), exports);
|
|
27
27
|
__exportStar(require("./ReturnLanguageModel"), exports);
|
|
28
|
+
__exportStar(require("./ReturnVoice"), exports);
|
|
28
29
|
__exportStar(require("./PostedToolName"), exports);
|
|
29
30
|
__exportStar(require("./PostedToolVersionDescription"), exports);
|
|
30
31
|
__exportStar(require("./ReturnPagedPrompts"), exports);
|
|
@@ -37,6 +38,7 @@ __exportStar(require("./ReturnChatWithPagedEvents"), exports);
|
|
|
37
38
|
__exportStar(require("./ReturnActiveChatCount"), exports);
|
|
38
39
|
__exportStar(require("./ReturnActiveChatCountPerTag"), exports);
|
|
39
40
|
__exportStar(require("./AssistantEnd"), exports);
|
|
41
|
+
__exportStar(require("./AssistantInput"), exports);
|
|
40
42
|
__exportStar(require("./AssistantMessage"), exports);
|
|
41
43
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
42
44
|
__exportStar(require("./AudioInput"), exports);
|
|
@@ -50,8 +52,9 @@ __exportStar(require("./MillisecondInterval"), exports);
|
|
|
50
52
|
__exportStar(require("./ProsodyInference"), exports);
|
|
51
53
|
__exportStar(require("./Role"), exports);
|
|
52
54
|
__exportStar(require("./SessionSettings"), exports);
|
|
53
|
-
__exportStar(require("./
|
|
54
|
-
__exportStar(require("./TtsInput"), exports);
|
|
55
|
+
__exportStar(require("./UserInput"), exports);
|
|
55
56
|
__exportStar(require("./UserInterruption"), exports);
|
|
56
57
|
__exportStar(require("./UserMessage"), exports);
|
|
58
|
+
__exportStar(require("./TtsInput"), exports);
|
|
59
|
+
__exportStar(require("./TextInput"), exports);
|
|
57
60
|
__exportStar(require("./FunctionCallResponseInput"), exports);
|
|
@@ -96,7 +96,7 @@ class Batch {
|
|
|
96
96
|
method: "GET",
|
|
97
97
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
98
98
|
? yield core.Supplier.get(this._options.accountToken)
|
|
99
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
99
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -149,7 +149,7 @@ class Batch {
|
|
|
149
149
|
method: "POST",
|
|
150
150
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
151
151
|
? yield core.Supplier.get(this._options.accountToken)
|
|
152
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
152
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
|
|
155
155
|
unrecognizedObjectKeys: "strip",
|
|
@@ -204,7 +204,7 @@ class Batch {
|
|
|
204
204
|
method: "GET",
|
|
205
205
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
206
206
|
? yield core.Supplier.get(this._options.accountToken)
|
|
207
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
207
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
208
208
|
contentType: "application/json",
|
|
209
209
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
210
210
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -253,7 +253,7 @@ class Batch {
|
|
|
253
253
|
method: "GET",
|
|
254
254
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
255
255
|
? yield core.Supplier.get(this._options.accountToken)
|
|
256
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
256
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
257
257
|
contentType: "application/json",
|
|
258
258
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
259
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -299,7 +299,7 @@ class Batch {
|
|
|
299
299
|
method: "GET",
|
|
300
300
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
301
301
|
? yield core.Supplier.get(this._options.accountToken)
|
|
302
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
302
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
303
303
|
contentType: "application/json",
|
|
304
304
|
responseType: "streaming",
|
|
305
305
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -345,7 +345,7 @@ class Batch {
|
|
|
345
345
|
method: "POST",
|
|
346
346
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
347
347
|
? yield core.Supplier.get(this._options.accountToken)
|
|
348
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
348
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
349
349
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
350
350
|
body: _request,
|
|
351
351
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.expressionMeasurement = exports.
|
|
27
|
-
exports.customModels = __importStar(require("./customModels"));
|
|
26
|
+
exports.expressionMeasurement = exports.customModels = exports.empathicVoice = void 0;
|
|
28
27
|
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
28
|
+
exports.customModels = __importStar(require("./customModels"));
|
|
29
29
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -29,4 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.serialization = void 0;
|
|
30
30
|
__exportStar(require("./fetcher"), exports);
|
|
31
31
|
__exportStar(require("./runtime"), exports);
|
|
32
|
+
__exportStar(require("./websocket"), exports);
|
|
32
33
|
exports.serialization = __importStar(require("./schemas"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IsomorphicWebSocket: any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.IsomorphicWebSocket = void 0;
|
|
27
|
+
const WebSocket_ = __importStar(require("ws"));
|
|
28
|
+
const runtime_1 = require("../runtime");
|
|
29
|
+
exports.IsomorphicWebSocket = (() => {
|
|
30
|
+
if (typeof WebSocket !== "undefined") {
|
|
31
|
+
return WebSocket;
|
|
32
|
+
}
|
|
33
|
+
if (typeof (global === null || global === void 0 ? void 0 : global.WebSocket) !== "undefined") {
|
|
34
|
+
return global.WebSocket;
|
|
35
|
+
}
|
|
36
|
+
if (runtime_1.RUNTIME.type === "browser" && typeof (window === null || window === void 0 ? void 0 : window.WebSocket) !== "undefined") {
|
|
37
|
+
return window.WebSocket;
|
|
38
|
+
}
|
|
39
|
+
if (WebSocket_.WebSocket) {
|
|
40
|
+
return WebSocket_.WebSocket;
|
|
41
|
+
}
|
|
42
|
+
return WebSocket_;
|
|
43
|
+
})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IsomorphicWebSocket as WebSocket } from "./WebSocket";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebSocket = void 0;
|
|
4
|
+
var WebSocket_1 = require("./WebSocket");
|
|
5
|
+
Object.defineProperty(exports, "WebSocket", { enumerable: true, get: function () { return WebSocket_1.IsomorphicWebSocket; } });
|
|
@@ -6,9 +6,9 @@ import * as Hume from "../../../../../../api";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { AudioInput } from "../../../types/AudioInput";
|
|
8
8
|
import { SessionSettings } from "../../../types/SessionSettings";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { UserInput } from "../../../types/UserInput";
|
|
10
|
+
import { AssistantInput } from "../../../types/AssistantInput";
|
|
11
11
|
export declare const PublishEvent: core.serialization.Schema<serializers.empathicVoice.PublishEvent.Raw, Hume.empathicVoice.PublishEvent>;
|
|
12
12
|
export declare namespace PublishEvent {
|
|
13
|
-
type Raw = AudioInput.Raw | SessionSettings.Raw |
|
|
13
|
+
type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw;
|
|
14
14
|
}
|
|
@@ -30,6 +30,6 @@ exports.PublishEvent = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const AudioInput_1 = require("../../../types/AudioInput");
|
|
32
32
|
const SessionSettings_1 = require("../../../types/SessionSettings");
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
exports.PublishEvent = core.serialization.undiscriminatedUnion([AudioInput_1.AudioInput, SessionSettings_1.SessionSettings,
|
|
33
|
+
const UserInput_1 = require("../../../types/UserInput");
|
|
34
|
+
const AssistantInput_1 = require("../../../types/AssistantInput");
|
|
35
|
+
exports.PublishEvent = core.serialization.undiscriminatedUnion([AudioInput_1.AudioInput, SessionSettings_1.SessionSettings, UserInput_1.UserInput, AssistantInput_1.AssistantInput]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../..";
|
|
5
|
+
import * as Hume from "../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
|
|
8
|
+
import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
|
|
9
|
+
export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
|
|
10
|
+
export declare namespace PostedConfig {
|
|
11
|
+
interface Raw {
|
|
12
|
+
name: string;
|
|
13
|
+
version_description?: string | null;
|
|
14
|
+
prompt?: PostedPromptSpec.Raw | null;
|
|
15
|
+
language_model?: PostedLanguageModel.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -27,11 +27,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.PostedConfig = void 0;
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
const PostedPromptSpec_1 = require("
|
|
32
|
-
const PostedLanguageModel_1 = require("
|
|
30
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
31
|
+
const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
|
|
32
|
+
const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
|
|
33
33
|
exports.PostedConfig = core.serialization.object({
|
|
34
|
-
name: core.serialization.string()
|
|
34
|
+
name: core.serialization.string(),
|
|
35
35
|
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
36
36
|
prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
|
|
37
37
|
languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
|
|
@@ -7,6 +7,6 @@ import * as core from "../../../../../../../core";
|
|
|
7
7
|
export declare const PostedConfigName: core.serialization.Schema<serializers.empathicVoice.PostedConfigName.Raw, Hume.empathicVoice.PostedConfigName>;
|
|
8
8
|
export declare namespace PostedConfigName {
|
|
9
9
|
interface Raw {
|
|
10
|
-
name
|
|
10
|
+
name: string;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.PostedConfigName = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../core"));
|
|
31
31
|
exports.PostedConfigName = core.serialization.object({
|
|
32
|
-
name: core.serialization.string()
|
|
32
|
+
name: core.serialization.string(),
|
|
33
33
|
});
|