mavenagi 1.2.20 → 1.2.22
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/Client.d.ts +6 -6
- package/Client.js +32 -32
- package/api/resources/commons/types/BaseAttachment.d.ts +1 -0
- package/api/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/api/resources/conversation/client/Client.d.ts +0 -17
- package/api/resources/conversation/client/Client.js +0 -108
- package/api/resources/conversation/types/index.d.ts +0 -2
- package/api/resources/conversation/types/index.js +0 -2
- package/api/resources/inbox/client/Client.d.ts +18 -0
- package/api/resources/inbox/client/Client.js +98 -0
- package/api/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +12 -0
- package/api/resources/inbox/client/requests/index.d.ts +1 -0
- package/api/resources/inbox/types/InboxFilter.d.ts +2 -0
- package/api/resources/index.d.ts +4 -4
- package/api/resources/index.js +5 -5
- package/api/resources/segments/types/SegmentFilter.d.ts +21 -0
- package/api/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/api/resources/segments/types/SegmentResponse.d.ts +3 -0
- package/api/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
- package/api/resources/segments/types/index.d.ts +1 -0
- package/api/resources/segments/types/index.js +1 -0
- package/api/resources/voice/client/Client.d.ts +38 -0
- package/api/resources/{auth → voice}/client/Client.js +19 -14
- package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +17 -0
- package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -0
- package/api/resources/voice/types/VoiceTokenType.d.ts +5 -0
- package/api/resources/voice/types/VoiceTokenType.js +8 -0
- package/api/resources/voice/types/index.d.ts +3 -0
- package/api/resources/{auth → voice}/types/index.js +3 -2
- package/api/resources/{websockets → voiceConversations}/client/Client.d.ts +6 -6
- package/api/resources/{websockets → voiceConversations}/client/Client.js +5 -5
- package/api/resources/{websockets → voiceConversations}/client/Socket.d.ts +6 -6
- package/api/resources/{websockets → voiceConversations}/client/Socket.js +6 -6
- package/{dist/api/resources/websockets → api/resources/voiceConversations}/types/AgentAudioChunk.d.ts +1 -1
- package/{dist/api/resources/websockets → api/resources/voiceConversations}/types/Config.d.ts +2 -2
- package/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +1 -1
- package/dist/Client.d.ts +6 -6
- package/dist/Client.js +32 -32
- package/dist/api/resources/commons/types/BaseAttachment.d.ts +1 -0
- package/dist/api/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/dist/api/resources/conversation/client/Client.d.ts +0 -17
- package/dist/api/resources/conversation/client/Client.js +0 -108
- package/dist/api/resources/conversation/types/index.d.ts +0 -2
- package/dist/api/resources/conversation/types/index.js +0 -2
- package/dist/api/resources/inbox/client/Client.d.ts +18 -0
- package/dist/api/resources/inbox/client/Client.js +98 -0
- package/dist/api/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +12 -0
- package/dist/api/resources/inbox/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inbox/types/InboxFilter.d.ts +2 -0
- package/dist/api/resources/index.d.ts +4 -4
- package/dist/api/resources/index.js +5 -5
- package/dist/api/resources/segments/types/SegmentFilter.d.ts +21 -0
- package/dist/api/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/dist/api/resources/segments/types/SegmentResponse.d.ts +3 -0
- package/dist/api/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
- package/dist/api/resources/segments/types/index.d.ts +1 -0
- package/dist/api/resources/segments/types/index.js +1 -0
- package/dist/api/resources/voice/client/Client.d.ts +38 -0
- package/dist/api/resources/{auth → voice}/client/Client.js +19 -14
- package/dist/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +17 -0
- package/dist/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -0
- package/dist/api/resources/voice/types/VoiceTokenType.d.ts +5 -0
- package/dist/api/resources/voice/types/VoiceTokenType.js +8 -0
- package/dist/api/resources/voice/types/index.d.ts +3 -0
- package/dist/api/resources/voice/types/index.js +19 -0
- package/dist/api/resources/{websockets → voiceConversations}/client/Client.d.ts +6 -6
- package/dist/api/resources/{websockets → voiceConversations}/client/Client.js +5 -5
- package/dist/api/resources/{websockets → voiceConversations}/client/Socket.d.ts +6 -6
- package/dist/api/resources/{websockets → voiceConversations}/client/Socket.js +6 -6
- package/{api/resources/websockets → dist/api/resources/voiceConversations}/types/AgentAudioChunk.d.ts +1 -1
- package/{api/resources/websockets → dist/api/resources/voiceConversations}/types/Config.d.ts +2 -2
- package/dist/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +1 -1
- package/dist/serialization/resources/commons/types/InboxItemBase.d.ts +1 -0
- package/dist/serialization/resources/commons/types/InboxItemBase.js +1 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
- package/dist/serialization/resources/conversation/types/index.js +0 -2
- package/dist/serialization/resources/inbox/client/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/client/index.js +17 -0
- package/dist/serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +10 -0
- package/dist/serialization/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +5 -4
- package/dist/serialization/resources/inbox/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/client/requests/index.js +5 -0
- package/dist/serialization/resources/inbox/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/index.js +1 -0
- package/dist/serialization/resources/inbox/types/InboxFilter.d.ts +1 -0
- package/dist/serialization/resources/inbox/types/InboxFilter.js +1 -0
- package/dist/serialization/resources/index.d.ts +6 -5
- package/dist/serialization/resources/index.js +7 -6
- package/dist/serialization/resources/segments/types/SegmentFilter.d.ts +12 -0
- package/dist/serialization/resources/segments/types/SegmentFilter.js +44 -0
- package/dist/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/dist/serialization/resources/segments/types/SegmentRequest.js +2 -0
- package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +1 -0
- package/dist/serialization/resources/segments/types/SegmentResponse.js +1 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -0
- package/dist/serialization/resources/segments/types/index.d.ts +1 -0
- package/dist/serialization/resources/segments/types/index.js +1 -0
- package/dist/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +12 -0
- package/dist/serialization/resources/voice/types/VoiceSessionTokenRequest.js +44 -0
- package/dist/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +13 -0
- package/dist/serialization/resources/voice/types/VoiceSessionTokenResponse.js +45 -0
- package/dist/serialization/resources/voice/types/VoiceTokenType.d.ts +7 -0
- package/dist/serialization/resources/voice/types/VoiceTokenType.js +39 -0
- package/dist/serialization/resources/voice/types/index.d.ts +3 -0
- package/dist/serialization/resources/voice/types/index.js +19 -0
- package/{serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts → dist/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts} +2 -2
- package/dist/serialization/resources/{websockets/client/socket/WebsocketsSocketResponse.js → voiceConversations/client/socket/VoiceConversationsSocketResponse.js} +2 -2
- package/dist/serialization/resources/voiceConversations/client/socket/index.d.ts +1 -0
- package/dist/serialization/resources/voiceConversations/client/socket/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +146 -163
- package/serialization/resources/commons/types/InboxItemBase.d.ts +1 -0
- package/serialization/resources/commons/types/InboxItemBase.js +1 -0
- package/serialization/resources/conversation/types/index.d.ts +0 -2
- package/serialization/resources/conversation/types/index.js +0 -2
- package/serialization/resources/inbox/client/index.d.ts +1 -0
- package/serialization/resources/inbox/client/index.js +17 -0
- package/serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +10 -0
- package/{dist/serialization/resources/auth/types/SessionTokenResponse.js → serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.js} +5 -5
- package/serialization/resources/inbox/client/requests/index.d.ts +1 -0
- package/serialization/resources/inbox/client/requests/index.js +5 -0
- package/serialization/resources/inbox/index.d.ts +1 -0
- package/serialization/resources/inbox/index.js +1 -0
- package/serialization/resources/inbox/types/InboxFilter.d.ts +1 -0
- package/serialization/resources/inbox/types/InboxFilter.js +1 -0
- package/serialization/resources/index.d.ts +6 -5
- package/serialization/resources/index.js +7 -6
- package/serialization/resources/segments/types/SegmentFilter.d.ts +12 -0
- package/serialization/resources/segments/types/SegmentFilter.js +44 -0
- package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/serialization/resources/segments/types/SegmentRequest.js +2 -0
- package/serialization/resources/segments/types/SegmentResponse.d.ts +1 -0
- package/serialization/resources/segments/types/SegmentResponse.js +1 -0
- package/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
- package/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -0
- package/serialization/resources/segments/types/index.d.ts +1 -0
- package/serialization/resources/segments/types/index.js +1 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +12 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +44 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +13 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +45 -0
- package/serialization/resources/voice/types/VoiceTokenType.d.ts +7 -0
- package/serialization/resources/voice/types/VoiceTokenType.js +39 -0
- package/serialization/resources/voice/types/index.d.ts +3 -0
- package/serialization/resources/voice/types/index.js +19 -0
- package/{dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts → serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts} +2 -2
- package/serialization/resources/{websockets/client/socket/WebsocketsSocketResponse.js → voiceConversations/client/socket/VoiceConversationsSocketResponse.js} +2 -2
- package/serialization/resources/voiceConversations/client/socket/index.d.ts +1 -0
- package/serialization/resources/voiceConversations/client/socket/index.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/auth/client/Client.d.ts +0 -33
- package/api/resources/auth/types/SessionTokenRequest.d.ts +0 -3
- package/api/resources/auth/types/SessionTokenResponse.d.ts +0 -6
- package/api/resources/auth/types/index.d.ts +0 -2
- package/api/resources/conversation/types/AskObjectRequest.d.ts +0 -5
- package/api/resources/conversation/types/ObjectStreamResponse.d.ts +0 -13
- package/dist/api/resources/auth/client/Client.d.ts +0 -33
- package/dist/api/resources/auth/types/SessionTokenRequest.d.ts +0 -3
- package/dist/api/resources/auth/types/SessionTokenResponse.d.ts +0 -6
- package/dist/api/resources/auth/types/index.d.ts +0 -2
- package/dist/api/resources/auth/types/index.js +0 -18
- package/dist/api/resources/conversation/types/AskObjectRequest.d.ts +0 -5
- package/dist/api/resources/conversation/types/ObjectStreamResponse.d.ts +0 -13
- package/dist/serialization/resources/auth/types/SessionTokenRequest.d.ts +0 -9
- package/dist/serialization/resources/auth/types/SessionTokenResponse.d.ts +0 -10
- package/dist/serialization/resources/auth/types/index.d.ts +0 -2
- package/dist/serialization/resources/auth/types/index.js +0 -18
- package/dist/serialization/resources/conversation/types/AskObjectRequest.d.ts +0 -10
- package/dist/serialization/resources/conversation/types/AskObjectRequest.js +0 -44
- package/dist/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +0 -19
- package/dist/serialization/resources/conversation/types/ObjectStreamResponse.js +0 -51
- package/dist/serialization/resources/websockets/client/socket/index.d.ts +0 -1
- package/dist/serialization/resources/websockets/client/socket/index.js +0 -5
- package/serialization/resources/auth/types/SessionTokenRequest.d.ts +0 -9
- package/serialization/resources/auth/types/SessionTokenRequest.js +0 -41
- package/serialization/resources/auth/types/SessionTokenResponse.d.ts +0 -10
- package/serialization/resources/auth/types/SessionTokenResponse.js +0 -42
- package/serialization/resources/auth/types/index.d.ts +0 -2
- package/serialization/resources/auth/types/index.js +0 -18
- package/serialization/resources/conversation/types/AskObjectRequest.d.ts +0 -10
- package/serialization/resources/conversation/types/AskObjectRequest.js +0 -44
- package/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +0 -19
- package/serialization/resources/conversation/types/ObjectStreamResponse.js +0 -51
- package/serialization/resources/websockets/client/socket/index.d.ts +0 -1
- package/serialization/resources/websockets/client/socket/index.js +0 -5
- /package/api/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +0 -0
- /package/api/resources/{auth/types/SessionTokenResponse.js → segments/types/SegmentFilter.js} +0 -0
- /package/api/resources/{auth → voice}/client/index.d.ts +0 -0
- /package/api/resources/{auth → voice}/client/index.js +0 -0
- /package/api/resources/{auth → voice}/index.d.ts +0 -0
- /package/api/resources/{auth → voice}/index.js +0 -0
- /package/api/resources/{conversation/types/AskObjectRequest.js → voice/types/VoiceSessionTokenRequest.js} +0 -0
- /package/api/resources/{conversation/types/ObjectStreamResponse.js → voice/types/VoiceSessionTokenResponse.js} +0 -0
- /package/api/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/client/index.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/index.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/index.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/Config.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
- /package/api/resources/{websockets → voiceConversations}/types/index.js +0 -0
- /package/dist/api/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +0 -0
- /package/dist/api/resources/{auth/types/SessionTokenResponse.js → segments/types/SegmentFilter.js} +0 -0
- /package/dist/api/resources/{auth → voice}/client/index.d.ts +0 -0
- /package/dist/api/resources/{auth → voice}/client/index.js +0 -0
- /package/dist/api/resources/{auth → voice}/index.d.ts +0 -0
- /package/dist/api/resources/{auth → voice}/index.js +0 -0
- /package/dist/api/resources/{conversation/types/AskObjectRequest.js → voice/types/VoiceSessionTokenRequest.js} +0 -0
- /package/dist/api/resources/{conversation/types/ObjectStreamResponse.js → voice/types/VoiceSessionTokenResponse.js} +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/client/index.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/index.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/index.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/Config.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
- /package/dist/api/resources/{websockets → voiceConversations}/types/index.js +0 -0
- /package/dist/serialization/resources/{auth → voice}/index.d.ts +0 -0
- /package/dist/serialization/resources/{auth → voice}/index.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/client/index.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/index.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/index.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/Config.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/Config.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
- /package/dist/serialization/resources/{websockets → voiceConversations}/types/index.js +0 -0
- /package/serialization/resources/{auth → voice}/index.d.ts +0 -0
- /package/serialization/resources/{auth → voice}/index.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/client/index.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/index.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/index.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/Config.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/Config.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
- /package/serialization/resources/{websockets → voiceConversations}/types/index.js +0 -0
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./SegmentBase"), exports);
|
|
18
18
|
__exportStar(require("./SegmentField"), exports);
|
|
19
|
+
__exportStar(require("./SegmentFilter"), exports);
|
|
19
20
|
__exportStar(require("./SegmentPatchRequest"), exports);
|
|
20
21
|
__exportStar(require("./SegmentRequest"), exports);
|
|
21
22
|
__exportStar(require("./SegmentResponse"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as MavenAGI from "../../../index";
|
|
4
|
+
export declare namespace Voice {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class Voice {
|
|
11
|
+
protected readonly _options: Voice.Options;
|
|
12
|
+
constructor(_options: Voice.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Creates a short-lived session token for authenticating voice connections.
|
|
15
|
+
*
|
|
16
|
+
* Supports two token types:
|
|
17
|
+
* - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
|
|
18
|
+
* - **websocket**: An RS256 JWT for direct WebSocket connections to /v1/voice/conversations
|
|
19
|
+
*
|
|
20
|
+
* Session tokens are required before establishing any voice connection.
|
|
21
|
+
*
|
|
22
|
+
* @param {MavenAGI.VoiceSessionTokenRequest} request
|
|
23
|
+
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
26
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
27
|
+
* @throws {@link MavenAGI.ServerError}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* await client.voice.sessionToken({
|
|
31
|
+
* appUserId: "appUserId",
|
|
32
|
+
* type: "webrtc"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
sessionToken(request: MavenAGI.VoiceSessionTokenRequest, requestOptions?: Voice.RequestOptions): core.HttpResponsePromise<MavenAGI.VoiceSessionTokenResponse>;
|
|
36
|
+
private __sessionToken;
|
|
37
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
38
|
+
}
|
|
@@ -43,32 +43,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.Voice = void 0;
|
|
47
47
|
const core = __importStar(require("../../../../core"));
|
|
48
48
|
const headers_1 = require("../../../../core/headers");
|
|
49
49
|
const environments = __importStar(require("../../../../environments"));
|
|
50
50
|
const errors = __importStar(require("../../../../errors/index"));
|
|
51
51
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
52
52
|
const MavenAGI = __importStar(require("../../../index"));
|
|
53
|
-
class
|
|
53
|
+
class Voice {
|
|
54
54
|
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Creates a short-lived session token
|
|
59
|
-
* WebSocket connections. Session tokens are useful for client-side applications where
|
|
60
|
-
* you don’t want to expose your API key.
|
|
58
|
+
* Creates a short-lived session token for authenticating voice connections.
|
|
61
59
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
60
|
+
* Supports two token types:
|
|
61
|
+
* - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
|
|
62
|
+
* - **websocket**: An RS256 JWT for direct WebSocket connections to /v1/voice/conversations
|
|
63
|
+
*
|
|
64
|
+
* Session tokens are required before establishing any voice connection.
|
|
65
|
+
*
|
|
66
|
+
* @param {MavenAGI.VoiceSessionTokenRequest} request
|
|
67
|
+
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
68
|
*
|
|
65
69
|
* @throws {@link MavenAGI.NotFoundError}
|
|
66
70
|
* @throws {@link MavenAGI.BadRequestError}
|
|
67
71
|
* @throws {@link MavenAGI.ServerError}
|
|
68
72
|
*
|
|
69
73
|
* @example
|
|
70
|
-
* await client.
|
|
71
|
-
*
|
|
74
|
+
* await client.voice.sessionToken({
|
|
75
|
+
* appUserId: "appUserId",
|
|
76
|
+
* type: "webrtc"
|
|
72
77
|
* })
|
|
73
78
|
*/
|
|
74
79
|
sessionToken(request, requestOptions) {
|
|
@@ -83,20 +88,20 @@ class Auth {
|
|
|
83
88
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
84
89
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
90
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
86
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/
|
|
91
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/voice/session-token"),
|
|
87
92
|
method: "POST",
|
|
88
93
|
headers: _headers,
|
|
89
94
|
contentType: "application/json",
|
|
90
95
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
91
96
|
requestType: "json",
|
|
92
|
-
body: serializers.
|
|
97
|
+
body: serializers.VoiceSessionTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
93
98
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
94
99
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
95
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
96
101
|
});
|
|
97
102
|
if (_response.ok) {
|
|
98
103
|
return {
|
|
99
|
-
data: serializers.
|
|
104
|
+
data: serializers.VoiceSessionTokenResponse.parseOrThrow(_response.body, {
|
|
100
105
|
unrecognizedObjectKeys: "passthrough",
|
|
101
106
|
allowUnrecognizedUnionMembers: true,
|
|
102
107
|
allowUnrecognizedEnumValues: true,
|
|
@@ -144,7 +149,7 @@ class Auth {
|
|
|
144
149
|
rawResponse: _response.rawResponse,
|
|
145
150
|
});
|
|
146
151
|
case "timeout":
|
|
147
|
-
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/
|
|
152
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/voice/session-token.");
|
|
148
153
|
case "unknown":
|
|
149
154
|
throw new errors.MavenAGIError({
|
|
150
155
|
message: _response.error.errorMessage,
|
|
@@ -168,4 +173,4 @@ class Auth {
|
|
|
168
173
|
});
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
|
-
exports.
|
|
176
|
+
exports.Voice = Voice;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface VoiceSessionTokenRequest {
|
|
3
|
+
/** The end user identity for the voice session. */
|
|
4
|
+
appUserId: string;
|
|
5
|
+
/**
|
|
6
|
+
* The type of session token to generate.
|
|
7
|
+
* Use "webrtc" for browser-based calls via Twilio, or "websocket" for direct WebSocket connections.
|
|
8
|
+
*/
|
|
9
|
+
type: MavenAGI.VoiceTokenType;
|
|
10
|
+
/**
|
|
11
|
+
* Arbitrary key-value metadata to associate with this session (e.g., conversationId, topic).
|
|
12
|
+
* For WebRTC tokens, this data is stored server-side and referenced by a secure ID
|
|
13
|
+
* encoded in the token identity, ensuring it cannot be tampered with by the client.
|
|
14
|
+
* For WebSocket tokens, clients can also pass data directly in the Config message.
|
|
15
|
+
*/
|
|
16
|
+
customData?: Record<string, string>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface VoiceSessionTokenResponse {
|
|
3
|
+
/** Opaque JWT session token. Pass this in the Authorization header when connecting. */
|
|
4
|
+
token: string;
|
|
5
|
+
/** The identity string associated with this token (echoes appUserId). */
|
|
6
|
+
identity: string;
|
|
7
|
+
/** The type of token that was generated. */
|
|
8
|
+
type: MavenAGI.VoiceTokenType;
|
|
9
|
+
/** Time in seconds until the token expires. */
|
|
10
|
+
expiresIn: number;
|
|
11
|
+
}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./VoiceSessionTokenRequest"), exports);
|
|
18
|
+
__exportStar(require("./VoiceSessionTokenResponse"), exports);
|
|
19
|
+
__exportStar(require("./VoiceTokenType"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../BaseClient";
|
|
2
|
-
import {
|
|
3
|
-
export declare namespace
|
|
2
|
+
import { VoiceConversationsSocket } from "./Socket";
|
|
3
|
+
export declare namespace VoiceConversations {
|
|
4
4
|
interface Options extends BaseClientOptions {
|
|
5
5
|
}
|
|
6
6
|
interface ConnectArgs {
|
|
@@ -14,9 +14,9 @@ export declare namespace Websockets {
|
|
|
14
14
|
reconnectAttempts?: number;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
18
|
-
protected readonly _options:
|
|
19
|
-
constructor(_options:
|
|
20
|
-
connect(args:
|
|
17
|
+
export declare class VoiceConversations {
|
|
18
|
+
protected readonly _options: VoiceConversations.Options;
|
|
19
|
+
constructor(_options: VoiceConversations.Options);
|
|
20
|
+
connect(args: VoiceConversations.ConnectArgs): Promise<VoiceConversationsSocket>;
|
|
21
21
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
22
22
|
}
|
|
@@ -43,12 +43,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.VoiceConversations = void 0;
|
|
47
47
|
const core = __importStar(require("../../../../core"));
|
|
48
48
|
const headers_1 = require("../../../../core/headers");
|
|
49
49
|
const environments = __importStar(require("../../../../environments"));
|
|
50
50
|
const Socket_1 = require("./Socket");
|
|
51
|
-
class
|
|
51
|
+
class VoiceConversations {
|
|
52
52
|
constructor(_options) {
|
|
53
53
|
this._options = _options;
|
|
54
54
|
}
|
|
@@ -62,13 +62,13 @@ class Websockets {
|
|
|
62
62
|
}
|
|
63
63
|
const _headers = (0, headers_1.mergeHeaders)((0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: args.Authorization }), headers);
|
|
64
64
|
const socket = new core.ReconnectingWebSocket({
|
|
65
|
-
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/
|
|
65
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/voice/conversations"),
|
|
66
66
|
protocols: [],
|
|
67
67
|
queryParameters: _queryParams,
|
|
68
68
|
headers: _headers,
|
|
69
69
|
options: { debug: debug !== null && debug !== void 0 ? debug : false, maxRetries: reconnectAttempts !== null && reconnectAttempts !== void 0 ? reconnectAttempts : 30 },
|
|
70
70
|
});
|
|
71
|
-
return new Socket_1.
|
|
71
|
+
return new Socket_1.VoiceConversationsSocket({ socket });
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
_getAuthorizationHeader() {
|
|
@@ -86,4 +86,4 @@ class Websockets {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
exports.
|
|
89
|
+
exports.VoiceConversations = VoiceConversations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as core from "../../../../core";
|
|
2
2
|
import type * as MavenAGI from "../../../index";
|
|
3
|
-
export declare namespace
|
|
3
|
+
export declare namespace VoiceConversationsSocket {
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
@@ -12,14 +12,14 @@ export declare namespace WebsocketsSocket {
|
|
|
12
12
|
error?: (error: Error) => void;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class VoiceConversationsSocket {
|
|
16
16
|
readonly socket: core.ReconnectingWebSocket;
|
|
17
|
-
protected readonly eventHandlers:
|
|
17
|
+
protected readonly eventHandlers: VoiceConversationsSocket.EventHandlers;
|
|
18
18
|
private handleOpen;
|
|
19
19
|
private handleMessage;
|
|
20
20
|
private handleClose;
|
|
21
21
|
private handleError;
|
|
22
|
-
constructor(args:
|
|
22
|
+
constructor(args: VoiceConversationsSocket.Args);
|
|
23
23
|
/** The current state of the connection; this is one of the readyState constants. */
|
|
24
24
|
get readyState(): number;
|
|
25
25
|
/**
|
|
@@ -32,11 +32,11 @@ export declare class WebsocketsSocket {
|
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
on<T extends keyof
|
|
35
|
+
on<T extends keyof VoiceConversationsSocket.EventHandlers>(event: T, callback: VoiceConversationsSocket.EventHandlers[T]): void;
|
|
36
36
|
sendConfig(message: MavenAGI.Config): void;
|
|
37
37
|
sendUserAudioChunk(message: MavenAGI.UserAudioChunk): void;
|
|
38
38
|
/** Connect to the websocket and register event handlers. */
|
|
39
|
-
connect():
|
|
39
|
+
connect(): VoiceConversationsSocket;
|
|
40
40
|
/** Close the websocket and unregister event handlers. */
|
|
41
41
|
close(): void;
|
|
42
42
|
/** Returns a promise that resolves when the websocket is open. */
|
|
@@ -43,13 +43,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.VoiceConversationsSocket = void 0;
|
|
47
47
|
const core = __importStar(require("../../../../core"));
|
|
48
48
|
const json_1 = require("../../../../core/json");
|
|
49
49
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
50
|
-
const Config_1 = require("../../../../serialization/resources/
|
|
51
|
-
const UserAudioChunk_1 = require("../../../../serialization/resources/
|
|
52
|
-
class
|
|
50
|
+
const Config_1 = require("../../../../serialization/resources/voiceConversations/types/Config");
|
|
51
|
+
const UserAudioChunk_1 = require("../../../../serialization/resources/voiceConversations/types/UserAudioChunk");
|
|
52
|
+
class VoiceConversationsSocket {
|
|
53
53
|
constructor(args) {
|
|
54
54
|
this.eventHandlers = {};
|
|
55
55
|
this.handleOpen = () => {
|
|
@@ -59,7 +59,7 @@ class WebsocketsSocket {
|
|
|
59
59
|
this.handleMessage = (event) => {
|
|
60
60
|
var _a, _b, _c, _d;
|
|
61
61
|
const data = (0, json_1.fromJson)(event.data);
|
|
62
|
-
const parsedResponse = serializers.
|
|
62
|
+
const parsedResponse = serializers.VoiceConversationsSocketResponse.parse(data, {
|
|
63
63
|
unrecognizedObjectKeys: "passthrough",
|
|
64
64
|
allowUnrecognizedUnionMembers: true,
|
|
65
65
|
allowUnrecognizedEnumValues: true,
|
|
@@ -169,4 +169,4 @@ class WebsocketsSocket {
|
|
|
169
169
|
this.socket.send(payload);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
exports.
|
|
172
|
+
exports.VoiceConversationsSocket = VoiceConversationsSocket;
|
package/{dist/api/resources/websockets → api/resources/voiceConversations}/types/Config.d.ts
RENAMED
|
@@ -4,9 +4,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Config {
|
|
6
6
|
type: "config";
|
|
7
|
-
/** The
|
|
7
|
+
/** The input audio format from the client. */
|
|
8
8
|
inputFormat: MavenAGI.AudioFormat;
|
|
9
|
-
/** The
|
|
9
|
+
/** The output audio format to send to the client. */
|
|
10
10
|
outputFormat: MavenAGI.AudioFormat;
|
|
11
11
|
/** The conversation ID which was created prior to starting this conversation. */
|
|
12
12
|
conversationId: string;
|
package/dist/Client.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Agents } from "./api/resources/agents/client/Client";
|
|
|
3
3
|
import { Analytics } from "./api/resources/analytics/client/Client";
|
|
4
4
|
import { AppSettings } from "./api/resources/appSettings/client/Client";
|
|
5
5
|
import { Assets } from "./api/resources/assets/client/Client";
|
|
6
|
-
import { Auth } from "./api/resources/auth/client/Client";
|
|
7
6
|
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
8
7
|
import { Customers } from "./api/resources/customers/client/Client";
|
|
9
8
|
import { Events } from "./api/resources/events/client/Client";
|
|
@@ -15,7 +14,8 @@ import { Segments } from "./api/resources/segments/client/Client";
|
|
|
15
14
|
import { Translations } from "./api/resources/translations/client/Client";
|
|
16
15
|
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
17
16
|
import { Users } from "./api/resources/users/client/Client";
|
|
18
|
-
import {
|
|
17
|
+
import { Voice } from "./api/resources/voice/client/Client";
|
|
18
|
+
import { VoiceConversations } from "./api/resources/voiceConversations/client/Client";
|
|
19
19
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
20
20
|
export declare namespace MavenAGIClient {
|
|
21
21
|
interface Options extends BaseClientOptions {
|
|
@@ -30,7 +30,6 @@ export declare class MavenAGIClient {
|
|
|
30
30
|
protected _analytics: Analytics | undefined;
|
|
31
31
|
protected _appSettings: AppSettings | undefined;
|
|
32
32
|
protected _assets: Assets | undefined;
|
|
33
|
-
protected _auth: Auth | undefined;
|
|
34
33
|
protected _conversation: Conversation | undefined;
|
|
35
34
|
protected _customers: Customers | undefined;
|
|
36
35
|
protected _events: Events | undefined;
|
|
@@ -42,14 +41,14 @@ export declare class MavenAGIClient {
|
|
|
42
41
|
protected _translations: Translations | undefined;
|
|
43
42
|
protected _triggers: Triggers | undefined;
|
|
44
43
|
protected _users: Users | undefined;
|
|
45
|
-
protected
|
|
44
|
+
protected _voiceConversations: VoiceConversations | undefined;
|
|
45
|
+
protected _voice: Voice | undefined;
|
|
46
46
|
constructor(_options: MavenAGIClient.Options);
|
|
47
47
|
get actions(): Actions;
|
|
48
48
|
get agents(): Agents;
|
|
49
49
|
get analytics(): Analytics;
|
|
50
50
|
get appSettings(): AppSettings;
|
|
51
51
|
get assets(): Assets;
|
|
52
|
-
get auth(): Auth;
|
|
53
52
|
get conversation(): Conversation;
|
|
54
53
|
get customers(): Customers;
|
|
55
54
|
get events(): Events;
|
|
@@ -61,5 +60,6 @@ export declare class MavenAGIClient {
|
|
|
61
60
|
get translations(): Translations;
|
|
62
61
|
get triggers(): Triggers;
|
|
63
62
|
get users(): Users;
|
|
64
|
-
get
|
|
63
|
+
get voiceConversations(): VoiceConversations;
|
|
64
|
+
get voice(): Voice;
|
|
65
65
|
}
|
package/dist/Client.js
CHANGED
|
@@ -40,19 +40,19 @@ const Client_2 = require("./api/resources/agents/client/Client");
|
|
|
40
40
|
const Client_3 = require("./api/resources/analytics/client/Client");
|
|
41
41
|
const Client_4 = require("./api/resources/appSettings/client/Client");
|
|
42
42
|
const Client_5 = require("./api/resources/assets/client/Client");
|
|
43
|
-
const Client_6 = require("./api/resources/
|
|
44
|
-
const Client_7 = require("./api/resources/
|
|
45
|
-
const Client_8 = require("./api/resources/
|
|
46
|
-
const Client_9 = require("./api/resources/
|
|
47
|
-
const Client_10 = require("./api/resources/
|
|
48
|
-
const Client_11 = require("./api/resources/
|
|
49
|
-
const Client_12 = require("./api/resources/
|
|
50
|
-
const Client_13 = require("./api/resources/
|
|
51
|
-
const Client_14 = require("./api/resources/
|
|
52
|
-
const Client_15 = require("./api/resources/
|
|
53
|
-
const Client_16 = require("./api/resources/
|
|
54
|
-
const Client_17 = require("./api/resources/
|
|
55
|
-
const Client_18 = require("./api/resources/
|
|
43
|
+
const Client_6 = require("./api/resources/conversation/client/Client");
|
|
44
|
+
const Client_7 = require("./api/resources/customers/client/Client");
|
|
45
|
+
const Client_8 = require("./api/resources/events/client/Client");
|
|
46
|
+
const Client_9 = require("./api/resources/inbox/client/Client");
|
|
47
|
+
const Client_10 = require("./api/resources/integrations/client/Client");
|
|
48
|
+
const Client_11 = require("./api/resources/knowledge/client/Client");
|
|
49
|
+
const Client_12 = require("./api/resources/organizations/client/Client");
|
|
50
|
+
const Client_13 = require("./api/resources/segments/client/Client");
|
|
51
|
+
const Client_14 = require("./api/resources/translations/client/Client");
|
|
52
|
+
const Client_15 = require("./api/resources/triggers/client/Client");
|
|
53
|
+
const Client_16 = require("./api/resources/users/client/Client");
|
|
54
|
+
const Client_17 = require("./api/resources/voice/client/Client");
|
|
55
|
+
const Client_18 = require("./api/resources/voiceConversations/client/Client");
|
|
56
56
|
const core = __importStar(require("./core"));
|
|
57
57
|
const headers_1 = require("./core/headers");
|
|
58
58
|
class MavenAGIClient {
|
|
@@ -62,8 +62,8 @@ class MavenAGIClient {
|
|
|
62
62
|
"X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "mavenagi",
|
|
65
|
-
"X-Fern-SDK-Version": "1.2.
|
|
66
|
-
"User-Agent": "mavenagi/1.2.
|
|
65
|
+
"X-Fern-SDK-Version": "1.2.22",
|
|
66
|
+
"User-Agent": "mavenagi/1.2.22",
|
|
67
67
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
68
68
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
69
69
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -88,57 +88,57 @@ class MavenAGIClient {
|
|
|
88
88
|
var _a;
|
|
89
89
|
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_5.Assets(this._options)));
|
|
90
90
|
}
|
|
91
|
-
get auth() {
|
|
92
|
-
var _a;
|
|
93
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_6.Auth(this._options)));
|
|
94
|
-
}
|
|
95
91
|
get conversation() {
|
|
96
92
|
var _a;
|
|
97
|
-
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new
|
|
93
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_6.Conversation(this._options)));
|
|
98
94
|
}
|
|
99
95
|
get customers() {
|
|
100
96
|
var _a;
|
|
101
|
-
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new
|
|
97
|
+
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_7.Customers(this._options)));
|
|
102
98
|
}
|
|
103
99
|
get events() {
|
|
104
100
|
var _a;
|
|
105
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
101
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_8.Events(this._options)));
|
|
106
102
|
}
|
|
107
103
|
get inbox() {
|
|
108
104
|
var _a;
|
|
109
|
-
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new
|
|
105
|
+
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_9.Inbox(this._options)));
|
|
110
106
|
}
|
|
111
107
|
get integrations() {
|
|
112
108
|
var _a;
|
|
113
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
109
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_10.Integrations(this._options)));
|
|
114
110
|
}
|
|
115
111
|
get knowledge() {
|
|
116
112
|
var _a;
|
|
117
|
-
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new
|
|
113
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_11.Knowledge(this._options)));
|
|
118
114
|
}
|
|
119
115
|
get organizations() {
|
|
120
116
|
var _a;
|
|
121
|
-
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new
|
|
117
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_12.Organizations(this._options)));
|
|
122
118
|
}
|
|
123
119
|
get segments() {
|
|
124
120
|
var _a;
|
|
125
|
-
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new
|
|
121
|
+
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_13.Segments(this._options)));
|
|
126
122
|
}
|
|
127
123
|
get translations() {
|
|
128
124
|
var _a;
|
|
129
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
125
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_14.Translations(this._options)));
|
|
130
126
|
}
|
|
131
127
|
get triggers() {
|
|
132
128
|
var _a;
|
|
133
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
129
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_15.Triggers(this._options)));
|
|
134
130
|
}
|
|
135
131
|
get users() {
|
|
136
132
|
var _a;
|
|
137
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
133
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_16.Users(this._options)));
|
|
134
|
+
}
|
|
135
|
+
get voiceConversations() {
|
|
136
|
+
var _a;
|
|
137
|
+
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_18.VoiceConversations(this._options)));
|
|
138
138
|
}
|
|
139
|
-
get
|
|
139
|
+
get voice() {
|
|
140
140
|
var _a;
|
|
141
|
-
return ((_a = this.
|
|
141
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.Voice(this._options)));
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
exports.MavenAGIClient = MavenAGIClient;
|
|
@@ -211,23 +211,6 @@ export declare class Conversation {
|
|
|
211
211
|
*/
|
|
212
212
|
askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.StreamResponse>>;
|
|
213
213
|
private __askStream;
|
|
214
|
-
/**
|
|
215
|
-
* Generate a structured object response based on a provided schema and user prompt with a streaming response.
|
|
216
|
-
* The response will be sent as a stream of events containing text, start, and end events.
|
|
217
|
-
* The text portions of stream responses should be concatenated to form the full response text.
|
|
218
|
-
*
|
|
219
|
-
* If the user question and object response already exist, they will be reused and not updated.
|
|
220
|
-
*
|
|
221
|
-
* Concurrency Behavior:
|
|
222
|
-
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
223
|
-
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
224
|
-
*
|
|
225
|
-
* Known Limitations:
|
|
226
|
-
* - Schema enforcement is best-effort and may not guarantee exact conformity.
|
|
227
|
-
* - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
|
|
228
|
-
*/
|
|
229
|
-
askObjectStream(conversationId: string, request: MavenAGI.AskObjectRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.ObjectStreamResponse>>;
|
|
230
|
-
private __askObjectStream;
|
|
231
214
|
/**
|
|
232
215
|
* Uses an LLM flow to categorize the conversation. Experimental.
|
|
233
216
|
*
|