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
package/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/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
|
*
|
|
@@ -829,114 +829,6 @@ class Conversation {
|
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
/**
|
|
833
|
-
* Generate a structured object response based on a provided schema and user prompt with a streaming response.
|
|
834
|
-
* The response will be sent as a stream of events containing text, start, and end events.
|
|
835
|
-
* The text portions of stream responses should be concatenated to form the full response text.
|
|
836
|
-
*
|
|
837
|
-
* If the user question and object response already exist, they will be reused and not updated.
|
|
838
|
-
*
|
|
839
|
-
* Concurrency Behavior:
|
|
840
|
-
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
841
|
-
* - 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.
|
|
842
|
-
*
|
|
843
|
-
* Known Limitations:
|
|
844
|
-
* - Schema enforcement is best-effort and may not guarantee exact conformity.
|
|
845
|
-
* - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
|
|
846
|
-
*/
|
|
847
|
-
askObjectStream(conversationId, request, requestOptions) {
|
|
848
|
-
return core.HttpResponsePromise.fromPromise(this.__askObjectStream(conversationId, request, requestOptions));
|
|
849
|
-
}
|
|
850
|
-
__askObjectStream(conversationId, request, requestOptions) {
|
|
851
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
853
|
-
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
854
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
855
|
-
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
856
|
-
"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,
|
|
857
|
-
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
858
|
-
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
859
|
-
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/conversations/${core.url.encodePathParam(conversationId)}/ask_object_stream`),
|
|
860
|
-
method: "POST",
|
|
861
|
-
headers: _headers,
|
|
862
|
-
contentType: "application/json",
|
|
863
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
864
|
-
requestType: "json",
|
|
865
|
-
body: serializers.AskObjectRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
866
|
-
responseType: "sse",
|
|
867
|
-
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,
|
|
868
|
-
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,
|
|
869
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
870
|
-
});
|
|
871
|
-
if (_response.ok) {
|
|
872
|
-
return {
|
|
873
|
-
data: new core.Stream({
|
|
874
|
-
stream: _response.body,
|
|
875
|
-
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
876
|
-
return serializers.ObjectStreamResponse.parseOrThrow(data, {
|
|
877
|
-
unrecognizedObjectKeys: "passthrough",
|
|
878
|
-
allowUnrecognizedUnionMembers: true,
|
|
879
|
-
allowUnrecognizedEnumValues: true,
|
|
880
|
-
breadcrumbsPrefix: ["response"],
|
|
881
|
-
});
|
|
882
|
-
}),
|
|
883
|
-
signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
884
|
-
eventShape: {
|
|
885
|
-
type: "sse",
|
|
886
|
-
streamTerminator: "[DONE]",
|
|
887
|
-
},
|
|
888
|
-
}),
|
|
889
|
-
rawResponse: _response.rawResponse,
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
if (_response.error.reason === "status-code") {
|
|
893
|
-
switch (_response.error.statusCode) {
|
|
894
|
-
case 404:
|
|
895
|
-
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
896
|
-
unrecognizedObjectKeys: "passthrough",
|
|
897
|
-
allowUnrecognizedUnionMembers: true,
|
|
898
|
-
allowUnrecognizedEnumValues: true,
|
|
899
|
-
breadcrumbsPrefix: ["response"],
|
|
900
|
-
}), _response.rawResponse);
|
|
901
|
-
case 400:
|
|
902
|
-
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
903
|
-
unrecognizedObjectKeys: "passthrough",
|
|
904
|
-
allowUnrecognizedUnionMembers: true,
|
|
905
|
-
allowUnrecognizedEnumValues: true,
|
|
906
|
-
breadcrumbsPrefix: ["response"],
|
|
907
|
-
}), _response.rawResponse);
|
|
908
|
-
case 500:
|
|
909
|
-
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
910
|
-
unrecognizedObjectKeys: "passthrough",
|
|
911
|
-
allowUnrecognizedUnionMembers: true,
|
|
912
|
-
allowUnrecognizedEnumValues: true,
|
|
913
|
-
breadcrumbsPrefix: ["response"],
|
|
914
|
-
}), _response.rawResponse);
|
|
915
|
-
default:
|
|
916
|
-
throw new errors.MavenAGIError({
|
|
917
|
-
statusCode: _response.error.statusCode,
|
|
918
|
-
body: _response.error.body,
|
|
919
|
-
rawResponse: _response.rawResponse,
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
switch (_response.error.reason) {
|
|
924
|
-
case "non-json":
|
|
925
|
-
throw new errors.MavenAGIError({
|
|
926
|
-
statusCode: _response.error.statusCode,
|
|
927
|
-
body: _response.error.rawBody,
|
|
928
|
-
rawResponse: _response.rawResponse,
|
|
929
|
-
});
|
|
930
|
-
case "timeout":
|
|
931
|
-
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/{conversationId}/ask_object_stream.");
|
|
932
|
-
case "unknown":
|
|
933
|
-
throw new errors.MavenAGIError({
|
|
934
|
-
message: _response.error.errorMessage,
|
|
935
|
-
rawResponse: _response.rawResponse,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
832
|
/**
|
|
941
833
|
* Uses an LLM flow to categorize the conversation. Experimental.
|
|
942
834
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from "./ActionFormAttachment";
|
|
2
2
|
export * from "./ActionFormRequestParamValue";
|
|
3
|
-
export * from "./AskObjectRequest";
|
|
4
3
|
export * from "./AskRequest";
|
|
5
4
|
export * from "./AskStreamActionEvent";
|
|
6
5
|
export * from "./AskStreamChartEvent";
|
|
@@ -27,7 +26,6 @@ export * from "./FeedbackField";
|
|
|
27
26
|
export * from "./FeedbackFilter";
|
|
28
27
|
export * from "./FeedbackRequest";
|
|
29
28
|
export * from "./NumericConversationField";
|
|
30
|
-
export * from "./ObjectStreamResponse";
|
|
31
29
|
export * from "./ResolutionStatus";
|
|
32
30
|
export * from "./SimulationFilter";
|
|
33
31
|
export * from "./StreamResponse";
|
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ActionFormAttachment"), exports);
|
|
18
18
|
__exportStar(require("./ActionFormRequestParamValue"), exports);
|
|
19
|
-
__exportStar(require("./AskObjectRequest"), exports);
|
|
20
19
|
__exportStar(require("./AskRequest"), exports);
|
|
21
20
|
__exportStar(require("./AskStreamActionEvent"), exports);
|
|
22
21
|
__exportStar(require("./AskStreamChartEvent"), exports);
|
|
@@ -43,7 +42,6 @@ __exportStar(require("./FeedbackField"), exports);
|
|
|
43
42
|
__exportStar(require("./FeedbackFilter"), exports);
|
|
44
43
|
__exportStar(require("./FeedbackRequest"), exports);
|
|
45
44
|
__exportStar(require("./NumericConversationField"), exports);
|
|
46
|
-
__exportStar(require("./ObjectStreamResponse"), exports);
|
|
47
45
|
__exportStar(require("./ResolutionStatus"), exports);
|
|
48
46
|
__exportStar(require("./SimulationFilter"), exports);
|
|
49
47
|
__exportStar(require("./StreamResponse"), exports);
|
|
@@ -25,6 +25,24 @@ export declare class Inbox {
|
|
|
25
25
|
*/
|
|
26
26
|
search(request: MavenAGI.InboxSearchRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxSearchResponse>;
|
|
27
27
|
private __search;
|
|
28
|
+
/**
|
|
29
|
+
* Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} inboxItemId - The ID of the inbox item to add tags to.
|
|
32
|
+
* @param {MavenAGI.InboxItemApplyTagsRequest} request
|
|
33
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
36
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
37
|
+
* @throws {@link MavenAGI.ServerError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.inbox.applyTags("custom-item-1", {
|
|
41
|
+
* tags: new Set(["tag1", "tag2"])
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
applyTags(inboxItemId: string, request: MavenAGI.InboxItemApplyTagsRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxItem>;
|
|
45
|
+
private __applyTags;
|
|
28
46
|
/**
|
|
29
47
|
* Retrieve details of a specific inbox item by its ID.
|
|
30
48
|
*
|
|
@@ -149,6 +149,104 @@ class Inbox {
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
|
|
154
|
+
*
|
|
155
|
+
* @param {string} inboxItemId - The ID of the inbox item to add tags to.
|
|
156
|
+
* @param {MavenAGI.InboxItemApplyTagsRequest} request
|
|
157
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
160
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
161
|
+
* @throws {@link MavenAGI.ServerError}
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* await client.inbox.applyTags("custom-item-1", {
|
|
165
|
+
* tags: new Set(["tag1", "tag2"])
|
|
166
|
+
* })
|
|
167
|
+
*/
|
|
168
|
+
applyTags(inboxItemId, request, requestOptions) {
|
|
169
|
+
return core.HttpResponsePromise.fromPromise(this.__applyTags(inboxItemId, request, requestOptions));
|
|
170
|
+
}
|
|
171
|
+
__applyTags(inboxItemId, request, requestOptions) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
174
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
175
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
176
|
+
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
177
|
+
"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,
|
|
178
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
179
|
+
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
180
|
+
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/inbox/${core.url.encodePathParam(inboxItemId)}/tags`),
|
|
181
|
+
method: "PATCH",
|
|
182
|
+
headers: _headers,
|
|
183
|
+
contentType: "application/json",
|
|
184
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
185
|
+
requestType: "json",
|
|
186
|
+
body: serializers.InboxItemApplyTagsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
187
|
+
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,
|
|
188
|
+
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,
|
|
189
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
190
|
+
});
|
|
191
|
+
if (_response.ok) {
|
|
192
|
+
return {
|
|
193
|
+
data: serializers.InboxItem.parseOrThrow(_response.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}),
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
if (_response.error.reason === "status-code") {
|
|
203
|
+
switch (_response.error.statusCode) {
|
|
204
|
+
case 404:
|
|
205
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
206
|
+
unrecognizedObjectKeys: "passthrough",
|
|
207
|
+
allowUnrecognizedUnionMembers: true,
|
|
208
|
+
allowUnrecognizedEnumValues: true,
|
|
209
|
+
breadcrumbsPrefix: ["response"],
|
|
210
|
+
}), _response.rawResponse);
|
|
211
|
+
case 400:
|
|
212
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
213
|
+
unrecognizedObjectKeys: "passthrough",
|
|
214
|
+
allowUnrecognizedUnionMembers: true,
|
|
215
|
+
allowUnrecognizedEnumValues: true,
|
|
216
|
+
breadcrumbsPrefix: ["response"],
|
|
217
|
+
}), _response.rawResponse);
|
|
218
|
+
case 500:
|
|
219
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
220
|
+
unrecognizedObjectKeys: "passthrough",
|
|
221
|
+
allowUnrecognizedUnionMembers: true,
|
|
222
|
+
allowUnrecognizedEnumValues: true,
|
|
223
|
+
breadcrumbsPrefix: ["response"],
|
|
224
|
+
}), _response.rawResponse);
|
|
225
|
+
default:
|
|
226
|
+
throw new errors.MavenAGIError({
|
|
227
|
+
statusCode: _response.error.statusCode,
|
|
228
|
+
body: _response.error.body,
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
switch (_response.error.reason) {
|
|
234
|
+
case "non-json":
|
|
235
|
+
throw new errors.MavenAGIError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.rawBody,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
case "timeout":
|
|
241
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/inbox/{inboxItemId}/tags.");
|
|
242
|
+
case "unknown":
|
|
243
|
+
throw new errors.MavenAGIError({
|
|
244
|
+
message: _response.error.errorMessage,
|
|
245
|
+
rawResponse: _response.rawResponse,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
152
250
|
/**
|
|
153
251
|
* Retrieve details of a specific inbox item by its ID.
|
|
154
252
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* tags: new Set(["tag1", "tag2"])
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface InboxItemApplyTagsRequest {
|
|
8
|
+
/** The App ID of a custom inbox item to patch tags for. For server-managed inbox items such as Missing Knowledge and Duplicate Documents, the appId field is not required and will be ignored. */
|
|
9
|
+
appId?: string;
|
|
10
|
+
/** A set of tags associated with the inbox item that are used for filtering. */
|
|
11
|
+
tags: Set<string>;
|
|
12
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { InboxItemApplyTagsRequest } from "./InboxItemApplyTagsRequest";
|
|
1
2
|
export type { InboxItemFixRequest } from "./InboxItemFixRequest";
|
|
2
3
|
export type { InboxItemIgnoreRequest } from "./InboxItemIgnoreRequest";
|
|
3
4
|
export type { InboxItemRequest } from "./InboxItemRequest";
|
|
@@ -4,6 +4,8 @@ export interface InboxFilter {
|
|
|
4
4
|
statuses?: MavenAGI.InboxItemStatus[];
|
|
5
5
|
/** List of inbox item types to filter by. */
|
|
6
6
|
type?: MavenAGI.InboxItemType[];
|
|
7
|
+
/** Filter for items that have at least one of these tags. */
|
|
8
|
+
tags?: Set<string>;
|
|
7
9
|
/** Filter for items created after this timestamp. */
|
|
8
10
|
createdAfter?: Date;
|
|
9
11
|
/** Filter for items created before this timestamp. */
|
package/api/resources/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export * from "./appSettings/client/requests";
|
|
|
11
11
|
export * from "./appSettings/types";
|
|
12
12
|
export * as assets from "./assets";
|
|
13
13
|
export * from "./assets/types";
|
|
14
|
-
export * as auth from "./auth";
|
|
15
|
-
export * from "./auth/types";
|
|
16
14
|
export * as commons from "./commons";
|
|
17
15
|
export * from "./commons/errors";
|
|
18
16
|
export * from "./commons/types";
|
|
@@ -47,5 +45,7 @@ export * from "./triggers/types";
|
|
|
47
45
|
export * as users from "./users";
|
|
48
46
|
export * from "./users/client/requests";
|
|
49
47
|
export * from "./users/types";
|
|
50
|
-
export * as
|
|
51
|
-
export * from "./
|
|
48
|
+
export * as voice from "./voice";
|
|
49
|
+
export * from "./voice/types";
|
|
50
|
+
export * as voiceConversations from "./voiceConversations";
|
|
51
|
+
export * from "./voiceConversations/types";
|
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions"));
|
|
41
41
|
__exportStar(require("./actions/client/requests"), exports);
|
|
42
42
|
__exportStar(require("./actions/types"), exports);
|
|
@@ -50,8 +50,6 @@ __exportStar(require("./appSettings/client/requests"), exports);
|
|
|
50
50
|
__exportStar(require("./appSettings/types"), exports);
|
|
51
51
|
exports.assets = __importStar(require("./assets"));
|
|
52
52
|
__exportStar(require("./assets/types"), exports);
|
|
53
|
-
exports.auth = __importStar(require("./auth"));
|
|
54
|
-
__exportStar(require("./auth/types"), exports);
|
|
55
53
|
exports.commons = __importStar(require("./commons"));
|
|
56
54
|
__exportStar(require("./commons/errors"), exports);
|
|
57
55
|
__exportStar(require("./commons/types"), exports);
|
|
@@ -86,5 +84,7 @@ __exportStar(require("./triggers/types"), exports);
|
|
|
86
84
|
exports.users = __importStar(require("./users"));
|
|
87
85
|
__exportStar(require("./users/client/requests"), exports);
|
|
88
86
|
__exportStar(require("./users/types"), exports);
|
|
89
|
-
exports.
|
|
90
|
-
__exportStar(require("./
|
|
87
|
+
exports.voice = __importStar(require("./voice"));
|
|
88
|
+
__exportStar(require("./voice/types"), exports);
|
|
89
|
+
exports.voiceConversations = __importStar(require("./voiceConversations"));
|
|
90
|
+
__exportStar(require("./voiceConversations/types"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Filter criteria for searching segments.
|
|
4
|
+
*/
|
|
5
|
+
export interface SegmentFilter {
|
|
6
|
+
/**
|
|
7
|
+
* Filter segments by name. Case-insensitive substring match.
|
|
8
|
+
* Empty string returns all results.
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Filter segments by description. Case-insensitive substring match.
|
|
13
|
+
* Empty string returns all results.
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Filter segments by status. Returns segments matching any of the provided statuses.
|
|
18
|
+
* Empty list returns all non-deleted results.
|
|
19
|
+
*/
|
|
20
|
+
statuses?: MavenAGI.SegmentStatus[];
|
|
21
|
+
}
|
|
@@ -22,4 +22,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
export interface SegmentRequest extends MavenAGI.SegmentBase {
|
|
23
23
|
/** ID that uniquely identifies this segment */
|
|
24
24
|
segmentId: MavenAGI.EntityIdBase;
|
|
25
|
+
/** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
|
|
26
|
+
status?: MavenAGI.SegmentStatus;
|
|
25
27
|
}
|
|
@@ -14,6 +14,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
14
14
|
* updatedAt: new Date("2025-01-15T12:30:00.000Z"),
|
|
15
15
|
* referencedKnowledgeBaseCount: 5,
|
|
16
16
|
* referencedDocumentCount: 34,
|
|
17
|
+
* referencedActionCount: 3,
|
|
17
18
|
* status: MavenAGI.SegmentStatus.Active,
|
|
18
19
|
* precondition: {
|
|
19
20
|
* preconditionType: "group",
|
|
@@ -39,6 +40,8 @@ export interface SegmentResponse extends MavenAGI.SegmentBase {
|
|
|
39
40
|
referencedKnowledgeBaseCount?: number;
|
|
40
41
|
/** The number of active documents that reference this segment. */
|
|
41
42
|
referencedDocumentCount?: number;
|
|
43
|
+
/** The number of active actions that reference this segment. */
|
|
44
|
+
referencedActionCount?: number;
|
|
42
45
|
/**
|
|
43
46
|
* The status of the segment.
|
|
44
47
|
*
|
|
@@ -2,4 +2,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface SegmentsSearchRequest extends MavenAGI.BasePaginatedRequest {
|
|
3
3
|
/** The field to sort by, defaults to created timestamp */
|
|
4
4
|
sort?: MavenAGI.SegmentField;
|
|
5
|
+
/** The filter to apply to the segments. */
|
|
6
|
+
filter?: MavenAGI.SegmentFilter;
|
|
5
7
|
}
|