hume 0.8.4 → 0.8.5
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 +820 -182
- package/.mock/definition/empathic-voice/chatGroups.yml +54 -17
- package/.mock/definition/empathic-voice/chats.yml +51 -19
- package/.mock/definition/empathic-voice/configs.yml +198 -61
- package/.mock/definition/empathic-voice/prompts.yml +126 -27
- package/.mock/definition/empathic-voice/tools.yml +116 -23
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/api/resources/empathicVoice/types/index.js +14 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/index.js +14 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/errors/HumeError.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
- package/errors/HumeError.js +1 -1
- package/eslint.config.mjs +1 -1
- package/{jest.config.mjs → jest.config.js} +1 -3
- package/package.json +2 -2
- package/reference.md +86 -32
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/index.js +14 -0
|
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of chat_groups returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedChatGroups {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
25
|
+
*
|
|
26
|
+
* It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
|
|
27
|
+
*/
|
|
28
|
+
paginationDirection: Hume.empathicVoice.ReturnPagedChatGroupsPaginationDirection;
|
|
29
|
+
/** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
|
|
18
30
|
chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
|
|
19
31
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
6
|
+
*
|
|
7
|
+
* It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
|
|
8
|
+
*/
|
|
9
|
+
export declare type ReturnPagedChatGroupsPaginationDirection = 'ASC' | 'DESC';
|
|
10
|
+
export declare const ReturnPagedChatGroupsPaginationDirection: {
|
|
11
|
+
readonly Asc: "ASC";
|
|
12
|
+
readonly Desc: "DESC";
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnPagedChatGroupsPaginationDirection = void 0;
|
|
7
|
+
exports.ReturnPagedChatGroupsPaginationDirection = {
|
|
8
|
+
Asc: 'ASC',
|
|
9
|
+
Desc: 'DESC',
|
|
10
|
+
};
|
|
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of chats returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedChats {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
25
|
+
*
|
|
26
|
+
* It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
|
|
27
|
+
*/
|
|
28
|
+
paginationDirection: Hume.empathicVoice.ReturnPagedChatsPaginationDirection;
|
|
29
|
+
/** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
|
|
18
30
|
chatsPage: Hume.empathicVoice.ReturnChat[];
|
|
19
31
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
6
|
+
*
|
|
7
|
+
* It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
|
|
8
|
+
*/
|
|
9
|
+
export declare type ReturnPagedChatsPaginationDirection = 'ASC' | 'DESC';
|
|
10
|
+
export declare const ReturnPagedChatsPaginationDirection: {
|
|
11
|
+
readonly Asc: "ASC";
|
|
12
|
+
readonly Desc: "DESC";
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnPagedChatsPaginationDirection = void 0;
|
|
7
|
+
exports.ReturnPagedChatsPaginationDirection = {
|
|
8
|
+
Asc: 'ASC',
|
|
9
|
+
Desc: 'DESC',
|
|
10
|
+
};
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of config versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedConfigs {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber?: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize?: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of
|
|
23
|
+
/** List of configs returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
configsPage?: Hume.empathicVoice.ReturnConfig[];
|
|
17
25
|
}
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of prompt versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedPrompts {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of prompts returned for the specified
|
|
23
|
+
/** List of prompts returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
|
|
17
25
|
}
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of user defined tool versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedUserDefinedTools {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of tools returned for the specified
|
|
23
|
+
/** List of tools returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
17
25
|
}
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Hume from '../../../index';
|
|
4
5
|
/**
|
|
5
|
-
* A
|
|
6
|
+
* A Prompt associated with this Config.
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnPrompt {
|
|
8
9
|
/** Identifier for a Prompt. Formatted as a UUID. */
|
|
9
10
|
id: string;
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Version number for a Prompt.
|
|
13
|
+
*
|
|
14
|
+
* Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
|
|
15
|
+
*
|
|
16
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
17
|
+
*/
|
|
11
18
|
version: number;
|
|
12
|
-
/**
|
|
13
|
-
versionType:
|
|
14
|
-
/**
|
|
19
|
+
/** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
20
|
+
versionType: Hume.empathicVoice.ReturnPromptVersionType;
|
|
21
|
+
/** An optional description of the Prompt version. */
|
|
15
22
|
versionDescription?: string;
|
|
16
23
|
/** Name applied to all versions of a particular Prompt. */
|
|
17
24
|
name: string;
|
|
18
|
-
/**
|
|
25
|
+
/** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
|
|
19
26
|
createdOn: number;
|
|
20
|
-
/**
|
|
27
|
+
/** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
|
|
21
28
|
modifiedOn: number;
|
|
22
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Instructions used to shape EVI’s behavior, responses, and style.
|
|
31
|
+
*
|
|
32
|
+
* 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
|
+
*
|
|
34
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
35
|
+
*/
|
|
23
36
|
text: string;
|
|
24
37
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnPromptVersionType = 'FIXED' | 'LATEST';
|
|
8
|
+
export declare const ReturnPromptVersionType: {
|
|
9
|
+
readonly Fixed: "FIXED";
|
|
10
|
+
readonly Latest: "LATEST";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnPromptVersionType = void 0;
|
|
7
|
+
exports.ReturnPromptVersionType = {
|
|
8
|
+
Fixed: 'FIXED',
|
|
9
|
+
Latest: 'LATEST',
|
|
10
|
+
};
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* A specific timeout configuration to be returned from the server
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnTimeoutSpec {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Boolean indicating if this timeout is enabled.
|
|
10
|
+
*
|
|
11
|
+
* If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
|
|
12
|
+
*/
|
|
9
13
|
enabled: boolean;
|
|
10
|
-
/** Duration in seconds for the timeout. */
|
|
14
|
+
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
11
15
|
durationSecs?: number;
|
|
12
16
|
}
|
|
@@ -3,9 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
5
|
/**
|
|
6
|
-
* Collection of timeout
|
|
6
|
+
* Collection of timeout specifications returned by the server.
|
|
7
|
+
*
|
|
8
|
+
* 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.
|
|
7
9
|
*/
|
|
8
10
|
export interface ReturnTimeoutSpecs {
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
|
|
13
|
+
*
|
|
14
|
+
* Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
|
|
15
|
+
*/
|
|
9
16
|
inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
|
|
19
|
+
*
|
|
20
|
+
* Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
|
|
21
|
+
*/
|
|
10
22
|
maxDuration: Hume.empathicVoice.ReturnTimeoutSpec;
|
|
11
23
|
}
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Hume from '../../../index';
|
|
4
5
|
/**
|
|
5
6
|
* A specific tool version returned from the server
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnUserDefinedTool {
|
|
8
|
-
/** Type of Tool.
|
|
9
|
-
toolType:
|
|
9
|
+
/** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
|
|
10
|
+
toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
|
|
10
11
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
11
12
|
id: string;
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Version number for a Tool.
|
|
15
|
+
*
|
|
16
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
17
|
+
*
|
|
18
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
19
|
+
*/
|
|
13
20
|
version: number;
|
|
14
|
-
/**
|
|
15
|
-
versionType:
|
|
16
|
-
/**
|
|
21
|
+
/** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
22
|
+
versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
|
|
23
|
+
/** An optional description of the Tool version. */
|
|
17
24
|
versionDescription?: string;
|
|
18
25
|
/** Name applied to all versions of a particular Tool. */
|
|
19
26
|
name: string;
|
|
20
|
-
/**
|
|
27
|
+
/** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
|
|
21
28
|
createdOn: number;
|
|
22
|
-
/**
|
|
29
|
+
/** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
|
|
23
30
|
modifiedOn: number;
|
|
24
|
-
/**
|
|
31
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
|
|
25
32
|
fallbackContent?: string;
|
|
26
|
-
/**
|
|
33
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
27
34
|
description?: string;
|
|
28
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
37
|
+
*
|
|
38
|
+
* These parameters define the inputs needed for the Tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
|
|
39
|
+
*/
|
|
29
40
|
parameters: string;
|
|
30
41
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnUserDefinedToolToolType = 'BUILTIN' | 'FUNCTION';
|
|
8
|
+
export declare const ReturnUserDefinedToolToolType: {
|
|
9
|
+
readonly Builtin: "BUILTIN";
|
|
10
|
+
readonly Function: "FUNCTION";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnUserDefinedToolToolType = void 0;
|
|
7
|
+
exports.ReturnUserDefinedToolToolType = {
|
|
8
|
+
Builtin: 'BUILTIN',
|
|
9
|
+
Function: 'FUNCTION',
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnUserDefinedToolVersionType = 'FIXED' | 'LATEST';
|
|
8
|
+
export declare const ReturnUserDefinedToolVersionType: {
|
|
9
|
+
readonly Fixed: "FIXED";
|
|
10
|
+
readonly Latest: "LATEST";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnUserDefinedToolVersionType = void 0;
|
|
7
|
+
exports.ReturnUserDefinedToolVersionType = {
|
|
8
|
+
Fixed: 'FIXED',
|
|
9
|
+
Latest: 'LATEST',
|
|
10
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Hume from '../../../index';
|
|
4
5
|
/**
|
|
5
6
|
* A specific voice specification
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnVoice {
|
|
8
|
-
/** The provider of the voice to use.
|
|
9
|
-
provider:
|
|
9
|
+
/** The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider. */
|
|
10
|
+
provider: 'HUME_AI';
|
|
10
11
|
/** String with the name of the voice to use. Maximum length of 75 characters. Will be converted to all-uppercase. */
|
|
11
|
-
name?:
|
|
12
|
+
name?: Hume.empathicVoice.ReturnVoiceName;
|
|
12
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* String with the name of the voice to use. Maximum length of 75 characters. Will be converted to all-uppercase.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnVoiceName = 'ITO' | 'DACHER' | 'KORA';
|
|
8
|
+
export declare const ReturnVoiceName: {
|
|
9
|
+
readonly Ito: "ITO";
|
|
10
|
+
readonly Dacher: "DACHER";
|
|
11
|
+
readonly Kora: "KORA";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReturnVoiceName = void 0;
|
|
7
|
+
exports.ReturnVoiceName = {
|
|
8
|
+
Ito: 'ITO',
|
|
9
|
+
Dacher: 'DACHER',
|
|
10
|
+
Kora: 'KORA',
|
|
11
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
export * from './ReturnUserDefinedToolToolType';
|
|
2
|
+
export * from './ReturnUserDefinedToolVersionType';
|
|
1
3
|
export * from './ReturnUserDefinedTool';
|
|
4
|
+
export * from './ReturnPromptVersionType';
|
|
2
5
|
export * from './ReturnPrompt';
|
|
3
6
|
export * from './PostedCustomVoice';
|
|
4
7
|
export * from './ReturnCustomVoice';
|
|
@@ -16,30 +19,41 @@ export * from './PostedTimeoutSpecs';
|
|
|
16
19
|
export * from './PostedUserDefinedToolSpec';
|
|
17
20
|
export * from './PostedVoiceName';
|
|
18
21
|
export * from './PostedVoice';
|
|
22
|
+
export * from './ReturnBuiltinToolToolType';
|
|
19
23
|
export * from './ReturnBuiltinTool';
|
|
20
24
|
export * from './ReturnConfig';
|
|
21
25
|
export * from './ReturnEllmModel';
|
|
22
26
|
export * from './ReturnEventMessageSpec';
|
|
23
27
|
export * from './ReturnEventMessageSpecs';
|
|
28
|
+
export * from './ReturnLanguageModelModelProvider';
|
|
24
29
|
export * from './ReturnLanguageModel';
|
|
25
30
|
export * from './ReturnTimeoutSpec';
|
|
26
31
|
export * from './ReturnTimeoutSpecs';
|
|
32
|
+
export * from './ReturnVoiceName';
|
|
27
33
|
export * from './ReturnVoice';
|
|
28
34
|
export * from './PostedCustomVoiceName';
|
|
29
35
|
export * from './ReturnPagedUserDefinedTools';
|
|
30
36
|
export * from './ReturnPagedPrompts';
|
|
31
37
|
export * from './ReturnPagedCustomVoices';
|
|
32
38
|
export * from './ReturnPagedConfigs';
|
|
39
|
+
export * from './ReturnChatStatus';
|
|
33
40
|
export * from './ReturnChat';
|
|
34
41
|
export * from './ReturnConfigSpec';
|
|
42
|
+
export * from './ReturnPagedChatsPaginationDirection';
|
|
35
43
|
export * from './ReturnPagedChats';
|
|
44
|
+
export * from './ReturnChatEventRole';
|
|
45
|
+
export * from './ReturnChatEventType';
|
|
36
46
|
export * from './ReturnChatEvent';
|
|
47
|
+
export * from './ReturnChatPagedEventsStatus';
|
|
48
|
+
export * from './ReturnChatPagedEventsPaginationDirection';
|
|
37
49
|
export * from './ReturnChatPagedEvents';
|
|
38
50
|
export * from './ReturnActiveChatCount';
|
|
39
51
|
export * from './ReturnActiveChatCountPerTag';
|
|
40
52
|
export * from './ReturnChatGroup';
|
|
53
|
+
export * from './ReturnPagedChatGroupsPaginationDirection';
|
|
41
54
|
export * from './ReturnPagedChatGroups';
|
|
42
55
|
export * from './ReturnChatGroupPagedChats';
|
|
56
|
+
export * from './ReturnChatGroupPagedEventsPaginationDirection';
|
|
43
57
|
export * from './ReturnChatGroupPagedEvents';
|
|
44
58
|
export * from './AssistantInput';
|
|
45
59
|
export * from './AudioConfiguration';
|
|
@@ -14,7 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ReturnUserDefinedToolToolType"), exports);
|
|
18
|
+
__exportStar(require("./ReturnUserDefinedToolVersionType"), exports);
|
|
17
19
|
__exportStar(require("./ReturnUserDefinedTool"), exports);
|
|
20
|
+
__exportStar(require("./ReturnPromptVersionType"), exports);
|
|
18
21
|
__exportStar(require("./ReturnPrompt"), exports);
|
|
19
22
|
__exportStar(require("./PostedCustomVoice"), exports);
|
|
20
23
|
__exportStar(require("./ReturnCustomVoice"), exports);
|
|
@@ -32,30 +35,41 @@ __exportStar(require("./PostedTimeoutSpecs"), exports);
|
|
|
32
35
|
__exportStar(require("./PostedUserDefinedToolSpec"), exports);
|
|
33
36
|
__exportStar(require("./PostedVoiceName"), exports);
|
|
34
37
|
__exportStar(require("./PostedVoice"), exports);
|
|
38
|
+
__exportStar(require("./ReturnBuiltinToolToolType"), exports);
|
|
35
39
|
__exportStar(require("./ReturnBuiltinTool"), exports);
|
|
36
40
|
__exportStar(require("./ReturnConfig"), exports);
|
|
37
41
|
__exportStar(require("./ReturnEllmModel"), exports);
|
|
38
42
|
__exportStar(require("./ReturnEventMessageSpec"), exports);
|
|
39
43
|
__exportStar(require("./ReturnEventMessageSpecs"), exports);
|
|
44
|
+
__exportStar(require("./ReturnLanguageModelModelProvider"), exports);
|
|
40
45
|
__exportStar(require("./ReturnLanguageModel"), exports);
|
|
41
46
|
__exportStar(require("./ReturnTimeoutSpec"), exports);
|
|
42
47
|
__exportStar(require("./ReturnTimeoutSpecs"), exports);
|
|
48
|
+
__exportStar(require("./ReturnVoiceName"), exports);
|
|
43
49
|
__exportStar(require("./ReturnVoice"), exports);
|
|
44
50
|
__exportStar(require("./PostedCustomVoiceName"), exports);
|
|
45
51
|
__exportStar(require("./ReturnPagedUserDefinedTools"), exports);
|
|
46
52
|
__exportStar(require("./ReturnPagedPrompts"), exports);
|
|
47
53
|
__exportStar(require("./ReturnPagedCustomVoices"), exports);
|
|
48
54
|
__exportStar(require("./ReturnPagedConfigs"), exports);
|
|
55
|
+
__exportStar(require("./ReturnChatStatus"), exports);
|
|
49
56
|
__exportStar(require("./ReturnChat"), exports);
|
|
50
57
|
__exportStar(require("./ReturnConfigSpec"), exports);
|
|
58
|
+
__exportStar(require("./ReturnPagedChatsPaginationDirection"), exports);
|
|
51
59
|
__exportStar(require("./ReturnPagedChats"), exports);
|
|
60
|
+
__exportStar(require("./ReturnChatEventRole"), exports);
|
|
61
|
+
__exportStar(require("./ReturnChatEventType"), exports);
|
|
52
62
|
__exportStar(require("./ReturnChatEvent"), exports);
|
|
63
|
+
__exportStar(require("./ReturnChatPagedEventsStatus"), exports);
|
|
64
|
+
__exportStar(require("./ReturnChatPagedEventsPaginationDirection"), exports);
|
|
53
65
|
__exportStar(require("./ReturnChatPagedEvents"), exports);
|
|
54
66
|
__exportStar(require("./ReturnActiveChatCount"), exports);
|
|
55
67
|
__exportStar(require("./ReturnActiveChatCountPerTag"), exports);
|
|
56
68
|
__exportStar(require("./ReturnChatGroup"), exports);
|
|
69
|
+
__exportStar(require("./ReturnPagedChatGroupsPaginationDirection"), exports);
|
|
57
70
|
__exportStar(require("./ReturnPagedChatGroups"), exports);
|
|
58
71
|
__exportStar(require("./ReturnChatGroupPagedChats"), exports);
|
|
72
|
+
__exportStar(require("./ReturnChatGroupPagedEventsPaginationDirection"), exports);
|
|
59
73
|
__exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
60
74
|
__exportStar(require("./AssistantInput"), exports);
|
|
61
75
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
@@ -96,7 +96,7 @@ class Batch {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
98
98
|
method: 'GET',
|
|
99
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
99
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
100
100
|
contentType: 'application/json',
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -152,7 +152,7 @@ class Batch {
|
|
|
152
152
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
153
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
154
154
|
method: 'POST',
|
|
155
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
155
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
156
156
|
contentType: 'application/json',
|
|
157
157
|
body: serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
|
|
158
158
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -207,7 +207,7 @@ class Batch {
|
|
|
207
207
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
208
208
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
209
209
|
method: 'GET',
|
|
210
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
210
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
211
211
|
contentType: 'application/json',
|
|
212
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
213
213
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -259,7 +259,7 @@ class Batch {
|
|
|
259
259
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
260
260
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
261
261
|
method: 'GET',
|
|
262
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
262
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
263
263
|
contentType: 'application/json',
|
|
264
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
265
265
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -305,7 +305,7 @@ class Batch {
|
|
|
305
305
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
306
306
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
307
307
|
method: 'GET',
|
|
308
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
308
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
309
309
|
contentType: 'application/json',
|
|
310
310
|
responseType: 'streaming',
|
|
311
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -362,7 +362,7 @@ class Batch {
|
|
|
362
362
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
363
363
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
364
364
|
method: 'POST',
|
|
365
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
365
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
366
366
|
body: yield _maybeEncodedRequest.getBody(),
|
|
367
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
368
368
|
? requestOptions.timeoutInSeconds * 1000
|
package/dist/errors/HumeError.js
CHANGED