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
|
@@ -29,6 +29,7 @@ service:
|
|
|
29
29
|
body:
|
|
30
30
|
page_number: 1
|
|
31
31
|
page_size: 1
|
|
32
|
+
total_pages: 1
|
|
32
33
|
configs_page:
|
|
33
34
|
- id: id
|
|
34
35
|
version: 1
|
|
@@ -47,18 +48,8 @@ service:
|
|
|
47
48
|
voice:
|
|
48
49
|
provider: provider
|
|
49
50
|
name: name
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
id: id
|
|
53
|
-
version: 1
|
|
54
|
-
version_type: version_type
|
|
55
|
-
name: name
|
|
56
|
-
created_on: 1
|
|
57
|
-
modified_on: 1
|
|
58
|
-
parameters: parameters
|
|
59
|
-
builtin_tools:
|
|
60
|
-
tool_type: tool_type
|
|
61
|
-
name: name
|
|
51
|
+
ellm_model:
|
|
52
|
+
allow_short_responses: true
|
|
62
53
|
create-config:
|
|
63
54
|
path: /v0/evi/configs
|
|
64
55
|
method: POST
|
|
@@ -77,10 +68,25 @@ service:
|
|
|
77
68
|
prompt: optional<root.PostedPromptSpec>
|
|
78
69
|
voice: optional<root.PostedVoice>
|
|
79
70
|
language_model: optional<root.PostedLanguageModel>
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
ellm_model: optional<root.PostedEllmModel>
|
|
72
|
+
tools:
|
|
73
|
+
type: optional<list<optional<root.PostedUserDefinedToolSpec>>>
|
|
74
|
+
docs: Tool specification for a Config.
|
|
75
|
+
builtin_tools:
|
|
76
|
+
type: optional<list<optional<root.PostedBuiltinTool>>>
|
|
77
|
+
docs: Built-in tool specification for a Config.
|
|
78
|
+
event_messages:
|
|
79
|
+
type: optional<map<string, optional<root.PostedEventMessageSpec>>>
|
|
80
|
+
docs: >-
|
|
81
|
+
Map with event_message types as keys and a nested dict of event
|
|
82
|
+
message parameters as values.
|
|
83
|
+
timeouts:
|
|
84
|
+
type: optional<map<string, optional<root.PostedTimeoutSpec>>>
|
|
85
|
+
docs: >-
|
|
86
|
+
Map with timeout types as keys and a nested dict of timeout
|
|
87
|
+
parameters as values.
|
|
82
88
|
response:
|
|
83
|
-
docs:
|
|
89
|
+
docs: Created
|
|
84
90
|
type: root.ReturnConfig
|
|
85
91
|
examples:
|
|
86
92
|
- request:
|
|
@@ -109,22 +115,32 @@ service:
|
|
|
109
115
|
model_provider: model_provider
|
|
110
116
|
model_resource: model_resource
|
|
111
117
|
temperature: 1.1
|
|
118
|
+
ellm_model:
|
|
119
|
+
allow_short_responses: true
|
|
112
120
|
tools:
|
|
113
|
-
tool_type: tool_type
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
- tool_type: tool_type
|
|
122
|
+
id: id
|
|
123
|
+
version: 1
|
|
124
|
+
version_type: version_type
|
|
125
|
+
version_description: version_description
|
|
126
|
+
name: name
|
|
127
|
+
created_on: 1
|
|
128
|
+
modified_on: 1
|
|
129
|
+
fallback_content: fallback_content
|
|
130
|
+
description: description
|
|
131
|
+
parameters: parameters
|
|
124
132
|
builtin_tools:
|
|
125
|
-
tool_type: tool_type
|
|
126
|
-
|
|
127
|
-
|
|
133
|
+
- tool_type: tool_type
|
|
134
|
+
name: name
|
|
135
|
+
fallback_content: fallback_content
|
|
136
|
+
event_messages:
|
|
137
|
+
event_messages:
|
|
138
|
+
enabled: true
|
|
139
|
+
text: text
|
|
140
|
+
timeouts:
|
|
141
|
+
timeouts:
|
|
142
|
+
enabled: true
|
|
143
|
+
duration_secs: 1
|
|
128
144
|
list-config-versions:
|
|
129
145
|
path: /v0/evi/configs/{id}
|
|
130
146
|
method: GET
|
|
@@ -156,6 +172,7 @@ service:
|
|
|
156
172
|
body:
|
|
157
173
|
page_number: 1
|
|
158
174
|
page_size: 1
|
|
175
|
+
total_pages: 1
|
|
159
176
|
configs_page:
|
|
160
177
|
- id: id
|
|
161
178
|
version: 1
|
|
@@ -174,18 +191,8 @@ service:
|
|
|
174
191
|
voice:
|
|
175
192
|
provider: provider
|
|
176
193
|
name: name
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
id: id
|
|
180
|
-
version: 1
|
|
181
|
-
version_type: version_type
|
|
182
|
-
name: name
|
|
183
|
-
created_on: 1
|
|
184
|
-
modified_on: 1
|
|
185
|
-
parameters: parameters
|
|
186
|
-
builtin_tools:
|
|
187
|
-
tool_type: tool_type
|
|
188
|
-
name: name
|
|
194
|
+
ellm_model:
|
|
195
|
+
allow_short_responses: true
|
|
189
196
|
create-config-version:
|
|
190
197
|
path: /v0/evi/configs/{id}
|
|
191
198
|
method: POST
|
|
@@ -205,10 +212,25 @@ service:
|
|
|
205
212
|
prompt: optional<root.PostedPromptSpec>
|
|
206
213
|
voice: optional<root.PostedVoice>
|
|
207
214
|
language_model: optional<root.PostedLanguageModel>
|
|
208
|
-
|
|
209
|
-
|
|
215
|
+
ellm_model: optional<root.PostedEllmModel>
|
|
216
|
+
tools:
|
|
217
|
+
type: optional<list<optional<root.PostedUserDefinedToolSpec>>>
|
|
218
|
+
docs: Tool specification for a Config.
|
|
219
|
+
builtin_tools:
|
|
220
|
+
type: optional<list<optional<root.PostedBuiltinTool>>>
|
|
221
|
+
docs: Built-in tool specification for a Config.
|
|
222
|
+
event_messages:
|
|
223
|
+
type: optional<map<string, optional<root.PostedEventMessageSpec>>>
|
|
224
|
+
docs: >-
|
|
225
|
+
Map with event_message types as keys and a nested dict of event
|
|
226
|
+
message parameters as values.
|
|
227
|
+
timeouts:
|
|
228
|
+
type: optional<map<string, optional<root.PostedTimeoutSpec>>>
|
|
229
|
+
docs: >-
|
|
230
|
+
Map with timeout types as keys and a nested dict of timeout
|
|
231
|
+
parameters as values.
|
|
210
232
|
response:
|
|
211
|
-
docs:
|
|
233
|
+
docs: Created
|
|
212
234
|
type: root.ReturnConfig
|
|
213
235
|
examples:
|
|
214
236
|
- path-parameters:
|
|
@@ -238,22 +260,32 @@ service:
|
|
|
238
260
|
model_provider: model_provider
|
|
239
261
|
model_resource: model_resource
|
|
240
262
|
temperature: 1.1
|
|
263
|
+
ellm_model:
|
|
264
|
+
allow_short_responses: true
|
|
241
265
|
tools:
|
|
242
|
-
tool_type: tool_type
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
266
|
+
- tool_type: tool_type
|
|
267
|
+
id: id
|
|
268
|
+
version: 1
|
|
269
|
+
version_type: version_type
|
|
270
|
+
version_description: version_description
|
|
271
|
+
name: name
|
|
272
|
+
created_on: 1
|
|
273
|
+
modified_on: 1
|
|
274
|
+
fallback_content: fallback_content
|
|
275
|
+
description: description
|
|
276
|
+
parameters: parameters
|
|
253
277
|
builtin_tools:
|
|
254
|
-
tool_type: tool_type
|
|
255
|
-
|
|
256
|
-
|
|
278
|
+
- tool_type: tool_type
|
|
279
|
+
name: name
|
|
280
|
+
fallback_content: fallback_content
|
|
281
|
+
event_messages:
|
|
282
|
+
event_messages:
|
|
283
|
+
enabled: true
|
|
284
|
+
text: text
|
|
285
|
+
timeouts:
|
|
286
|
+
timeouts:
|
|
287
|
+
enabled: true
|
|
288
|
+
duration_secs: 1
|
|
257
289
|
delete-config:
|
|
258
290
|
path: /v0/evi/configs/{id}
|
|
259
291
|
method: DELETE
|
|
@@ -328,22 +360,32 @@ service:
|
|
|
328
360
|
model_provider: model_provider
|
|
329
361
|
model_resource: model_resource
|
|
330
362
|
temperature: 1.1
|
|
363
|
+
ellm_model:
|
|
364
|
+
allow_short_responses: true
|
|
331
365
|
tools:
|
|
332
|
-
tool_type: tool_type
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
366
|
+
- tool_type: tool_type
|
|
367
|
+
id: id
|
|
368
|
+
version: 1
|
|
369
|
+
version_type: version_type
|
|
370
|
+
version_description: version_description
|
|
371
|
+
name: name
|
|
372
|
+
created_on: 1
|
|
373
|
+
modified_on: 1
|
|
374
|
+
fallback_content: fallback_content
|
|
375
|
+
description: description
|
|
376
|
+
parameters: parameters
|
|
343
377
|
builtin_tools:
|
|
344
|
-
tool_type: tool_type
|
|
345
|
-
|
|
346
|
-
|
|
378
|
+
- tool_type: tool_type
|
|
379
|
+
name: name
|
|
380
|
+
fallback_content: fallback_content
|
|
381
|
+
event_messages:
|
|
382
|
+
event_messages:
|
|
383
|
+
enabled: true
|
|
384
|
+
text: text
|
|
385
|
+
timeouts:
|
|
386
|
+
timeouts:
|
|
387
|
+
enabled: true
|
|
388
|
+
duration_secs: 1
|
|
347
389
|
delete-config-version:
|
|
348
390
|
path: /v0/evi/configs/{id}/version/{version}
|
|
349
391
|
method: DELETE
|
|
@@ -411,19 +453,29 @@ service:
|
|
|
411
453
|
model_provider: model_provider
|
|
412
454
|
model_resource: model_resource
|
|
413
455
|
temperature: 1.1
|
|
456
|
+
ellm_model:
|
|
457
|
+
allow_short_responses: true
|
|
414
458
|
tools:
|
|
415
|
-
tool_type: tool_type
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
459
|
+
- tool_type: tool_type
|
|
460
|
+
id: id
|
|
461
|
+
version: 1
|
|
462
|
+
version_type: version_type
|
|
463
|
+
version_description: version_description
|
|
464
|
+
name: name
|
|
465
|
+
created_on: 1
|
|
466
|
+
modified_on: 1
|
|
467
|
+
fallback_content: fallback_content
|
|
468
|
+
description: description
|
|
469
|
+
parameters: parameters
|
|
426
470
|
builtin_tools:
|
|
427
|
-
tool_type: tool_type
|
|
428
|
-
|
|
429
|
-
|
|
471
|
+
- tool_type: tool_type
|
|
472
|
+
name: name
|
|
473
|
+
fallback_content: fallback_content
|
|
474
|
+
event_messages:
|
|
475
|
+
event_messages:
|
|
476
|
+
enabled: true
|
|
477
|
+
text: text
|
|
478
|
+
timeouts:
|
|
479
|
+
timeouts:
|
|
480
|
+
enabled: true
|
|
481
|
+
duration_secs: 1
|
|
@@ -29,6 +29,7 @@ service:
|
|
|
29
29
|
body:
|
|
30
30
|
page_number: 1
|
|
31
31
|
page_size: 1
|
|
32
|
+
total_pages: 1
|
|
32
33
|
prompts_page:
|
|
33
34
|
- id: id
|
|
34
35
|
version: 1
|
|
@@ -57,7 +58,7 @@ service:
|
|
|
57
58
|
type: string
|
|
58
59
|
docs: Text used for this version of the Prompt.
|
|
59
60
|
response:
|
|
60
|
-
docs:
|
|
61
|
+
docs: Created
|
|
61
62
|
type: optional<root.ReturnPrompt>
|
|
62
63
|
examples:
|
|
63
64
|
- request:
|
|
@@ -104,6 +105,7 @@ service:
|
|
|
104
105
|
body:
|
|
105
106
|
page_number: 1
|
|
106
107
|
page_size: 1
|
|
108
|
+
total_pages: 1
|
|
107
109
|
prompts_page:
|
|
108
110
|
- id: id
|
|
109
111
|
version: 1
|
|
@@ -133,7 +135,7 @@ service:
|
|
|
133
135
|
type: string
|
|
134
136
|
docs: Text used for this version of the Prompt.
|
|
135
137
|
response:
|
|
136
|
-
docs:
|
|
138
|
+
docs: Created
|
|
137
139
|
type: optional<root.ReturnPrompt>
|
|
138
140
|
examples:
|
|
139
141
|
- path-parameters:
|
|
@@ -32,6 +32,7 @@ service:
|
|
|
32
32
|
body:
|
|
33
33
|
page_number: 0
|
|
34
34
|
page_size: 2
|
|
35
|
+
total_pages: 1
|
|
35
36
|
tools_page:
|
|
36
37
|
- tool_type: FUNCTION
|
|
37
38
|
id: d20827af-5d8d-4f66-b6b9-ce2e3e1ea2b2
|
|
@@ -95,7 +96,7 @@ service:
|
|
|
95
96
|
type: optional<string>
|
|
96
97
|
docs: Text to use if the tool fails to generate content.
|
|
97
98
|
response:
|
|
98
|
-
docs:
|
|
99
|
+
docs: Created
|
|
99
100
|
type: optional<root.ReturnUserDefinedTool>
|
|
100
101
|
examples:
|
|
101
102
|
- request:
|
|
@@ -164,6 +165,7 @@ service:
|
|
|
164
165
|
body:
|
|
165
166
|
page_number: 0
|
|
166
167
|
page_size: 10
|
|
168
|
+
total_pages: 1
|
|
167
169
|
tools_page:
|
|
168
170
|
- tool_type: FUNCTION
|
|
169
171
|
id: 00183a3f-79ba-413d-9f3b-609864268bea
|
|
@@ -212,7 +214,7 @@ service:
|
|
|
212
214
|
type: optional<string>
|
|
213
215
|
docs: Text to use if the tool fails to generate content.
|
|
214
216
|
response:
|
|
215
|
-
docs:
|
|
217
|
+
docs: Created
|
|
216
218
|
type: optional<root.ReturnUserDefinedTool>
|
|
217
219
|
examples:
|
|
218
220
|
- path-parameters:
|
package/.mock/fern.config.json
CHANGED
|
@@ -28,7 +28,7 @@ export declare class Datasets {
|
|
|
28
28
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await
|
|
31
|
+
* await client.customModels.datasets.listDatasets()
|
|
32
32
|
*/
|
|
33
33
|
listDatasets(request?: Hume.customModels.DatasetsListDatasetsRequest, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.DatasetPage>;
|
|
34
34
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class Datasets {
|
|
|
40
40
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await
|
|
43
|
+
* await client.customModels.datasets.createDataset(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), {
|
|
44
44
|
* name: "name"
|
|
45
45
|
* })
|
|
46
46
|
*/
|
|
@@ -52,7 +52,7 @@ export declare class Datasets {
|
|
|
52
52
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await
|
|
55
|
+
* await client.customModels.datasets.getDataset("id")
|
|
56
56
|
*/
|
|
57
57
|
getDataset(id: string, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.ReturnDataset>;
|
|
58
58
|
/**
|
|
@@ -64,7 +64,7 @@ export declare class Datasets {
|
|
|
64
64
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await
|
|
67
|
+
* await client.customModels.datasets.createDatasetVersion(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), "id")
|
|
68
68
|
*/
|
|
69
69
|
createDatasetVersion(featureTypes: File | fs.ReadStream | undefined, labelsFile: File | fs.ReadStream, id: string, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.ReturnDataset[]>;
|
|
70
70
|
/**
|
|
@@ -74,7 +74,7 @@ export declare class Datasets {
|
|
|
74
74
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
|
-
* await
|
|
77
|
+
* await client.customModels.datasets.deleteDataset("id")
|
|
78
78
|
*/
|
|
79
79
|
deleteDataset(id: string, requestOptions?: Datasets.RequestOptions): Promise<void>;
|
|
80
80
|
/**
|
|
@@ -85,7 +85,7 @@ export declare class Datasets {
|
|
|
85
85
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
|
-
* await
|
|
88
|
+
* await client.customModels.datasets.listDatasetVersions("id")
|
|
89
89
|
*/
|
|
90
90
|
listDatasetVersions(id: string, request?: Hume.customModels.DatasetsListDatasetVersionsRequest, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.DatasetVersionPage>;
|
|
91
91
|
/**
|
|
@@ -96,7 +96,7 @@ export declare class Datasets {
|
|
|
96
96
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
|
-
* await
|
|
99
|
+
* await client.customModels.datasets.listDatasetFiles("id")
|
|
100
100
|
*/
|
|
101
101
|
listDatasetFiles(id: string, request?: Hume.customModels.DatasetsListDatasetFilesRequest, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.FilePage[]>;
|
|
102
102
|
/**
|
|
@@ -106,7 +106,7 @@ export declare class Datasets {
|
|
|
106
106
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
|
-
* await
|
|
109
|
+
* await client.customModels.datasets.getDatasetVersion("id")
|
|
110
110
|
*/
|
|
111
111
|
getDatasetVersion(id: string, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.DatasetLabels>;
|
|
112
112
|
/**
|
|
@@ -117,7 +117,7 @@ export declare class Datasets {
|
|
|
117
117
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
|
-
* await
|
|
120
|
+
* await client.customModels.datasets.listDatasetVersionFiles("id")
|
|
121
121
|
*/
|
|
122
122
|
listDatasetVersionFiles(id: string, request?: Hume.customModels.DatasetsListDatasetVersionFilesRequest, requestOptions?: Datasets.RequestOptions): Promise<Hume.customModels.FilePage[]>;
|
|
123
123
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
@@ -55,7 +55,7 @@ class Datasets {
|
|
|
55
55
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await
|
|
58
|
+
* await client.customModels.datasets.listDatasets()
|
|
59
59
|
*/
|
|
60
60
|
listDatasets(request = {}, requestOptions) {
|
|
61
61
|
var _a, _b;
|
|
@@ -77,7 +77,7 @@ class Datasets {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
queryParameters: _queryParams,
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -123,7 +123,7 @@ class Datasets {
|
|
|
123
123
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
|
-
* await
|
|
126
|
+
* await client.customModels.datasets.createDataset(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), {
|
|
127
127
|
* name: "name"
|
|
128
128
|
* })
|
|
129
129
|
*/
|
|
@@ -140,7 +140,7 @@ class Datasets {
|
|
|
140
140
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
141
141
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
|
|
142
142
|
method: "POST",
|
|
143
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
143
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
144
144
|
body: yield _maybeEncodedRequest.getBody(),
|
|
145
145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
146
146
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -183,7 +183,7 @@ class Datasets {
|
|
|
183
183
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
184
|
*
|
|
185
185
|
* @example
|
|
186
|
-
* await
|
|
186
|
+
* await client.customModels.datasets.getDataset("id")
|
|
187
187
|
*/
|
|
188
188
|
getDataset(id, requestOptions) {
|
|
189
189
|
var _a, _b;
|
|
@@ -191,7 +191,7 @@ class Datasets {
|
|
|
191
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
192
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
197
197
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -236,7 +236,7 @@ class Datasets {
|
|
|
236
236
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
237
|
*
|
|
238
238
|
* @example
|
|
239
|
-
* await
|
|
239
|
+
* await client.customModels.datasets.createDatasetVersion(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), "id")
|
|
240
240
|
*/
|
|
241
241
|
createDatasetVersion(featureTypes, labelsFile, id, requestOptions) {
|
|
242
242
|
var _a, _b;
|
|
@@ -250,7 +250,7 @@ class Datasets {
|
|
|
250
250
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
251
251
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
252
252
|
method: "POST",
|
|
253
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
253
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
254
254
|
body: yield _maybeEncodedRequest.getBody(),
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
256
256
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -293,7 +293,7 @@ class Datasets {
|
|
|
293
293
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
294
|
*
|
|
295
295
|
* @example
|
|
296
|
-
* await
|
|
296
|
+
* await client.customModels.datasets.deleteDataset("id")
|
|
297
297
|
*/
|
|
298
298
|
deleteDataset(id, requestOptions) {
|
|
299
299
|
var _a, _b;
|
|
@@ -301,7 +301,7 @@ class Datasets {
|
|
|
301
301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
303
303
|
method: "DELETE",
|
|
304
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
304
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
305
305
|
contentType: "application/json",
|
|
306
306
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
307
307
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -339,7 +339,7 @@ class Datasets {
|
|
|
339
339
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
340
|
*
|
|
341
341
|
* @example
|
|
342
|
-
* await
|
|
342
|
+
* await client.customModels.datasets.listDatasetVersions("id")
|
|
343
343
|
*/
|
|
344
344
|
listDatasetVersions(id, request = {}, requestOptions) {
|
|
345
345
|
var _a, _b;
|
|
@@ -358,7 +358,7 @@ class Datasets {
|
|
|
358
358
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
359
359
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/versions`),
|
|
360
360
|
method: "GET",
|
|
361
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
361
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
362
362
|
contentType: "application/json",
|
|
363
363
|
queryParameters: _queryParams,
|
|
364
364
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -403,7 +403,7 @@ class Datasets {
|
|
|
403
403
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
404
404
|
*
|
|
405
405
|
* @example
|
|
406
|
-
* await
|
|
406
|
+
* await client.customModels.datasets.listDatasetFiles("id")
|
|
407
407
|
*/
|
|
408
408
|
listDatasetFiles(id, request = {}, requestOptions) {
|
|
409
409
|
var _a, _b;
|
|
@@ -422,7 +422,7 @@ class Datasets {
|
|
|
422
422
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
423
423
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/files`),
|
|
424
424
|
method: "GET",
|
|
425
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
425
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
426
426
|
contentType: "application/json",
|
|
427
427
|
queryParameters: _queryParams,
|
|
428
428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -466,7 +466,7 @@ class Datasets {
|
|
|
466
466
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
467
467
|
*
|
|
468
468
|
* @example
|
|
469
|
-
* await
|
|
469
|
+
* await client.customModels.datasets.getDatasetVersion("id")
|
|
470
470
|
*/
|
|
471
471
|
getDatasetVersion(id, requestOptions) {
|
|
472
472
|
var _a, _b;
|
|
@@ -474,7 +474,7 @@ class Datasets {
|
|
|
474
474
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
475
475
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}`),
|
|
476
476
|
method: "GET",
|
|
477
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
477
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
480
480
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -518,7 +518,7 @@ class Datasets {
|
|
|
518
518
|
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
|
-
* await
|
|
521
|
+
* await client.customModels.datasets.listDatasetVersionFiles("id")
|
|
522
522
|
*/
|
|
523
523
|
listDatasetVersionFiles(id, request = {}, requestOptions) {
|
|
524
524
|
var _a, _b;
|
|
@@ -537,7 +537,7 @@ class Datasets {
|
|
|
537
537
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
538
538
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}/files`),
|
|
539
539
|
method: "GET",
|
|
540
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.
|
|
540
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
541
541
|
contentType: "application/json",
|
|
542
542
|
queryParameters: _queryParams,
|
|
543
543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|