hume 0.12.1 → 0.13.0
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/.mock/definition/empathic-voice/__package__.yml +760 -711
- package/.mock/definition/empathic-voice/chat.yml +29 -23
- package/.mock/definition/empathic-voice/chatWebhooks.yml +3 -3
- package/.mock/definition/empathic-voice/configs.yml +10 -4
- package/.mock/definition/tts/__package__.yml +77 -125
- package/.mock/fern.config.json +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chats/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +5 -1
- package/api/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/tools/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/api/resources/empathicVoice/types/Context.d.ts +8 -14
- package/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
- package/api/resources/empathicVoice/types/ContextType.js +1 -2
- package/api/resources/empathicVoice/types/LanguageModelType.d.ts +20 -1
- package/api/resources/empathicVoice/types/LanguageModelType.js +19 -0
- package/api/resources/empathicVoice/types/ModelProviderEnum.d.ts +4 -1
- package/api/resources/empathicVoice/types/ModelProviderEnum.js +3 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +12 -17
- package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +0 -4
- package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +22 -18
- package/api/resources/empathicVoice/types/ReturnChatEventType.js +9 -4
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +18 -14
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
- package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/api/resources/empathicVoice/types/UserMessage.d.ts +14 -7
- package/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
- package/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/api/resources/empathicVoice/types/index.js +16 -16
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +2 -4
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +1 -1
- package/api/resources/expressionMeasurement/resources/batch/client/index.d.ts +1 -0
- package/api/resources/tts/client/Client.d.ts +21 -23
- package/api/resources/tts/client/Client.js +50 -58
- package/api/resources/tts/client/index.d.ts +1 -1
- package/api/resources/tts/client/index.js +0 -15
- package/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/api/resources/tts/types/PostedTts.d.ts +8 -8
- package/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/api/resources/tts/types/Snippet.d.ts +6 -6
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +0 -16
- package/core/fetcher/BinaryResponse.d.ts +17 -0
- package/core/fetcher/BinaryResponse.js +14 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/core/fetcher/ResponseWithBody.js +6 -0
- package/core/fetcher/getFetchFn.js +3 -3
- package/core/fetcher/getResponseBody.js +33 -32
- package/core/fetcher/index.d.ts +1 -0
- package/core/file.d.ts +1 -0
- package/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/core/form-data-utils/FormDataWrapper.js +104 -124
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +5 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/tools/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/Context.d.ts +8 -14
- package/dist/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
- package/dist/api/resources/empathicVoice/types/ContextType.js +1 -2
- package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +20 -1
- package/dist/api/resources/empathicVoice/types/LanguageModelType.js +19 -0
- package/dist/api/resources/empathicVoice/types/ModelProviderEnum.d.ts +4 -1
- package/dist/api/resources/empathicVoice/types/ModelProviderEnum.js +3 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +12 -17
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +0 -4
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +22 -18
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +9 -4
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +18 -14
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +14 -7
- package/dist/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
- package/dist/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/index.js +16 -16
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +2 -4
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/index.d.ts +1 -0
- package/dist/api/resources/tts/client/Client.d.ts +21 -23
- package/dist/api/resources/tts/client/Client.js +50 -58
- package/dist/api/resources/tts/client/index.d.ts +1 -1
- package/dist/api/resources/tts/client/index.js +0 -15
- package/dist/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +8 -8
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/api/resources/tts/types/Snippet.d.ts +6 -6
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +0 -16
- package/dist/core/fetcher/BinaryResponse.d.ts +17 -0
- package/dist/core/fetcher/BinaryResponse.js +14 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/core/fetcher/getFetchFn.js +3 -3
- package/dist/core/fetcher/getResponseBody.js +33 -32
- package/dist/core/fetcher/index.d.ts +1 -0
- package/dist/core/file.d.ts +1 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/dist/core/form-data-utils/FormDataWrapper.js +104 -124
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ContextType.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +19 -0
- package/dist/serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ModelProviderEnum.js +3 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +9 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +9 -9
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +9 -9
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/serialization/resources/empathicVoice/types/index.js +16 -16
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +3 -3
- package/dist/serialization/resources/tts/types/PostedTts.js +3 -3
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/dist/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/dist/serialization/resources/tts/types/Snippet.js +3 -3
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +0 -8
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +1 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/jest.browser.config.mjs +10 -0
- package/jest.config.mjs +1 -0
- package/package.json +6 -7
- package/reference.md +25 -27
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ContextType.js +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.js +19 -0
- package/serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ModelProviderEnum.js +3 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +9 -4
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +9 -9
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +9 -9
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
- package/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/serialization/resources/empathicVoice/types/index.js +16 -16
- package/serialization/resources/tts/types/PostedTts.d.ts +3 -3
- package/serialization/resources/tts/types/PostedTts.js +3 -3
- package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/serialization/resources/tts/types/Snippet.js +3 -3
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +0 -8
- package/serialization/resources/tts/types/SnippetAudioChunk.js +1 -10
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
- package/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
- package/api/resources/tts/client/requests/index.d.ts +0 -1
- package/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/core/form-data-utils/toReadableStream.js +0 -50
- package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
- package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
- package/dist/api/resources/tts/client/requests/index.d.ts +0 -1
- package/dist/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/dist/core/form-data-utils/toReadableStream.js +0 -50
- /package/{api/resources/tts/client/requests/index.js → core/file.js} +0 -0
- /package/dist/{api/resources/tts/client/requests/index.js → core/file.js} +0 -0
|
@@ -41,51 +41,110 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
41
41
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
45
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46
|
+
var m = o[Symbol.asyncIterator], i;
|
|
47
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
48
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
49
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
50
|
+
};
|
|
44
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.
|
|
52
|
+
exports.FormDataWrapper = void 0;
|
|
46
53
|
exports.newFormData = newFormData;
|
|
54
|
+
const json_js_1 = require("../../core/json.js");
|
|
47
55
|
const index_js_1 = require("../runtime/index.js");
|
|
48
|
-
const toReadableStream_js_1 = require("./toReadableStream.js");
|
|
49
56
|
function isNamedValue(value) {
|
|
50
57
|
return typeof value === "object" && value != null && "name" in value;
|
|
51
58
|
}
|
|
52
59
|
function isPathedValue(value) {
|
|
53
60
|
return typeof value === "object" && value != null && "path" in value;
|
|
54
61
|
}
|
|
62
|
+
function isStreamLike(value) {
|
|
63
|
+
return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
|
|
64
|
+
}
|
|
65
|
+
function isReadableStream(value) {
|
|
66
|
+
return typeof value === "object" && value != null && "getReader" in value;
|
|
67
|
+
}
|
|
68
|
+
function isBuffer(value) {
|
|
69
|
+
return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
|
|
70
|
+
}
|
|
71
|
+
function isArrayBufferView(value) {
|
|
72
|
+
return ArrayBuffer.isView(value);
|
|
73
|
+
}
|
|
55
74
|
function getLastPathSegment(pathStr) {
|
|
56
75
|
const lastForwardSlash = pathStr.lastIndexOf("/");
|
|
57
76
|
const lastBackSlash = pathStr.lastIndexOf("\\");
|
|
58
77
|
const lastSlashIndex = Math.max(lastForwardSlash, lastBackSlash);
|
|
59
78
|
return lastSlashIndex >= 0 ? pathStr.substring(lastSlashIndex + 1) : pathStr;
|
|
60
79
|
}
|
|
61
|
-
function
|
|
80
|
+
function streamToBuffer(stream) {
|
|
62
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
82
|
+
var _a, stream_1, stream_1_1;
|
|
83
|
+
var _b, e_1, _c, _d;
|
|
84
|
+
if (index_js_1.RUNTIME.type === "node") {
|
|
85
|
+
const { Readable } = yield Promise.resolve().then(() => __importStar(require("stream")));
|
|
86
|
+
if (stream instanceof Readable) {
|
|
87
|
+
const chunks = [];
|
|
88
|
+
try {
|
|
89
|
+
for (_a = true, stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), _b = stream_1_1.done, !_b; _a = true) {
|
|
90
|
+
_d = stream_1_1.value;
|
|
91
|
+
_a = false;
|
|
92
|
+
const chunk = _d;
|
|
93
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
97
|
+
finally {
|
|
98
|
+
try {
|
|
99
|
+
if (!_a && !_b && (_c = stream_1.return)) yield _c.call(stream_1);
|
|
100
|
+
}
|
|
101
|
+
finally { if (e_1) throw e_1.error; }
|
|
102
|
+
}
|
|
103
|
+
return Buffer.concat(chunks);
|
|
104
|
+
}
|
|
69
105
|
}
|
|
70
|
-
|
|
71
|
-
|
|
106
|
+
if (isReadableStream(stream)) {
|
|
107
|
+
const reader = stream.getReader();
|
|
108
|
+
const chunks = [];
|
|
109
|
+
try {
|
|
110
|
+
while (true) {
|
|
111
|
+
const { done, value } = yield reader.read();
|
|
112
|
+
if (done)
|
|
113
|
+
break;
|
|
114
|
+
chunks.push(value);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
finally {
|
|
118
|
+
reader.releaseLock();
|
|
119
|
+
}
|
|
120
|
+
const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
|
|
121
|
+
const result = new Uint8Array(totalLength);
|
|
122
|
+
let offset = 0;
|
|
123
|
+
for (const chunk of chunks) {
|
|
124
|
+
result.set(chunk, offset);
|
|
125
|
+
offset += chunk.length;
|
|
126
|
+
}
|
|
127
|
+
return Buffer.from(result);
|
|
72
128
|
}
|
|
73
|
-
|
|
74
|
-
|
|
129
|
+
throw new Error("Unsupported stream type: " + typeof stream + ". Expected Node.js Readable stream or Web ReadableStream.");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function newFormData() {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
return new FormDataWrapper();
|
|
75
135
|
});
|
|
76
136
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
137
|
+
class FormDataWrapper {
|
|
138
|
+
constructor() {
|
|
139
|
+
this.fd = new FormData();
|
|
140
|
+
}
|
|
81
141
|
setup() {
|
|
82
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
|
|
143
|
+
// noop
|
|
84
144
|
});
|
|
85
145
|
}
|
|
86
146
|
append(key, value) {
|
|
87
|
-
|
|
88
|
-
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
147
|
+
this.fd.append(key, String(value));
|
|
89
148
|
}
|
|
90
149
|
getFileName(value, filename) {
|
|
91
150
|
if (filename != null) {
|
|
@@ -99,130 +158,51 @@ class Node18FormData {
|
|
|
99
158
|
}
|
|
100
159
|
return undefined;
|
|
101
160
|
}
|
|
102
|
-
|
|
161
|
+
convertToBlob(value) {
|
|
103
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
|
|
105
|
-
|
|
163
|
+
if (isStreamLike(value) || isReadableStream(value)) {
|
|
164
|
+
const buffer = yield streamToBuffer(value);
|
|
165
|
+
return new Blob([buffer]);
|
|
166
|
+
}
|
|
106
167
|
if (value instanceof Blob) {
|
|
107
|
-
|
|
168
|
+
return value;
|
|
108
169
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
type: undefined,
|
|
112
|
-
name: fileName,
|
|
113
|
-
[Symbol.toStringTag]: "File",
|
|
114
|
-
stream() {
|
|
115
|
-
return value;
|
|
116
|
-
},
|
|
117
|
-
});
|
|
170
|
+
if (isBuffer(value)) {
|
|
171
|
+
return new Blob([value]);
|
|
118
172
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
getRequest() {
|
|
122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
const encoder = new (yield Promise.resolve().then(() => __importStar(require("form-data-encoder")))).FormDataEncoder(this.fd);
|
|
124
|
-
return {
|
|
125
|
-
body: yield (0, toReadableStream_js_1.toReadableStream)(encoder),
|
|
126
|
-
headers: encoder.headers,
|
|
127
|
-
duplex: "half",
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.Node18FormData = Node18FormData;
|
|
133
|
-
/**
|
|
134
|
-
* Form Data Implementation for Node.js 16-18
|
|
135
|
-
*/
|
|
136
|
-
class Node16FormData {
|
|
137
|
-
setup() {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
this.fd = new (yield Promise.resolve().then(() => __importStar(require("form-data")))).default();
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
append(key, value) {
|
|
143
|
-
var _a;
|
|
144
|
-
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
145
|
-
}
|
|
146
|
-
getFileName(value, filename) {
|
|
147
|
-
if (filename != null) {
|
|
148
|
-
return filename;
|
|
149
|
-
}
|
|
150
|
-
if (isNamedValue(value)) {
|
|
151
|
-
return value.name;
|
|
152
|
-
}
|
|
153
|
-
if (isPathedValue(value) && value.path) {
|
|
154
|
-
return getLastPathSegment(value.path.toString());
|
|
155
|
-
}
|
|
156
|
-
return undefined;
|
|
157
|
-
}
|
|
158
|
-
appendFile(key, value, fileName) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
var _a, _b;
|
|
161
|
-
fileName = this.getFileName(value, fileName);
|
|
162
|
-
let bufferedValue;
|
|
163
|
-
if (value instanceof Blob) {
|
|
164
|
-
bufferedValue = Buffer.from(yield value.arrayBuffer());
|
|
173
|
+
if (value instanceof ArrayBuffer) {
|
|
174
|
+
return new Blob([value]);
|
|
165
175
|
}
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
if (isArrayBufferView(value)) {
|
|
177
|
+
return new Blob([value]);
|
|
168
178
|
}
|
|
169
|
-
if (
|
|
170
|
-
|
|
179
|
+
if (typeof value === "string") {
|
|
180
|
+
return new Blob([value]);
|
|
171
181
|
}
|
|
172
|
-
|
|
173
|
-
|
|
182
|
+
if (typeof value === "object" && value !== null) {
|
|
183
|
+
return new Blob([(0, json_js_1.toJson)(value)], { type: "application/json" });
|
|
174
184
|
}
|
|
185
|
+
return new Blob([String(value)]);
|
|
175
186
|
});
|
|
176
187
|
}
|
|
177
|
-
getRequest() {
|
|
178
|
-
return {
|
|
179
|
-
body: this.fd,
|
|
180
|
-
headers: this.fd ? this.fd.getHeaders() : {},
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
exports.Node16FormData = Node16FormData;
|
|
185
|
-
/**
|
|
186
|
-
* Form Data Implementation for Web
|
|
187
|
-
*/
|
|
188
|
-
class WebFormData {
|
|
189
|
-
setup() {
|
|
190
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
this.fd = new FormData();
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
append(key, value) {
|
|
195
|
-
var _a;
|
|
196
|
-
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
197
|
-
}
|
|
198
|
-
getFileName(value, filename) {
|
|
199
|
-
if (filename != null) {
|
|
200
|
-
return filename;
|
|
201
|
-
}
|
|
202
|
-
if (isNamedValue(value)) {
|
|
203
|
-
return value.name;
|
|
204
|
-
}
|
|
205
|
-
if (isPathedValue(value) && value.path) {
|
|
206
|
-
return getLastPathSegment(value.path.toString());
|
|
207
|
-
}
|
|
208
|
-
return undefined;
|
|
209
|
-
}
|
|
210
188
|
appendFile(key, value, fileName) {
|
|
211
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
var _a, _b;
|
|
213
190
|
fileName = this.getFileName(value, fileName);
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
191
|
+
const blob = yield this.convertToBlob(value);
|
|
192
|
+
if (fileName) {
|
|
193
|
+
this.fd.append(key, blob, fileName);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
this.fd.append(key, blob);
|
|
217
197
|
}
|
|
218
|
-
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, new Blob([value]), fileName);
|
|
219
198
|
});
|
|
220
199
|
}
|
|
221
200
|
getRequest() {
|
|
222
201
|
return {
|
|
223
202
|
body: this.fd,
|
|
224
203
|
headers: {},
|
|
204
|
+
duplex: "half",
|
|
225
205
|
};
|
|
226
206
|
}
|
|
227
207
|
}
|
|
228
|
-
exports.
|
|
208
|
+
exports.FormDataWrapper = FormDataWrapper;
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./stream"), exports);
|
|
|
44
44
|
__exportStar(require("./utils"), exports);
|
|
45
45
|
__exportStar(require("./pagination"), exports);
|
|
46
46
|
__exportStar(require("./form-data-utils"), exports);
|
|
47
|
+
__exportStar(require("./file"), exports);
|
|
47
48
|
exports.serialization = __importStar(require("./schemas"));
|
|
48
49
|
// This one is manually added
|
|
49
50
|
__exportStar(require("./websocket"), exports);
|
|
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AssistantEnd: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantEnd.Raw, Hume.empathicVoice.AssistantEnd>;
|
|
8
8
|
export declare namespace AssistantEnd {
|
|
9
9
|
interface Raw {
|
|
10
|
-
custom_session_id?: string | null;
|
|
11
10
|
type: "assistant_end";
|
|
11
|
+
custom_session_id?: string | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AssistantEnd = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AssistantEnd = core.serialization.object({
|
|
42
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
42
|
type: core.serialization.stringLiteral("assistant_end"),
|
|
43
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
44
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AssistantInput: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantInput.Raw, Hume.empathicVoice.AssistantInput>;
|
|
8
8
|
export declare namespace AssistantInput {
|
|
9
9
|
interface Raw {
|
|
10
|
+
type: "assistant_input";
|
|
10
11
|
custom_session_id?: string | null;
|
|
11
12
|
text: string;
|
|
12
|
-
type: "assistant_input";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AssistantInput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AssistantInput = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("assistant_input"),
|
|
42
43
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
44
|
text: core.serialization.string(),
|
|
44
|
-
type: core.serialization.stringLiteral("assistant_input"),
|
|
45
45
|
});
|
|
@@ -9,11 +9,11 @@ import { Inference } from "./Inference";
|
|
|
9
9
|
export declare const AssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantMessage.Raw, Hume.empathicVoice.AssistantMessage>;
|
|
10
10
|
export declare namespace AssistantMessage {
|
|
11
11
|
interface Raw {
|
|
12
|
+
type: "assistant_message";
|
|
12
13
|
custom_session_id?: string | null;
|
|
13
|
-
from_text: boolean;
|
|
14
14
|
id?: string | null;
|
|
15
15
|
message: ChatMessage.Raw;
|
|
16
16
|
models: Inference.Raw;
|
|
17
|
-
|
|
17
|
+
from_text: boolean;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const ChatMessage_1 = require("./ChatMessage");
|
|
42
42
|
const Inference_1 = require("./Inference");
|
|
43
43
|
exports.AssistantMessage = core.serialization.object({
|
|
44
|
+
type: core.serialization.stringLiteral("assistant_message"),
|
|
44
45
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
45
|
-
fromText: core.serialization.property("from_text", core.serialization.boolean()),
|
|
46
46
|
id: core.serialization.string().optional(),
|
|
47
47
|
message: ChatMessage_1.ChatMessage,
|
|
48
48
|
models: Inference_1.Inference,
|
|
49
|
-
|
|
49
|
+
fromText: core.serialization.property("from_text", core.serialization.boolean()),
|
|
50
50
|
});
|
|
@@ -8,9 +8,9 @@ import { Inference } from "./Inference";
|
|
|
8
8
|
export declare const AssistantProsody: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantProsody.Raw, Hume.empathicVoice.AssistantProsody>;
|
|
9
9
|
export declare namespace AssistantProsody {
|
|
10
10
|
interface Raw {
|
|
11
|
+
type: "assistant_prosody";
|
|
11
12
|
custom_session_id?: string | null;
|
|
12
|
-
id?: string | null;
|
|
13
13
|
models: Inference.Raw;
|
|
14
|
-
|
|
14
|
+
id?: string | null;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -40,8 +40,8 @@ exports.AssistantProsody = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Inference_1 = require("./Inference");
|
|
42
42
|
exports.AssistantProsody = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("assistant_prosody"),
|
|
43
44
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
|
-
id: core.serialization.string().optional(),
|
|
45
45
|
models: Inference_1.Inference,
|
|
46
|
-
|
|
46
|
+
id: core.serialization.string().optional(),
|
|
47
47
|
});
|
|
@@ -8,8 +8,8 @@ import { Encoding } from "./Encoding";
|
|
|
8
8
|
export declare const AudioConfiguration: core.serialization.ObjectSchema<serializers.empathicVoice.AudioConfiguration.Raw, Hume.empathicVoice.AudioConfiguration>;
|
|
9
9
|
export declare namespace AudioConfiguration {
|
|
10
10
|
interface Raw {
|
|
11
|
-
channels: number;
|
|
12
11
|
encoding: Encoding.Raw;
|
|
12
|
+
channels: number;
|
|
13
13
|
sample_rate: number;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -40,7 +40,7 @@ exports.AudioConfiguration = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Encoding_1 = require("./Encoding");
|
|
42
42
|
exports.AudioConfiguration = core.serialization.object({
|
|
43
|
-
channels: core.serialization.number(),
|
|
44
43
|
encoding: Encoding_1.Encoding,
|
|
44
|
+
channels: core.serialization.number(),
|
|
45
45
|
sampleRate: core.serialization.property("sample_rate", core.serialization.number()),
|
|
46
46
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AudioInput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioInput.Raw, Hume.empathicVoice.AudioInput>;
|
|
8
8
|
export declare namespace AudioInput {
|
|
9
9
|
interface Raw {
|
|
10
|
+
type: "audio_input";
|
|
10
11
|
custom_session_id?: string | null;
|
|
11
12
|
data: string;
|
|
12
|
-
type: "audio_input";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AudioInput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AudioInput = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("audio_input"),
|
|
42
43
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
44
|
data: core.serialization.string(),
|
|
44
|
-
type: core.serialization.stringLiteral("audio_input"),
|
|
45
45
|
});
|
|
@@ -7,10 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AudioOutput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioOutput.Raw, Hume.empathicVoice.AudioOutput>;
|
|
8
8
|
export declare namespace AudioOutput {
|
|
9
9
|
interface Raw {
|
|
10
|
+
type: "audio_output";
|
|
10
11
|
custom_session_id?: string | null;
|
|
11
|
-
data: string;
|
|
12
12
|
id: string;
|
|
13
13
|
index: number;
|
|
14
|
-
|
|
14
|
+
data: string;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AudioOutput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AudioOutput = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("audio_output"),
|
|
42
43
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
|
-
data: core.serialization.string(),
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
index: core.serialization.number(),
|
|
46
|
-
|
|
46
|
+
data: core.serialization.string(),
|
|
47
47
|
});
|
|
@@ -8,7 +8,7 @@ import { BuiltInTool } from "./BuiltInTool";
|
|
|
8
8
|
export declare const BuiltinToolConfig: core.serialization.ObjectSchema<serializers.empathicVoice.BuiltinToolConfig.Raw, Hume.empathicVoice.BuiltinToolConfig>;
|
|
9
9
|
export declare namespace BuiltinToolConfig {
|
|
10
10
|
interface Raw {
|
|
11
|
-
fallback_content?: string | null;
|
|
12
11
|
name: BuiltInTool.Raw;
|
|
12
|
+
fallback_content?: string | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.BuiltinToolConfig = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const BuiltInTool_1 = require("./BuiltInTool");
|
|
42
42
|
exports.BuiltinToolConfig = core.serialization.object({
|
|
43
|
-
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
44
43
|
name: BuiltInTool_1.BuiltInTool,
|
|
44
|
+
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
45
45
|
});
|
|
@@ -10,8 +10,8 @@ import { ChatMessageToolResult } from "./ChatMessageToolResult";
|
|
|
10
10
|
export declare const ChatMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMessage.Raw, Hume.empathicVoice.ChatMessage>;
|
|
11
11
|
export declare namespace ChatMessage {
|
|
12
12
|
interface Raw {
|
|
13
|
-
content?: string | null;
|
|
14
13
|
role: Role.Raw;
|
|
14
|
+
content?: string | null;
|
|
15
15
|
tool_call?: ToolCallMessage.Raw | null;
|
|
16
16
|
tool_result?: ChatMessageToolResult.Raw | null;
|
|
17
17
|
}
|
|
@@ -42,8 +42,8 @@ const Role_1 = require("./Role");
|
|
|
42
42
|
const ToolCallMessage_1 = require("./ToolCallMessage");
|
|
43
43
|
const ChatMessageToolResult_1 = require("./ChatMessageToolResult");
|
|
44
44
|
exports.ChatMessage = core.serialization.object({
|
|
45
|
-
content: core.serialization.string().optional(),
|
|
46
45
|
role: Role_1.Role,
|
|
46
|
+
content: core.serialization.string().optional(),
|
|
47
47
|
toolCall: core.serialization.property("tool_call", ToolCallMessage_1.ToolCallMessage.optional()),
|
|
48
48
|
toolResult: core.serialization.property("tool_result", ChatMessageToolResult_1.ChatMessageToolResult.optional()),
|
|
49
49
|
});
|
|
@@ -7,10 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const ChatMetadata: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMetadata.Raw, Hume.empathicVoice.ChatMetadata>;
|
|
8
8
|
export declare namespace ChatMetadata {
|
|
9
9
|
interface Raw {
|
|
10
|
+
type: "chat_metadata";
|
|
11
|
+
custom_session_id?: string | null;
|
|
10
12
|
chat_group_id: string;
|
|
11
13
|
chat_id: string;
|
|
12
|
-
custom_session_id?: string | null;
|
|
13
14
|
request_id?: string | null;
|
|
14
|
-
type: "chat_metadata";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ChatMetadata = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.ChatMetadata = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("chat_metadata"),
|
|
43
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
42
44
|
chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
|
|
43
45
|
chatId: core.serialization.property("chat_id", core.serialization.string()),
|
|
44
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
45
46
|
requestId: core.serialization.property("request_id", core.serialization.string().optional()),
|
|
46
|
-
type: core.serialization.stringLiteral("chat_metadata"),
|
|
47
47
|
});
|
|
@@ -8,7 +8,7 @@ import { ContextType } from "./ContextType";
|
|
|
8
8
|
export declare const Context: core.serialization.ObjectSchema<serializers.empathicVoice.Context.Raw, Hume.empathicVoice.Context>;
|
|
9
9
|
export declare namespace Context {
|
|
10
10
|
interface Raw {
|
|
11
|
-
text: string;
|
|
12
11
|
type?: ContextType.Raw | null;
|
|
12
|
+
text: string;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.Context = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ContextType_1 = require("./ContextType");
|
|
42
42
|
exports.Context = core.serialization.object({
|
|
43
|
-
text: core.serialization.string(),
|
|
44
43
|
type: ContextType_1.ContextType.optional(),
|
|
44
|
+
text: core.serialization.string(),
|
|
45
45
|
});
|
|
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const ContextType: core.serialization.Schema<serializers.empathicVoice.ContextType.Raw, Hume.empathicVoice.ContextType>;
|
|
8
8
|
export declare namespace ContextType {
|
|
9
|
-
type Raw = "
|
|
9
|
+
type Raw = "temporary" | "persistent";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ContextType = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.ContextType = core.serialization.enum_(["
|
|
41
|
+
exports.ContextType = core.serialization.enum_(["temporary", "persistent"]);
|
|
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const LanguageModelType: core.serialization.Schema<serializers.empathicVoice.LanguageModelType.Raw, Hume.empathicVoice.LanguageModelType>;
|
|
8
8
|
export declare namespace LanguageModelType {
|
|
9
|
-
type Raw = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm" | "custom-language-model";
|
|
9
|
+
type Raw = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-sonnet-4-20250514" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gpt-oss-120b" | "qwen-3-235b-a22b" | "qwen-3-235b-a22b-instruct-2507" | "qwen-3-235b-a22b-thinking-2507" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-04-17" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "moonshotai/kimi-k2-instruct" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "sonar" | "sonar-pro" | "sambanova" | "DeepSeek-R1-Distill-Llama-70B" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "ellm" | "custom-language-model" | "hume-evi-3-web-search";
|
|
10
10
|
}
|
|
@@ -46,30 +46,49 @@ exports.LanguageModelType = core.serialization.enum_([
|
|
|
46
46
|
"claude-3-opus-20240229",
|
|
47
47
|
"claude-3-sonnet-20240229",
|
|
48
48
|
"claude-3-haiku-20240307",
|
|
49
|
+
"claude-sonnet-4-20250514",
|
|
49
50
|
"us.anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
50
51
|
"us.anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
51
52
|
"us.anthropic.claude-3-haiku-20240307-v1:0",
|
|
53
|
+
"gpt-oss-120b",
|
|
54
|
+
"qwen-3-235b-a22b",
|
|
55
|
+
"qwen-3-235b-a22b-instruct-2507",
|
|
56
|
+
"qwen-3-235b-a22b-thinking-2507",
|
|
52
57
|
"gemini-1.5-pro",
|
|
53
58
|
"gemini-1.5-flash",
|
|
54
59
|
"gemini-1.5-pro-002",
|
|
55
60
|
"gemini-1.5-flash-002",
|
|
56
61
|
"gemini-2.0-flash",
|
|
62
|
+
"gemini-2.5-flash",
|
|
63
|
+
"gemini-2.5-flash-preview-04-17",
|
|
57
64
|
"gpt-4-turbo",
|
|
58
65
|
"gpt-4-turbo-preview",
|
|
59
66
|
"gpt-3.5-turbo-0125",
|
|
60
67
|
"gpt-3.5-turbo",
|
|
61
68
|
"gpt-4o",
|
|
62
69
|
"gpt-4o-mini",
|
|
70
|
+
"gpt-4.1",
|
|
71
|
+
"gpt-5",
|
|
72
|
+
"gpt-5-mini",
|
|
73
|
+
"gpt-5-nano",
|
|
63
74
|
"gemma-7b-it",
|
|
64
75
|
"llama3-8b-8192",
|
|
65
76
|
"llama3-70b-8192",
|
|
66
77
|
"llama-3.1-70b-versatile",
|
|
67
78
|
"llama-3.3-70b-versatile",
|
|
68
79
|
"llama-3.1-8b-instant",
|
|
80
|
+
"moonshotai/kimi-k2-instruct",
|
|
69
81
|
"accounts/fireworks/models/mixtral-8x7b-instruct",
|
|
70
82
|
"accounts/fireworks/models/llama-v3p1-405b-instruct",
|
|
71
83
|
"accounts/fireworks/models/llama-v3p1-70b-instruct",
|
|
72
84
|
"accounts/fireworks/models/llama-v3p1-8b-instruct",
|
|
85
|
+
"sonar",
|
|
86
|
+
"sonar-pro",
|
|
87
|
+
"sambanova",
|
|
88
|
+
"DeepSeek-R1-Distill-Llama-70B",
|
|
89
|
+
"Llama-4-Maverick-17B-128E-Instruct",
|
|
90
|
+
"Qwen3-32B",
|
|
73
91
|
"ellm",
|
|
74
92
|
"custom-language-model",
|
|
93
|
+
"hume-evi-3-web-search",
|
|
75
94
|
]);
|