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
|
@@ -67,7 +67,7 @@ class Prompts {
|
|
|
67
67
|
method: "GET",
|
|
68
68
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
69
69
|
? yield core.Supplier.get(this._options.accountToken)
|
|
70
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
70
|
+
: 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())),
|
|
71
71
|
contentType: "application/json",
|
|
72
72
|
queryParameters: _queryParams,
|
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,7 +111,7 @@ class Prompts {
|
|
|
111
111
|
method: "POST",
|
|
112
112
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
113
113
|
? yield core.Supplier.get(this._options.accountToken)
|
|
114
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
114
|
+
: 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())),
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
117
117
|
unrecognizedObjectKeys: "strip",
|
|
@@ -120,7 +120,7 @@ class Prompts {
|
|
|
120
120
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
121
121
|
});
|
|
122
122
|
if (_response.ok) {
|
|
123
|
-
return yield serializers.empathicVoice.
|
|
123
|
+
return yield serializers.empathicVoice.prompts.createNewPrompt.Response.parseOrThrow(_response.body, {
|
|
124
124
|
unrecognizedObjectKeys: "passthrough",
|
|
125
125
|
allowUnrecognizedUnionMembers: true,
|
|
126
126
|
allowUnrecognizedEnumValues: true,
|
|
@@ -168,7 +168,7 @@ class Prompts {
|
|
|
168
168
|
method: "GET",
|
|
169
169
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
170
170
|
? yield core.Supplier.get(this._options.accountToken)
|
|
171
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
171
|
+
: 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())),
|
|
172
172
|
contentType: "application/json",
|
|
173
173
|
queryParameters: _queryParams,
|
|
174
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -212,16 +212,16 @@ class Prompts {
|
|
|
212
212
|
method: "POST",
|
|
213
213
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
214
214
|
? yield core.Supplier.get(this._options.accountToken)
|
|
215
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
215
|
+
: 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())),
|
|
216
216
|
contentType: "application/json",
|
|
217
|
-
body: yield serializers.empathicVoice.
|
|
217
|
+
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
218
218
|
unrecognizedObjectKeys: "strip",
|
|
219
219
|
}),
|
|
220
220
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
221
221
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
222
222
|
});
|
|
223
223
|
if (_response.ok) {
|
|
224
|
-
return yield serializers.empathicVoice.
|
|
224
|
+
return yield serializers.empathicVoice.prompts.addNewPromptVersion.Response.parseOrThrow(_response.body, {
|
|
225
225
|
unrecognizedObjectKeys: "passthrough",
|
|
226
226
|
allowUnrecognizedUnionMembers: true,
|
|
227
227
|
allowUnrecognizedEnumValues: true,
|
|
@@ -258,7 +258,7 @@ class Prompts {
|
|
|
258
258
|
method: "DELETE",
|
|
259
259
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
260
260
|
? yield core.Supplier.get(this._options.accountToken)
|
|
261
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
261
|
+
: 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())),
|
|
262
262
|
contentType: "application/json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
264
264
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -287,7 +287,7 @@ class Prompts {
|
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
updatePromptName(id, request
|
|
290
|
+
updatePromptName(id, request, requestOptions) {
|
|
291
291
|
var _a, _b;
|
|
292
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
293
293
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -295,7 +295,7 @@ class Prompts {
|
|
|
295
295
|
method: "PATCH",
|
|
296
296
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
297
297
|
? yield core.Supplier.get(this._options.accountToken)
|
|
298
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
298
|
+
: 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())),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
301
301
|
unrecognizedObjectKeys: "strip",
|
|
@@ -335,13 +335,13 @@ class Prompts {
|
|
|
335
335
|
method: "GET",
|
|
336
336
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
337
337
|
? yield core.Supplier.get(this._options.accountToken)
|
|
338
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
338
|
+
: 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())),
|
|
339
339
|
contentType: "application/json",
|
|
340
340
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
341
341
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
342
342
|
});
|
|
343
343
|
if (_response.ok) {
|
|
344
|
-
return yield serializers.empathicVoice.
|
|
344
|
+
return yield serializers.empathicVoice.prompts.getReturnPromptByVersionNumber.Response.parseOrThrow(_response.body, {
|
|
345
345
|
unrecognizedObjectKeys: "passthrough",
|
|
346
346
|
allowUnrecognizedUnionMembers: true,
|
|
347
347
|
allowUnrecognizedEnumValues: true,
|
|
@@ -378,7 +378,7 @@ class Prompts {
|
|
|
378
378
|
method: "DELETE",
|
|
379
379
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
380
380
|
? yield core.Supplier.get(this._options.accountToken)
|
|
381
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
381
|
+
: 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())),
|
|
382
382
|
contentType: "application/json",
|
|
383
383
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
384
384
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -415,7 +415,7 @@ class Prompts {
|
|
|
415
415
|
method: "PATCH",
|
|
416
416
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
417
417
|
? yield core.Supplier.get(this._options.accountToken)
|
|
418
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
418
|
+
: 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())),
|
|
419
419
|
contentType: "application/json",
|
|
420
420
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
421
421
|
unrecognizedObjectKeys: "strip",
|
|
@@ -424,7 +424,7 @@ class Prompts {
|
|
|
424
424
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
425
425
|
});
|
|
426
426
|
if (_response.ok) {
|
|
427
|
-
return yield serializers.empathicVoice.
|
|
427
|
+
return yield serializers.empathicVoice.prompts.updatePromptVersionDescription.Response.parseOrThrow(_response.body, {
|
|
428
428
|
unrecognizedObjectKeys: "passthrough",
|
|
429
429
|
allowUnrecognizedUnionMembers: true,
|
|
430
430
|
allowUnrecognizedEnumValues: true,
|
package/api/resources/empathicVoice/{types → resources/prompts/client/requests}/PostedPrompt.d.ts
RENAMED
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name",
|
|
8
|
+
* text: "text"
|
|
9
|
+
* }
|
|
6
10
|
*/
|
|
7
11
|
export interface PostedPrompt {
|
|
8
12
|
/** Name applied to all versions of a particular Prompt. */
|
|
9
|
-
name
|
|
13
|
+
name: string;
|
|
10
14
|
/** Description that is appended to a specific version of a Prompt. */
|
|
11
15
|
versionDescription?: string;
|
|
12
16
|
/** Text used for this version of the Prompt. */
|
|
13
|
-
text
|
|
17
|
+
text: string;
|
|
14
18
|
}
|
package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* text: "text"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface PostedPromptVersion {
|
|
11
|
+
/** Description that is appended to a specific version of a Prompt. */
|
|
12
|
+
versionDescription?: string;
|
|
13
|
+
/** Text used for this version of the Prompt. */
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { GetReturnPromptsForUserRequest } from "./GetReturnPromptsForUserRequest";
|
|
2
|
+
export { PostedPrompt } from "./PostedPrompt";
|
|
2
3
|
export { GetReturnPromptByPromptIdRequest } from "./GetReturnPromptByPromptIdRequest";
|
|
4
|
+
export { PostedPromptVersion } from "./PostedPromptVersion";
|
|
3
5
|
export { PostedPromptName } from "./PostedPromptName";
|
|
4
6
|
export { PostedPromptVersionDescription } from "./PostedPromptVersionDescription";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the input is spoken by EVI.
|
|
6
|
+
*/
|
|
7
|
+
export interface AssistantInput {
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** Text to be synthesized. */
|
|
10
|
+
text: string;
|
|
11
|
+
type: "assistant_input";
|
|
12
|
+
}
|
|
@@ -2,9 +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
|
+
* When provided, the output is an assistant message.
|
|
7
|
+
*/
|
|
5
8
|
export interface AssistantMessage {
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
customSessionId?: string;
|
|
10
|
+
/** Indicates if this message was constructed from a text input message. */
|
|
11
|
+
fromText: boolean;
|
|
8
12
|
/** ID of the assistant message. */
|
|
9
13
|
id?: string;
|
|
10
14
|
/** Transcript of the message. */
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the input is audio.
|
|
6
|
+
*/
|
|
4
7
|
export interface AudioInput {
|
|
8
|
+
customSessionId?: string;
|
|
5
9
|
/** Base64 encoded audio input. */
|
|
6
10
|
data: string;
|
|
7
11
|
type: "audio_input";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the output is audio.
|
|
6
|
+
*/
|
|
4
7
|
export interface AudioOutput {
|
|
5
|
-
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** Base64 encoded audio output. */
|
|
6
10
|
data: string;
|
|
7
11
|
/** ID of the audio output. */
|
|
8
12
|
id: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* When provided, the output is an error message.
|
|
6
|
+
*/
|
|
4
7
|
export interface Error_ {
|
|
5
8
|
/** Error code. */
|
|
6
9
|
code: string;
|
|
10
|
+
customSessionId?: string;
|
|
7
11
|
/** Error message. */
|
|
8
12
|
message: string;
|
|
9
13
|
/** Error slug. */
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The provider of this model. Based on the enum modelProvider.
|
|
6
6
|
*/
|
|
7
|
-
export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "BYO_TEXT" | "ANTHROPIC" | "FIREWORKS";
|
|
7
|
+
export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "BYO_TEXT" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS";
|
|
8
8
|
export declare const PostedLanguageModelModelProvider: {
|
|
9
9
|
readonly OpenAi: "OPEN_AI";
|
|
10
10
|
readonly ByoText: "BYO_TEXT";
|
|
11
|
+
readonly CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL";
|
|
11
12
|
readonly Anthropic: "ANTHROPIC";
|
|
12
13
|
readonly Fireworks: "FIREWORKS";
|
|
13
14
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PostedPromptSpec {
|
|
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
|
}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PostedTool {
|
|
8
8
|
/** Name applied to all versions of a particular Tool. */
|
|
9
|
-
name
|
|
9
|
+
name: string;
|
|
10
10
|
/** Description that is appended to a specific version of a Tool. */
|
|
11
11
|
versionDescription?: string;
|
|
12
12
|
/** Text describing what the tool does. */
|
|
13
|
-
|
|
14
|
-
/** Stringified JSON defining the
|
|
15
|
-
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Stringified JSON defining the parameters used by this version of the Tool. */
|
|
15
|
+
parameters: string;
|
|
16
16
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PostedToolSpec {
|
|
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
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A new version of an existing tool to be posted to the server
|
|
6
|
+
*/
|
|
7
|
+
export interface PostedToolVersion {
|
|
8
|
+
/** Description that is appended to a specific version of a Tool. */
|
|
9
|
+
versionDescription?: string;
|
|
10
|
+
/** Text describing what the tool does. */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Stringified JSON defining the parameters used by this version of the Tool. */
|
|
13
|
+
parameters: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A Voice specification posted to the server
|
|
6
|
+
*/
|
|
7
|
+
export interface PostedVoice {
|
|
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
|
+
}
|
|
@@ -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
|
}
|