hume 0.8.4 → 0.8.6
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 +855 -216
- package/.mock/definition/empathic-voice/chatGroups.yml +383 -35
- package/.mock/definition/empathic-voice/chats.yml +393 -44
- package/.mock/definition/empathic-voice/configs.yml +437 -228
- package/.mock/definition/empathic-voice/prompts.yml +258 -83
- package/.mock/definition/empathic-voice/tools.yml +119 -23
- package/.mock/definition/expression-measurement/__package__.yml +203 -59
- package/.mock/definition/expression-measurement/batch.yml +64 -35
- package/.mock/fern.config.json +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
- package/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
- package/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
- package/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
- package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/api/resources/empathicVoice/types/index.js +14 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
- package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
- package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
- package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
- package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
- package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
- package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
- package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
- package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
- package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
- package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
- package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
- package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/api/resources/expressionMeasurement/types/index.js +4 -4
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/pagination/Page.d.ts +29 -0
- package/core/pagination/Page.js +94 -0
- package/core/pagination/Pageable.d.ts +12 -0
- package/core/pagination/Pageable.js +10 -0
- package/core/pagination/index.d.ts +2 -0
- package/core/pagination/index.js +7 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
- package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/index.js +14 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
- package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
- package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
- package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
- package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
- package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
- package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
- package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
- package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
- package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/pagination/Page.d.ts +29 -0
- package/dist/core/pagination/Page.js +94 -0
- package/dist/core/pagination/Pageable.d.ts +12 -0
- package/dist/core/pagination/Pageable.js +10 -0
- package/dist/core/pagination/index.d.ts +2 -0
- package/dist/core/pagination/index.js +7 -0
- package/dist/errors/HumeError.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js} +2 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/dist/serialization/resources/{expressionMeasurement/types/UnionJobJobTraining.js → empathicVoice/types/ReturnChatEventRole.js} +2 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
- package/dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
- package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
- package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
- package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
- package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
- package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
- package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
- package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/errors/HumeError.js +1 -1
- package/eslint.config.mjs +1 -1
- package/{jest.config.mjs → jest.config.js} +1 -3
- package/package.json +2 -2
- package/reference.md +608 -502
- package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/index.js +14 -0
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
- package/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
- package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
- package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
- package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
- package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
- package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
- package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
- package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/serialization/resources/expressionMeasurement/types/index.js +4 -4
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
- /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
|
@@ -51,7 +51,7 @@ export declare class Batch {
|
|
|
51
51
|
/**
|
|
52
52
|
* Get the request details and state of a given job.
|
|
53
53
|
*
|
|
54
|
-
* @param {string} id
|
|
54
|
+
* @param {string} id - The unique identifier for the job.
|
|
55
55
|
* @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
@@ -59,9 +59,9 @@ export declare class Batch {
|
|
|
59
59
|
*/
|
|
60
60
|
getJobDetails(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionJob>;
|
|
61
61
|
/**
|
|
62
|
-
* Get the JSON predictions of a completed
|
|
62
|
+
* Get the JSON predictions of a completed inference job.
|
|
63
63
|
*
|
|
64
|
-
* @param {string} id
|
|
64
|
+
* @param {string} id - The unique identifier for the job.
|
|
65
65
|
* @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
@@ -69,7 +69,7 @@ export declare class Batch {
|
|
|
69
69
|
*/
|
|
70
70
|
getJobPredictions(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionPredictResult[]>;
|
|
71
71
|
/**
|
|
72
|
-
* Get the artifacts ZIP of a completed
|
|
72
|
+
* Get the artifacts ZIP of a completed inference job.
|
|
73
73
|
*/
|
|
74
74
|
getJobArtifacts(id: string, requestOptions?: Batch.RequestOptions): Promise<stream.Readable>;
|
|
75
75
|
/**
|
|
@@ -60,7 +60,7 @@ class Batch {
|
|
|
60
60
|
listJobs(request = {}, requestOptions) {
|
|
61
61
|
var _a, _b;
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const { limit, status, when, timestampMs, sortBy, direction
|
|
63
|
+
const { limit, status, when, timestampMs, sortBy, direction } = request;
|
|
64
64
|
const _queryParams = {};
|
|
65
65
|
if (limit != null) {
|
|
66
66
|
_queryParams['limit'] = limit.toString();
|
|
@@ -85,18 +85,10 @@ class Batch {
|
|
|
85
85
|
if (direction != null) {
|
|
86
86
|
_queryParams['direction'] = direction;
|
|
87
87
|
}
|
|
88
|
-
if (type_ != null) {
|
|
89
|
-
if (Array.isArray(type_)) {
|
|
90
|
-
_queryParams['type'] = type_.map((item) => item);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
_queryParams['type'] = type_;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
89
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
98
90
|
method: 'GET',
|
|
99
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
91
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
100
92
|
contentType: 'application/json',
|
|
101
93
|
queryParameters: _queryParams,
|
|
102
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -152,7 +144,7 @@ class Batch {
|
|
|
152
144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
145
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
154
146
|
method: 'POST',
|
|
155
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
147
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
156
148
|
contentType: 'application/json',
|
|
157
149
|
body: serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
|
|
158
150
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -195,7 +187,7 @@ class Batch {
|
|
|
195
187
|
/**
|
|
196
188
|
* Get the request details and state of a given job.
|
|
197
189
|
*
|
|
198
|
-
* @param {string} id
|
|
190
|
+
* @param {string} id - The unique identifier for the job.
|
|
199
191
|
* @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
192
|
*
|
|
201
193
|
* @example
|
|
@@ -207,7 +199,7 @@ class Batch {
|
|
|
207
199
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
208
200
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
209
201
|
method: 'GET',
|
|
210
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
202
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
211
203
|
contentType: 'application/json',
|
|
212
204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
213
205
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -245,9 +237,9 @@ class Batch {
|
|
|
245
237
|
});
|
|
246
238
|
}
|
|
247
239
|
/**
|
|
248
|
-
* Get the JSON predictions of a completed
|
|
240
|
+
* Get the JSON predictions of a completed inference job.
|
|
249
241
|
*
|
|
250
|
-
* @param {string} id
|
|
242
|
+
* @param {string} id - The unique identifier for the job.
|
|
251
243
|
* @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
|
|
252
244
|
*
|
|
253
245
|
* @example
|
|
@@ -259,7 +251,7 @@ class Batch {
|
|
|
259
251
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
260
252
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
261
253
|
method: 'GET',
|
|
262
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
254
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
263
255
|
contentType: 'application/json',
|
|
264
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
265
257
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -297,7 +289,7 @@ class Batch {
|
|
|
297
289
|
});
|
|
298
290
|
}
|
|
299
291
|
/**
|
|
300
|
-
* Get the artifacts ZIP of a completed
|
|
292
|
+
* Get the artifacts ZIP of a completed inference job.
|
|
301
293
|
*/
|
|
302
294
|
getJobArtifacts(id, requestOptions) {
|
|
303
295
|
var _a, _b;
|
|
@@ -305,7 +297,7 @@ class Batch {
|
|
|
305
297
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
306
298
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
307
299
|
method: 'GET',
|
|
308
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
300
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
309
301
|
contentType: 'application/json',
|
|
310
302
|
responseType: 'streaming',
|
|
311
303
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -362,7 +354,7 @@ class Batch {
|
|
|
362
354
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
363
355
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
|
|
364
356
|
method: 'POST',
|
|
365
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
357
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
366
358
|
body: yield _maybeEncodedRequest.getBody(),
|
|
367
359
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
368
360
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -12,27 +12,43 @@ export interface BatchListJobsRequest {
|
|
|
12
12
|
*/
|
|
13
13
|
limit?: number;
|
|
14
14
|
/**
|
|
15
|
-
* Include only jobs
|
|
15
|
+
* Include only jobs of this status in the response. There are four possible statuses:
|
|
16
|
+
*
|
|
17
|
+
* - `QUEUED`: The job has been received and is waiting to be processed.
|
|
18
|
+
*
|
|
19
|
+
* - `IN_PROGRESS`: The job is currently being processed.
|
|
20
|
+
*
|
|
21
|
+
* - `COMPLETED`: The job has finished processing.
|
|
22
|
+
*
|
|
23
|
+
* - `FAILED`: The job encountered an error and could not be completed successfully.
|
|
16
24
|
*/
|
|
17
25
|
status?: Hume.expressionMeasurement.Status | Hume.expressionMeasurement.Status[];
|
|
18
26
|
/**
|
|
19
|
-
*
|
|
27
|
+
* Specify whether to include jobs created before or after a given `timestamp_ms`.
|
|
20
28
|
*/
|
|
21
29
|
when?: Hume.expressionMeasurement.When;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* Provide a timestamp in milliseconds to filter jobs.
|
|
32
|
+
*
|
|
33
|
+
* When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.
|
|
24
34
|
*/
|
|
25
35
|
timestampMs?: number;
|
|
26
36
|
/**
|
|
27
|
-
*
|
|
37
|
+
* Specify which timestamp to sort the jobs by.
|
|
38
|
+
*
|
|
39
|
+
* - `created`: Sort jobs by the time of creation, indicated by `created_timestamp_ms`.
|
|
40
|
+
*
|
|
41
|
+
* - `started`: Sort jobs by the time processing started, indicated by `started_timestamp_ms`.
|
|
42
|
+
*
|
|
43
|
+
* - `ended`: Sort jobs by the time processing ended, indicated by `ended_timestamp_ms`.
|
|
28
44
|
*/
|
|
29
45
|
sortBy?: Hume.expressionMeasurement.SortBy;
|
|
30
46
|
/**
|
|
31
|
-
*
|
|
47
|
+
* Specify the order in which to sort the jobs. Defaults to descending order.
|
|
48
|
+
*
|
|
49
|
+
* - `asc`: Sort in ascending order (chronological, with the oldest records first).
|
|
50
|
+
*
|
|
51
|
+
* - `desc`: Sort in descending order (reverse-chronological, with the newest records first).
|
|
32
52
|
*/
|
|
33
53
|
direction?: Hume.expressionMeasurement.Direction;
|
|
34
|
-
/**
|
|
35
|
-
* Include only jobs of these types.
|
|
36
|
-
*/
|
|
37
|
-
type?: Hume.expressionMeasurement.Type | Hume.expressionMeasurement.Type[];
|
|
38
54
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
-
export interface
|
|
5
|
+
export interface CustomModelsInferenceJob extends Hume.expressionMeasurement.JobTlInference {
|
|
6
|
+
type: string;
|
|
6
7
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
-
export interface
|
|
5
|
+
export interface CustomModelsTrainingJob extends Hume.expressionMeasurement.JobTraining {
|
|
6
|
+
type: string;
|
|
6
7
|
}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
+
/**
|
|
6
|
+
* The Facial Emotional Expression model analyzes human facial expressions in images and videos. Results will be provided per frame for video files.
|
|
7
|
+
*
|
|
8
|
+
* Recommended input file types: `.png`, `.jpeg`, `.mp4`
|
|
9
|
+
*/
|
|
5
10
|
export interface Face {
|
|
6
11
|
/** Number of frames per second to process. Other frames will be omitted from the response. Set to `0` to process every frame. */
|
|
7
12
|
fpsPred?: number;
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* The granularity at which to generate predictions. `
|
|
5
|
+
* The granularity at which to generate predictions. The `granularity` field is ignored if transcription is not enabled or if the `window` field has been set.
|
|
6
|
+
*
|
|
7
|
+
* - `word`: At the word level, our model provides a separate output for each word, offering the most granular insight into emotional expression during speech.
|
|
8
|
+
*
|
|
9
|
+
* - `sentence`: At the sentence level of granularity, we annotate the emotional tone of each spoken sentence with our Prosody and Emotional Language models.
|
|
10
|
+
*
|
|
11
|
+
* - `utterance`: Utterance-level granularity is between word- and sentence-level. It takes into account natural pauses or breaks in speech, providing more rapidly updated measures of emotional expression within a flowing conversation. For text inputs, utterance-level granularity will produce results identical to sentence-level granularity.
|
|
12
|
+
*
|
|
13
|
+
* - `conversational_turn`: Conversational turn-level granularity provides a distinct output for each change in speaker. It captures the full sequence of words and sentences spoken uninterrupted by each person. This approach provides a higher-level view of the emotional dynamics in a multi-participant dialogue. For text inputs, specifying conversational turn-level granularity for our Emotional Language model will produce results for the entire passage.
|
|
6
14
|
*/
|
|
7
15
|
export declare type Granularity = 'word' | 'sentence' | 'utterance' | 'conversational_turn';
|
|
8
16
|
export declare const Granularity: {
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
5
|
export interface InferenceBaseRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Specify the models to use for inference.
|
|
8
|
+
*
|
|
9
|
+
* If this field is not explicitly set, then all models will run by default.
|
|
10
|
+
*/
|
|
6
11
|
models?: Hume.expressionMeasurement.Models;
|
|
7
12
|
transcription?: Hume.expressionMeasurement.Transcription;
|
|
8
13
|
/**
|
|
@@ -13,7 +18,7 @@ export interface InferenceBaseRequest {
|
|
|
13
18
|
urls?: string[];
|
|
14
19
|
/** List of File IDs corresponding to the files in the asset registry. */
|
|
15
20
|
registryFiles?: string[];
|
|
16
|
-
/** Text
|
|
21
|
+
/** Text supplied directly to our Emotional Language and NER models for analysis. */
|
|
17
22
|
text?: string[];
|
|
18
23
|
/** If provided, a `POST` request will be made to the URL with the generated predictions on completion or the error message on failure. */
|
|
19
24
|
callbackUrl?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Hume from '../../../index';
|
|
5
|
+
export interface InferenceJob extends Hume.expressionMeasurement.JobInference {
|
|
6
|
+
/**
|
|
7
|
+
* Denotes the job type.
|
|
8
|
+
*
|
|
9
|
+
* Jobs created with the Expression Measurement API will have this field set to `INFERENCE`.
|
|
10
|
+
*/
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
@@ -5,7 +5,10 @@ import * as Hume from '../../../index';
|
|
|
5
5
|
export interface JobInference {
|
|
6
6
|
/** The ID associated with this job. */
|
|
7
7
|
jobId: string;
|
|
8
|
+
/** The unique identifier for the user who initiated the job. */
|
|
8
9
|
userId: string;
|
|
10
|
+
/** The request that initiated the job. */
|
|
9
11
|
request: Hume.expressionMeasurement.InferenceRequest;
|
|
12
|
+
/** The current state of the job. */
|
|
10
13
|
state: Hume.expressionMeasurement.StateInference;
|
|
11
14
|
}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
+
/**
|
|
6
|
+
* The Emotional Language model analyzes passages of text. This also supports audio and video files by transcribing and then directly analyzing the transcribed text.
|
|
7
|
+
*
|
|
8
|
+
* Recommended input filetypes: `.txt`, `.mp3`, `.wav`, `.mp4`
|
|
9
|
+
*/
|
|
5
10
|
export interface Language {
|
|
6
11
|
granularity?: Hume.expressionMeasurement.Granularity;
|
|
7
12
|
sentiment?: Hume.expressionMeasurement.Unconfigurable;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
+
/**
|
|
6
|
+
* The models used for inference.
|
|
7
|
+
*/
|
|
5
8
|
export interface Models {
|
|
6
9
|
face?: Hume.expressionMeasurement.Face;
|
|
7
10
|
burst?: Hume.expressionMeasurement.Unconfigurable;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* The NER (Named-entity Recognition) model identifies real-world objects and concepts in passages of text. This also supports audio and video files by transcribing and then directly analyzing the transcribed text.
|
|
6
|
+
*
|
|
7
|
+
* Recommended input filetypes: `.txt`, `.mp3`, `.wav`, `.mp4`
|
|
8
|
+
*/
|
|
4
9
|
export interface Ner {
|
|
5
10
|
/** Whether to return identifiers for speakers over time. If `true`, unique identifiers will be assigned to spoken words to differentiate different speakers. If `false`, all speakers will be tagged with an `unknown` ID. */
|
|
6
11
|
identifySpeakers?: boolean;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
+
/**
|
|
6
|
+
* The Speech Prosody model analyzes the intonation, stress, and rhythm of spoken word.
|
|
7
|
+
*
|
|
8
|
+
* Recommended input file types: `.wav`, `.mp3`, `.mp4`
|
|
9
|
+
*/
|
|
5
10
|
export interface Prosody {
|
|
6
11
|
granularity?: Hume.expressionMeasurement.Granularity;
|
|
7
12
|
window?: Hume.expressionMeasurement.Window;
|
|
@@ -2,7 +2,47 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
+
/**
|
|
6
|
+
* Transcription-related configuration options.
|
|
7
|
+
*
|
|
8
|
+
* To disable transcription, explicitly set this field to `null`.
|
|
9
|
+
*/
|
|
5
10
|
export interface Transcription {
|
|
11
|
+
/**
|
|
12
|
+
* By default, we use an automated language detection method for our Speech Prosody, Language, and NER models. However, if you know what language is being spoken in your media samples, you can specify it via its BCP-47 tag and potentially obtain more accurate results.
|
|
13
|
+
*
|
|
14
|
+
* You can specify any of the following languages:
|
|
15
|
+
*
|
|
16
|
+
* - Chinese: `zh`
|
|
17
|
+
* - Danish: `da`
|
|
18
|
+
* - Dutch: `nl`
|
|
19
|
+
* - English: `en`
|
|
20
|
+
* - English (Australia): `en-AU`
|
|
21
|
+
* - English (India): `en-IN`
|
|
22
|
+
* - English (New Zealand): `en-NZ`
|
|
23
|
+
* - English (United Kingdom): `en-GB`
|
|
24
|
+
* - French: `fr`
|
|
25
|
+
* - French (Canada): `fr-CA`
|
|
26
|
+
* - German: `de`
|
|
27
|
+
* - Hindi: `hi`
|
|
28
|
+
* - Hindi (Roman Script): `hi-Latn`
|
|
29
|
+
* - Indonesian: `id`
|
|
30
|
+
* - Italian: `it`
|
|
31
|
+
* - Japanese: `ja`
|
|
32
|
+
* - Korean: `ko`
|
|
33
|
+
* - Norwegian: `no`
|
|
34
|
+
* - Polish: `pl`
|
|
35
|
+
* - Portuguese: `pt`
|
|
36
|
+
* - Portuguese (Brazil): `pt-BR`
|
|
37
|
+
* - Portuguese (Portugal): `pt-PT`
|
|
38
|
+
* - Russian: `ru`
|
|
39
|
+
* - Spanish: `es`
|
|
40
|
+
* - Spanish (Latin America): `es-419`
|
|
41
|
+
* - Swedish: `sv`
|
|
42
|
+
* - Tamil: `ta`
|
|
43
|
+
* - Turkish: `tr`
|
|
44
|
+
* - Ukrainian: `uk`
|
|
45
|
+
*/
|
|
6
46
|
language?: Hume.expressionMeasurement.Bcp47Tag;
|
|
7
47
|
/** Whether to return identifiers for speakers over time. If `true`, unique identifiers will be assigned to spoken words to differentiate different speakers. If `false`, all speakers will be tagged with an `unknown` ID. */
|
|
8
48
|
identifySpeakers?: boolean;
|
|
@@ -2,18 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
-
export declare type UnionJob = Hume.expressionMeasurement.
|
|
6
|
-
export declare namespace UnionJob {
|
|
7
|
-
interface EmbeddingGeneration extends Hume.expressionMeasurement.UnionJobJobEmbeddingGeneration {
|
|
8
|
-
type: 'EMBEDDING_GENERATION';
|
|
9
|
-
}
|
|
10
|
-
interface Inference extends Hume.expressionMeasurement.UnionJobJobInference {
|
|
11
|
-
type: 'INFERENCE';
|
|
12
|
-
}
|
|
13
|
-
interface TlInference extends Hume.expressionMeasurement.UnionJobJobTlInference {
|
|
14
|
-
type: 'TL_INFERENCE';
|
|
15
|
-
}
|
|
16
|
-
interface Training extends Hume.expressionMeasurement.UnionJobJobTraining {
|
|
17
|
-
type: 'TRAINING';
|
|
18
|
-
}
|
|
19
|
-
}
|
|
5
|
+
export declare type UnionJob = Hume.expressionMeasurement.InferenceJob;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
|
-
export declare type UnionPredictResult = Hume.expressionMeasurement.InferenceSourcePredictResult
|
|
5
|
+
export declare type UnionPredictResult = Hume.expressionMeasurement.InferenceSourcePredictResult;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* Generate predictions based on time.
|
|
6
|
+
*
|
|
7
|
+
* Setting the `window` field allows for a 'sliding window' approach, where a fixed-size window moves across the audio or video file in defined steps. This enables continuous analysis of prosody within subsets of the file, providing dynamic and localized insights into emotional expression.
|
|
8
|
+
*/
|
|
4
9
|
export interface Window {
|
|
5
10
|
/** The length of the sliding window. */
|
|
6
11
|
length?: number;
|
|
@@ -111,10 +111,10 @@ export * from './TranscriptionMetadata';
|
|
|
111
111
|
export * from './Type';
|
|
112
112
|
export * from './Unconfigurable';
|
|
113
113
|
export * from './UnionJob';
|
|
114
|
-
export * from './
|
|
115
|
-
export * from './
|
|
116
|
-
export * from './
|
|
117
|
-
export * from './
|
|
114
|
+
export * from './EmbeddingGenerationJob';
|
|
115
|
+
export * from './InferenceJob';
|
|
116
|
+
export * from './CustomModelsInferenceJob';
|
|
117
|
+
export * from './CustomModelsTrainingJob';
|
|
118
118
|
export * from './UnionPredictResult';
|
|
119
119
|
export * from './ValidationArgs';
|
|
120
120
|
export * from './When';
|
|
@@ -127,10 +127,10 @@ __exportStar(require("./TranscriptionMetadata"), exports);
|
|
|
127
127
|
__exportStar(require("./Type"), exports);
|
|
128
128
|
__exportStar(require("./Unconfigurable"), exports);
|
|
129
129
|
__exportStar(require("./UnionJob"), exports);
|
|
130
|
-
__exportStar(require("./
|
|
131
|
-
__exportStar(require("./
|
|
132
|
-
__exportStar(require("./
|
|
133
|
-
__exportStar(require("./
|
|
130
|
+
__exportStar(require("./EmbeddingGenerationJob"), exports);
|
|
131
|
+
__exportStar(require("./InferenceJob"), exports);
|
|
132
|
+
__exportStar(require("./CustomModelsInferenceJob"), exports);
|
|
133
|
+
__exportStar(require("./CustomModelsTrainingJob"), exports);
|
|
134
134
|
__exportStar(require("./UnionPredictResult"), exports);
|
|
135
135
|
__exportStar(require("./ValidationArgs"), exports);
|
|
136
136
|
__exportStar(require("./When"), exports);
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
26
|
+
exports.empathicVoice = exports.expressionMeasurement = void 0;
|
|
28
27
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
28
|
+
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
package/core/index.d.ts
CHANGED
package/core/index.js
CHANGED
|
@@ -31,4 +31,5 @@ __exportStar(require("./fetcher"), exports);
|
|
|
31
31
|
__exportStar(require("./runtime"), exports);
|
|
32
32
|
__exportStar(require("./form-data-utils"), exports);
|
|
33
33
|
__exportStar(require("./websocket"), exports);
|
|
34
|
+
__exportStar(require("./pagination"), exports);
|
|
34
35
|
exports.serialization = __importStar(require("./schemas"));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A page of results from a paginated API.
|
|
3
|
+
*
|
|
4
|
+
* @template T The type of the items in the page.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Page<T> implements AsyncIterable<T> {
|
|
7
|
+
data: T[];
|
|
8
|
+
private response;
|
|
9
|
+
private _hasNextPage;
|
|
10
|
+
private getItems;
|
|
11
|
+
private loadNextPage;
|
|
12
|
+
constructor({ response, hasNextPage, getItems, loadPage, }: {
|
|
13
|
+
response: unknown;
|
|
14
|
+
hasNextPage: (response: unknown) => boolean;
|
|
15
|
+
getItems: (response: unknown) => T[];
|
|
16
|
+
loadPage: (response: unknown) => Promise<any>;
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the next page
|
|
20
|
+
* @returns this
|
|
21
|
+
*/
|
|
22
|
+
getNextPage(): Promise<this>;
|
|
23
|
+
/**
|
|
24
|
+
* @returns whether there is a next page to load
|
|
25
|
+
*/
|
|
26
|
+
hasNextPage(): boolean;
|
|
27
|
+
private iterMessages;
|
|
28
|
+
[Symbol.asyncIterator](): AsyncIterator<T, void, any>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
12
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
13
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
14
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
15
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
17
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
18
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
19
|
+
function fulfill(value) { resume("next", value); }
|
|
20
|
+
function reject(value) { resume("throw", value); }
|
|
21
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
22
|
+
};
|
|
23
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
24
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
25
|
+
var m = o[Symbol.asyncIterator], i;
|
|
26
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
27
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
28
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.Page = void 0;
|
|
32
|
+
/**
|
|
33
|
+
* A page of results from a paginated API.
|
|
34
|
+
*
|
|
35
|
+
* @template T The type of the items in the page.
|
|
36
|
+
*/
|
|
37
|
+
class Page {
|
|
38
|
+
constructor({ response, hasNextPage, getItems, loadPage, }) {
|
|
39
|
+
this.response = response;
|
|
40
|
+
this.data = getItems(response);
|
|
41
|
+
this._hasNextPage = hasNextPage;
|
|
42
|
+
this.getItems = getItems;
|
|
43
|
+
this.loadNextPage = loadPage;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the next page
|
|
47
|
+
* @returns this
|
|
48
|
+
*/
|
|
49
|
+
getNextPage() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
this.response = yield this.loadNextPage(this.response);
|
|
52
|
+
this.data = this.getItems(this.response);
|
|
53
|
+
return this;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @returns whether there is a next page to load
|
|
58
|
+
*/
|
|
59
|
+
hasNextPage() {
|
|
60
|
+
return this._hasNextPage(this.response);
|
|
61
|
+
}
|
|
62
|
+
iterMessages() {
|
|
63
|
+
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
64
|
+
for (const item of this.data) {
|
|
65
|
+
yield yield __await(item);
|
|
66
|
+
}
|
|
67
|
+
while (this.hasNextPage()) {
|
|
68
|
+
yield __await(this.getNextPage());
|
|
69
|
+
for (const item of this.data) {
|
|
70
|
+
yield yield __await(item);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
77
|
+
var e_1, _b;
|
|
78
|
+
try {
|
|
79
|
+
for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
|
|
80
|
+
const message = _d.value;
|
|
81
|
+
yield yield __await(message);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
|
+
finally {
|
|
86
|
+
try {
|
|
87
|
+
if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
|
|
88
|
+
}
|
|
89
|
+
finally { if (e_1) throw e_1.error; }
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.Page = Page;
|