hume 0.15.11 → 0.15.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.d.ts +7 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +16 -5
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +11 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +58 -10
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +58 -10
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -2
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +57 -9
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +8 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +5 -11
- package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +9 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +9 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +7 -3
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +17 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +13 -4
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventToolCall.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +2 -2
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -1
- package/dist/cjs/core/schemas/builders/object/object.js +20 -2
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +7 -1
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +16 -5
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -3
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +11 -3
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +58 -10
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +58 -10
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +3 -2
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +57 -9
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.mts +8 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +5 -11
- package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +9 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +9 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +7 -3
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +17 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +13 -4
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventToolCall.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -1
- package/dist/esm/core/schemas/builders/object/object.mjs +20 -2
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +630 -46
|
@@ -46,5 +46,6 @@ exports.WebhookEventChatEnded = core.serialization
|
|
|
46
46
|
endReason: core.serialization.property("end_reason", WebhookEventChatStatus_js_1.WebhookEventChatStatus),
|
|
47
47
|
endTime: core.serialization.property("end_time", core.serialization.number()),
|
|
48
48
|
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
|
|
49
|
+
twilioMetadata: core.serialization.property("twilio_metadata", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
49
50
|
})
|
|
50
51
|
.extend(WebhookEventBase_js_1.WebhookEventBase);
|
|
@@ -45,5 +45,6 @@ exports.WebhookEventChatStarted = core.serialization
|
|
|
45
45
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
46
46
|
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_started").optional()),
|
|
47
47
|
startTime: core.serialization.property("start_time", core.serialization.number()),
|
|
48
|
+
twilioMetadata: core.serialization.property("twilio_metadata", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
48
49
|
})
|
|
49
50
|
.extend(WebhookEventBase_js_1.WebhookEventBase);
|
|
@@ -45,5 +45,6 @@ exports.WebhookEventToolCall = core.serialization
|
|
|
45
45
|
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("tool_call").optional()),
|
|
46
46
|
timestamp: core.serialization.number(),
|
|
47
47
|
toolCallMessage: core.serialization.property("tool_call_message", ToolCallMessage_js_1.ToolCallMessage),
|
|
48
|
+
twilioMetadata: core.serialization.property("twilio_metadata", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
48
49
|
})
|
|
49
50
|
.extend(WebhookEventBase_js_1.WebhookEventBase);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.13";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "hume",
|
|
9
|
-
"X-Fern-SDK-Version": "0.15.
|
|
10
|
-
"User-Agent": "hume/0.15.
|
|
9
|
+
"X-Fern-SDK-Version": "0.15.13",
|
|
10
|
+
"User-Agent": "hume/0.15.13",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -9,12 +9,18 @@ export declare namespace ChatClient {
|
|
|
9
9
|
accessToken?: string;
|
|
10
10
|
allowConnection?: boolean;
|
|
11
11
|
configId?: string;
|
|
12
|
-
|
|
12
|
+
/** Accepts both string and number for backward compatibility */
|
|
13
|
+
configVersion?: string | number;
|
|
13
14
|
eventLimit?: number;
|
|
14
15
|
resumedChatGroupId?: string;
|
|
15
16
|
verboseTranscription?: boolean;
|
|
17
|
+
/** @deprecated Use sessionSettings.voiceId instead */
|
|
18
|
+
voiceId?: string;
|
|
16
19
|
apiKey?: string;
|
|
17
20
|
sessionSettings?: Hume.empathicVoice.ConnectSessionSettings;
|
|
21
|
+
/** Extra query parameters sent at WebSocket connection for backward compatibility */
|
|
22
|
+
queryParams?: Record<string, string | string[] | object | object[]>;
|
|
23
|
+
/** Arbitrary headers to send with the websocket connect request. */
|
|
18
24
|
headers?: Record<string, string>;
|
|
19
25
|
debug?: boolean;
|
|
20
26
|
reconnectAttempts?: number;
|
|
@@ -10,15 +10,20 @@ export class ChatClient {
|
|
|
10
10
|
}
|
|
11
11
|
connect(args = {}) {
|
|
12
12
|
var _a, _b;
|
|
13
|
-
const { accessToken, allowConnection, configId, configVersion, eventLimit, resumedChatGroupId, verboseTranscription, apiKey, sessionSettings, headers, debug, reconnectAttempts, } = args;
|
|
13
|
+
const { accessToken, allowConnection, configId, configVersion, eventLimit, resumedChatGroupId, verboseTranscription, voiceId, apiKey, sessionSettings, queryParams, headers, debug, reconnectAttempts, } = args;
|
|
14
14
|
const _queryParams = {
|
|
15
15
|
access_token: accessToken,
|
|
16
|
-
allow_connection: allowConnection,
|
|
16
|
+
allow_connection: allowConnection != null ? (allowConnection ? "true" : "false") : undefined,
|
|
17
17
|
config_id: configId,
|
|
18
|
-
config_version: configVersion
|
|
19
|
-
|
|
18
|
+
config_version: configVersion != null
|
|
19
|
+
? typeof configVersion === "number"
|
|
20
|
+
? configVersion.toString()
|
|
21
|
+
: configVersion
|
|
22
|
+
: undefined,
|
|
23
|
+
event_limit: eventLimit != null ? eventLimit.toString() : undefined,
|
|
20
24
|
resumed_chat_group_id: resumedChatGroupId,
|
|
21
|
-
verbose_transcription: verboseTranscription,
|
|
25
|
+
verbose_transcription: verboseTranscription != null ? verboseTranscription.toString() : undefined,
|
|
26
|
+
voice_id: voiceId,
|
|
22
27
|
api_key: apiKey,
|
|
23
28
|
session_settings: sessionSettings != null
|
|
24
29
|
? serializers.empathicVoice.ConnectSessionSettings.jsonOrThrow(sessionSettings, {
|
|
@@ -30,6 +35,12 @@ export class ChatClient {
|
|
|
30
35
|
})
|
|
31
36
|
: undefined,
|
|
32
37
|
};
|
|
38
|
+
// Merge in any additional query parameters
|
|
39
|
+
if (queryParams != null) {
|
|
40
|
+
for (const [name, value] of Object.entries(queryParams)) {
|
|
41
|
+
_queryParams[name] = value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
33
44
|
const _headers = mergeOnlyDefinedHeaders(Object.assign(Object.assign({}, this._getCustomAuthorizationHeaders()), headers));
|
|
34
45
|
const socket = new core.ReconnectingWebSocket({
|
|
35
46
|
url: core.url.join((_a = core.Supplier.get(this._options.baseUrl)) !== null && _a !== void 0 ? _a : ((_b = core.Supplier.get(this._options.environment)) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, "/chat"),
|
|
@@ -11,6 +11,8 @@ export declare class ChatGroupsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ChatGroupsClient.Options>;
|
|
12
12
|
constructor(options?: ChatGroupsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Fetches a paginated list of **Chat Groups**.
|
|
15
|
+
*
|
|
14
16
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
|
|
15
17
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
@@ -26,7 +28,9 @@ export declare class ChatGroupsClient {
|
|
|
26
28
|
*/
|
|
27
29
|
listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroupsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatGroup, Hume.empathicVoice.ReturnPagedChatGroups>>;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
30
34
|
* @param {Hume.empathicVoice.ChatGroupsGetChatGroupRequest} request
|
|
31
35
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
36
|
*
|
|
@@ -42,7 +46,9 @@ export declare class ChatGroupsClient {
|
|
|
42
46
|
getChatGroup(id: string, request?: Hume.empathicVoice.ChatGroupsGetChatGroupRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedChats>;
|
|
43
47
|
private __getChatGroup;
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
50
|
+
*
|
|
51
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
46
52
|
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
47
53
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
54
|
*
|
|
@@ -58,7 +64,9 @@ export declare class ChatGroupsClient {
|
|
|
58
64
|
getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
|
|
59
65
|
private __getAudio;
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
67
|
+
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
68
|
+
*
|
|
69
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
62
70
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
|
|
63
71
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
72
|
*
|
|
@@ -21,6 +21,8 @@ export class ChatGroupsClient {
|
|
|
21
21
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
+
* Fetches a paginated list of **Chat Groups**.
|
|
25
|
+
*
|
|
24
26
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
|
|
25
27
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
28
|
*
|
|
@@ -106,7 +108,9 @@ export class ChatGroupsClient {
|
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
|
|
112
|
+
*
|
|
113
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
110
114
|
* @param {Hume.empathicVoice.ChatGroupsGetChatGroupRequest} request
|
|
111
115
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
116
|
*
|
|
@@ -179,7 +183,9 @@ export class ChatGroupsClient {
|
|
|
179
183
|
});
|
|
180
184
|
}
|
|
181
185
|
/**
|
|
182
|
-
*
|
|
186
|
+
* Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
187
|
+
*
|
|
188
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
183
189
|
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
184
190
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
191
|
*
|
|
@@ -251,7 +257,9 @@ export class ChatGroupsClient {
|
|
|
251
257
|
});
|
|
252
258
|
}
|
|
253
259
|
/**
|
|
254
|
-
*
|
|
260
|
+
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
261
|
+
*
|
|
262
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
255
263
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
|
|
256
264
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
265
|
*
|
|
@@ -19,6 +19,6 @@ export interface ChatGroupsGetAudioRequest {
|
|
|
19
19
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
20
20
|
*/
|
|
21
21
|
pageSize?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -21,6 +21,6 @@ export interface ChatGroupsGetChatGroupRequest {
|
|
|
21
21
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
22
22
|
*/
|
|
23
23
|
pageNumber?: number;
|
|
24
|
-
/**
|
|
24
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
25
25
|
ascendingOrder?: boolean;
|
|
26
26
|
}
|
|
@@ -19,6 +19,6 @@ export interface ChatGroupsListChatGroupEventsRequest {
|
|
|
19
19
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
20
20
|
*/
|
|
21
21
|
pageNumber?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -20,8 +20,12 @@ export interface ChatGroupsListChatGroupsRequest {
|
|
|
20
20
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
21
21
|
*/
|
|
22
22
|
pageSize?: number;
|
|
23
|
-
/**
|
|
23
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
24
24
|
ascendingOrder?: boolean;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier for an EVI configuration.
|
|
27
|
+
*
|
|
28
|
+
* Filter Chat Groups to only include Chats that used this `config_id` in their most recent Chat.
|
|
29
|
+
*/
|
|
26
30
|
configId?: string;
|
|
27
31
|
}
|
|
@@ -11,6 +11,8 @@ export declare class ChatsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ChatsClient.Options>;
|
|
12
12
|
constructor(options?: ChatsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Fetches a paginated list of **Chats**.
|
|
15
|
+
*
|
|
14
16
|
* @param {Hume.empathicVoice.ChatsListChatsRequest} request
|
|
15
17
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
@@ -25,7 +27,9 @@ export declare class ChatsClient {
|
|
|
25
27
|
*/
|
|
26
28
|
listChats(request?: Hume.empathicVoice.ChatsListChatsRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChat, Hume.empathicVoice.ReturnPagedChats>>;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* Fetches a paginated list of **Chat** events.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
29
33
|
* @param {Hume.empathicVoice.ChatsListChatEventsRequest} request
|
|
30
34
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
35
|
*
|
|
@@ -40,7 +44,9 @@ export declare class ChatsClient {
|
|
|
40
44
|
*/
|
|
41
45
|
listChatEvents(id: string, request?: Hume.empathicVoice.ChatsListChatEventsRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatEvent, Hume.empathicVoice.ReturnChatPagedEvents>>;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
48
|
+
*
|
|
49
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
44
50
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
51
|
*
|
|
46
52
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -21,6 +21,8 @@ export class ChatsClient {
|
|
|
21
21
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
+
* Fetches a paginated list of **Chats**.
|
|
25
|
+
*
|
|
24
26
|
* @param {Hume.empathicVoice.ChatsListChatsRequest} request
|
|
25
27
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
28
|
*
|
|
@@ -106,7 +108,9 @@ export class ChatsClient {
|
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* Fetches a paginated list of **Chat** events.
|
|
112
|
+
*
|
|
113
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
110
114
|
* @param {Hume.empathicVoice.ChatsListChatEventsRequest} request
|
|
111
115
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
116
|
*
|
|
@@ -190,7 +194,9 @@ export class ChatsClient {
|
|
|
190
194
|
});
|
|
191
195
|
}
|
|
192
196
|
/**
|
|
193
|
-
*
|
|
197
|
+
* Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
198
|
+
*
|
|
199
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
194
200
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
201
|
*
|
|
196
202
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -19,6 +19,6 @@ export interface ChatsListChatEventsRequest {
|
|
|
19
19
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
20
20
|
*/
|
|
21
21
|
pageNumber?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -19,7 +19,7 @@ export interface ChatsListChatsRequest {
|
|
|
19
19
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
20
20
|
*/
|
|
21
21
|
pageSize?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
/** Filter to only include chats that used this config. */
|
|
25
25
|
configId?: string;
|
|
@@ -11,6 +11,10 @@ export declare class ConfigsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ConfigsClient.Options>;
|
|
12
12
|
constructor(options?: ConfigsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Fetches a paginated list of **Configs**.
|
|
15
|
+
*
|
|
16
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
17
|
+
*
|
|
14
18
|
* @param {Hume.empathicVoice.ConfigsListConfigsRequest} request
|
|
15
19
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
20
|
*
|
|
@@ -24,6 +28,10 @@ export declare class ConfigsClient {
|
|
|
24
28
|
*/
|
|
25
29
|
listConfigs(request?: Hume.empathicVoice.ConfigsListConfigsRequest, requestOptions?: ConfigsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnConfig, Hume.empathicVoice.ReturnPagedConfigs>>;
|
|
26
30
|
/**
|
|
31
|
+
* Creates a **Config** which can be applied to EVI.
|
|
32
|
+
*
|
|
33
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
34
|
+
*
|
|
27
35
|
* @param {Hume.empathicVoice.PostedConfig} request
|
|
28
36
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
37
|
*
|
|
@@ -65,7 +73,11 @@ export declare class ConfigsClient {
|
|
|
65
73
|
createConfig(request: Hume.empathicVoice.PostedConfig, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnConfig>;
|
|
66
74
|
private __createConfig;
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
76
|
+
* Fetches a list of a **Config's** versions.
|
|
77
|
+
*
|
|
78
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
79
|
+
*
|
|
80
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
69
81
|
* @param {Hume.empathicVoice.ConfigsListConfigVersionsRequest} request
|
|
70
82
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
83
|
*
|
|
@@ -76,7 +88,11 @@ export declare class ConfigsClient {
|
|
|
76
88
|
*/
|
|
77
89
|
listConfigVersions(id: string, request?: Hume.empathicVoice.ConfigsListConfigVersionsRequest, requestOptions?: ConfigsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnConfig, Hume.empathicVoice.ReturnPagedConfigs>>;
|
|
78
90
|
/**
|
|
79
|
-
*
|
|
91
|
+
* Updates a **Config** by creating a new version of the **Config**.
|
|
92
|
+
*
|
|
93
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
94
|
+
*
|
|
95
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
80
96
|
* @param {Hume.empathicVoice.PostedConfigVersion} request
|
|
81
97
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
98
|
*
|
|
@@ -121,7 +137,11 @@ export declare class ConfigsClient {
|
|
|
121
137
|
createConfigVersion(id: string, request: Hume.empathicVoice.PostedConfigVersion, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnConfig>;
|
|
122
138
|
private __createConfigVersion;
|
|
123
139
|
/**
|
|
124
|
-
*
|
|
140
|
+
* Deletes a **Config** and its versions.
|
|
141
|
+
*
|
|
142
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
143
|
+
*
|
|
144
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
125
145
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
146
|
*
|
|
127
147
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -132,7 +152,11 @@ export declare class ConfigsClient {
|
|
|
132
152
|
deleteConfig(id: string, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
133
153
|
private __deleteConfig;
|
|
134
154
|
/**
|
|
135
|
-
*
|
|
155
|
+
* Updates the name of a **Config**.
|
|
156
|
+
*
|
|
157
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
158
|
+
*
|
|
159
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
136
160
|
* @param {Hume.empathicVoice.PostedConfigName} request
|
|
137
161
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
162
|
*
|
|
@@ -146,8 +170,16 @@ export declare class ConfigsClient {
|
|
|
146
170
|
updateConfigName(id: string, request: Hume.empathicVoice.PostedConfigName, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<string>;
|
|
147
171
|
private __updateConfigName;
|
|
148
172
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
173
|
+
* Fetches a specified version of a **Config**.
|
|
174
|
+
*
|
|
175
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
176
|
+
*
|
|
177
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
178
|
+
* @param {number} version - Version number for a Config.
|
|
179
|
+
*
|
|
180
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
181
|
+
*
|
|
182
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
151
183
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
184
|
*
|
|
153
185
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -158,8 +190,16 @@ export declare class ConfigsClient {
|
|
|
158
190
|
getConfigVersion(id: string, version: number, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnConfig>;
|
|
159
191
|
private __getConfigVersion;
|
|
160
192
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
193
|
+
* Deletes a specified version of a **Config**.
|
|
194
|
+
*
|
|
195
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
196
|
+
*
|
|
197
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
198
|
+
* @param {number} version - Version number for a Config.
|
|
199
|
+
*
|
|
200
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
201
|
+
*
|
|
202
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
163
203
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
204
|
*
|
|
165
205
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -170,8 +210,16 @@ export declare class ConfigsClient {
|
|
|
170
210
|
deleteConfigVersion(id: string, version: number, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
171
211
|
private __deleteConfigVersion;
|
|
172
212
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
213
|
+
* Updates the description of a **Config**.
|
|
214
|
+
*
|
|
215
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
216
|
+
*
|
|
217
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
218
|
+
* @param {number} version - Version number for a Config.
|
|
219
|
+
*
|
|
220
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
221
|
+
*
|
|
222
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
175
223
|
* @param {Hume.empathicVoice.PostedConfigVersionDescription} request
|
|
176
224
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
225
|
*
|
|
@@ -21,6 +21,10 @@ export class ConfigsClient {
|
|
|
21
21
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
+
* Fetches a paginated list of **Configs**.
|
|
25
|
+
*
|
|
26
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
27
|
+
*
|
|
24
28
|
* @param {Hume.empathicVoice.ConfigsListConfigsRequest} request
|
|
25
29
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
30
|
*
|
|
@@ -104,6 +108,10 @@ export class ConfigsClient {
|
|
|
104
108
|
});
|
|
105
109
|
}
|
|
106
110
|
/**
|
|
111
|
+
* Creates a **Config** which can be applied to EVI.
|
|
112
|
+
*
|
|
113
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
114
|
+
*
|
|
107
115
|
* @param {Hume.empathicVoice.PostedConfig} request
|
|
108
116
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
117
|
*
|
|
@@ -201,7 +209,11 @@ export class ConfigsClient {
|
|
|
201
209
|
});
|
|
202
210
|
}
|
|
203
211
|
/**
|
|
204
|
-
*
|
|
212
|
+
* Fetches a list of a **Config's** versions.
|
|
213
|
+
*
|
|
214
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
215
|
+
*
|
|
216
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
205
217
|
* @param {Hume.empathicVoice.ConfigsListConfigVersionsRequest} request
|
|
206
218
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
219
|
*
|
|
@@ -281,7 +293,11 @@ export class ConfigsClient {
|
|
|
281
293
|
});
|
|
282
294
|
}
|
|
283
295
|
/**
|
|
284
|
-
*
|
|
296
|
+
* Updates a **Config** by creating a new version of the **Config**.
|
|
297
|
+
*
|
|
298
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
299
|
+
*
|
|
300
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
285
301
|
* @param {Hume.empathicVoice.PostedConfigVersion} request
|
|
286
302
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
287
303
|
*
|
|
@@ -382,7 +398,11 @@ export class ConfigsClient {
|
|
|
382
398
|
});
|
|
383
399
|
}
|
|
384
400
|
/**
|
|
385
|
-
*
|
|
401
|
+
* Deletes a **Config** and its versions.
|
|
402
|
+
*
|
|
403
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
404
|
+
*
|
|
405
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
386
406
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
387
407
|
*
|
|
388
408
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -434,7 +454,11 @@ export class ConfigsClient {
|
|
|
434
454
|
});
|
|
435
455
|
}
|
|
436
456
|
/**
|
|
437
|
-
*
|
|
457
|
+
* Updates the name of a **Config**.
|
|
458
|
+
*
|
|
459
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
460
|
+
*
|
|
461
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
438
462
|
* @param {Hume.empathicVoice.PostedConfigName} request
|
|
439
463
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
440
464
|
*
|
|
@@ -496,8 +520,16 @@ export class ConfigsClient {
|
|
|
496
520
|
});
|
|
497
521
|
}
|
|
498
522
|
/**
|
|
499
|
-
*
|
|
500
|
-
*
|
|
523
|
+
* Fetches a specified version of a **Config**.
|
|
524
|
+
*
|
|
525
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
526
|
+
*
|
|
527
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
528
|
+
* @param {number} version - Version number for a Config.
|
|
529
|
+
*
|
|
530
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
531
|
+
*
|
|
532
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
501
533
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
502
534
|
*
|
|
503
535
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -558,8 +590,16 @@ export class ConfigsClient {
|
|
|
558
590
|
});
|
|
559
591
|
}
|
|
560
592
|
/**
|
|
561
|
-
*
|
|
562
|
-
*
|
|
593
|
+
* Deletes a specified version of a **Config**.
|
|
594
|
+
*
|
|
595
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
596
|
+
*
|
|
597
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
598
|
+
* @param {number} version - Version number for a Config.
|
|
599
|
+
*
|
|
600
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
601
|
+
*
|
|
602
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
563
603
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
564
604
|
*
|
|
565
605
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
@@ -611,8 +651,16 @@ export class ConfigsClient {
|
|
|
611
651
|
});
|
|
612
652
|
}
|
|
613
653
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
654
|
+
* Updates the description of a **Config**.
|
|
655
|
+
*
|
|
656
|
+
* For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
|
|
657
|
+
*
|
|
658
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
659
|
+
* @param {number} version - Version number for a Config.
|
|
660
|
+
*
|
|
661
|
+
* Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
|
|
662
|
+
*
|
|
663
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
616
664
|
* @param {Hume.empathicVoice.PostedConfigVersionDescription} request
|
|
617
665
|
* @param {ConfigsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
618
666
|
*
|
|
@@ -15,6 +15,6 @@ export interface ConfigsListConfigVersionsRequest {
|
|
|
15
15
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
16
16
|
*/
|
|
17
17
|
pageSize?: number;
|
|
18
|
-
/** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each
|
|
18
|
+
/** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each config. To include all versions of each config in the list, set `restrict_to_most_recent` to false. */
|
|
19
19
|
restrictToMostRecent?: boolean;
|
|
20
20
|
}
|
|
@@ -18,7 +18,7 @@ export interface ConfigsListConfigsRequest {
|
|
|
18
18
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
19
19
|
*/
|
|
20
20
|
pageSize?: number;
|
|
21
|
-
/** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each
|
|
21
|
+
/** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each config. To include all versions of each config in the list, set `restrict_to_most_recent` to false. */
|
|
22
22
|
restrictToMostRecent?: boolean;
|
|
23
23
|
/** Filter to only include configs with this name. */
|
|
24
24
|
name?: string;
|