hume 0.5.13 → 0.5.15
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/api/resources/customModels/resources/datasets/client/Client.d.ts +15 -15
- package/api/resources/customModels/resources/datasets/client/Client.js +27 -27
- package/api/resources/customModels/resources/datasets/client/requests/{DatasetsCreateDataset1Request.d.ts → DatasetsCreateDatasetRequest.d.ts} +1 -1
- package/api/resources/customModels/resources/datasets/client/requests/{DatasetsUpdateDatasetRequest.d.ts → DatasetsCreateDatasetVersionRequest.d.ts} +1 -1
- package/{dist/api/resources/customModels/resources/files/client/requests/FilesGetFilesAndAttributesByUserRequest.d.ts → api/resources/customModels/resources/datasets/client/requests/DatasetsListDatasetFilesRequest.d.ts} +1 -1
- package/api/resources/customModels/resources/{files/client/requests/FilesGetFilesAndAttributesByUserRequest.d.ts → datasets/client/requests/DatasetsListDatasetVersionFilesRequest.d.ts} +1 -1
- package/api/resources/customModels/resources/datasets/client/requests/index.d.ts +4 -4
- package/api/resources/customModels/resources/files/client/Client.d.ts +10 -10
- package/api/resources/customModels/resources/files/client/Client.js +17 -17
- package/{dist/api/resources/customModels/resources/datasets/client/requests/DatasetsGetFilesFromDatasetVersionRequest.d.ts → api/resources/customModels/resources/files/client/requests/FilesListFilesRequest.d.ts} +1 -1
- package/{dist/api/resources/customModels/resources/files/client/requests/FilesRenameFileRequest.d.ts → api/resources/customModels/resources/files/client/requests/FilesUpdateFileNameRequest.d.ts} +1 -1
- package/api/resources/customModels/resources/files/client/requests/index.d.ts +2 -2
- package/api/resources/customModels/resources/jobs/client/Client.d.ts +4 -4
- package/api/resources/customModels/resources/jobs/client/Client.js +6 -6
- package/api/resources/customModels/resources/models/client/Client.d.ts +22 -22
- package/api/resources/customModels/resources/models/client/Client.js +83 -83
- package/api/resources/customModels/resources/models/client/requests/{ModelsGetExternalModelVersionsByIdRequest.d.ts → ModelsGetModelVersionRequest.d.ts} +1 -1
- package/{dist/api/resources/customModels/resources/models/client/requests/ModelsGetModelVersionsByQueryRequest.d.ts → api/resources/customModels/resources/models/client/requests/ModelsListModelVersionsRequest.d.ts} +1 -1
- package/{dist/api/resources/customModels/resources/models/client/requests/ModelsGetModelsByUserAndNameRequest.d.ts → api/resources/customModels/resources/models/client/requests/ModelsListModelsRequest.d.ts} +1 -1
- package/{dist/api/resources/customModels/resources/models/client/requests/ModelsRenameModelRequest.d.ts → api/resources/customModels/resources/models/client/requests/ModelsUpdateModelNameRequest.d.ts} +1 -1
- package/api/resources/customModels/resources/models/client/requests/index.d.ts +4 -4
- package/api/resources/empathicVoice/client/StreamSocket.d.ts +2 -3
- package/api/resources/empathicVoice/client/StreamSocket.js +3 -9
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +6 -6
- package/api/resources/empathicVoice/resources/chats/client/Client.js +8 -8
- package/{dist/api/resources/empathicVoice/resources/chats/client/requests/GetReturnChatsForUserRequest.d.ts → api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts} +5 -5
- package/api/resources/empathicVoice/resources/chats/client/requests/{GetChatByChatIdRequest.d.ts → ChatsListChatsRequest.d.ts} +5 -5
- package/api/resources/empathicVoice/resources/chats/client/requests/index.d.ts +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +14 -14
- package/api/resources/empathicVoice/resources/configs/client/Client.js +23 -23
- package/{dist/api/resources/empathicVoice/resources/configs/client/requests/GetReturnConfigByVersionIdRequest.d.ts → api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts} +1 -1
- package/{dist/api/resources/empathicVoice/resources/configs/client/requests/GetReturnConfigsForUserRequest.d.ts → api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts} +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -2
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +18 -18
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -31
- package/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptByPromptIdRequest.d.ts → PromptsListPromptVersionsRequest.d.ts} +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptsForUserRequest.d.ts → PromptsListPromptsRequest.d.ts} +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -2
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +18 -18
- package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -31
- package/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolByToolIdRequest.d.ts → ToolsListToolVersionsRequest.d.ts} +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolsForUserRequest.d.ts → ToolsListToolsRequest.d.ts} +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/index.d.ts +2 -2
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +10 -10
- package/api/resources/expressionMeasurement/resources/batch/client/requests/{BatchStartInferenceJobWithFileRequest.d.ts → BatchStartInferenceJobFromLocalFileRequest.d.ts} +1 -1
- package/api/resources/expressionMeasurement/resources/batch/client/requests/index.d.ts +1 -1
- package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +15 -15
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +27 -27
- package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsCreateDataset1Request.d.ts → DatasetsCreateDatasetRequest.d.ts} +1 -1
- package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsUpdateDatasetRequest.d.ts → DatasetsCreateDatasetVersionRequest.d.ts} +1 -1
- package/{api/resources/customModels/resources/datasets/client/requests/DatasetsGetFilesFromDatasetVersionRequest.d.ts → dist/api/resources/customModels/resources/datasets/client/requests/DatasetsListDatasetFilesRequest.d.ts} +1 -1
- package/dist/api/resources/customModels/resources/datasets/client/requests/DatasetsListDatasetVersionFilesRequest.d.ts +21 -0
- package/dist/api/resources/customModels/resources/datasets/client/requests/index.d.ts +4 -4
- package/dist/api/resources/customModels/resources/files/client/Client.d.ts +10 -10
- package/dist/api/resources/customModels/resources/files/client/Client.js +17 -17
- package/dist/api/resources/customModels/resources/files/client/requests/FilesListFilesRequest.d.ts +21 -0
- package/{api/resources/customModels/resources/files/client/requests/FilesRenameFileRequest.d.ts → dist/api/resources/customModels/resources/files/client/requests/FilesUpdateFileNameRequest.d.ts} +1 -1
- package/dist/api/resources/customModels/resources/files/client/requests/index.d.ts +2 -2
- package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +4 -4
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +6 -6
- package/dist/api/resources/customModels/resources/models/client/Client.d.ts +22 -22
- package/dist/api/resources/customModels/resources/models/client/Client.js +83 -83
- package/dist/api/resources/customModels/resources/models/client/requests/{ModelsGetExternalModelVersionsByIdRequest.d.ts → ModelsGetModelVersionRequest.d.ts} +1 -1
- package/{api/resources/customModels/resources/models/client/requests/ModelsGetModelVersionsByQueryRequest.d.ts → dist/api/resources/customModels/resources/models/client/requests/ModelsListModelVersionsRequest.d.ts} +1 -1
- package/{api/resources/customModels/resources/models/client/requests/ModelsGetModelsByUserAndNameRequest.d.ts → dist/api/resources/customModels/resources/models/client/requests/ModelsListModelsRequest.d.ts} +1 -1
- package/{api/resources/customModels/resources/models/client/requests/ModelsRenameModelRequest.d.ts → dist/api/resources/customModels/resources/models/client/requests/ModelsUpdateModelNameRequest.d.ts} +1 -1
- package/dist/api/resources/customModels/resources/models/client/requests/index.d.ts +4 -4
- package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +2 -3
- package/dist/api/resources/empathicVoice/client/StreamSocket.js +3 -9
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +6 -6
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +8 -8
- package/{api/resources/empathicVoice/resources/chats/client/requests/GetReturnChatsForUserRequest.d.ts → dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts} +5 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/{GetChatByChatIdRequest.d.ts → ChatsListChatsRequest.d.ts} +5 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/index.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +14 -14
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +23 -23
- package/{api/resources/empathicVoice/resources/configs/client/requests/GetReturnConfigByVersionIdRequest.d.ts → dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts} +1 -1
- package/{api/resources/empathicVoice/resources/configs/client/requests/GetReturnConfigsForUserRequest.d.ts → dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/index.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +18 -18
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -31
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptByPromptIdRequest.d.ts → PromptsListPromptVersionsRequest.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptsForUserRequest.d.ts → PromptsListPromptsRequest.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +18 -18
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -31
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolByToolIdRequest.d.ts → ToolsListToolVersionsRequest.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolsForUserRequest.d.ts → ToolsListToolsRequest.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/index.d.ts +2 -2
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +10 -10
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/{BatchStartInferenceJobWithFileRequest.d.ts → BatchStartInferenceJobFromLocalFileRequest.d.ts} +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/index.d.ts +1 -1
- package/{serialization/resources/customModels/resources/datasets/client/updateDataset.d.ts → dist/serialization/resources/customModels/resources/datasets/client/createDatasetVersion.d.ts} +1 -1
- package/dist/serialization/resources/customModels/resources/datasets/client/index.d.ts +3 -3
- package/dist/serialization/resources/customModels/resources/datasets/client/index.js +4 -4
- package/dist/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetVersion.d.ts → listDatasetFiles.d.ts} +1 -1
- package/{serialization/resources/customModels/resources/datasets/client/getFilesFromDatasetVersion.d.ts → dist/serialization/resources/customModels/resources/datasets/client/listDatasetVersionFiles.d.ts} +1 -1
- package/dist/serialization/resources/customModels/resources/models/client/index.d.ts +2 -2
- package/dist/serialization/resources/customModels/resources/models/client/index.js +3 -3
- package/{serialization/resources/customModels/resources/models/client/getModelVersionsByQuery.d.ts → dist/serialization/resources/customModels/resources/models/client/listModelVersions.d.ts} +1 -1
- package/{serialization/resources/customModels/resources/models/client/updateModelVersionDescription.d.ts → dist/serialization/resources/customModels/resources/models/client/updateModelDescription.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createNewPrompt.d.ts → createPrompt.d.ts} +1 -1
- package/{serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts → dist/serialization/resources/empathicVoice/resources/prompts/client/createPromptVerison.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/getPromptVersion.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +5 -5
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptDescription.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/tools/client/{createNewTool.d.ts → createTool.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/tools/client/{addNewToolVersion.d.ts → createToolVersion.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/tools/client/getToolVersion.d.ts +11 -0
- package/dist/serialization/resources/empathicVoice/resources/tools/client/index.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/resources/tools/client/index.js +5 -5
- package/dist/serialization/resources/empathicVoice/resources/tools/client/updateToolDescription.d.ts +11 -0
- package/package.json +1 -1
- package/{dist/serialization/resources/customModels/resources/datasets/client/updateDataset.d.ts → serialization/resources/customModels/resources/datasets/client/createDatasetVersion.d.ts} +1 -1
- package/serialization/resources/customModels/resources/datasets/client/index.d.ts +3 -3
- package/serialization/resources/customModels/resources/datasets/client/index.js +4 -4
- package/{dist/serialization/resources/customModels/resources/datasets/client/getFilesFromDatasetLatestVersion.d.ts → serialization/resources/customModels/resources/datasets/client/listDatasetFiles.d.ts} +1 -1
- package/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetLatestVersion.d.ts → listDatasetVersionFiles.d.ts} +1 -1
- package/serialization/resources/customModels/resources/models/client/index.d.ts +2 -2
- package/serialization/resources/customModels/resources/models/client/index.js +3 -3
- package/{dist/serialization/resources/customModels/resources/models/client/getModelVersionsByQuery.d.ts → serialization/resources/customModels/resources/models/client/listModelVersions.d.ts} +1 -1
- package/{dist/serialization/resources/customModels/resources/models/client/updateModelVersionDescription.d.ts → serialization/resources/customModels/resources/models/client/updateModelDescription.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/{createNewPrompt.d.ts → createPrompt.d.ts} +1 -1
- package/{dist/serialization/resources/empathicVoice/resources/prompts/client/addNewPromptVersion.d.ts → serialization/resources/empathicVoice/resources/prompts/client/createPromptVerison.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/getPromptVersion.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +4 -4
- package/serialization/resources/empathicVoice/resources/prompts/client/index.js +5 -5
- package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptDescription.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/tools/client/{createNewTool.d.ts → createTool.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/tools/client/{addNewToolVersion.d.ts → createToolVersion.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/tools/client/getToolVersion.d.ts +11 -0
- package/serialization/resources/empathicVoice/resources/tools/client/index.d.ts +4 -4
- package/serialization/resources/empathicVoice/resources/tools/client/index.js +5 -5
- package/serialization/resources/empathicVoice/resources/tools/client/updateToolDescription.d.ts +11 -0
- package/api/resources/customModels/resources/datasets/client/requests/DatasetsGetFilesFromDatasetLatestVersionRequest.d.ts +0 -21
- package/dist/api/resources/customModels/resources/datasets/client/requests/DatasetsGetFilesFromDatasetLatestVersionRequest.d.ts +0 -21
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +0 -11
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +0 -11
- package/dist/serialization/resources/empathicVoice/resources/tools/client/getReturnToolByVersionNumber.d.ts +0 -11
- package/dist/serialization/resources/empathicVoice/resources/tools/client/updateToolVersionDescription.d.ts +0 -11
- package/serialization/resources/empathicVoice/resources/prompts/client/getReturnPromptByVersionNumber.d.ts +0 -11
- package/serialization/resources/empathicVoice/resources/prompts/client/updatePromptVersionDescription.d.ts +0 -11
- package/serialization/resources/empathicVoice/resources/tools/client/getReturnToolByVersionNumber.d.ts +0 -11
- package/serialization/resources/empathicVoice/resources/tools/client/updateToolVersionDescription.d.ts +0 -11
- /package/api/resources/customModels/resources/datasets/client/requests/{DatasetsCreateDataset1Request.js → DatasetsCreateDatasetRequest.js} +0 -0
- /package/api/resources/customModels/resources/datasets/client/requests/{DatasetsGetFilesFromDatasetLatestVersionRequest.js → DatasetsCreateDatasetVersionRequest.js} +0 -0
- /package/api/resources/customModels/resources/datasets/client/requests/{DatasetsGetFilesFromDatasetVersionRequest.js → DatasetsListDatasetFilesRequest.js} +0 -0
- /package/api/resources/customModels/resources/datasets/client/requests/{DatasetsUpdateDatasetRequest.js → DatasetsListDatasetVersionFilesRequest.js} +0 -0
- /package/api/resources/customModels/resources/files/client/requests/{FilesGetFilesAndAttributesByUserRequest.js → FilesListFilesRequest.js} +0 -0
- /package/api/resources/customModels/resources/files/client/requests/{FilesRenameFileRequest.js → FilesUpdateFileNameRequest.js} +0 -0
- /package/api/resources/customModels/resources/models/client/requests/{ModelsGetExternalModelVersionsByIdRequest.js → ModelsGetModelVersionRequest.js} +0 -0
- /package/api/resources/customModels/resources/models/client/requests/{ModelsGetModelVersionsByQueryRequest.js → ModelsListModelVersionsRequest.js} +0 -0
- /package/api/resources/customModels/resources/models/client/requests/{ModelsGetModelsByUserAndNameRequest.js → ModelsListModelsRequest.js} +0 -0
- /package/api/resources/customModels/resources/models/client/requests/{ModelsRenameModelRequest.js → ModelsUpdateModelNameRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/chats/client/requests/{GetChatByChatIdRequest.js → ChatsListChatEventsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/chats/client/requests/{GetReturnChatsForUserRequest.js → ChatsListChatsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/configs/client/requests/{GetReturnConfigByVersionIdRequest.js → ConfigsListConfigVersionsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/configs/client/requests/{GetReturnConfigsForUserRequest.js → ConfigsListConfigsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptByPromptIdRequest.js → PromptsListPromptVersionsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptsForUserRequest.js → PromptsListPromptsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolByToolIdRequest.js → ToolsListToolVersionsRequest.js} +0 -0
- /package/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolsForUserRequest.js → ToolsListToolsRequest.js} +0 -0
- /package/api/resources/expressionMeasurement/resources/batch/client/requests/{BatchStartInferenceJobWithFileRequest.js → BatchStartInferenceJobFromLocalFileRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsCreateDataset1Request.js → DatasetsCreateDatasetRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsGetFilesFromDatasetLatestVersionRequest.js → DatasetsCreateDatasetVersionRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsGetFilesFromDatasetVersionRequest.js → DatasetsListDatasetFilesRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/datasets/client/requests/{DatasetsUpdateDatasetRequest.js → DatasetsListDatasetVersionFilesRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/files/client/requests/{FilesGetFilesAndAttributesByUserRequest.js → FilesListFilesRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/files/client/requests/{FilesRenameFileRequest.js → FilesUpdateFileNameRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/models/client/requests/{ModelsGetExternalModelVersionsByIdRequest.js → ModelsGetModelVersionRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/models/client/requests/{ModelsGetModelVersionsByQueryRequest.js → ModelsListModelVersionsRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/models/client/requests/{ModelsGetModelsByUserAndNameRequest.js → ModelsListModelsRequest.js} +0 -0
- /package/dist/api/resources/customModels/resources/models/client/requests/{ModelsRenameModelRequest.js → ModelsUpdateModelNameRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/chats/client/requests/{GetChatByChatIdRequest.js → ChatsListChatEventsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/chats/client/requests/{GetReturnChatsForUserRequest.js → ChatsListChatsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/configs/client/requests/{GetReturnConfigByVersionIdRequest.js → ConfigsListConfigVersionsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/configs/client/requests/{GetReturnConfigsForUserRequest.js → ConfigsListConfigsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptByPromptIdRequest.js → PromptsListPromptVersionsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/prompts/client/requests/{GetReturnPromptsForUserRequest.js → PromptsListPromptsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolByToolIdRequest.js → ToolsListToolVersionsRequest.js} +0 -0
- /package/dist/api/resources/empathicVoice/resources/tools/client/requests/{GetReturnToolsForUserRequest.js → ToolsListToolsRequest.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/{BatchStartInferenceJobWithFileRequest.js → BatchStartInferenceJobFromLocalFileRequest.js} +0 -0
- /package/dist/serialization/resources/customModels/resources/datasets/client/{updateDataset.js → createDatasetVersion.js} +0 -0
- /package/dist/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetLatestVersion.js → listDatasetFiles.js} +0 -0
- /package/dist/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetVersion.js → listDatasetVersionFiles.js} +0 -0
- /package/dist/serialization/resources/customModels/resources/models/client/{getModelVersionsByQuery.js → listModelVersions.js} +0 -0
- /package/dist/serialization/resources/customModels/resources/models/client/{updateModelVersionDescription.js → updateModelDescription.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{addNewPromptVersion.js → createPrompt.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createNewPrompt.js → createPromptVerison.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{getReturnPromptByVersionNumber.js → getPromptVersion.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{updatePromptVersionDescription.js → updatePromptDescription.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/tools/client/{addNewToolVersion.js → createTool.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/tools/client/{createNewTool.js → createToolVersion.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/tools/client/{getReturnToolByVersionNumber.js → getToolVersion.js} +0 -0
- /package/dist/serialization/resources/empathicVoice/resources/tools/client/{updateToolVersionDescription.js → updateToolDescription.js} +0 -0
- /package/serialization/resources/customModels/resources/datasets/client/{updateDataset.js → createDatasetVersion.js} +0 -0
- /package/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetLatestVersion.js → listDatasetFiles.js} +0 -0
- /package/serialization/resources/customModels/resources/datasets/client/{getFilesFromDatasetVersion.js → listDatasetVersionFiles.js} +0 -0
- /package/serialization/resources/customModels/resources/models/client/{getModelVersionsByQuery.js → listModelVersions.js} +0 -0
- /package/serialization/resources/customModels/resources/models/client/{updateModelVersionDescription.js → updateModelDescription.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{addNewPromptVersion.js → createPrompt.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{createNewPrompt.js → createPromptVerison.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{getReturnPromptByVersionNumber.js → getPromptVersion.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{updatePromptVersionDescription.js → updatePromptDescription.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/tools/client/{addNewToolVersion.js → createTool.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/tools/client/{createNewTool.js → createToolVersion.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/tools/client/{getReturnToolByVersionNumber.js → getToolVersion.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/tools/client/{updateToolVersionDescription.js → updateToolDescription.js} +0 -0
|
@@ -49,13 +49,13 @@ class Prompts {
|
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* @param {Hume.empathicVoice.
|
|
52
|
+
* @param {Hume.empathicVoice.PromptsListPromptsRequest} request
|
|
53
53
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await hume.empathicVoice.prompts.
|
|
56
|
+
* await hume.empathicVoice.prompts.listPrompts()
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
listPrompts(request = {}, requestOptions) {
|
|
59
59
|
var _a, _b;
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const { pageNumber, pageSize, restrictToMostRecent } = request;
|
|
@@ -74,7 +74,7 @@ class Prompts {
|
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
76
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
77
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -115,12 +115,12 @@ class Prompts {
|
|
|
115
115
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
* await hume.empathicVoice.prompts.
|
|
118
|
+
* await hume.empathicVoice.prompts.createPrompt({
|
|
119
119
|
* name: "name",
|
|
120
120
|
* text: "text"
|
|
121
121
|
* })
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
createPrompt(request, requestOptions) {
|
|
124
124
|
var _a, _b;
|
|
125
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
126
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -128,7 +128,7 @@ class Prompts {
|
|
|
128
128
|
method: "POST",
|
|
129
129
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
130
130
|
? yield core.Supplier.get(this._options.accountToken)
|
|
131
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
131
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
134
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -137,7 +137,7 @@ class Prompts {
|
|
|
137
137
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
138
138
|
});
|
|
139
139
|
if (_response.ok) {
|
|
140
|
-
return yield serializers.empathicVoice.prompts.
|
|
140
|
+
return yield serializers.empathicVoice.prompts.createPrompt.Response.parseOrThrow(_response.body, {
|
|
141
141
|
unrecognizedObjectKeys: "passthrough",
|
|
142
142
|
allowUnrecognizedUnionMembers: true,
|
|
143
143
|
allowUnrecognizedEnumValues: true,
|
|
@@ -168,13 +168,13 @@ class Prompts {
|
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @param {string} id
|
|
171
|
-
* @param {Hume.empathicVoice.
|
|
171
|
+
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
172
172
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
173
|
*
|
|
174
174
|
* @example
|
|
175
|
-
* await hume.empathicVoice.prompts.
|
|
175
|
+
* await hume.empathicVoice.prompts.listPromptVersions("id")
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
listPromptVersions(id, request = {}, requestOptions) {
|
|
178
178
|
var _a, _b;
|
|
179
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
180
|
const { pageNumber, pageSize, restrictToMostRecent } = request;
|
|
@@ -193,7 +193,7 @@ class Prompts {
|
|
|
193
193
|
method: "GET",
|
|
194
194
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
195
195
|
? yield core.Supplier.get(this._options.accountToken)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
196
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
queryParameters: _queryParams,
|
|
199
199
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,11 +235,11 @@ class Prompts {
|
|
|
235
235
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
236
236
|
*
|
|
237
237
|
* @example
|
|
238
|
-
* await hume.empathicVoice.prompts.
|
|
238
|
+
* await hume.empathicVoice.prompts.createPromptVerison("id", {
|
|
239
239
|
* text: "text"
|
|
240
240
|
* })
|
|
241
241
|
*/
|
|
242
|
-
|
|
242
|
+
createPromptVerison(id, request, requestOptions) {
|
|
243
243
|
var _a, _b;
|
|
244
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
245
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -247,7 +247,7 @@ class Prompts {
|
|
|
247
247
|
method: "POST",
|
|
248
248
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
249
249
|
? yield core.Supplier.get(this._options.accountToken)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
250
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
253
253
|
unrecognizedObjectKeys: "strip",
|
|
@@ -256,7 +256,7 @@ class Prompts {
|
|
|
256
256
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
257
257
|
});
|
|
258
258
|
if (_response.ok) {
|
|
259
|
-
return yield serializers.empathicVoice.prompts.
|
|
259
|
+
return yield serializers.empathicVoice.prompts.createPromptVerison.Response.parseOrThrow(_response.body, {
|
|
260
260
|
unrecognizedObjectKeys: "passthrough",
|
|
261
261
|
allowUnrecognizedUnionMembers: true,
|
|
262
262
|
allowUnrecognizedEnumValues: true,
|
|
@@ -290,9 +290,9 @@ class Prompts {
|
|
|
290
290
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
291
291
|
*
|
|
292
292
|
* @example
|
|
293
|
-
* await hume.empathicVoice.prompts.
|
|
293
|
+
* await hume.empathicVoice.prompts.deletePrompt("id")
|
|
294
294
|
*/
|
|
295
|
-
|
|
295
|
+
deletePrompt(id, requestOptions) {
|
|
296
296
|
var _a, _b;
|
|
297
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
298
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -300,7 +300,7 @@ class Prompts {
|
|
|
300
300
|
method: "DELETE",
|
|
301
301
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
302
302
|
? yield core.Supplier.get(this._options.accountToken)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
303
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
304
|
contentType: "application/json",
|
|
305
305
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
306
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -347,7 +347,7 @@ class Prompts {
|
|
|
347
347
|
method: "PATCH",
|
|
348
348
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.accountToken)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
353
353
|
unrecognizedObjectKeys: "strip",
|
|
@@ -386,9 +386,9 @@ class Prompts {
|
|
|
386
386
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
387
387
|
*
|
|
388
388
|
* @example
|
|
389
|
-
* await hume.empathicVoice.prompts.
|
|
389
|
+
* await hume.empathicVoice.prompts.getPromptVersion("id", 1)
|
|
390
390
|
*/
|
|
391
|
-
|
|
391
|
+
getPromptVersion(id, version, requestOptions) {
|
|
392
392
|
var _a, _b;
|
|
393
393
|
return __awaiter(this, void 0, void 0, function* () {
|
|
394
394
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -396,13 +396,13 @@ class Prompts {
|
|
|
396
396
|
method: "GET",
|
|
397
397
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.accountToken)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
399
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
402
402
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
403
403
|
});
|
|
404
404
|
if (_response.ok) {
|
|
405
|
-
return yield serializers.empathicVoice.prompts.
|
|
405
|
+
return yield serializers.empathicVoice.prompts.getPromptVersion.Response.parseOrThrow(_response.body, {
|
|
406
406
|
unrecognizedObjectKeys: "passthrough",
|
|
407
407
|
allowUnrecognizedUnionMembers: true,
|
|
408
408
|
allowUnrecognizedEnumValues: true,
|
|
@@ -437,9 +437,9 @@ class Prompts {
|
|
|
437
437
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
438
438
|
*
|
|
439
439
|
* @example
|
|
440
|
-
* await hume.empathicVoice.prompts.
|
|
440
|
+
* await hume.empathicVoice.prompts.deletePromptVersion("id", 1)
|
|
441
441
|
*/
|
|
442
|
-
|
|
442
|
+
deletePromptVersion(id, version, requestOptions) {
|
|
443
443
|
var _a, _b;
|
|
444
444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
445
445
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -447,7 +447,7 @@ class Prompts {
|
|
|
447
447
|
method: "DELETE",
|
|
448
448
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
449
449
|
? yield core.Supplier.get(this._options.accountToken)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
450
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
453
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -483,9 +483,9 @@ class Prompts {
|
|
|
483
483
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
484
484
|
*
|
|
485
485
|
* @example
|
|
486
|
-
* await hume.empathicVoice.prompts.
|
|
486
|
+
* await hume.empathicVoice.prompts.updatePromptDescription("id", 1)
|
|
487
487
|
*/
|
|
488
|
-
|
|
488
|
+
updatePromptDescription(id, version, request = {}, requestOptions) {
|
|
489
489
|
var _a, _b;
|
|
490
490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
491
491
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -493,7 +493,7 @@ class Prompts {
|
|
|
493
493
|
method: "PATCH",
|
|
494
494
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
495
495
|
? yield core.Supplier.get(this._options.accountToken)
|
|
496
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
496
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
497
497
|
contentType: "application/json",
|
|
498
498
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
499
499
|
unrecognizedObjectKeys: "strip",
|
|
@@ -502,7 +502,7 @@ class Prompts {
|
|
|
502
502
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
503
503
|
});
|
|
504
504
|
if (_response.ok) {
|
|
505
|
-
return yield serializers.empathicVoice.prompts.
|
|
505
|
+
return yield serializers.empathicVoice.prompts.updatePromptDescription.Response.parseOrThrow(_response.body, {
|
|
506
506
|
unrecognizedObjectKeys: "passthrough",
|
|
507
507
|
allowUnrecognizedUnionMembers: true,
|
|
508
508
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type PromptsListPromptsRequest } from "./PromptsListPromptsRequest";
|
|
2
2
|
export { type PostedPrompt } from "./PostedPrompt";
|
|
3
|
-
export { type
|
|
3
|
+
export { type PromptsListPromptVersionsRequest } from "./PromptsListPromptVersionsRequest";
|
|
4
4
|
export { type PostedPromptVersion } from "./PostedPromptVersion";
|
|
5
5
|
export { type PostedPromptName } from "./PostedPromptName";
|
|
6
6
|
export { type PostedPromptVersionDescription } from "./PostedPromptVersionDescription";
|
|
@@ -20,22 +20,22 @@ export declare class Tools {
|
|
|
20
20
|
protected readonly _options: Tools.Options;
|
|
21
21
|
constructor(_options?: Tools.Options);
|
|
22
22
|
/**
|
|
23
|
-
* @param {Hume.empathicVoice.
|
|
23
|
+
* @param {Hume.empathicVoice.ToolsListToolsRequest} request
|
|
24
24
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await hume.empathicVoice.tools.
|
|
27
|
+
* await hume.empathicVoice.tools.listTools({
|
|
28
28
|
* pageNumber: 0,
|
|
29
29
|
* pageSize: 2
|
|
30
30
|
* })
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
listTools(request?: Hume.empathicVoice.ToolsListToolsRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
33
33
|
/**
|
|
34
34
|
* @param {Hume.empathicVoice.PostedUserDefinedTool} request
|
|
35
35
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* await hume.empathicVoice.tools.
|
|
38
|
+
* await hume.empathicVoice.tools.createTool({
|
|
39
39
|
* name: "get_current_weather",
|
|
40
40
|
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
41
41
|
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
@@ -43,38 +43,38 @@ export declare class Tools {
|
|
|
43
43
|
* fallbackContent: "Unable to fetch current weather."
|
|
44
44
|
* })
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
47
47
|
/**
|
|
48
48
|
* @param {string} id
|
|
49
|
-
* @param {Hume.empathicVoice.
|
|
49
|
+
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
50
50
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
|
-
* await hume.empathicVoice.tools.
|
|
53
|
+
* await hume.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
56
56
|
/**
|
|
57
57
|
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
58
58
|
* @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
|
|
59
59
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await hume.empathicVoice.tools.
|
|
62
|
+
* await hume.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
63
63
|
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
64
64
|
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
65
65
|
* fallbackContent: "Unable to fetch current weather.",
|
|
66
66
|
* description: "This tool is for getting the current weather."
|
|
67
67
|
* })
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
createToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
72
72
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await hume.empathicVoice.tools.
|
|
75
|
+
* await hume.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
deleteTool(id: string, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
78
78
|
/**
|
|
79
79
|
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
80
80
|
* @param {Hume.empathicVoice.PostedUserDefinedToolName} request
|
|
@@ -92,18 +92,18 @@ export declare class Tools {
|
|
|
92
92
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
|
-
* await hume.empathicVoice.tools.
|
|
95
|
+
* await hume.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
getToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
98
98
|
/**
|
|
99
99
|
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
100
100
|
* @param {number} version - Version number for a tool. Version numbers should be integers.
|
|
101
101
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
|
-
* await hume.empathicVoice.tools.
|
|
104
|
+
* await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
deleteToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
107
107
|
/**
|
|
108
108
|
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
109
109
|
* @param {number} version - Version number for a tool. Version numbers should be integers.
|
|
@@ -111,11 +111,11 @@ export declare class Tools {
|
|
|
111
111
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
|
-
* await hume.empathicVoice.tools.
|
|
114
|
+
* await hume.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
|
|
115
115
|
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
116
116
|
* })
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
updateToolDescription(id: string, version: number, request?: Hume.empathicVoice.PostedUserDefinedToolVersionDescription, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
119
119
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
120
120
|
"X-Hume-Api-Key": string | undefined;
|
|
121
121
|
}>;
|
|
@@ -49,16 +49,16 @@ class Tools {
|
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* @param {Hume.empathicVoice.
|
|
52
|
+
* @param {Hume.empathicVoice.ToolsListToolsRequest} request
|
|
53
53
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await hume.empathicVoice.tools.
|
|
56
|
+
* await hume.empathicVoice.tools.listTools({
|
|
57
57
|
* pageNumber: 0,
|
|
58
58
|
* pageSize: 2
|
|
59
59
|
* })
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
listTools(request = {}, requestOptions) {
|
|
62
62
|
var _a, _b;
|
|
63
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
64
|
const { pageNumber, pageSize, restrictToMostRecent } = request;
|
|
@@ -77,7 +77,7 @@ class Tools {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
79
79
|
? yield core.Supplier.get(this._options.accountToken)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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,
|
|
@@ -118,7 +118,7 @@ class Tools {
|
|
|
118
118
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
|
-
* await hume.empathicVoice.tools.
|
|
121
|
+
* await hume.empathicVoice.tools.createTool({
|
|
122
122
|
* name: "get_current_weather",
|
|
123
123
|
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
124
124
|
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
@@ -126,7 +126,7 @@ class Tools {
|
|
|
126
126
|
* fallbackContent: "Unable to fetch current weather."
|
|
127
127
|
* })
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
createTool(request, requestOptions) {
|
|
130
130
|
var _a, _b;
|
|
131
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
132
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -134,7 +134,7 @@ class Tools {
|
|
|
134
134
|
method: "POST",
|
|
135
135
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
136
136
|
? yield core.Supplier.get(this._options.accountToken)
|
|
137
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
137
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
140
140
|
unrecognizedObjectKeys: "strip",
|
|
@@ -143,7 +143,7 @@ class Tools {
|
|
|
143
143
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
144
144
|
});
|
|
145
145
|
if (_response.ok) {
|
|
146
|
-
return yield serializers.empathicVoice.tools.
|
|
146
|
+
return yield serializers.empathicVoice.tools.createTool.Response.parseOrThrow(_response.body, {
|
|
147
147
|
unrecognizedObjectKeys: "passthrough",
|
|
148
148
|
allowUnrecognizedUnionMembers: true,
|
|
149
149
|
allowUnrecognizedEnumValues: true,
|
|
@@ -174,13 +174,13 @@ class Tools {
|
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* @param {string} id
|
|
177
|
-
* @param {Hume.empathicVoice.
|
|
177
|
+
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
178
178
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
179
|
*
|
|
180
180
|
* @example
|
|
181
|
-
* await hume.empathicVoice.tools.
|
|
181
|
+
* await hume.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
listToolVersions(id, request = {}, requestOptions) {
|
|
184
184
|
var _a, _b;
|
|
185
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
186
|
const { pageNumber, pageSize, restrictToMostRecent } = request;
|
|
@@ -199,7 +199,7 @@ class Tools {
|
|
|
199
199
|
method: "GET",
|
|
200
200
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
201
201
|
? yield core.Supplier.get(this._options.accountToken)
|
|
202
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
202
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
queryParameters: _queryParams,
|
|
205
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -241,14 +241,14 @@ class Tools {
|
|
|
241
241
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
242
242
|
*
|
|
243
243
|
* @example
|
|
244
|
-
* await hume.empathicVoice.tools.
|
|
244
|
+
* await hume.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
245
245
|
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
246
246
|
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
247
247
|
* fallbackContent: "Unable to fetch current weather.",
|
|
248
248
|
* description: "This tool is for getting the current weather."
|
|
249
249
|
* })
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
createToolVersion(id, request, requestOptions) {
|
|
252
252
|
var _a, _b;
|
|
253
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
254
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -256,7 +256,7 @@ class Tools {
|
|
|
256
256
|
method: "POST",
|
|
257
257
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
258
258
|
? yield core.Supplier.get(this._options.accountToken)
|
|
259
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
259
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
262
262
|
unrecognizedObjectKeys: "strip",
|
|
@@ -265,7 +265,7 @@ class Tools {
|
|
|
265
265
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
266
266
|
});
|
|
267
267
|
if (_response.ok) {
|
|
268
|
-
return yield serializers.empathicVoice.tools.
|
|
268
|
+
return yield serializers.empathicVoice.tools.createToolVersion.Response.parseOrThrow(_response.body, {
|
|
269
269
|
unrecognizedObjectKeys: "passthrough",
|
|
270
270
|
allowUnrecognizedUnionMembers: true,
|
|
271
271
|
allowUnrecognizedEnumValues: true,
|
|
@@ -299,9 +299,9 @@ class Tools {
|
|
|
299
299
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
300
300
|
*
|
|
301
301
|
* @example
|
|
302
|
-
* await hume.empathicVoice.tools.
|
|
302
|
+
* await hume.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
303
303
|
*/
|
|
304
|
-
|
|
304
|
+
deleteTool(id, requestOptions) {
|
|
305
305
|
var _a, _b;
|
|
306
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
307
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -309,7 +309,7 @@ class Tools {
|
|
|
309
309
|
method: "DELETE",
|
|
310
310
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
311
311
|
? yield core.Supplier.get(this._options.accountToken)
|
|
312
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
312
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
313
313
|
contentType: "application/json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
315
315
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -356,7 +356,7 @@ class Tools {
|
|
|
356
356
|
method: "PATCH",
|
|
357
357
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
358
358
|
? yield core.Supplier.get(this._options.accountToken)
|
|
359
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
359
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
360
360
|
contentType: "application/json",
|
|
361
361
|
body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
362
362
|
unrecognizedObjectKeys: "strip",
|
|
@@ -395,9 +395,9 @@ class Tools {
|
|
|
395
395
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
396
396
|
*
|
|
397
397
|
* @example
|
|
398
|
-
* await hume.empathicVoice.tools.
|
|
398
|
+
* await hume.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
399
399
|
*/
|
|
400
|
-
|
|
400
|
+
getToolVersion(id, version, requestOptions) {
|
|
401
401
|
var _a, _b;
|
|
402
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
403
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -405,13 +405,13 @@ class Tools {
|
|
|
405
405
|
method: "GET",
|
|
406
406
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
407
407
|
? yield core.Supplier.get(this._options.accountToken)
|
|
408
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
408
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
409
|
contentType: "application/json",
|
|
410
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
411
411
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
412
412
|
});
|
|
413
413
|
if (_response.ok) {
|
|
414
|
-
return yield serializers.empathicVoice.tools.
|
|
414
|
+
return yield serializers.empathicVoice.tools.getToolVersion.Response.parseOrThrow(_response.body, {
|
|
415
415
|
unrecognizedObjectKeys: "passthrough",
|
|
416
416
|
allowUnrecognizedUnionMembers: true,
|
|
417
417
|
allowUnrecognizedEnumValues: true,
|
|
@@ -446,9 +446,9 @@ class Tools {
|
|
|
446
446
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
447
447
|
*
|
|
448
448
|
* @example
|
|
449
|
-
* await hume.empathicVoice.tools.
|
|
449
|
+
* await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
450
450
|
*/
|
|
451
|
-
|
|
451
|
+
deleteToolVersion(id, version, requestOptions) {
|
|
452
452
|
var _a, _b;
|
|
453
453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
454
454
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -456,7 +456,7 @@ class Tools {
|
|
|
456
456
|
method: "DELETE",
|
|
457
457
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
458
458
|
? yield core.Supplier.get(this._options.accountToken)
|
|
459
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
459
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
460
460
|
contentType: "application/json",
|
|
461
461
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
462
462
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -492,11 +492,11 @@ class Tools {
|
|
|
492
492
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
493
493
|
*
|
|
494
494
|
* @example
|
|
495
|
-
* await hume.empathicVoice.tools.
|
|
495
|
+
* await hume.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
|
|
496
496
|
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
497
497
|
* })
|
|
498
498
|
*/
|
|
499
|
-
|
|
499
|
+
updateToolDescription(id, version, request = {}, requestOptions) {
|
|
500
500
|
var _a, _b;
|
|
501
501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
502
502
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -504,7 +504,7 @@ class Tools {
|
|
|
504
504
|
method: "PATCH",
|
|
505
505
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
506
506
|
? yield core.Supplier.get(this._options.accountToken)
|
|
507
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
507
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
508
508
|
contentType: "application/json",
|
|
509
509
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
510
510
|
unrecognizedObjectKeys: "strip",
|
|
@@ -513,7 +513,7 @@ class Tools {
|
|
|
513
513
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
514
514
|
});
|
|
515
515
|
if (_response.ok) {
|
|
516
|
-
return yield serializers.empathicVoice.tools.
|
|
516
|
+
return yield serializers.empathicVoice.tools.updateToolDescription.Response.parseOrThrow(_response.body, {
|
|
517
517
|
unrecognizedObjectKeys: "passthrough",
|
|
518
518
|
allowUnrecognizedUnionMembers: true,
|
|
519
519
|
allowUnrecognizedEnumValues: true,
|