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
package/dist/core/index.d.ts
CHANGED
package/dist/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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Page } from './Page';
|
|
2
|
+
export declare namespace Pageable {
|
|
3
|
+
interface Args<Response, Item> {
|
|
4
|
+
response: Response;
|
|
5
|
+
hasNextPage: (response: Response) => boolean;
|
|
6
|
+
getItems: (response: Response) => Item[];
|
|
7
|
+
loadPage: (response: Response) => Promise<Response>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class Pageable<R, T> extends Page<T> {
|
|
11
|
+
constructor(args: Pageable.Args<R, T>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pageable = exports.Page = void 0;
|
|
4
|
+
var Page_1 = require("./Page");
|
|
5
|
+
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
6
|
+
var Pageable_1 = require("./Pageable");
|
|
7
|
+
Object.defineProperty(exports, "Pageable", { enumerable: true, get: function () { return Pageable_1.Pageable; } });
|
package/dist/errors/HumeError.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { AssistantEnd } from './AssistantEnd';
|
|
7
8
|
import { AssistantMessage } from './AssistantMessage';
|
|
8
9
|
import { ChatMetadata } from './ChatMetadata';
|
|
9
10
|
import { WebSocketError } from './WebSocketError';
|
|
@@ -14,5 +15,5 @@ import { ToolResponseMessage } from './ToolResponseMessage';
|
|
|
14
15
|
import { ToolErrorMessage } from './ToolErrorMessage';
|
|
15
16
|
export declare const JsonMessage: core.serialization.Schema<serializers.empathicVoice.JsonMessage.Raw, Hume.empathicVoice.JsonMessage>;
|
|
16
17
|
export declare namespace JsonMessage {
|
|
17
|
-
type Raw = AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
18
|
+
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
18
19
|
}
|
|
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.JsonMessage = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const AssistantEnd_1 = require("./AssistantEnd");
|
|
31
32
|
const AssistantMessage_1 = require("./AssistantMessage");
|
|
32
33
|
const ChatMetadata_1 = require("./ChatMetadata");
|
|
33
34
|
const WebSocketError_1 = require("./WebSocketError");
|
|
@@ -37,6 +38,7 @@ const ToolCallMessage_1 = require("./ToolCallMessage");
|
|
|
37
38
|
const ToolResponseMessage_1 = require("./ToolResponseMessage");
|
|
38
39
|
const ToolErrorMessage_1 = require("./ToolErrorMessage");
|
|
39
40
|
exports.JsonMessage = core.serialization.undiscriminatedUnion([
|
|
41
|
+
AssistantEnd_1.AssistantEnd,
|
|
40
42
|
AssistantMessage_1.AssistantMessage,
|
|
41
43
|
ChatMetadata_1.ChatMetadata,
|
|
42
44
|
WebSocketError_1.WebSocketError,
|
|
@@ -9,5 +9,7 @@ export declare const PostedEventMessageSpecs: core.serialization.ObjectSchema<se
|
|
|
9
9
|
export declare namespace PostedEventMessageSpecs {
|
|
10
10
|
interface Raw {
|
|
11
11
|
on_new_chat?: PostedEventMessageSpec.Raw | null;
|
|
12
|
+
on_inactivity_timeout?: PostedEventMessageSpec.Raw | null;
|
|
13
|
+
on_max_duration_timeout?: PostedEventMessageSpec.Raw | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -31,4 +31,6 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const PostedEventMessageSpec_1 = require("./PostedEventMessageSpec");
|
|
32
32
|
exports.PostedEventMessageSpecs = core.serialization.object({
|
|
33
33
|
onNewChat: core.serialization.property('on_new_chat', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
|
|
34
|
+
onInactivityTimeout: core.serialization.property('on_inactivity_timeout', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
|
|
35
|
+
onMaxDurationTimeout: core.serialization.property('on_max_duration_timeout', PostedEventMessageSpec_1.PostedEventMessageSpec.optional()),
|
|
34
36
|
});
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { ReturnBuiltinToolToolType } from './ReturnBuiltinToolToolType';
|
|
7
8
|
export declare const ReturnBuiltinTool: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnBuiltinTool.Raw, Hume.empathicVoice.ReturnBuiltinTool>;
|
|
8
9
|
export declare namespace ReturnBuiltinTool {
|
|
9
10
|
interface Raw {
|
|
10
|
-
tool_type:
|
|
11
|
+
tool_type: ReturnBuiltinToolToolType.Raw;
|
|
11
12
|
name: string;
|
|
12
13
|
fallback_content?: string | null;
|
|
13
14
|
}
|
|
@@ -28,8 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ReturnBuiltinTool = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ReturnBuiltinToolToolType_1 = require("./ReturnBuiltinToolToolType");
|
|
31
32
|
exports.ReturnBuiltinTool = core.serialization.object({
|
|
32
|
-
toolType: core.serialization.property('tool_type',
|
|
33
|
+
toolType: core.serialization.property('tool_type', ReturnBuiltinToolToolType_1.ReturnBuiltinToolToolType),
|
|
33
34
|
name: core.serialization.string(),
|
|
34
35
|
fallbackContent: core.serialization.property('fallback_content', core.serialization.string().optional()),
|
|
35
36
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnBuiltinToolToolType: core.serialization.Schema<serializers.empathicVoice.ReturnBuiltinToolToolType.Raw, Hume.empathicVoice.ReturnBuiltinToolToolType>;
|
|
8
|
+
export declare namespace ReturnBuiltinToolToolType {
|
|
9
|
+
type Raw = 'BUILTIN' | 'FUNCTION';
|
|
10
|
+
}
|
|
@@ -26,7 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ReturnBuiltinToolToolType = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
|
|
32
|
-
exports.UnionJobJobTraining = core.serialization.object({}).extend(JobTraining_1.JobTraining);
|
|
31
|
+
exports.ReturnBuiltinToolToolType = core.serialization.enum_(['BUILTIN', 'FUNCTION']);
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { ReturnChatStatus } from './ReturnChatStatus';
|
|
7
8
|
import { ReturnConfigSpec } from './ReturnConfigSpec';
|
|
8
9
|
export declare const ReturnChat: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChat.Raw, Hume.empathicVoice.ReturnChat>;
|
|
9
10
|
export declare namespace ReturnChat {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id: string;
|
|
12
13
|
chat_group_id: string;
|
|
13
|
-
|
|
14
|
-
status: string;
|
|
14
|
+
status: ReturnChatStatus.Raw;
|
|
15
15
|
start_timestamp: number;
|
|
16
16
|
end_timestamp?: number | null;
|
|
17
17
|
event_count?: number | null;
|
|
@@ -28,12 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ReturnChat = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ReturnChatStatus_1 = require("./ReturnChatStatus");
|
|
31
32
|
const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
|
|
32
33
|
exports.ReturnChat = core.serialization.object({
|
|
33
34
|
id: core.serialization.string(),
|
|
34
35
|
chatGroupId: core.serialization.property('chat_group_id', core.serialization.string()),
|
|
35
|
-
|
|
36
|
-
status: core.serialization.string(),
|
|
36
|
+
status: ReturnChatStatus_1.ReturnChatStatus,
|
|
37
37
|
startTimestamp: core.serialization.property('start_timestamp', core.serialization.number()),
|
|
38
38
|
endTimestamp: core.serialization.property('end_timestamp', core.serialization.number().optional()),
|
|
39
39
|
eventCount: core.serialization.property('event_count', core.serialization.number().optional()),
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { ReturnChatEventRole } from './ReturnChatEventRole';
|
|
8
|
+
import { ReturnChatEventType } from './ReturnChatEventType';
|
|
7
9
|
export declare const ReturnChatEvent: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatEvent.Raw, Hume.empathicVoice.ReturnChatEvent>;
|
|
8
10
|
export declare namespace ReturnChatEvent {
|
|
9
11
|
interface Raw {
|
|
10
12
|
id: string;
|
|
11
13
|
chat_id: string;
|
|
12
14
|
timestamp: number;
|
|
13
|
-
role:
|
|
14
|
-
type:
|
|
15
|
+
role: ReturnChatEventRole.Raw;
|
|
16
|
+
type: ReturnChatEventType.Raw;
|
|
15
17
|
message_text?: string | null;
|
|
16
18
|
emotion_features?: string | null;
|
|
17
19
|
metadata?: string | null;
|
|
@@ -28,12 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ReturnChatEvent = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ReturnChatEventRole_1 = require("./ReturnChatEventRole");
|
|
32
|
+
const ReturnChatEventType_1 = require("./ReturnChatEventType");
|
|
31
33
|
exports.ReturnChatEvent = core.serialization.object({
|
|
32
34
|
id: core.serialization.string(),
|
|
33
35
|
chatId: core.serialization.property('chat_id', core.serialization.string()),
|
|
34
36
|
timestamp: core.serialization.number(),
|
|
35
|
-
role:
|
|
36
|
-
type:
|
|
37
|
+
role: ReturnChatEventRole_1.ReturnChatEventRole,
|
|
38
|
+
type: ReturnChatEventType_1.ReturnChatEventType,
|
|
37
39
|
messageText: core.serialization.property('message_text', core.serialization.string().optional()),
|
|
38
40
|
emotionFeatures: core.serialization.property('emotion_features', core.serialization.string().optional()),
|
|
39
41
|
metadata: core.serialization.string().optional(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnChatEventRole: core.serialization.Schema<serializers.empathicVoice.ReturnChatEventRole.Raw, Hume.empathicVoice.ReturnChatEventRole>;
|
|
8
|
+
export declare namespace ReturnChatEventRole {
|
|
9
|
+
type Raw = 'USER' | 'AGENT' | 'SYSTEM' | 'TOOL';
|
|
10
|
+
}
|
|
@@ -26,7 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ReturnChatEventRole = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
|
|
32
|
-
exports.UnionJobJobTraining = core.serialization.object({}).extend(JobTraining_1.JobTraining);
|
|
31
|
+
exports.ReturnChatEventRole = core.serialization.enum_(['USER', 'AGENT', 'SYSTEM', 'TOOL']);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnChatEventType: core.serialization.Schema<serializers.empathicVoice.ReturnChatEventType.Raw, Hume.empathicVoice.ReturnChatEventType>;
|
|
8
|
+
export declare namespace ReturnChatEventType {
|
|
9
|
+
type Raw = 'SYSTEM_PROMPT' | 'USER_MESSAGE' | 'USER_INTERRUPTION' | 'AGENT_MESSAGE' | 'FUNCTION_CALL' | 'FUNCTION_CALL_RESPONSE';
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ReturnChatEventType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ReturnChatEventType = core.serialization.enum_([
|
|
32
|
+
'SYSTEM_PROMPT',
|
|
33
|
+
'USER_MESSAGE',
|
|
34
|
+
'USER_INTERRUPTION',
|
|
35
|
+
'AGENT_MESSAGE',
|
|
36
|
+
'FUNCTION_CALL',
|
|
37
|
+
'FUNCTION_CALL_RESPONSE',
|
|
38
|
+
]);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { ReturnChatGroupPagedEventsPaginationDirection } from './ReturnChatGroupPagedEventsPaginationDirection';
|
|
7
8
|
import { ReturnChatEvent } from './ReturnChatEvent';
|
|
8
9
|
export declare const ReturnChatGroupPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroupPagedEvents.Raw, Hume.empathicVoice.ReturnChatGroupPagedEvents>;
|
|
9
10
|
export declare namespace ReturnChatGroupPagedEvents {
|
|
@@ -12,7 +13,7 @@ export declare namespace ReturnChatGroupPagedEvents {
|
|
|
12
13
|
page_number: number;
|
|
13
14
|
page_size: number;
|
|
14
15
|
total_pages: number;
|
|
15
|
-
pagination_direction:
|
|
16
|
+
pagination_direction: ReturnChatGroupPagedEventsPaginationDirection.Raw;
|
|
16
17
|
events_page: ReturnChatEvent.Raw[];
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -28,12 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ReturnChatGroupPagedEvents = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ReturnChatGroupPagedEventsPaginationDirection_1 = require("./ReturnChatGroupPagedEventsPaginationDirection");
|
|
31
32
|
const ReturnChatEvent_1 = require("./ReturnChatEvent");
|
|
32
33
|
exports.ReturnChatGroupPagedEvents = core.serialization.object({
|
|
33
34
|
id: core.serialization.string(),
|
|
34
35
|
pageNumber: core.serialization.property('page_number', core.serialization.number()),
|
|
35
36
|
pageSize: core.serialization.property('page_size', core.serialization.number()),
|
|
36
37
|
totalPages: core.serialization.property('total_pages', core.serialization.number()),
|
|
37
|
-
paginationDirection: core.serialization.property('pagination_direction',
|
|
38
|
+
paginationDirection: core.serialization.property('pagination_direction', ReturnChatGroupPagedEventsPaginationDirection_1.ReturnChatGroupPagedEventsPaginationDirection),
|
|
38
39
|
eventsPage: core.serialization.property('events_page', core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
|
|
39
40
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnChatGroupPagedEventsPaginationDirection: core.serialization.Schema<serializers.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection.Raw, Hume.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection>;
|
|
8
|
+
export declare namespace ReturnChatGroupPagedEventsPaginationDirection {
|
|
9
|
+
type Raw = 'ASC' | 'DESC';
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ReturnChatGroupPagedEventsPaginationDirection = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ReturnChatGroupPagedEventsPaginationDirection = core.serialization.enum_(['ASC', 'DESC']);
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import * as serializers from '../../../index';
|
|
5
5
|
import * as Hume from '../../../../api/index';
|
|
6
6
|
import * as core from '../../../../core';
|
|
7
|
+
import { ReturnChatPagedEventsStatus } from './ReturnChatPagedEventsStatus';
|
|
8
|
+
import { ReturnChatPagedEventsPaginationDirection } from './ReturnChatPagedEventsPaginationDirection';
|
|
7
9
|
import { ReturnChatEvent } from './ReturnChatEvent';
|
|
8
10
|
import { ReturnConfigSpec } from './ReturnConfigSpec';
|
|
9
11
|
export declare const ReturnChatPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatPagedEvents.Raw, Hume.empathicVoice.ReturnChatPagedEvents>;
|
|
@@ -11,11 +13,10 @@ export declare namespace ReturnChatPagedEvents {
|
|
|
11
13
|
interface Raw {
|
|
12
14
|
id: string;
|
|
13
15
|
chat_group_id: string;
|
|
14
|
-
|
|
15
|
-
status: string;
|
|
16
|
+
status: ReturnChatPagedEventsStatus.Raw;
|
|
16
17
|
start_timestamp: number;
|
|
17
18
|
end_timestamp?: number | null;
|
|
18
|
-
pagination_direction:
|
|
19
|
+
pagination_direction: ReturnChatPagedEventsPaginationDirection.Raw;
|
|
19
20
|
events_page: ReturnChatEvent.Raw[];
|
|
20
21
|
metadata?: string | null;
|
|
21
22
|
page_number: number;
|
|
@@ -28,16 +28,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ReturnChatPagedEvents = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ReturnChatPagedEventsStatus_1 = require("./ReturnChatPagedEventsStatus");
|
|
32
|
+
const ReturnChatPagedEventsPaginationDirection_1 = require("./ReturnChatPagedEventsPaginationDirection");
|
|
31
33
|
const ReturnChatEvent_1 = require("./ReturnChatEvent");
|
|
32
34
|
const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
|
|
33
35
|
exports.ReturnChatPagedEvents = core.serialization.object({
|
|
34
36
|
id: core.serialization.string(),
|
|
35
37
|
chatGroupId: core.serialization.property('chat_group_id', core.serialization.string()),
|
|
36
|
-
|
|
37
|
-
status: core.serialization.string(),
|
|
38
|
+
status: ReturnChatPagedEventsStatus_1.ReturnChatPagedEventsStatus,
|
|
38
39
|
startTimestamp: core.serialization.property('start_timestamp', core.serialization.number()),
|
|
39
40
|
endTimestamp: core.serialization.property('end_timestamp', core.serialization.number().optional()),
|
|
40
|
-
paginationDirection: core.serialization.property('pagination_direction',
|
|
41
|
+
paginationDirection: core.serialization.property('pagination_direction', ReturnChatPagedEventsPaginationDirection_1.ReturnChatPagedEventsPaginationDirection),
|
|
41
42
|
eventsPage: core.serialization.property('events_page', core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
|
|
42
43
|
metadata: core.serialization.string().optional(),
|
|
43
44
|
pageNumber: core.serialization.property('page_number', core.serialization.number()),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnChatPagedEventsPaginationDirection: core.serialization.Schema<serializers.empathicVoice.ReturnChatPagedEventsPaginationDirection.Raw, Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection>;
|
|
8
|
+
export declare namespace ReturnChatPagedEventsPaginationDirection {
|
|
9
|
+
type Raw = 'ASC' | 'DESC';
|
|
10
|
+
}
|
package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ReturnChatPagedEventsPaginationDirection = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ReturnChatPagedEventsPaginationDirection = core.serialization.enum_(['ASC', 'DESC']);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from '../../../index';
|
|
5
|
+
import * as Hume from '../../../../api/index';
|
|
6
|
+
import * as core from '../../../../core';
|
|
7
|
+
export declare const ReturnChatPagedEventsStatus: core.serialization.Schema<serializers.empathicVoice.ReturnChatPagedEventsStatus.Raw, Hume.empathicVoice.ReturnChatPagedEventsStatus>;
|
|
8
|
+
export declare namespace ReturnChatPagedEventsStatus {
|
|
9
|
+
type Raw = 'ACTIVE' | 'USER_ENDED' | 'USER_TIMEOUT' | 'MAX_DURATION_TIMEOUT' | 'INACTIVITY_TIMEOUT' | 'ERROR';
|
|
10
|
+
}
|