hume 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +176 -72
- package/.mock/definition/empathic-voice/chat.yml +6 -6
- package/.mock/definition/empathic-voice/chatGroups.yml +9 -0
- package/.mock/definition/empathic-voice/chats.yml +14 -1
- package/.mock/definition/empathic-voice/configs.yml +138 -86
- package/.mock/definition/empathic-voice/prompts.yml +4 -2
- package/.mock/definition/empathic-voice/tools.yml +4 -2
- package/.mock/fern.config.json +1 -1
- package/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
- package/api/resources/customModels/resources/datasets/client/Client.js +18 -18
- package/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
- package/api/resources/customModels/resources/files/client/Client.js +14 -14
- package/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
- package/api/resources/customModels/resources/jobs/client/Client.js +4 -4
- package/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
- package/api/resources/customModels/resources/models/client/Client.js +12 -12
- package/api/resources/empathicVoice/client/StreamSocket.d.ts +8 -0
- package/api/resources/empathicVoice/client/StreamSocket.js +16 -0
- package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
- package/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
- package/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
- package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
- package/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
- package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
- package/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
- package/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
- package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
- package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
- package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
- package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/index.d.ts +9 -6
- package/api/resources/empathicVoice/types/index.js +9 -6
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +9 -9
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +18 -18
- package/dist/api/resources/customModels/resources/files/client/Client.d.ts +7 -7
- package/dist/api/resources/customModels/resources/files/client/Client.js +14 -14
- package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +2 -2
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/customModels/resources/models/client/Client.d.ts +6 -6
- package/dist/api/resources/customModels/resources/models/client/Client.js +12 -12
- package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +8 -0
- package/dist/api/resources/empathicVoice/client/StreamSocket.js +16 -0
- package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +8 -5
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +8 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +18 -18
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +9 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +9 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +9 -9
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +18 -18
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/{WebSocketError.d.ts → Error_.d.ts} +2 -2
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +10 -0
- package/dist/api/resources/empathicVoice/types/PostedEllmModel.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +2 -1
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +1 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +9 -2
- package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnEllmModel.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +9 -6
- package/dist/api/resources/empathicVoice/types/index.js +9 -6
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +5 -5
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -11
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
- package/{serialization/resources/empathicVoice/types/WebSocketError.d.ts → dist/serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
- package/{serialization/resources/empathicVoice/types/WebSocketError.js → dist/serialization/resources/empathicVoice/types/Error_.js} +2 -2
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → PostedEventMessageSpec.js} +4 -3
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
- package/dist/serialization/resources/empathicVoice/types/{TtsInput.d.ts → ReturnEllmModel.d.ts} +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/{TextInput.js → ReturnEventMessageSpec.js} +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +9 -6
- package/dist/serialization/resources/empathicVoice/types/index.js +9 -6
- package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
- package/package.json +6 -1
- package/reference.md +208 -122
- package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -2
- package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +8 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +8 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +8 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +8 -2
- package/{dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts → serialization/resources/empathicVoice/types/Error_.d.ts} +2 -2
- package/{dist/serialization/resources/empathicVoice/types/WebSocketError.js → serialization/resources/empathicVoice/types/Error_.js} +2 -2
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedEllmModel.d.ts +12 -0
- package/serialization/resources/empathicVoice/types/PostedEllmModel.js +33 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +13 -0
- package/{dist/serialization/resources/empathicVoice/types/TtsInput.js → serialization/resources/empathicVoice/types/PostedEventMessageSpec.js} +4 -3
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +34 -0
- package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedVoiceName.js +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +1 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -2
- package/serialization/resources/empathicVoice/types/{TextInput.d.ts → ReturnEllmModel.d.ts} +3 -3
- package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +33 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/{FunctionCallResponseInput.js → ReturnEventMessageSpec.js} +4 -3
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +1 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +1 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +1 -0
- package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +34 -0
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/SessionSettings.js +2 -0
- package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/index.d.ts +9 -6
- package/serialization/resources/empathicVoice/types/index.js +9 -6
- package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -2
- package/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
- package/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
- package/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
- package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
- package/dist/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
- package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
- package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
- package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
- package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
- package/serialization/resources/empathicVoice/types/TextInput.js +0 -33
- package/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
- package/serialization/resources/empathicVoice/types/TtsInput.js +0 -33
- /package/api/resources/empathicVoice/types/{FunctionCallResponseInput.js → Error_.js} +0 -0
- /package/api/resources/empathicVoice/types/{TextInput.js → PostedEllmModel.js} +0 -0
- /package/api/resources/empathicVoice/types/{TtsInput.js → PostedEventMessageSpec.js} +0 -0
- /package/api/resources/empathicVoice/types/{WebSocketError.js → PostedTimeoutSpec.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/FunctionCallResponseInput.js → api/resources/empathicVoice/types/ReturnEllmModel.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/TextInput.js → api/resources/empathicVoice/types/ReturnEventMessageSpec.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/TtsInput.js → api/resources/empathicVoice/types/ReturnTimeoutSpec.js} +0 -0
- /package/dist/api/resources/empathicVoice/types/{WebSocketError.js → Error_.js} +0 -0
|
@@ -30,5 +30,5 @@ exports.ResumeAssistantMessage = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.ResumeAssistantMessage = core.serialization.object({
|
|
32
32
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
33
|
-
type: core.serialization.stringLiteral("resume_assistant_message")
|
|
33
|
+
type: core.serialization.stringLiteral("resume_assistant_message"),
|
|
34
34
|
});
|
|
@@ -36,6 +36,8 @@ exports.ReturnChatGroupPagedChats = core.serialization.object({
|
|
|
36
36
|
numChats: core.serialization.property("num_chats", core.serialization.number()),
|
|
37
37
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
38
38
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
39
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
40
|
+
paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
|
|
39
41
|
chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
|
|
40
42
|
active: core.serialization.boolean().optional(),
|
|
41
43
|
});
|
|
@@ -33,6 +33,7 @@ exports.ReturnChatGroupPagedEvents = core.serialization.object({
|
|
|
33
33
|
id: core.serialization.string(),
|
|
34
34
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
35
35
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
36
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
36
37
|
paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
|
|
37
38
|
eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
|
|
38
39
|
});
|
|
@@ -15,10 +15,12 @@ export declare namespace ReturnChatPagedEvents {
|
|
|
15
15
|
status: string;
|
|
16
16
|
start_timestamp: number;
|
|
17
17
|
end_timestamp?: number | null;
|
|
18
|
+
pagination_direction: string;
|
|
18
19
|
events_page: ReturnChatEvent.Raw[];
|
|
19
20
|
metadata?: string | null;
|
|
20
21
|
page_number: number;
|
|
21
22
|
page_size: number;
|
|
23
|
+
total_pages: number;
|
|
22
24
|
config?: ReturnConfigSpec.Raw | null;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
@@ -37,9 +37,11 @@ exports.ReturnChatPagedEvents = core.serialization.object({
|
|
|
37
37
|
status: core.serialization.string(),
|
|
38
38
|
startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
|
|
39
39
|
endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
|
|
40
|
+
paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
|
|
40
41
|
eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
|
|
41
42
|
metadata: core.serialization.string().optional(),
|
|
42
43
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
43
44
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
45
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
44
46
|
config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
|
|
45
47
|
});
|
|
@@ -7,8 +7,11 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { ReturnPrompt } from "./ReturnPrompt";
|
|
8
8
|
import { ReturnVoice } from "./ReturnVoice";
|
|
9
9
|
import { ReturnLanguageModel } from "./ReturnLanguageModel";
|
|
10
|
+
import { ReturnEllmModel } from "./ReturnEllmModel";
|
|
10
11
|
import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
|
|
11
12
|
import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
|
|
13
|
+
import { ReturnEventMessageSpec } from "./ReturnEventMessageSpec";
|
|
14
|
+
import { ReturnTimeoutSpec } from "./ReturnTimeoutSpec";
|
|
12
15
|
export declare const ReturnConfig: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfig.Raw, Hume.empathicVoice.ReturnConfig>;
|
|
13
16
|
export declare namespace ReturnConfig {
|
|
14
17
|
interface Raw {
|
|
@@ -21,7 +24,10 @@ export declare namespace ReturnConfig {
|
|
|
21
24
|
prompt?: ReturnPrompt.Raw | null;
|
|
22
25
|
voice?: ReturnVoice.Raw | null;
|
|
23
26
|
language_model?: ReturnLanguageModel.Raw | null;
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
ellm_model?: ReturnEllmModel.Raw | null;
|
|
28
|
+
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
29
|
+
builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
|
|
30
|
+
event_messages?: Record<string, ReturnEventMessageSpec.Raw | null | undefined> | null;
|
|
31
|
+
timeouts?: Record<string, ReturnTimeoutSpec.Raw | null | undefined> | null;
|
|
26
32
|
}
|
|
27
33
|
}
|
|
@@ -31,8 +31,11 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const ReturnPrompt_1 = require("./ReturnPrompt");
|
|
32
32
|
const ReturnVoice_1 = require("./ReturnVoice");
|
|
33
33
|
const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
|
|
34
|
+
const ReturnEllmModel_1 = require("./ReturnEllmModel");
|
|
34
35
|
const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
35
36
|
const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
|
|
37
|
+
const ReturnEventMessageSpec_1 = require("./ReturnEventMessageSpec");
|
|
38
|
+
const ReturnTimeoutSpec_1 = require("./ReturnTimeoutSpec");
|
|
36
39
|
exports.ReturnConfig = core.serialization.object({
|
|
37
40
|
id: core.serialization.string().optional(),
|
|
38
41
|
version: core.serialization.number().optional(),
|
|
@@ -43,6 +46,9 @@ exports.ReturnConfig = core.serialization.object({
|
|
|
43
46
|
prompt: ReturnPrompt_1.ReturnPrompt.optional(),
|
|
44
47
|
voice: ReturnVoice_1.ReturnVoice.optional(),
|
|
45
48
|
languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
ellmModel: core.serialization.property("ellm_model", ReturnEllmModel_1.ReturnEllmModel.optional()),
|
|
50
|
+
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
51
|
+
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
|
|
52
|
+
eventMessages: core.serialization.property("event_messages", core.serialization.record(core.serialization.string(), ReturnEventMessageSpec_1.ReturnEventMessageSpec.optional()).optional()),
|
|
53
|
+
timeouts: core.serialization.record(core.serialization.string(), ReturnTimeoutSpec_1.ReturnTimeoutSpec.optional()).optional(),
|
|
48
54
|
});
|
package/dist/serialization/resources/empathicVoice/types/{TtsInput.d.ts → ReturnEllmModel.d.ts}
RENAMED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ReturnEllmModel: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEllmModel.Raw, Hume.empathicVoice.ReturnEllmModel>;
|
|
8
|
+
export declare namespace ReturnEllmModel {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
allow_short_responses: boolean;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ReturnEllmModel = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ReturnEllmModel = core.serialization.object({
|
|
32
|
+
allowShortResponses: core.serialization.property("allow_short_responses", core.serialization.boolean()),
|
|
33
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ReturnEventMessageSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnEventMessageSpec.Raw, Hume.empathicVoice.ReturnEventMessageSpec>;
|
|
8
|
+
export declare namespace ReturnEventMessageSpec {
|
|
9
|
+
interface Raw {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
text?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/serialization/resources/empathicVoice/types/{TextInput.js → ReturnEventMessageSpec.js}
RENAMED
|
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ReturnEventMessageSpec = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.ReturnEventMessageSpec = core.serialization.object({
|
|
32
|
+
enabled: core.serialization.boolean(),
|
|
33
|
+
text: core.serialization.string().optional(),
|
|
33
34
|
});
|
|
@@ -32,5 +32,7 @@ const ReturnChatGroup_1 = require("./ReturnChatGroup");
|
|
|
32
32
|
exports.ReturnPagedChatGroups = core.serialization.object({
|
|
33
33
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
34
34
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
35
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
36
|
+
paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
|
|
35
37
|
chatGroupsPage: core.serialization.property("chat_groups_page", core.serialization.list(ReturnChatGroup_1.ReturnChatGroup)),
|
|
36
38
|
});
|
|
@@ -32,5 +32,7 @@ const ReturnChat_1 = require("./ReturnChat");
|
|
|
32
32
|
exports.ReturnPagedChats = core.serialization.object({
|
|
33
33
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
34
34
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
35
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
36
|
+
paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
|
|
35
37
|
chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
|
|
36
38
|
});
|
|
@@ -32,5 +32,6 @@ const ReturnConfig_1 = require("./ReturnConfig");
|
|
|
32
32
|
exports.ReturnPagedConfigs = core.serialization.object({
|
|
33
33
|
pageNumber: core.serialization.property("page_number", core.serialization.number().optional()),
|
|
34
34
|
pageSize: core.serialization.property("page_size", core.serialization.number().optional()),
|
|
35
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
35
36
|
configsPage: core.serialization.property("configs_page", core.serialization.list(ReturnConfig_1.ReturnConfig).optional()),
|
|
36
37
|
});
|
|
@@ -32,5 +32,6 @@ const ReturnPrompt_1 = require("./ReturnPrompt");
|
|
|
32
32
|
exports.ReturnPagedPrompts = core.serialization.object({
|
|
33
33
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
34
34
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
35
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
35
36
|
promptsPage: core.serialization.property("prompts_page", core.serialization.list(ReturnPrompt_1.ReturnPrompt.optional())),
|
|
36
37
|
});
|
|
@@ -32,5 +32,6 @@ const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
|
32
32
|
exports.ReturnPagedUserDefinedTools = core.serialization.object({
|
|
33
33
|
pageNumber: core.serialization.property("page_number", core.serialization.number()),
|
|
34
34
|
pageSize: core.serialization.property("page_size", core.serialization.number()),
|
|
35
|
+
totalPages: core.serialization.property("total_pages", core.serialization.number()),
|
|
35
36
|
toolsPage: core.serialization.property("tools_page", core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional())),
|
|
36
37
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ReturnTimeoutSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnTimeoutSpec.Raw, Hume.empathicVoice.ReturnTimeoutSpec>;
|
|
8
|
+
export declare namespace ReturnTimeoutSpec {
|
|
9
|
+
interface Raw {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
duration_secs?: number | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ReturnTimeoutSpec = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ReturnTimeoutSpec = core.serialization.object({
|
|
32
|
+
enabled: core.serialization.boolean(),
|
|
33
|
+
durationSecs: core.serialization.property("duration_secs", core.serialization.number().optional()),
|
|
34
|
+
});
|
|
@@ -6,12 +6,14 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { AudioConfiguration } from "./AudioConfiguration";
|
|
8
8
|
import { BuiltinToolConfig } from "./BuiltinToolConfig";
|
|
9
|
+
import { Context } from "./Context";
|
|
9
10
|
import { Tool } from "./Tool";
|
|
10
11
|
export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
|
|
11
12
|
export declare namespace SessionSettings {
|
|
12
13
|
interface Raw {
|
|
13
14
|
audio?: AudioConfiguration.Raw | null;
|
|
14
15
|
builtin_tools?: BuiltinToolConfig.Raw[] | null;
|
|
16
|
+
context?: Context.Raw | null;
|
|
15
17
|
custom_session_id?: string | null;
|
|
16
18
|
language_model_api_key?: string | null;
|
|
17
19
|
system_prompt?: string | null;
|
|
@@ -30,10 +30,12 @@ exports.SessionSettings = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const AudioConfiguration_1 = require("./AudioConfiguration");
|
|
32
32
|
const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
|
|
33
|
+
const Context_1 = require("./Context");
|
|
33
34
|
const Tool_1 = require("./Tool");
|
|
34
35
|
exports.SessionSettings = core.serialization.object({
|
|
35
36
|
audio: AudioConfiguration_1.AudioConfiguration.optional(),
|
|
36
37
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
|
|
38
|
+
context: Context_1.Context.optional(),
|
|
37
39
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
38
40
|
languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
|
|
39
41
|
systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
|
|
@@ -35,6 +35,6 @@ exports.ToolCallMessage = core.serialization.object({
|
|
|
35
35
|
parameters: core.serialization.string(),
|
|
36
36
|
responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
|
|
37
37
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
38
|
-
toolType: core.serialization.property("tool_type", ToolType_1.ToolType),
|
|
39
|
-
type: core.serialization.stringLiteral("tool_call")
|
|
38
|
+
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
39
|
+
type: core.serialization.stringLiteral("tool_call"),
|
|
40
40
|
});
|
|
@@ -38,5 +38,5 @@ exports.ToolErrorMessage = core.serialization.object({
|
|
|
38
38
|
level: ErrorLevel_1.ErrorLevel.optional(),
|
|
39
39
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
40
40
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
41
|
-
type: core.serialization.stringLiteral("tool_error")
|
|
41
|
+
type: core.serialization.stringLiteral("tool_error"),
|
|
42
42
|
});
|
|
@@ -35,5 +35,5 @@ exports.ToolResponseMessage = core.serialization.object({
|
|
|
35
35
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
36
36
|
toolName: core.serialization.property("tool_name", core.serialization.string().optional()),
|
|
37
37
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
38
|
-
type: core.serialization.stringLiteral("tool_response")
|
|
38
|
+
type: core.serialization.stringLiteral("tool_response"),
|
|
39
39
|
});
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export * from "./ReturnUserDefinedTool";
|
|
2
2
|
export * from "./ReturnPrompt";
|
|
3
3
|
export * from "./PostedBuiltinTool";
|
|
4
|
+
export * from "./PostedEllmModel";
|
|
5
|
+
export * from "./PostedEventMessageSpec";
|
|
4
6
|
export * from "./PostedLanguageModelModelProvider";
|
|
5
7
|
export * from "./PostedLanguageModel";
|
|
6
8
|
export * from "./PostedPromptSpec";
|
|
9
|
+
export * from "./PostedTimeoutSpec";
|
|
7
10
|
export * from "./PostedUserDefinedToolSpec";
|
|
8
11
|
export * from "./PostedVoiceName";
|
|
9
12
|
export * from "./PostedVoice";
|
|
10
13
|
export * from "./ReturnBuiltinTool";
|
|
11
14
|
export * from "./ReturnConfig";
|
|
15
|
+
export * from "./ReturnEllmModel";
|
|
16
|
+
export * from "./ReturnEventMessageSpec";
|
|
12
17
|
export * from "./ReturnLanguageModel";
|
|
18
|
+
export * from "./ReturnTimeoutSpec";
|
|
13
19
|
export * from "./ReturnVoice";
|
|
14
20
|
export * from "./ReturnPagedUserDefinedTools";
|
|
15
21
|
export * from "./ReturnPagedPrompts";
|
|
@@ -21,10 +27,10 @@ export * from "./ReturnChatEvent";
|
|
|
21
27
|
export * from "./ReturnChatPagedEvents";
|
|
22
28
|
export * from "./ReturnActiveChatCount";
|
|
23
29
|
export * from "./ReturnActiveChatCountPerTag";
|
|
24
|
-
export * from "./ReturnChatGroupPagedEvents";
|
|
25
|
-
export * from "./ReturnChatGroupPagedChats";
|
|
26
30
|
export * from "./ReturnChatGroup";
|
|
27
31
|
export * from "./ReturnPagedChatGroups";
|
|
32
|
+
export * from "./ReturnChatGroupPagedChats";
|
|
33
|
+
export * from "./ReturnChatGroupPagedEvents";
|
|
28
34
|
export * from "./AssistantEnd";
|
|
29
35
|
export * from "./AssistantInput";
|
|
30
36
|
export * from "./AssistantMessage";
|
|
@@ -40,7 +46,7 @@ export * from "./Context";
|
|
|
40
46
|
export * from "./ContextType";
|
|
41
47
|
export * from "./EmotionScores";
|
|
42
48
|
export * from "./Encoding";
|
|
43
|
-
export * from "./
|
|
49
|
+
export * from "./Error_";
|
|
44
50
|
export * from "./ErrorLevel";
|
|
45
51
|
export * from "./Inference";
|
|
46
52
|
export * from "./MillisecondInterval";
|
|
@@ -57,6 +63,3 @@ export * from "./ToolType";
|
|
|
57
63
|
export * from "./UserInput";
|
|
58
64
|
export * from "./UserInterruption";
|
|
59
65
|
export * from "./UserMessage";
|
|
60
|
-
export * from "./TtsInput";
|
|
61
|
-
export * from "./TextInput";
|
|
62
|
-
export * from "./FunctionCallResponseInput";
|
|
@@ -17,15 +17,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ReturnUserDefinedTool"), exports);
|
|
18
18
|
__exportStar(require("./ReturnPrompt"), exports);
|
|
19
19
|
__exportStar(require("./PostedBuiltinTool"), exports);
|
|
20
|
+
__exportStar(require("./PostedEllmModel"), exports);
|
|
21
|
+
__exportStar(require("./PostedEventMessageSpec"), exports);
|
|
20
22
|
__exportStar(require("./PostedLanguageModelModelProvider"), exports);
|
|
21
23
|
__exportStar(require("./PostedLanguageModel"), exports);
|
|
22
24
|
__exportStar(require("./PostedPromptSpec"), exports);
|
|
25
|
+
__exportStar(require("./PostedTimeoutSpec"), exports);
|
|
23
26
|
__exportStar(require("./PostedUserDefinedToolSpec"), exports);
|
|
24
27
|
__exportStar(require("./PostedVoiceName"), exports);
|
|
25
28
|
__exportStar(require("./PostedVoice"), exports);
|
|
26
29
|
__exportStar(require("./ReturnBuiltinTool"), exports);
|
|
27
30
|
__exportStar(require("./ReturnConfig"), exports);
|
|
31
|
+
__exportStar(require("./ReturnEllmModel"), exports);
|
|
32
|
+
__exportStar(require("./ReturnEventMessageSpec"), exports);
|
|
28
33
|
__exportStar(require("./ReturnLanguageModel"), exports);
|
|
34
|
+
__exportStar(require("./ReturnTimeoutSpec"), exports);
|
|
29
35
|
__exportStar(require("./ReturnVoice"), exports);
|
|
30
36
|
__exportStar(require("./ReturnPagedUserDefinedTools"), exports);
|
|
31
37
|
__exportStar(require("./ReturnPagedPrompts"), exports);
|
|
@@ -37,10 +43,10 @@ __exportStar(require("./ReturnChatEvent"), exports);
|
|
|
37
43
|
__exportStar(require("./ReturnChatPagedEvents"), exports);
|
|
38
44
|
__exportStar(require("./ReturnActiveChatCount"), exports);
|
|
39
45
|
__exportStar(require("./ReturnActiveChatCountPerTag"), exports);
|
|
40
|
-
__exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
41
|
-
__exportStar(require("./ReturnChatGroupPagedChats"), exports);
|
|
42
46
|
__exportStar(require("./ReturnChatGroup"), exports);
|
|
43
47
|
__exportStar(require("./ReturnPagedChatGroups"), exports);
|
|
48
|
+
__exportStar(require("./ReturnChatGroupPagedChats"), exports);
|
|
49
|
+
__exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
44
50
|
__exportStar(require("./AssistantEnd"), exports);
|
|
45
51
|
__exportStar(require("./AssistantInput"), exports);
|
|
46
52
|
__exportStar(require("./AssistantMessage"), exports);
|
|
@@ -56,7 +62,7 @@ __exportStar(require("./Context"), exports);
|
|
|
56
62
|
__exportStar(require("./ContextType"), exports);
|
|
57
63
|
__exportStar(require("./EmotionScores"), exports);
|
|
58
64
|
__exportStar(require("./Encoding"), exports);
|
|
59
|
-
__exportStar(require("./
|
|
65
|
+
__exportStar(require("./Error_"), exports);
|
|
60
66
|
__exportStar(require("./ErrorLevel"), exports);
|
|
61
67
|
__exportStar(require("./Inference"), exports);
|
|
62
68
|
__exportStar(require("./MillisecondInterval"), exports);
|
|
@@ -73,6 +79,3 @@ __exportStar(require("./ToolType"), exports);
|
|
|
73
79
|
__exportStar(require("./UserInput"), exports);
|
|
74
80
|
__exportStar(require("./UserInterruption"), exports);
|
|
75
81
|
__exportStar(require("./UserMessage"), exports);
|
|
76
|
-
__exportStar(require("./TtsInput"), exports);
|
|
77
|
-
__exportStar(require("./TextInput"), exports);
|
|
78
|
-
__exportStar(require("./FunctionCallResponseInput"), exports);
|
|
@@ -14,7 +14,7 @@ export declare namespace ChatClient {
|
|
|
14
14
|
resumedChatGroupId?: string;
|
|
15
15
|
onOpen?: () => void;
|
|
16
16
|
onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
|
|
17
|
-
onError?: (error: Hume.empathicVoice.
|
|
17
|
+
onError?: (error: Hume.empathicVoice.Error_) => void;
|
|
18
18
|
onClose?: () => void;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -26,5 +26,5 @@ export declare class ChatClient {
|
|
|
26
26
|
}
|
|
27
27
|
export declare function parse(data: any, args?: {
|
|
28
28
|
onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
|
|
29
|
-
onError?: (error: Hume.empathicVoice.
|
|
29
|
+
onError?: (error: Hume.empathicVoice.Error_) => void;
|
|
30
30
|
}): Promise<Hume.empathicVoice.SubscribeEvent | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hume",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/HumeAI/hume-typescript-sdk",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -34,5 +34,10 @@
|
|
|
34
34
|
"typescript": "4.6.4",
|
|
35
35
|
"@types/ws": "^8.5.9",
|
|
36
36
|
"@types/uuid": "9.0.7"
|
|
37
|
+
},
|
|
38
|
+
"browser": {
|
|
39
|
+
"fs": false,
|
|
40
|
+
"os": false,
|
|
41
|
+
"path": false
|
|
37
42
|
}
|
|
38
43
|
}
|