hume 0.15.8 → 0.15.10
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.d.ts +13 -4
- package/dist/cjs/BaseClient.js +59 -0
- package/dist/cjs/Client.d.ts +13 -13
- package/dist/cjs/Client.js +8 -49
- package/dist/cjs/api/resources/empathicVoice/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/empathicVoice/client/Client.js +13 -12
- package/dist/cjs/api/resources/empathicVoice/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +3 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/index.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +17 -26
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +48 -136
- 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 +2 -6
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -20
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +32 -95
- 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 +34 -83
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +64 -245
- 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/PostedConfig.d.ts +4 -16
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -14
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/client/Client.js +6 -19
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +34 -83
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +64 -245
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -8
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -8
- 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/tools/client/Client.d.ts +34 -83
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +64 -245
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +4 -8
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -8
- 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 +2 -5
- package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +6 -4
- package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -4
- package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -5
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +9 -3
- package/dist/cjs/api/resources/empathicVoice/types/Context.d.ts +9 -3
- package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +1 -36
- package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -50
- package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -4
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -9
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +0 -8
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinToolName.js +0 -8
- package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +1 -5
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +1 -14
- package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -7
- package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +1 -13
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +0 -11
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +0 -11
- package/dist/cjs/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +1 -7
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -3
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +1 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -19
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +0 -13
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +0 -13
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +0 -13
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +5 -30
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +0 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventRole.js +0 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +0 -14
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.js +0 -14
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +1 -10
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +6 -16
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +3 -12
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +6 -30
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +0 -15
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +0 -15
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +0 -15
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatStatus.js +0 -15
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +2 -8
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +1 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +1 -14
- package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -11
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -11
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +0 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPromptVersionType.js +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +1 -13
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +7 -19
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +0 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnVoice.d.ts +5 -3
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +10 -19
- package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +1 -55
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -9
- package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -5
- package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -11
- package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -3
- package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -17
- package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +11 -2
- package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +11 -2
- package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -3
- package/dist/cjs/api/resources/expressionMeasurement/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/expressionMeasurement/client/Client.js +7 -6
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +17 -18
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/client/Client.js +63 -151
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +7 -8
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +7 -12
- package/dist/cjs/api/resources/tts/client/Client.d.ts +19 -20
- package/dist/cjs/api/resources/tts/client/Client.js +56 -138
- package/dist/cjs/api/resources/tts/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/tts/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.d.ts +15 -14
- package/dist/cjs/api/resources/tts/resources/streamInput/client/Client.js +10 -6
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +13 -14
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +33 -87
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/OctaveVersion.d.ts +7 -3
- package/dist/cjs/api/resources/tts/types/OctaveVersion.js +7 -3
- package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +0 -6
- 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/PublishTts.d.ts +14 -4
- package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -9
- package/dist/cjs/api/resources/tts/types/ReturnVoice.d.ts +3 -3
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +26 -0
- package/dist/cjs/auth/HeaderAuthProvider.js +91 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
- package/dist/cjs/core/fetcher/Fetcher.js +42 -24
- package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +0 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -9
- package/dist/cjs/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/core/logging/logger.js +1 -1
- package/dist/cjs/core/pagination/CustomPager.d.ts +67 -0
- package/dist/cjs/core/pagination/CustomPager.js +194 -0
- package/dist/cjs/core/pagination/index.d.ts +1 -0
- package/dist/cjs/core/pagination/index.js +4 -1
- package/dist/cjs/core/runtime/runtime.js +11 -10
- package/dist/cjs/core/schemas/Schema.d.ts +1 -0
- package/dist/cjs/core/schemas/Schema.js +1 -0
- package/dist/cjs/core/schemas/builders/object/object.js +14 -1
- package/dist/cjs/core/schemas/builders/primitives/index.d.ts +1 -0
- package/dist/cjs/core/schemas/builders/primitives/index.js +3 -1
- package/dist/cjs/core/schemas/builders/primitives/never.d.ts +2 -0
- package/dist/cjs/core/schemas/builders/primitives/never.js +14 -0
- package/dist/cjs/core/url/join.js +0 -1
- package/dist/cjs/errors/HumeError.js +5 -1
- package/dist/cjs/errors/HumeTimeoutError.js +5 -1
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -3
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -3
- package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.d.ts +4 -4
- package/dist/cjs/serialization/resources/tts/types/ReturnPagedVoices.js +4 -4
- package/dist/cjs/serialization/resources/tts/types/ReturnVoice.d.ts +3 -3
- package/dist/cjs/serialization/resources/tts/types/ReturnVoice.js +3 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/SilenceFiller.d.ts +64 -10
- package/dist/cjs/wrapper/SilenceFiller.js +109 -26
- package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.ts +1 -1
- package/dist/cjs/wrapper/expressionMeasurement/ExpressionMeasurementClient.js +1 -1
- package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -1
- package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +1 -1
- package/dist/cjs/wrapper/fetchAccessToken.js +3 -0
- package/dist/cjs/wrapper/index.d.ts +5 -0
- package/dist/cjs/wrapper/index.js +6 -6
- package/dist/esm/BaseClient.d.mts +13 -4
- package/dist/esm/BaseClient.mjs +24 -1
- package/dist/esm/Client.d.mts +13 -13
- package/dist/esm/Client.mjs +11 -19
- package/dist/esm/api/resources/empathicVoice/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/empathicVoice/client/Client.mjs +18 -17
- package/dist/esm/api/resources/empathicVoice/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/index.mjs +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +17 -26
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +47 -135
- 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 +2 -6
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +13 -20
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +31 -94
- 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 +34 -83
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +63 -244
- 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/PostedConfig.d.mts +4 -16
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +3 -14
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/client/Client.mjs +4 -17
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +34 -83
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +63 -244
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -8
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -8
- 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/tools/client/Client.d.mts +34 -83
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +63 -244
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +4 -8
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +4 -8
- 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 +2 -5
- package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +6 -4
- package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +1 -4
- package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -5
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +9 -3
- package/dist/esm/api/resources/empathicVoice/types/Context.d.mts +9 -3
- package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +1 -36
- package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +1 -50
- package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +2 -4
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -9
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.d.mts +0 -8
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinToolName.mjs +0 -8
- package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -5
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +1 -14
- package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +1 -7
- package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +1 -13
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.mts +0 -11
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.mts +0 -11
- package/dist/esm/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.mts +1 -7
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +1 -3
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +1 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.mts +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.mjs +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -19
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.mts +0 -13
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.mts +0 -13
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.mjs +0 -13
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +5 -30
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.d.mts +0 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventRole.mjs +0 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +0 -14
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +0 -14
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +1 -10
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +6 -16
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +3 -12
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +6 -30
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.mts +0 -15
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.mjs +0 -15
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.d.mts +0 -15
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatStatus.mjs +0 -15
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +2 -8
- package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +1 -14
- package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +1 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +2 -11
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +2 -11
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.mts +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.mjs +0 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.d.mts +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnPromptVersionType.mjs +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +1 -13
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +7 -19
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.mts +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.mjs +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.mts +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.mjs +0 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnVoice.d.mts +5 -3
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +10 -19
- package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +1 -55
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -9
- package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -5
- package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -11
- package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +1 -3
- package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -17
- package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +11 -2
- package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +11 -2
- package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +1 -3
- package/dist/esm/api/resources/expressionMeasurement/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/expressionMeasurement/client/Client.mjs +6 -5
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.d.mts +17 -18
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/client/Client.mjs +61 -149
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +7 -8
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +5 -10
- package/dist/esm/api/resources/tts/client/Client.d.mts +19 -20
- package/dist/esm/api/resources/tts/client/Client.mjs +56 -138
- package/dist/esm/api/resources/tts/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/tts/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/resources/tts/resources/streamInput/client/Client.d.mts +15 -14
- package/dist/esm/api/resources/tts/resources/streamInput/client/Client.mjs +8 -4
- package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +13 -14
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +32 -86
- package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/OctaveVersion.d.mts +7 -3
- package/dist/esm/api/resources/tts/types/OctaveVersion.mjs +7 -3
- package/dist/esm/api/resources/tts/types/PostedTts.d.mts +0 -6
- 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/PublishTts.d.mts +14 -4
- package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -9
- package/dist/esm/api/resources/tts/types/ReturnVoice.d.mts +3 -3
- package/dist/esm/auth/HeaderAuthProvider.d.mts +26 -0
- package/dist/esm/auth/HeaderAuthProvider.mjs +54 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +42 -24
- package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
- package/dist/esm/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/logging/logger.mjs +1 -1
- package/dist/esm/core/pagination/CustomPager.d.mts +67 -0
- package/dist/esm/core/pagination/CustomPager.mjs +189 -0
- package/dist/esm/core/pagination/index.d.mts +1 -0
- package/dist/esm/core/pagination/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.mjs +11 -10
- package/dist/esm/core/schemas/Schema.d.mts +1 -0
- package/dist/esm/core/schemas/Schema.mjs +1 -0
- package/dist/esm/core/schemas/builders/object/object.mjs +14 -1
- package/dist/esm/core/schemas/builders/primitives/index.d.mts +1 -0
- package/dist/esm/core/schemas/builders/primitives/index.mjs +1 -0
- package/dist/esm/core/schemas/builders/primitives/never.d.mts +2 -0
- package/dist/esm/core/schemas/builders/primitives/never.mjs +11 -0
- package/dist/esm/core/url/join.mjs +0 -1
- package/dist/esm/errors/HumeError.mjs +5 -1
- package/dist/esm/errors/HumeTimeoutError.mjs +5 -1
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.d.mts +3 -3
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnVoice.mjs +3 -3
- package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.d.mts +4 -4
- package/dist/esm/serialization/resources/tts/types/ReturnPagedVoices.mjs +4 -4
- package/dist/esm/serialization/resources/tts/types/ReturnVoice.d.mts +3 -3
- package/dist/esm/serialization/resources/tts/types/ReturnVoice.mjs +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/SilenceFiller.d.mts +64 -10
- package/dist/esm/wrapper/SilenceFiller.mjs +109 -26
- package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.d.mts +1 -1
- package/dist/esm/wrapper/expressionMeasurement/ExpressionMeasurementClient.mjs +1 -1
- package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -1
- package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +1 -1
- package/dist/esm/wrapper/fetchAccessToken.mjs +3 -0
- package/dist/esm/wrapper/index.d.mts +5 -0
- package/dist/esm/wrapper/index.mjs +4 -5
- package/package.json +5 -2
- package/reference.md +621 -1205
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Includes the Chat ID (which allows the Chat session to be tracked and referenced) and the Chat Group ID (used to resume a Chat when passed in the `resumed_chat_group_id` query parameter of a subsequent connection request, allowing EVI to continue the conversation from where it left off within the Chat Group).
|
|
2
|
+
* When provided, the output is a chat metadata message.
|
|
5
3
|
*/
|
|
6
4
|
export interface ChatMetadata {
|
|
7
5
|
/**
|
|
8
6
|
* ID of the Chat Group.
|
|
9
7
|
*
|
|
10
|
-
* Used to resume a Chat when passed in the [resumed_chat_group_id](/reference/
|
|
8
|
+
* Used to resume a Chat when passed in the [resumed_chat_group_id](/reference/empathic-voice-interface-evi/chat/chat#request.query.resumed_chat_group_id) query parameter of a subsequent connection request. This allows EVI to continue the conversation from where it left off within the Chat Group.
|
|
11
9
|
*
|
|
12
|
-
* Learn more about [supporting chat resumability](/docs/
|
|
10
|
+
* Learn more about [supporting chat resumability](/docs/empathic-voice-interface-evi/faq#does-evi-support-chat-resumability) from the EVI FAQ.
|
|
13
11
|
*/
|
|
14
12
|
chatGroupId: string;
|
|
15
13
|
/** ID of the Chat session. Allows the Chat session to be tracked and referenced. */
|
|
@@ -14,9 +14,14 @@ export interface ConnectSessionSettings {
|
|
|
14
14
|
* Set to `null` to disable context injection.
|
|
15
15
|
*/
|
|
16
16
|
context?: Hume.empathicVoice.ConnectSessionSettingsContext;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier for the session. Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions.
|
|
19
|
+
*
|
|
20
|
+
* If included, the response sent from Hume to your backend will include this ID. This allows you to correlate frontend users with their incoming messages.
|
|
21
|
+
*
|
|
22
|
+
* It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/custom-language-model) with EVI to learn more.
|
|
23
|
+
*/
|
|
18
24
|
customSessionId?: string;
|
|
19
|
-
/** The maximum number of chat events to return from chat history. By default, the system returns up to 300 events (100 events per page × 3 pages). Set this parameter to a smaller value to limit the number of events returned. */
|
|
20
25
|
eventLimit?: number;
|
|
21
26
|
/**
|
|
22
27
|
* Third party API key for the supplemental language model.
|
|
@@ -31,10 +36,9 @@ export interface ConnectSessionSettings {
|
|
|
31
36
|
*
|
|
32
37
|
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
33
38
|
*
|
|
34
|
-
* For help writing a system prompt, see our [Prompting Guide](/docs/
|
|
39
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
35
40
|
*/
|
|
36
41
|
systemPrompt?: string;
|
|
37
|
-
/** The name or ID of the voice from the `Voice Library` to be used as the speaker for this EVI session. This will override the speaker set in the selected configuration. */
|
|
38
42
|
voiceId?: string;
|
|
39
43
|
/**
|
|
40
44
|
* This field allows you to assign values to dynamic variables referenced in your system prompt.
|
|
@@ -5,10 +5,10 @@ import type * as Hume from "../../../index.mjs";
|
|
|
5
5
|
* This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings section](/docs/empathic-voice-interface-evi/configuration#session-settings) on the EVI Configuration page.
|
|
6
6
|
*/
|
|
7
7
|
export interface ConnectSessionSettingsAudio {
|
|
8
|
-
/**
|
|
8
|
+
/** Number of audio channels. */
|
|
9
9
|
channels?: number;
|
|
10
|
-
/**
|
|
10
|
+
/** Encoding format of the audio input, such as `linear16`. */
|
|
11
11
|
encoding?: Hume.empathicVoice.Encoding;
|
|
12
|
-
/**
|
|
12
|
+
/** Audio sample rate. Number of samples per second in the audio input, measured in Hertz. */
|
|
13
13
|
sampleRate?: number;
|
|
14
14
|
}
|
|
@@ -10,15 +10,21 @@ export interface ConnectSessionSettingsContext {
|
|
|
10
10
|
/**
|
|
11
11
|
* The context to be injected into the conversation. Helps inform the LLM's response by providing relevant information about the ongoing conversation.
|
|
12
12
|
*
|
|
13
|
-
* This text will be appended to the end of
|
|
13
|
+
* This text will be appended to the end of user messages based on the chosen persistence level. For example, if you want to remind EVI of its role as a helpful weather assistant, the context you insert will be appended to the end of user messages as `{Context: You are a helpful weather assistant}`.
|
|
14
14
|
*/
|
|
15
15
|
text?: string;
|
|
16
16
|
/**
|
|
17
17
|
* The persistence level of the injected context. Specifies how long the injected context will remain active in the session.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* There are three possible context types:
|
|
20
20
|
*
|
|
21
|
-
* - **Persistent**:
|
|
21
|
+
* - **Persistent**: The context is appended to all user messages for the duration of the session.
|
|
22
|
+
*
|
|
23
|
+
* - **Temporary**: The context is appended only to the next user message.
|
|
24
|
+
*
|
|
25
|
+
* - **Editable**: The original context is updated to reflect the new context.
|
|
26
|
+
*
|
|
27
|
+
* If the type is not specified, it will default to `temporary`.
|
|
22
28
|
*/
|
|
23
29
|
type?: Hume.empathicVoice.ContextType;
|
|
24
30
|
}
|
|
@@ -3,15 +3,21 @@ export interface Context {
|
|
|
3
3
|
/**
|
|
4
4
|
* The context to be injected into the conversation. Helps inform the LLM's response by providing relevant information about the ongoing conversation.
|
|
5
5
|
*
|
|
6
|
-
* This text will be appended to the end of
|
|
6
|
+
* This text will be appended to the end of user messages based on the chosen persistence level. For example, if you want to remind EVI of its role as a helpful weather assistant, the context you insert will be appended to the end of user messages as `{Context: You are a helpful weather assistant}`.
|
|
7
7
|
*/
|
|
8
8
|
text: string;
|
|
9
9
|
/**
|
|
10
10
|
* The persistence level of the injected context. Specifies how long the injected context will remain active in the session.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* There are three possible context types:
|
|
13
13
|
*
|
|
14
|
-
* - **Persistent**:
|
|
14
|
+
* - **Persistent**: The context is appended to all user messages for the duration of the session.
|
|
15
|
+
*
|
|
16
|
+
* - **Temporary**: The context is appended only to the next user message.
|
|
17
|
+
*
|
|
18
|
+
* - **Editable**: The original context is updated to reflect the new context.
|
|
19
|
+
*
|
|
20
|
+
* If the type is not specified, it will default to `temporary`.
|
|
15
21
|
*/
|
|
16
22
|
type?: Hume.empathicVoice.ContextType;
|
|
17
23
|
}
|
|
@@ -1,37 +1,2 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.mjs";
|
|
2
|
-
export type ControlPlanePublishEvent =
|
|
3
|
-
/**
|
|
4
|
-
* **Settings for this chat session.** Session settings are temporary and apply only to the current Chat session.
|
|
5
|
-
*
|
|
6
|
-
* These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience. See our [Session Settings Guide](/docs/speech-to-speech-evi/configuration/session-settings) for a complete list of configurable settings. */
|
|
7
|
-
Hume.empathicVoice.SessionSettings
|
|
8
|
-
/**
|
|
9
|
-
* **User text to insert into the conversation.** Text sent through a User Input message is treated as the user's speech to EVI. EVI processes this input and provides a corresponding response.
|
|
10
|
-
*
|
|
11
|
-
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone. */
|
|
12
|
-
| Hume.empathicVoice.UserInput
|
|
13
|
-
/**
|
|
14
|
-
* **Assistant text to synthesize into spoken audio and insert into the conversation.** EVI uses this text to generate spoken audio using our proprietary expressive text-to-speech model.
|
|
15
|
-
*
|
|
16
|
-
* Our model adds appropriate emotional inflections and tones to the text based on the user's expressions and the context of the conversation. The synthesized audio is streamed back to the user as an Assistant Message. */
|
|
17
|
-
| Hume.empathicVoice.AssistantInput
|
|
18
|
-
/**
|
|
19
|
-
* **Return value of the tool call.** Contains the output generated by the tool to pass back to EVI. Upon receiving a Tool Call message and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
|
|
20
|
-
*
|
|
21
|
-
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage`. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
|
|
22
|
-
| Hume.empathicVoice.ToolResponseMessage
|
|
23
|
-
/**
|
|
24
|
-
* **Error message from the tool call**, not exposed to the LLM or user. Upon receiving a Tool Call message and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
|
|
25
|
-
*
|
|
26
|
-
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage` if the tool fails. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
|
|
27
|
-
| Hume.empathicVoice.ToolErrorMessage
|
|
28
|
-
/**
|
|
29
|
-
* **Pause responses from EVI.** Chat history is still saved and sent after resuming. Once this message is sent, EVI will not respond until a Resume Assistant message is sent.
|
|
30
|
-
*
|
|
31
|
-
* When paused, EVI won't respond, but transcriptions of your audio inputs will still be recorded. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details. */
|
|
32
|
-
| Hume.empathicVoice.PauseAssistantMessage
|
|
33
|
-
/**
|
|
34
|
-
* **Resume responses from EVI.** Chat history sent while paused will now be sent.
|
|
35
|
-
*
|
|
36
|
-
* Upon resuming, if any audio input was sent during the pause, EVI will retain context from all messages sent but only respond to the last user message. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details. */
|
|
37
|
-
| Hume.empathicVoice.ResumeAssistantMessage;
|
|
2
|
+
export type ControlPlanePublishEvent = Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage | Hume.empathicVoice.PauseAssistantMessage | Hume.empathicVoice.ResumeAssistantMessage;
|
|
@@ -1,51 +1,2 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.mjs";
|
|
2
|
-
export type JsonMessage =
|
|
3
|
-
/**
|
|
4
|
-
* **Indicates the conclusion of the assistant's response**, signaling that the assistant has finished speaking for the current conversational turn. */
|
|
5
|
-
Hume.empathicVoice.AssistantEnd
|
|
6
|
-
/**
|
|
7
|
-
* **Transcript of the assistant's message.** Contains the message role, content, and optionally tool call information including the tool name, parameters, response requirement status, tool call ID, and tool type. */
|
|
8
|
-
| Hume.empathicVoice.AssistantMessage
|
|
9
|
-
/**
|
|
10
|
-
* **Expression measurement predictions of the assistant's audio output.** Contains inference model results including prosody scores for 48 emotions within the detected expression of the assistant's audio sample. */
|
|
11
|
-
| Hume.empathicVoice.AssistantProsody
|
|
12
|
-
/**
|
|
13
|
-
* **The first message received after establishing a connection with EVI**, containing important identifiers for the current Chat session.
|
|
14
|
-
*
|
|
15
|
-
* Includes the Chat ID (which allows the Chat session to be tracked and referenced) and the Chat Group ID (used to resume a Chat when passed in the `resumed_chat_group_id` query parameter of a subsequent connection request, allowing EVI to continue the conversation from where it left off within the Chat Group). */
|
|
16
|
-
| Hume.empathicVoice.ChatMetadata
|
|
17
|
-
/**
|
|
18
|
-
* **Indicates a disruption in the WebSocket connection**, such as an unexpected disconnection, protocol error, or data transmission issue.
|
|
19
|
-
*
|
|
20
|
-
* Contains an error code identifying the type of error encountered, a detailed description of the error, and a short, human-readable identifier and description (slug) for the error. */
|
|
21
|
-
| Hume.empathicVoice.WebSocketError
|
|
22
|
-
/**
|
|
23
|
-
* **Indicates the user has interrupted the assistant's response.** EVI detects the interruption in real-time and sends this message to signal the interruption event.
|
|
24
|
-
*
|
|
25
|
-
* This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input. Contains a Unix timestamp of when the user interruption was detected. For more details, see our [Interruptibility Guide](/docs/speech-to-speech-evi/features/interruptibility) */
|
|
26
|
-
| Hume.empathicVoice.UserInterruption
|
|
27
|
-
/**
|
|
28
|
-
* **Transcript of the user's message.** Contains the message role and content, along with a `from_text` field indicating if this message was inserted into the conversation as text from a `UserInput` message.
|
|
29
|
-
*
|
|
30
|
-
* Includes an `interim` field indicating whether the transcript is provisional (words may be repeated or refined in subsequent `UserMessage` responses as additional audio is processed) or final and complete. Interim transcripts are only sent when the `verbose_transcription` query parameter is set to true in the initial handshake. */
|
|
31
|
-
| Hume.empathicVoice.UserMessage
|
|
32
|
-
/**
|
|
33
|
-
* **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
|
|
34
|
-
*
|
|
35
|
-
* Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
|
|
36
|
-
| Hume.empathicVoice.ToolCallMessage
|
|
37
|
-
/**
|
|
38
|
-
* **Return value of the tool call.** Contains the output generated by the tool to pass back to EVI. Upon receiving a Tool Call message and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
|
|
39
|
-
*
|
|
40
|
-
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage`. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
|
|
41
|
-
| Hume.empathicVoice.ToolResponseMessage
|
|
42
|
-
/**
|
|
43
|
-
* **Error message from the tool call**, not exposed to the LLM or user. Upon receiving a Tool Call message and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
|
|
44
|
-
*
|
|
45
|
-
* For built-in tools implemented on the server, you will receive this message type rather than a `ToolCallMessage` if the tool fails. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details. */
|
|
46
|
-
| Hume.empathicVoice.ToolErrorMessage
|
|
47
|
-
/**
|
|
48
|
-
* **Settings for this chat session.** Session settings are temporary and apply only to the current Chat session.
|
|
49
|
-
*
|
|
50
|
-
* These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience. See our [Session Settings Guide](/docs/speech-to-speech-evi/configuration/session-settings) for a complete list of configurable settings. */
|
|
51
|
-
| Hume.empathicVoice.SessionSettings;
|
|
2
|
+
export type JsonMessage = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AssistantProsody | Hume.empathicVoice.ChatMetadata | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage | Hume.empathicVoice.SessionSettings;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* When paused, EVI won't respond, but transcriptions of your audio inputs will still be recorded. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details.
|
|
2
|
+
* Pause responses from EVI. Chat history is still saved and sent after resuming.
|
|
5
3
|
*/
|
|
6
4
|
export interface PauseAssistantMessage {
|
|
7
5
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -9,7 +7,7 @@ export interface PauseAssistantMessage {
|
|
|
9
7
|
/**
|
|
10
8
|
* The type of message sent through the socket; must be `pause_assistant_message` for our server to correctly identify and process it as a Pause Assistant message.
|
|
11
9
|
*
|
|
12
|
-
* Once this message is sent, EVI will not respond until a [Resume Assistant message](/reference/
|
|
10
|
+
* Once this message is sent, EVI will not respond until a [Resume Assistant message](/reference/empathic-voice-interface-evi/chat/chat#send.Resume%20Assistant%20Message.type) is sent. When paused, EVI won't respond, but transcriptions of your audio inputs will still be recorded.
|
|
13
11
|
*/
|
|
14
12
|
type: "pause_assistant_message";
|
|
15
13
|
}
|
|
@@ -3,15 +3,7 @@ import type * as Hume from "../../../index.mjs";
|
|
|
3
3
|
* A configuration of a built-in tool to be posted to the server
|
|
4
4
|
*/
|
|
5
5
|
export interface PostedBuiltinTool {
|
|
6
|
-
/**
|
|
6
|
+
/** Text to use if the tool fails to generate content. */
|
|
7
7
|
fallbackContent?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Name of the built-in tool to use. Hume supports the following built-in tools:
|
|
10
|
-
*
|
|
11
|
-
* - **web_search:** enables EVI to search the web for up-to-date information when applicable.
|
|
12
|
-
* - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
|
|
13
|
-
*
|
|
14
|
-
* For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
|
|
15
|
-
*/
|
|
16
8
|
name: Hume.empathicVoice.PostedBuiltinToolName;
|
|
17
9
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Name of the built-in tool to use. Hume supports the following built-in tools:
|
|
3
|
-
*
|
|
4
|
-
* - **web_search:** enables EVI to search the web for up-to-date information when applicable.
|
|
5
|
-
* - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
|
|
6
|
-
*
|
|
7
|
-
* For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
|
|
8
|
-
*/
|
|
9
1
|
export declare const PostedBuiltinToolName: {
|
|
10
2
|
readonly WebSearch: "web_search";
|
|
11
3
|
readonly HangUp: "hang_up";
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/**
|
|
3
|
-
* Name of the built-in tool to use. Hume supports the following built-in tools:
|
|
4
|
-
*
|
|
5
|
-
* - **web_search:** enables EVI to search the web for up-to-date information when applicable.
|
|
6
|
-
* - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
|
|
7
|
-
*
|
|
8
|
-
* For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
|
|
9
|
-
*/
|
|
10
2
|
export const PostedBuiltinToolName = {
|
|
11
3
|
WebSearch: "web_search",
|
|
12
4
|
HangUp: "hang_up",
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
* A eLLM model configuration to be posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedEllmModel {
|
|
5
|
-
/**
|
|
6
|
-
* Boolean indicating if the eLLM is allowed to generate short responses.
|
|
7
|
-
*
|
|
8
|
-
* If omitted, short responses from the eLLM are enabled by default.
|
|
9
|
-
*/
|
|
5
|
+
/** Boolean indicating if the model is allowed to generate short responses. */
|
|
10
6
|
allowShortResponses?: boolean;
|
|
11
7
|
}
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
* Settings for a specific event_message to be posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedEventMessageSpec {
|
|
5
|
-
/**
|
|
6
|
-
* Boolean indicating if this event message is enabled.
|
|
7
|
-
*
|
|
8
|
-
* If set to `true`, a message will be sent when the circumstances for the specific event are met.
|
|
9
|
-
*/
|
|
5
|
+
/** Boolean indicating if this event message is enabled. */
|
|
10
6
|
enabled: boolean;
|
|
11
|
-
/**
|
|
7
|
+
/** Optional text that will be used as a verbatim event message. If the text is null and the event message is enabled, the system will generate a message based using the language model. */
|
|
12
8
|
text?: string;
|
|
13
9
|
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* Collection of
|
|
4
|
-
*
|
|
5
|
-
* Event messages are sent by the server when specific events occur during a chat session. These messages are used to configure behaviors for EVI, such as controlling how EVI starts a new conversation.
|
|
3
|
+
* Collection of event_message specs to be posted to the server
|
|
6
4
|
*/
|
|
7
5
|
export interface PostedEventMessageSpecs {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the message EVI provides when the chat is about to be disconnected due to a user inactivity timeout, such as a message mentioning a lack of user input for a period of time.
|
|
10
|
-
*
|
|
11
|
-
* Enabling an inactivity message allows developers to use this message event for "checking in" with the user if they are not responding to see if they are still active.
|
|
12
|
-
*
|
|
13
|
-
* If the user does not respond in the number of seconds specified in the `inactivity_timeout` field, then EVI will say the message and the user has 15 seconds to respond. If they respond in time, the conversation will continue; if not, the conversation will end.
|
|
14
|
-
*
|
|
15
|
-
* However, if the inactivity message is not enabled, then reaching the inactivity timeout will immediately end the connection.
|
|
16
|
-
*/
|
|
17
6
|
onInactivityTimeout?: Hume.empathicVoice.PostedEventMessageSpec;
|
|
18
|
-
/** Specifies the message EVI provides when the chat is disconnected due to reaching the maximum chat duration, such as a message mentioning the time limit for the chat has been reached. */
|
|
19
7
|
onMaxDurationTimeout?: Hume.empathicVoice.PostedEventMessageSpec;
|
|
20
|
-
/** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
|
|
21
8
|
onNewChat?: Hume.empathicVoice.PostedEventMessageSpec;
|
|
22
9
|
}
|
|
@@ -3,14 +3,8 @@ import type * as Hume from "../../../index.mjs";
|
|
|
3
3
|
* A LanguageModel to be posted to the server
|
|
4
4
|
*/
|
|
5
5
|
export interface PostedLanguageModel {
|
|
6
|
-
/** The provider of the supplemental language model. */
|
|
7
6
|
modelProvider?: Hume.empathicVoice.ModelProviderEnum;
|
|
8
|
-
/** String that specifies the language model to use with `model_provider`. */
|
|
9
7
|
modelResource?: Hume.empathicVoice.LanguageModelType;
|
|
10
|
-
/**
|
|
11
|
-
* The model temperature, with values between 0 to 1 (inclusive).
|
|
12
|
-
*
|
|
13
|
-
* Controls the randomness of the LLM's output, with values closer to 0 yielding focused, deterministic responses and values closer to 1 producing more creative, diverse responses.
|
|
14
|
-
*/
|
|
8
|
+
/** Model temperature. */
|
|
15
9
|
temperature?: number;
|
|
16
10
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* A nudge specification posted to the server
|
|
3
3
|
*/
|
|
4
4
|
export interface PostedNudgeSpec {
|
|
5
|
-
/**
|
|
5
|
+
/** EVI will nudge user after inactivity */
|
|
6
6
|
enabled?: boolean;
|
|
7
|
-
/**
|
|
7
|
+
/** Time interval in seconds after which the nudge will be sent. */
|
|
8
8
|
intervalSecs?: number;
|
|
9
9
|
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import type * as Hume from "../../../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* Collection of timeout
|
|
4
|
-
*
|
|
5
|
-
* Timeouts are sent by the server when specific time-based events occur during a chat session. These specifications set the inactivity timeout and the maximum duration an EVI WebSocket connection can stay open before it is automatically disconnected.
|
|
3
|
+
* Collection of timeout specs to be posted to the server
|
|
6
4
|
*/
|
|
7
5
|
export interface PostedTimeoutSpecs {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
|
|
10
|
-
*
|
|
11
|
-
* Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
|
|
12
|
-
*/
|
|
13
6
|
inactivity?: Hume.empathicVoice.PostedTimeoutSpecsInactivity;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
|
|
16
|
-
*
|
|
17
|
-
* Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
|
|
18
|
-
*/
|
|
19
7
|
maxDuration?: Hume.empathicVoice.PostedTimeoutSpecsMaxDuration;
|
|
20
8
|
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
|
|
3
|
-
*
|
|
4
|
-
* Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
|
|
5
|
-
*/
|
|
6
1
|
export interface PostedTimeoutSpecsInactivity {
|
|
7
|
-
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
8
2
|
durationSecs?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Boolean indicating if this timeout is enabled.
|
|
11
|
-
*
|
|
12
|
-
* If set to false, EVI will not timeout due to a specified duration of user inactivity being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
|
|
13
|
-
*/
|
|
14
3
|
enabled: boolean;
|
|
15
4
|
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
|
|
3
|
-
*
|
|
4
|
-
* Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
|
|
5
|
-
*/
|
|
6
1
|
export interface PostedTimeoutSpecsMaxDuration {
|
|
7
|
-
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
8
2
|
durationSecs?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Boolean indicating if this timeout is enabled.
|
|
11
|
-
*
|
|
12
|
-
* If set to false, EVI will not timeout due to a specified maximum duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
|
|
13
|
-
*/
|
|
14
3
|
enabled: boolean;
|
|
15
4
|
}
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
export interface PostedUserDefinedToolSpec {
|
|
5
5
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
6
6
|
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* Version number for a Tool.
|
|
9
|
-
*
|
|
10
|
-
* Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
11
|
-
*
|
|
12
|
-
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
13
|
-
*/
|
|
7
|
+
/** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
14
8
|
version?: number;
|
|
15
9
|
}
|
|
@@ -3,12 +3,8 @@ import type * as Hume from "../../../index.mjs";
|
|
|
3
3
|
* URL and settings for a specific webhook to be posted to the server
|
|
4
4
|
*/
|
|
5
5
|
export interface PostedWebhookSpec {
|
|
6
|
-
/**
|
|
7
|
-
* The list of events the specified URL is subscribed to.
|
|
8
|
-
*
|
|
9
|
-
* See our [webhooks guide](/docs/speech-to-speech-evi/configuration/build-a-configuration#supported-events) for more information on supported events.
|
|
10
|
-
*/
|
|
6
|
+
/** Events this URL is subscribed to */
|
|
11
7
|
events: Hume.empathicVoice.PostedWebhookEventType[];
|
|
12
|
-
/**
|
|
8
|
+
/** URL to send the webhook to */
|
|
13
9
|
url: string;
|
|
14
10
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Upon resuming, if any audio input was sent during the pause, EVI will retain context from all messages sent but only respond to the last user message. See our [Pause Response Guide](/docs/speech-to-speech-evi/features/pause-responses) for further details.
|
|
2
|
+
* Resume responses from EVI. Chat history sent while paused will now be sent.
|
|
5
3
|
*/
|
|
6
4
|
export interface ResumeAssistantMessage {
|
|
7
5
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
@@ -3,10 +3,9 @@ import type * as Hume from "../../../index.mjs";
|
|
|
3
3
|
* A specific builtin tool version returned from the server
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnBuiltinTool {
|
|
6
|
-
/**
|
|
6
|
+
/** Text to use if the tool fails to generate content. */
|
|
7
7
|
fallbackContent?: string;
|
|
8
8
|
/** Name applied to all versions of a particular Tool. */
|
|
9
9
|
name: string;
|
|
10
|
-
/** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
|
|
11
10
|
toolType: Hume.empathicVoice.ReturnBuiltinToolToolType;
|
|
12
11
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
|
|
3
2
|
export const ReturnBuiltinToolToolType = {
|
|
4
3
|
Builtin: "BUILTIN",
|
|
5
4
|
Function: "FUNCTION",
|
|
@@ -3,33 +3,18 @@ import type * as Hume from "../../../index.mjs";
|
|
|
3
3
|
* A description of chat and its status
|
|
4
4
|
*/
|
|
5
5
|
export interface ReturnChat {
|
|
6
|
-
/** Identifier for the
|
|
6
|
+
/** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
|
|
7
7
|
chatGroupId: string;
|
|
8
8
|
config?: Hume.empathicVoice.ReturnConfigSpec;
|
|
9
|
-
/**
|
|
9
|
+
/** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
|
|
10
10
|
endTimestamp?: number;
|
|
11
11
|
/** The total number of events currently in this chat. */
|
|
12
12
|
eventCount?: number;
|
|
13
|
-
/** Identifier for a
|
|
13
|
+
/** Identifier for a chat. Formatted as a UUID. */
|
|
14
14
|
id: string;
|
|
15
15
|
/** Stringified JSON with additional metadata about the chat. */
|
|
16
16
|
metadata?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
|
|
18
18
|
startTimestamp: number;
|
|
19
|
-
/**
|
|
20
|
-
* Indicates the current state of the chat. There are six possible statuses:
|
|
21
|
-
*
|
|
22
|
-
* - `ACTIVE`: The chat is currently active and ongoing.
|
|
23
|
-
*
|
|
24
|
-
* - `USER_ENDED`: The chat was manually ended by the user.
|
|
25
|
-
*
|
|
26
|
-
* - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
|
|
27
|
-
*
|
|
28
|
-
* - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
|
|
29
|
-
*
|
|
30
|
-
* - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
|
|
31
|
-
*
|
|
32
|
-
* - `ERROR`: The chat ended unexpectedly due to an error.
|
|
33
|
-
*/
|
|
34
19
|
status: Hume.empathicVoice.ReturnChatStatus;
|
|
35
20
|
}
|
|
@@ -13,19 +13,6 @@ export interface ReturnChatAudioReconstruction {
|
|
|
13
13
|
signedAudioUrl?: string;
|
|
14
14
|
/** The timestamp when the signed URL will expire, formatted as a Unix epoch milliseconds. */
|
|
15
15
|
signedUrlExpirationTimestampMillis?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Indicates the current state of the audio reconstruction job. There are five possible statuses:
|
|
18
|
-
*
|
|
19
|
-
* - `QUEUED`: The reconstruction job is waiting to be processed.
|
|
20
|
-
*
|
|
21
|
-
* - `IN_PROGRESS`: The reconstruction is currently being processed.
|
|
22
|
-
*
|
|
23
|
-
* - `COMPLETE`: The audio reconstruction is finished and ready for download.
|
|
24
|
-
*
|
|
25
|
-
* - `ERROR`: An error occurred during the reconstruction process.
|
|
26
|
-
*
|
|
27
|
-
* - `CANCELED`: The reconstruction job has been canceled.
|
|
28
|
-
*/
|
|
29
16
|
status: Hume.empathicVoice.ReturnChatAudioReconstructionStatus;
|
|
30
17
|
/** Identifier for the user that owns this chat. Formatted as a UUID. */
|
|
31
18
|
userId: string;
|
package/dist/esm/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.mts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Indicates the current state of the audio reconstruction job. There are five possible statuses:
|
|
3
|
-
*
|
|
4
|
-
* - `QUEUED`: The reconstruction job is waiting to be processed.
|
|
5
|
-
*
|
|
6
|
-
* - `IN_PROGRESS`: The reconstruction is currently being processed.
|
|
7
|
-
*
|
|
8
|
-
* - `COMPLETE`: The audio reconstruction is finished and ready for download.
|
|
9
|
-
*
|
|
10
|
-
* - `ERROR`: An error occurred during the reconstruction process.
|
|
11
|
-
*
|
|
12
|
-
* - `CANCELED`: The reconstruction job has been canceled.
|
|
13
|
-
*/
|
|
14
1
|
export declare const ReturnChatAudioReconstructionStatus: {
|
|
15
2
|
readonly Queued: "QUEUED";
|
|
16
3
|
readonly InProgress: "IN_PROGRESS";
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/**
|
|
3
|
-
* Indicates the current state of the audio reconstruction job. There are five possible statuses:
|
|
4
|
-
*
|
|
5
|
-
* - `QUEUED`: The reconstruction job is waiting to be processed.
|
|
6
|
-
*
|
|
7
|
-
* - `IN_PROGRESS`: The reconstruction is currently being processed.
|
|
8
|
-
*
|
|
9
|
-
* - `COMPLETE`: The audio reconstruction is finished and ready for download.
|
|
10
|
-
*
|
|
11
|
-
* - `ERROR`: An error occurred during the reconstruction process.
|
|
12
|
-
*
|
|
13
|
-
* - `CANCELED`: The reconstruction job has been canceled.
|
|
14
|
-
*/
|
|
15
2
|
export const ReturnChatAudioReconstructionStatus = {
|
|
16
3
|
Queued: "QUEUED",
|
|
17
4
|
InProgress: "IN_PROGRESS",
|