hume 0.15.12 → 0.15.14
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/empathicVoice/exports.d.ts +3 -0
- package/dist/cjs/api/resources/empathicVoice/exports.js +22 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +6 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +15 -7
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +15 -7
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +7 -3
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/exports.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/exports.js +18 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/index.js +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +10 -4
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +10 -4
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chats/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chats/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +67 -19
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +67 -19
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +4 -3
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -3
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/configs/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/index.js +2 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +64 -16
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +64 -16
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +64 -16
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +64 -16
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +8 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/tools/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +5 -11
- package/dist/cjs/api/resources/empathicVoice/types/LanguageModelType.d.ts +5 -0
- package/dist/cjs/api/resources/empathicVoice/types/LanguageModelType.js +5 -0
- package/dist/cjs/api/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/ModelProviderEnum.js +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/PromptExpansionSpec.d.ts +11 -0
- package/dist/cjs/api/resources/empathicVoice/types/PromptExpansionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +9 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +9 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +8 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.js +8 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +7 -3
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +10 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +17 -7
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +10 -4
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +16 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +5 -1
- package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +13 -4
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +8 -2
- package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/WebhookEventToolCall.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.js +1 -0
- package/dist/cjs/api/resources/expressionMeasurement/exports.d.ts +3 -0
- package/dist/cjs/api/resources/expressionMeasurement/exports.js +22 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/exports.js +21 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/exports.js +19 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +2 -2
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.js +21 -0
- package/dist/cjs/api/resources/tts/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tts/client/Client.js +4 -2
- package/dist/cjs/api/resources/tts/exports.d.ts +3 -0
- package/dist/cjs/api/resources/tts/exports.js +22 -0
- package/dist/cjs/api/resources/tts/resources/streamInput/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tts/resources/streamInput/exports.js +21 -0
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +2 -2
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tts/resources/voices/exports.js +21 -0
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
- package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -1
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/schemas/builders/list/list.js +12 -17
- package/dist/cjs/core/schemas/builders/object/object.js +122 -42
- package/dist/cjs/core/schemas/builders/object-like/getObjectLikeUtils.js +10 -3
- package/dist/cjs/core/schemas/builders/record/record.js +26 -25
- package/dist/cjs/core/schemas/builders/union/union.js +9 -12
- package/dist/cjs/core/schemas/utils/isPlainObject.js +4 -6
- package/dist/cjs/core/stream/Stream.d.ts +9 -0
- package/dist/cjs/core/stream/Stream.js +100 -5
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/LanguageModelType.js +5 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ModelProviderEnum.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PromptExpansionSpec.d.ts +9 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PromptExpansionSpec.js +41 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEventType.js +8 -6
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/empathicVoice/exports.d.mts +3 -0
- package/dist/esm/api/resources/empathicVoice/exports.mjs +4 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +6 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +15 -7
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +15 -7
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +7 -3
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/exports.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/exports.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/index.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +10 -4
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +10 -4
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chats/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chats/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +67 -19
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +67 -19
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +4 -3
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +3 -3
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/configs/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/index.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +64 -16
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +64 -16
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/prompts/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +64 -16
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +64 -16
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.mts +8 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +8 -4
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/tools/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +5 -11
- package/dist/esm/api/resources/empathicVoice/types/LanguageModelType.d.mts +5 -0
- package/dist/esm/api/resources/empathicVoice/types/LanguageModelType.mjs +5 -0
- package/dist/esm/api/resources/empathicVoice/types/ModelProviderEnum.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/ModelProviderEnum.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/PromptExpansionSpec.d.mts +11 -0
- package/dist/esm/api/resources/empathicVoice/types/PromptExpansionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +9 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +9 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +8 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +8 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +7 -3
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +10 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +17 -7
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnNudgeSpec.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +10 -4
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +16 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +5 -1
- package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +6 -2
- package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +13 -4
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +8 -2
- package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/WebhookEventToolCall.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/index.mjs +1 -0
- package/dist/esm/api/resources/expressionMeasurement/exports.d.mts +3 -0
- package/dist/esm/api/resources/expressionMeasurement/exports.mjs +4 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/exports.mjs +3 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/exports.mjs +3 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +2 -2
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.mjs +3 -0
- package/dist/esm/api/resources/tts/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tts/client/Client.mjs +4 -2
- package/dist/esm/api/resources/tts/exports.d.mts +3 -0
- package/dist/esm/api/resources/tts/exports.mjs +4 -0
- package/dist/esm/api/resources/tts/resources/streamInput/exports.d.mts +2 -0
- package/dist/esm/api/resources/tts/resources/streamInput/exports.mjs +3 -0
- package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/exports.d.mts +2 -0
- package/dist/esm/api/resources/tts/resources/voices/exports.mjs +3 -0
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
- package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/schemas/builders/list/list.mjs +12 -17
- package/dist/esm/core/schemas/builders/object/object.mjs +122 -42
- package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +10 -3
- package/dist/esm/core/schemas/builders/record/record.mjs +26 -25
- package/dist/esm/core/schemas/builders/union/union.mjs +9 -12
- package/dist/esm/core/schemas/utils/isPlainObject.mjs +4 -6
- package/dist/esm/core/stream/Stream.d.mts +9 -0
- package/dist/esm/core/stream/Stream.mjs +100 -5
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/LanguageModelType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/LanguageModelType.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ModelProviderEnum.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ModelProviderEnum.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PromptExpansionSpec.d.mts +9 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PromptExpansionSpec.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEventType.mjs +8 -6
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +158 -5
- package/reference.md +1157 -572
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "hume",
|
|
46
|
-
"X-Fern-SDK-Version": "0.15.
|
|
47
|
-
"User-Agent": "hume/0.15.
|
|
46
|
+
"X-Fern-SDK-Version": "0.15.14",
|
|
47
|
+
"User-Agent": "hume/0.15.14",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare namespace HumeClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class HumeClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<HumeClient.Options>;
|
|
13
|
-
protected _tts: TtsClient | undefined;
|
|
14
13
|
protected _empathicVoice: EmpathicVoiceClient | undefined;
|
|
14
|
+
protected _tts: TtsClient | undefined;
|
|
15
15
|
protected _expressionMeasurement: ExpressionMeasurementClient | undefined;
|
|
16
16
|
constructor(options?: HumeClient.Options);
|
|
17
|
-
get tts(): TtsClient;
|
|
18
17
|
get empathicVoice(): EmpathicVoiceClient;
|
|
18
|
+
get tts(): TtsClient;
|
|
19
19
|
get expressionMeasurement(): ExpressionMeasurementClient;
|
|
20
20
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -10,14 +10,14 @@ class HumeClient {
|
|
|
10
10
|
constructor(options = {}) {
|
|
11
11
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
12
12
|
}
|
|
13
|
-
get tts() {
|
|
14
|
-
var _a;
|
|
15
|
-
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.TtsClient(this._options)));
|
|
16
|
-
}
|
|
17
13
|
get empathicVoice() {
|
|
18
14
|
var _a;
|
|
19
15
|
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoiceClient(this._options)));
|
|
20
16
|
}
|
|
17
|
+
get tts() {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.TtsClient(this._options)));
|
|
20
|
+
}
|
|
21
21
|
get expressionMeasurement() {
|
|
22
22
|
var _a;
|
|
23
23
|
return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurementClient(this._options)));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EmpathicVoiceClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "EmpathicVoiceClient", { enumerable: true, get: function () { return Client_js_1.EmpathicVoiceClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -40,6 +40,8 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
40
40
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
41
41
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
42
42
|
const Socket_js_1 = require("./Socket.js");
|
|
43
|
+
/** Maximum systemPrompt length when passed at connect (serialized as query param). */
|
|
44
|
+
const MAX_SYSTEM_PROMPT_LENGTH = 1000;
|
|
43
45
|
class ChatClient {
|
|
44
46
|
constructor(options = {}) {
|
|
45
47
|
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
@@ -77,6 +79,10 @@ class ChatClient {
|
|
|
77
79
|
_queryParams[name] = value;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
82
|
+
// Warn when systemPrompt exceeds recommended length - it's serialized as a query param with URL length limits
|
|
83
|
+
if ((sessionSettings === null || sessionSettings === void 0 ? void 0 : sessionSettings.systemPrompt) != null && sessionSettings.systemPrompt.length > MAX_SYSTEM_PROMPT_LENGTH) {
|
|
84
|
+
console.warn(`[Hume SDK] systemPrompt (${sessionSettings.systemPrompt.length} chars) exceeds recommended max of ${MAX_SYSTEM_PROMPT_LENGTH} when passed at connect. The connection may fail or the prompt may be truncated. Consider using sendSessionSettings() after connecting for longer prompts.`);
|
|
85
|
+
}
|
|
80
86
|
const _headers = (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign(Object.assign({}, this._getCustomAuthorizationHeaders()), headers));
|
|
81
87
|
const socket = new core.ReconnectingWebSocket({
|
|
82
88
|
url: core.url.join((_a = core.Supplier.get(this._options.baseUrl)) !== null && _a !== void 0 ? _a : ((_b = core.Supplier.get(this._options.environment)) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, "/chat"),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatClient", { enumerable: true, get: function () { return Client_js_1.ChatClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -11,6 +11,8 @@ export declare class ChatGroupsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ChatGroupsClient.Options>;
|
|
12
12
|
constructor(options?: ChatGroupsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Fetches a paginated list of **Chat Groups**.
|
|
15
|
+
*
|
|
14
16
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
|
|
15
17
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
@@ -21,19 +23,21 @@ export declare class ChatGroupsClient {
|
|
|
21
23
|
* pageNumber: 0,
|
|
22
24
|
* pageSize: 1,
|
|
23
25
|
* ascendingOrder: true,
|
|
24
|
-
* configId: "
|
|
26
|
+
* configId: "your-config-id"
|
|
25
27
|
* })
|
|
26
28
|
*/
|
|
27
29
|
listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroupsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatGroup, Hume.empathicVoice.ReturnPagedChatGroups>>;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
30
34
|
* @param {Hume.empathicVoice.ChatGroupsGetChatGroupRequest} request
|
|
31
35
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
36
|
*
|
|
33
37
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
34
38
|
*
|
|
35
39
|
* @example
|
|
36
|
-
* await client.empathicVoice.chatGroups.getChatGroup("
|
|
40
|
+
* await client.empathicVoice.chatGroups.getChatGroup("your-chat-group-id", {
|
|
37
41
|
* pageNumber: 0,
|
|
38
42
|
* pageSize: 1,
|
|
39
43
|
* ascendingOrder: true
|
|
@@ -42,14 +46,16 @@ export declare class ChatGroupsClient {
|
|
|
42
46
|
getChatGroup(id: string, request?: Hume.empathicVoice.ChatGroupsGetChatGroupRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedChats>;
|
|
43
47
|
private __getChatGroup;
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
50
|
+
*
|
|
51
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
46
52
|
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
47
53
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
54
|
*
|
|
49
55
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
50
56
|
*
|
|
51
57
|
* @example
|
|
52
|
-
* await client.empathicVoice.chatGroups.getAudio("
|
|
58
|
+
* await client.empathicVoice.chatGroups.getAudio("your-chat-group-id", {
|
|
53
59
|
* pageNumber: 0,
|
|
54
60
|
* pageSize: 10,
|
|
55
61
|
* ascendingOrder: true
|
|
@@ -58,14 +64,16 @@ export declare class ChatGroupsClient {
|
|
|
58
64
|
getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroupsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
|
|
59
65
|
private __getAudio;
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
67
|
+
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
68
|
+
*
|
|
69
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
62
70
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
|
|
63
71
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
72
|
*
|
|
65
73
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
66
74
|
*
|
|
67
75
|
* @example
|
|
68
|
-
* await client.empathicVoice.chatGroups.listChatGroupEvents("
|
|
76
|
+
* await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", {
|
|
69
77
|
* pageNumber: 0,
|
|
70
78
|
* pageSize: 3,
|
|
71
79
|
* ascendingOrder: true
|
|
@@ -57,6 +57,8 @@ class ChatGroupsClient {
|
|
|
57
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
+
* Fetches a paginated list of **Chat Groups**.
|
|
61
|
+
*
|
|
60
62
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
|
|
61
63
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
64
|
*
|
|
@@ -67,7 +69,7 @@ class ChatGroupsClient {
|
|
|
67
69
|
* pageNumber: 0,
|
|
68
70
|
* pageSize: 1,
|
|
69
71
|
* ascendingOrder: true,
|
|
70
|
-
* configId: "
|
|
72
|
+
* configId: "your-config-id"
|
|
71
73
|
* })
|
|
72
74
|
*/
|
|
73
75
|
listChatGroups() {
|
|
@@ -142,14 +144,16 @@ class ChatGroupsClient {
|
|
|
142
144
|
});
|
|
143
145
|
}
|
|
144
146
|
/**
|
|
145
|
-
*
|
|
147
|
+
* Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
146
150
|
* @param {Hume.empathicVoice.ChatGroupsGetChatGroupRequest} request
|
|
147
151
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
152
|
*
|
|
149
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
150
154
|
*
|
|
151
155
|
* @example
|
|
152
|
-
* await client.empathicVoice.chatGroups.getChatGroup("
|
|
156
|
+
* await client.empathicVoice.chatGroups.getChatGroup("your-chat-group-id", {
|
|
153
157
|
* pageNumber: 0,
|
|
154
158
|
* pageSize: 1,
|
|
155
159
|
* ascendingOrder: true
|
|
@@ -215,14 +219,16 @@ class ChatGroupsClient {
|
|
|
215
219
|
});
|
|
216
220
|
}
|
|
217
221
|
/**
|
|
218
|
-
*
|
|
222
|
+
* Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
223
|
+
*
|
|
224
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
219
225
|
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
220
226
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
227
|
*
|
|
222
228
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
223
229
|
*
|
|
224
230
|
* @example
|
|
225
|
-
* await client.empathicVoice.chatGroups.getAudio("
|
|
231
|
+
* await client.empathicVoice.chatGroups.getAudio("your-chat-group-id", {
|
|
226
232
|
* pageNumber: 0,
|
|
227
233
|
* pageSize: 10,
|
|
228
234
|
* ascendingOrder: true
|
|
@@ -287,14 +293,16 @@ class ChatGroupsClient {
|
|
|
287
293
|
});
|
|
288
294
|
}
|
|
289
295
|
/**
|
|
290
|
-
*
|
|
296
|
+
* Fetches a paginated list of **Chat** events associated with a **Chat Group**.
|
|
297
|
+
*
|
|
298
|
+
* @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
|
|
291
299
|
* @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
|
|
292
300
|
* @param {ChatGroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
301
|
*
|
|
294
302
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
295
303
|
*
|
|
296
304
|
* @example
|
|
297
|
-
* await client.empathicVoice.chatGroups.listChatGroupEvents("
|
|
305
|
+
* await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", {
|
|
298
306
|
* pageNumber: 0,
|
|
299
307
|
* pageSize: 3,
|
|
300
308
|
* ascendingOrder: true
|
|
@@ -19,6 +19,6 @@ export interface ChatGroupsGetAudioRequest {
|
|
|
19
19
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
20
20
|
*/
|
|
21
21
|
pageSize?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -21,6 +21,6 @@ export interface ChatGroupsGetChatGroupRequest {
|
|
|
21
21
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
22
22
|
*/
|
|
23
23
|
pageNumber?: number;
|
|
24
|
-
/**
|
|
24
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
25
25
|
ascendingOrder?: boolean;
|
|
26
26
|
}
|
|
@@ -19,6 +19,6 @@ export interface ChatGroupsListChatGroupEventsRequest {
|
|
|
19
19
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
20
20
|
*/
|
|
21
21
|
pageNumber?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* pageNumber: 0,
|
|
5
5
|
* pageSize: 1,
|
|
6
6
|
* ascendingOrder: true,
|
|
7
|
-
* configId: "
|
|
7
|
+
* configId: "your-config-id"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface ChatGroupsListChatGroupsRequest {
|
|
@@ -20,8 +20,12 @@ export interface ChatGroupsListChatGroupsRequest {
|
|
|
20
20
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
21
21
|
*/
|
|
22
22
|
pageSize?: number;
|
|
23
|
-
/**
|
|
23
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
24
24
|
ascendingOrder?: boolean;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier for an EVI configuration.
|
|
27
|
+
*
|
|
28
|
+
* Filter Chat Groups to only include Chats that used this `config_id` in their most recent Chat.
|
|
29
|
+
*/
|
|
26
30
|
configId?: string;
|
|
27
31
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatGroupsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatGroupsClient", { enumerable: true, get: function () { return Client_js_1.ChatGroupsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,6 +11,8 @@ export declare class ChatsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ChatsClient.Options>;
|
|
12
12
|
constructor(options?: ChatsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Fetches a paginated list of **Chats**.
|
|
15
|
+
*
|
|
14
16
|
* @param {Hume.empathicVoice.ChatsListChatsRequest} request
|
|
15
17
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
@@ -25,14 +27,16 @@ export declare class ChatsClient {
|
|
|
25
27
|
*/
|
|
26
28
|
listChats(request?: Hume.empathicVoice.ChatsListChatsRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChat, Hume.empathicVoice.ReturnPagedChats>>;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* Fetches a paginated list of **Chat** events.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
29
33
|
* @param {Hume.empathicVoice.ChatsListChatEventsRequest} request
|
|
30
34
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
35
|
*
|
|
32
36
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
33
37
|
*
|
|
34
38
|
* @example
|
|
35
|
-
* await client.empathicVoice.chats.listChatEvents("
|
|
39
|
+
* await client.empathicVoice.chats.listChatEvents("your-chat-id", {
|
|
36
40
|
* pageNumber: 0,
|
|
37
41
|
* pageSize: 3,
|
|
38
42
|
* ascendingOrder: true
|
|
@@ -40,13 +44,15 @@ export declare class ChatsClient {
|
|
|
40
44
|
*/
|
|
41
45
|
listChatEvents(id: string, request?: Hume.empathicVoice.ChatsListChatEventsRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatEvent, Hume.empathicVoice.ReturnChatPagedEvents>>;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
48
|
+
*
|
|
49
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
44
50
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
51
|
*
|
|
46
52
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
47
53
|
*
|
|
48
54
|
* @example
|
|
49
|
-
* await client.empathicVoice.chats.getAudio("
|
|
55
|
+
* await client.empathicVoice.chats.getAudio("your-chat-id")
|
|
50
56
|
*/
|
|
51
57
|
getAudio(id: string, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatAudioReconstruction>;
|
|
52
58
|
private __getAudio;
|
|
@@ -57,6 +57,8 @@ class ChatsClient {
|
|
|
57
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
+
* Fetches a paginated list of **Chats**.
|
|
61
|
+
*
|
|
60
62
|
* @param {Hume.empathicVoice.ChatsListChatsRequest} request
|
|
61
63
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
64
|
*
|
|
@@ -142,14 +144,16 @@ class ChatsClient {
|
|
|
142
144
|
});
|
|
143
145
|
}
|
|
144
146
|
/**
|
|
145
|
-
*
|
|
147
|
+
* Fetches a paginated list of **Chat** events.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
146
150
|
* @param {Hume.empathicVoice.ChatsListChatEventsRequest} request
|
|
147
151
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
152
|
*
|
|
149
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
150
154
|
*
|
|
151
155
|
* @example
|
|
152
|
-
* await client.empathicVoice.chats.listChatEvents("
|
|
156
|
+
* await client.empathicVoice.chats.listChatEvents("your-chat-id", {
|
|
153
157
|
* pageNumber: 0,
|
|
154
158
|
* pageSize: 3,
|
|
155
159
|
* ascendingOrder: true
|
|
@@ -226,13 +230,15 @@ class ChatsClient {
|
|
|
226
230
|
});
|
|
227
231
|
}
|
|
228
232
|
/**
|
|
229
|
-
*
|
|
233
|
+
* Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
|
|
234
|
+
*
|
|
235
|
+
* @param {string} id - Identifier for a Chat. Formatted as a UUID.
|
|
230
236
|
* @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
231
237
|
*
|
|
232
238
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
233
239
|
*
|
|
234
240
|
* @example
|
|
235
|
-
* await client.empathicVoice.chats.getAudio("
|
|
241
|
+
* await client.empathicVoice.chats.getAudio("your-chat-id")
|
|
236
242
|
*/
|
|
237
243
|
getAudio(id, requestOptions) {
|
|
238
244
|
return core.HttpResponsePromise.fromPromise(this.__getAudio(id, requestOptions));
|
|
@@ -19,6 +19,6 @@ export interface ChatsListChatEventsRequest {
|
|
|
19
19
|
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
20
20
|
*/
|
|
21
21
|
pageNumber?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
}
|
|
@@ -19,7 +19,7 @@ export interface ChatsListChatsRequest {
|
|
|
19
19
|
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
20
20
|
*/
|
|
21
21
|
pageSize?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true. */
|
|
23
23
|
ascendingOrder?: boolean;
|
|
24
24
|
/** Filter to only include chats that used this config. */
|
|
25
25
|
configId?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatsClient", { enumerable: true, get: function () { return Client_js_1.ChatsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|