mavenagi 1.0.15 → 1.1.0
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 +3 -4
- package/Client.js +51 -12
- package/README.md +14 -1
- package/api/resources/actions/client/Client.d.ts +9 -4
- package/api/resources/actions/client/Client.js +68 -39
- package/api/resources/agents/client/Client.d.ts +9 -4
- package/api/resources/agents/client/Client.js +76 -44
- package/api/resources/analytics/client/Client.d.ts +9 -4
- package/api/resources/analytics/client/Client.js +76 -40
- package/api/resources/analytics/types/ConversationTableResponse.d.ts +3 -3
- package/api/resources/appSettings/client/Client.d.ts +9 -4
- package/api/resources/appSettings/client/Client.js +76 -44
- package/api/resources/appSettings/client/index.d.ts +1 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +2 -1
- package/api/resources/commons/errors/BadRequestError.js +2 -1
- package/api/resources/commons/errors/NotFoundError.d.ts +2 -1
- package/api/resources/commons/errors/NotFoundError.js +2 -1
- package/api/resources/commons/errors/ServerError.d.ts +2 -1
- package/api/resources/commons/errors/ServerError.js +2 -1
- package/api/resources/commons/types/AppUserRequest.d.ts +2 -2
- package/api/resources/commons/types/AppUserResponse.d.ts +2 -2
- package/api/resources/commons/types/ConversationResponse.d.ts +2 -1
- package/api/resources/commons/types/InboxItemFixType.d.ts +14 -0
- package/{dist/api/resources/realtime/types/AudioFormat.js → api/resources/commons/types/InboxItemFixType.js} +4 -4
- package/api/resources/commons/types/UserMessageAttachment.d.ts +16 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/conversation/client/Client.d.ts +43 -58
- package/api/resources/conversation/client/Client.js +342 -281
- package/api/resources/conversation/client/index.d.ts +1 -0
- package/api/resources/conversation/types/Attachment.d.ts +18 -1
- package/api/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
- package/api/resources/conversation/types/index.d.ts +0 -1
- package/api/resources/conversation/types/index.js +0 -1
- package/api/resources/events/client/Client.d.ts +5 -2
- package/api/resources/events/client/Client.js +26 -16
- package/api/resources/inbox/client/Client.d.ts +21 -10
- package/api/resources/inbox/client/Client.js +126 -67
- package/api/resources/inbox/client/index.d.ts +1 -0
- package/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +7 -1
- package/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +7 -1
- package/api/resources/inbox/client/requests/InboxItemRequest.d.ts +7 -1
- package/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +2 -0
- package/api/resources/inbox/types/InboxSearchRequest.d.ts +4 -0
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/knowledge/client/Client.d.ts +17 -8
- package/api/resources/knowledge/client/Client.js +168 -87
- package/api/resources/organizations/client/Client.d.ts +7 -3
- package/api/resources/organizations/client/Client.js +51 -28
- package/api/resources/translations/client/Client.d.ts +5 -2
- package/api/resources/translations/client/Client.js +26 -16
- package/api/resources/triggers/client/Client.d.ts +13 -6
- package/api/resources/triggers/client/Client.js +118 -63
- package/api/resources/triggers/client/index.d.ts +1 -0
- package/api/resources/users/client/Client.d.ts +11 -6
- package/api/resources/users/client/Client.js +72 -43
- package/api/resources/users/client/index.d.ts +1 -0
- package/core/auth/BasicAuth.js +3 -3
- package/core/base64.d.ts +2 -0
- package/core/base64.js +26 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/BinaryResponse.d.ts +20 -0
- package/core/fetcher/BinaryResponse.js +17 -0
- package/core/fetcher/Fetcher.d.ts +3 -2
- package/core/fetcher/Fetcher.js +32 -12
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/core/fetcher/ResponseWithBody.js +6 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +3 -7
- package/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/core/fetcher/getErrorResponseBody.js +44 -0
- package/core/fetcher/getFetchFn.d.ts +1 -4
- package/core/fetcher/getFetchFn.js +1 -52
- package/core/fetcher/getResponseBody.js +34 -33
- package/core/fetcher/index.d.ts +4 -0
- package/core/fetcher/index.js +7 -1
- package/core/headers.d.ts +3 -0
- package/core/headers.js +29 -0
- package/core/index.d.ts +3 -2
- package/core/index.js +4 -3
- package/core/runtime/runtime.js +0 -1
- package/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
- package/core/url/index.d.ts +2 -0
- package/core/url/index.js +7 -0
- package/core/url/join.d.ts +1 -0
- package/core/url/join.js +49 -0
- package/core/url/qs.d.ts +6 -0
- package/core/url/qs.js +64 -0
- package/dist/Client.d.ts +3 -4
- package/dist/Client.js +51 -12
- package/dist/api/resources/actions/client/Client.d.ts +9 -4
- package/dist/api/resources/actions/client/Client.js +68 -39
- package/dist/api/resources/agents/client/Client.d.ts +9 -4
- package/dist/api/resources/agents/client/Client.js +76 -44
- package/dist/api/resources/analytics/client/Client.d.ts +9 -4
- package/dist/api/resources/analytics/client/Client.js +76 -40
- package/dist/api/resources/analytics/types/ConversationTableResponse.d.ts +3 -3
- package/dist/api/resources/appSettings/client/Client.d.ts +9 -4
- package/dist/api/resources/appSettings/client/Client.js +76 -44
- package/dist/api/resources/appSettings/client/index.d.ts +1 -0
- package/dist/api/resources/commons/errors/BadRequestError.d.ts +2 -1
- package/dist/api/resources/commons/errors/BadRequestError.js +2 -1
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +2 -1
- package/dist/api/resources/commons/errors/NotFoundError.js +2 -1
- package/dist/api/resources/commons/errors/ServerError.d.ts +2 -1
- package/dist/api/resources/commons/errors/ServerError.js +2 -1
- package/dist/api/resources/commons/types/AppUserRequest.d.ts +2 -2
- package/dist/api/resources/commons/types/AppUserResponse.d.ts +2 -2
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +2 -1
- package/dist/api/resources/commons/types/InboxItemFixType.d.ts +14 -0
- package/{api/resources/realtime/types/AudioFormat.js → dist/api/resources/commons/types/InboxItemFixType.js} +4 -4
- package/dist/api/resources/commons/types/UserMessageAttachment.d.ts +16 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/conversation/client/Client.d.ts +43 -58
- package/dist/api/resources/conversation/client/Client.js +342 -281
- package/dist/api/resources/conversation/client/index.d.ts +1 -0
- package/dist/api/resources/conversation/types/Attachment.d.ts +18 -1
- package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
- package/dist/api/resources/conversation/types/index.d.ts +0 -1
- package/dist/api/resources/conversation/types/index.js +0 -1
- package/dist/api/resources/events/client/Client.d.ts +5 -2
- package/dist/api/resources/events/client/Client.js +26 -16
- package/dist/api/resources/inbox/client/Client.d.ts +21 -10
- package/dist/api/resources/inbox/client/Client.js +126 -67
- package/dist/api/resources/inbox/client/index.d.ts +1 -0
- package/dist/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +7 -1
- package/dist/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +7 -1
- package/dist/api/resources/inbox/client/requests/InboxItemRequest.d.ts +7 -1
- package/dist/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +2 -0
- package/dist/api/resources/inbox/types/InboxSearchRequest.d.ts +4 -0
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/knowledge/client/Client.d.ts +17 -8
- package/dist/api/resources/knowledge/client/Client.js +168 -87
- package/dist/api/resources/organizations/client/Client.d.ts +7 -3
- package/dist/api/resources/organizations/client/Client.js +51 -28
- package/dist/api/resources/translations/client/Client.d.ts +5 -2
- package/dist/api/resources/translations/client/Client.js +26 -16
- package/dist/api/resources/triggers/client/Client.d.ts +13 -6
- package/dist/api/resources/triggers/client/Client.js +118 -63
- package/dist/api/resources/triggers/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/Client.d.ts +11 -6
- package/dist/api/resources/users/client/Client.js +72 -43
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/core/auth/BasicAuth.js +3 -3
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/base64.js +26 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/core/fetcher/BinaryResponse.js +17 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -2
- package/dist/core/fetcher/Fetcher.js +32 -12
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +3 -7
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -4
- package/dist/core/fetcher/getFetchFn.js +1 -52
- package/dist/core/fetcher/getResponseBody.js +34 -33
- package/dist/core/fetcher/index.d.ts +4 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +29 -0
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +4 -3
- package/dist/core/runtime/runtime.js +0 -1
- package/dist/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
- package/dist/core/url/index.d.ts +2 -0
- package/dist/core/url/index.js +7 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +49 -0
- package/dist/core/url/qs.d.ts +6 -0
- package/dist/core/url/qs.js +64 -0
- package/dist/errors/MavenAGIError.d.ts +4 -1
- package/dist/errors/MavenAGIError.js +4 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/serialization/resources/commons/types/InboxItemFixType.d.ts +10 -0
- package/{serialization/resources/realtime/types/AudioFormat.js → dist/serialization/resources/commons/types/InboxItemFixType.js} +2 -2
- package/dist/serialization/resources/commons/types/UserMessageAttachment.d.ts +2 -0
- package/dist/serialization/resources/commons/types/UserMessageAttachment.js +2 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/conversation/types/Attachment.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/Attachment.js +1 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -1
- package/dist/serialization/resources/conversation/types/index.js +0 -1
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +2 -0
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +2 -0
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.d.ts +2 -0
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.js +2 -0
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/errors/MavenAGIError.d.ts +4 -1
- package/errors/MavenAGIError.js +4 -7
- package/index.d.ts +2 -2
- package/index.js +5 -5
- package/jest.config.mjs +6 -1
- package/package.json +13 -21
- package/reference.md +16 -98
- package/scripts/rename-to-esm-files.js +10 -2
- package/serialization/resources/commons/types/InboxItemFixType.d.ts +10 -0
- package/{dist/serialization/resources/realtime/types/AudioFormat.js → serialization/resources/commons/types/InboxItemFixType.js} +2 -2
- package/serialization/resources/commons/types/UserMessageAttachment.d.ts +2 -0
- package/serialization/resources/commons/types/UserMessageAttachment.js +2 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/conversation/types/Attachment.d.ts +1 -0
- package/serialization/resources/conversation/types/Attachment.js +1 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -0
- package/serialization/resources/conversation/types/index.d.ts +0 -1
- package/serialization/resources/conversation/types/index.js +0 -1
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +2 -0
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +2 -0
- package/serialization/resources/inbox/types/InboxSearchRequest.d.ts +2 -0
- package/serialization/resources/inbox/types/InboxSearchRequest.js +2 -0
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/conversation/types/GenerateObjectRequest.d.ts +0 -8
- package/api/resources/conversation/types/GenerateObjectRequest.js +0 -5
- package/api/resources/realtime/client/Client.d.ts +0 -36
- package/api/resources/realtime/client/Client.js +0 -90
- package/api/resources/realtime/client/Socket.d.ts +0 -41
- package/api/resources/realtime/client/Socket.js +0 -155
- package/api/resources/realtime/client/index.d.ts +0 -1
- package/api/resources/realtime/client/index.js +0 -2
- package/api/resources/realtime/index.d.ts +0 -2
- package/api/resources/realtime/index.js +0 -18
- package/api/resources/realtime/types/AudioFormat.d.ts +0 -8
- package/api/resources/realtime/types/AudioPublishEvent.d.ts +0 -6
- package/api/resources/realtime/types/AudioPublishEvent.js +0 -5
- package/api/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -6
- package/api/resources/realtime/types/AudioSubscribeEvent.js +0 -5
- package/api/resources/realtime/types/ControlEvent.d.ts +0 -9
- package/api/resources/realtime/types/ControlEvent.js +0 -5
- package/api/resources/realtime/types/HangUpPublishEvent.d.ts +0 -6
- package/api/resources/realtime/types/HangUpPublishEvent.js +0 -5
- package/api/resources/realtime/types/MessageBase.d.ts +0 -6
- package/api/resources/realtime/types/MessageBase.js +0 -5
- package/api/resources/realtime/types/PublishEvent.d.ts +0 -16
- package/api/resources/realtime/types/PublishEvent.js +0 -5
- package/api/resources/realtime/types/SubscribeEvent.d.ts +0 -25
- package/api/resources/realtime/types/SubscribeEvent.js +0 -5
- package/api/resources/realtime/types/index.d.ts +0 -8
- package/api/resources/realtime/types/index.js +0 -24
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/websocket/events.d.ts +0 -36
- package/core/websocket/events.js +0 -27
- package/core/websocket/index.d.ts +0 -1
- package/core/websocket/index.js +0 -17
- package/core/websocket/ws.d.ts +0 -137
- package/core/websocket/ws.js +0 -452
- package/dist/api/resources/conversation/types/GenerateObjectRequest.d.ts +0 -8
- package/dist/api/resources/conversation/types/GenerateObjectRequest.js +0 -5
- package/dist/api/resources/realtime/client/Client.d.ts +0 -36
- package/dist/api/resources/realtime/client/Client.js +0 -90
- package/dist/api/resources/realtime/client/Socket.d.ts +0 -41
- package/dist/api/resources/realtime/client/Socket.js +0 -155
- package/dist/api/resources/realtime/client/index.d.ts +0 -1
- package/dist/api/resources/realtime/client/index.js +0 -2
- package/dist/api/resources/realtime/index.d.ts +0 -2
- package/dist/api/resources/realtime/index.js +0 -18
- package/dist/api/resources/realtime/types/AudioFormat.d.ts +0 -8
- package/dist/api/resources/realtime/types/AudioPublishEvent.d.ts +0 -6
- package/dist/api/resources/realtime/types/AudioPublishEvent.js +0 -5
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -6
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.js +0 -5
- package/dist/api/resources/realtime/types/ControlEvent.d.ts +0 -9
- package/dist/api/resources/realtime/types/ControlEvent.js +0 -5
- package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +0 -6
- package/dist/api/resources/realtime/types/HangUpPublishEvent.js +0 -5
- package/dist/api/resources/realtime/types/MessageBase.d.ts +0 -6
- package/dist/api/resources/realtime/types/MessageBase.js +0 -5
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +0 -16
- package/dist/api/resources/realtime/types/PublishEvent.js +0 -5
- package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +0 -25
- package/dist/api/resources/realtime/types/SubscribeEvent.js +0 -5
- package/dist/api/resources/realtime/types/index.d.ts +0 -8
- package/dist/api/resources/realtime/types/index.js +0 -24
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/websocket/events.d.ts +0 -36
- package/dist/core/websocket/events.js +0 -27
- package/dist/core/websocket/index.d.ts +0 -1
- package/dist/core/websocket/index.js +0 -17
- package/dist/core/websocket/ws.d.ts +0 -137
- package/dist/core/websocket/ws.js +0 -452
- package/dist/serialization/resources/conversation/types/GenerateObjectRequest.d.ts +0 -13
- package/dist/serialization/resources/conversation/types/GenerateObjectRequest.js +0 -46
- package/dist/serialization/resources/realtime/index.d.ts +0 -1
- package/dist/serialization/resources/realtime/index.js +0 -17
- package/dist/serialization/resources/realtime/types/AudioFormat.d.ts +0 -10
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.d.ts +0 -12
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.js +0 -43
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -12
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.js +0 -43
- package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +0 -15
- package/dist/serialization/resources/realtime/types/ControlEvent.js +0 -48
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +0 -12
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +0 -43
- package/dist/serialization/resources/realtime/types/MessageBase.d.ts +0 -12
- package/dist/serialization/resources/realtime/types/MessageBase.js +0 -43
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +0 -18
- package/dist/serialization/resources/realtime/types/PublishEvent.js +0 -51
- package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +0 -27
- package/dist/serialization/resources/realtime/types/SubscribeEvent.js +0 -54
- package/dist/serialization/resources/realtime/types/index.d.ts +0 -8
- package/dist/serialization/resources/realtime/types/index.js +0 -24
- package/serialization/resources/conversation/types/GenerateObjectRequest.d.ts +0 -13
- package/serialization/resources/conversation/types/GenerateObjectRequest.js +0 -46
- package/serialization/resources/realtime/index.d.ts +0 -1
- package/serialization/resources/realtime/index.js +0 -17
- package/serialization/resources/realtime/types/AudioFormat.d.ts +0 -10
- package/serialization/resources/realtime/types/AudioPublishEvent.d.ts +0 -12
- package/serialization/resources/realtime/types/AudioPublishEvent.js +0 -43
- package/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -12
- package/serialization/resources/realtime/types/AudioSubscribeEvent.js +0 -43
- package/serialization/resources/realtime/types/ControlEvent.d.ts +0 -15
- package/serialization/resources/realtime/types/ControlEvent.js +0 -48
- package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +0 -12
- package/serialization/resources/realtime/types/HangUpPublishEvent.js +0 -43
- package/serialization/resources/realtime/types/MessageBase.d.ts +0 -12
- package/serialization/resources/realtime/types/MessageBase.js +0 -43
- package/serialization/resources/realtime/types/PublishEvent.d.ts +0 -18
- package/serialization/resources/realtime/types/PublishEvent.js +0 -51
- package/serialization/resources/realtime/types/SubscribeEvent.d.ts +0 -27
- package/serialization/resources/realtime/types/SubscribeEvent.js +0 -54
- package/serialization/resources/realtime/types/index.d.ts +0 -8
- package/serialization/resources/realtime/types/index.js +0 -24
- /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
- /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
- /package/core/{streaming-fetcher → stream}/index.js +0 -0
- /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
- /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
- /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
|
@@ -15,6 +15,8 @@ export declare namespace Conversation {
|
|
|
15
15
|
organizationId: core.Supplier<string>;
|
|
16
16
|
/** Override the X-Agent-Id header */
|
|
17
17
|
agentId: core.Supplier<string>;
|
|
18
|
+
/** Additional headers to include in requests. */
|
|
19
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
18
20
|
fetcher?: core.FetchFunction;
|
|
19
21
|
}
|
|
20
22
|
interface RequestOptions {
|
|
@@ -29,7 +31,7 @@ export declare namespace Conversation {
|
|
|
29
31
|
/** Override the X-Agent-Id header */
|
|
30
32
|
agentId?: string;
|
|
31
33
|
/** Additional headers to include in the request. */
|
|
32
|
-
headers?: Record<string, string>;
|
|
34
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
export declare class Conversation {
|
|
@@ -58,27 +60,28 @@ export declare class Conversation {
|
|
|
58
60
|
* referenceId: "referenceId"
|
|
59
61
|
* },
|
|
60
62
|
* messages: [{
|
|
63
|
+
* conversationMessageId: {
|
|
64
|
+
* referenceId: "referenceId"
|
|
65
|
+
* },
|
|
61
66
|
* userId: {
|
|
62
67
|
* referenceId: "referenceId"
|
|
63
68
|
* },
|
|
64
69
|
* text: "text",
|
|
65
|
-
* userMessageType: "USER"
|
|
70
|
+
* userMessageType: "USER"
|
|
71
|
+
* }, {
|
|
66
72
|
* conversationMessageId: {
|
|
67
73
|
* referenceId: "referenceId"
|
|
68
|
-
* }
|
|
69
|
-
* }, {
|
|
74
|
+
* },
|
|
70
75
|
* userId: {
|
|
71
76
|
* referenceId: "referenceId"
|
|
72
77
|
* },
|
|
73
78
|
* text: "text",
|
|
74
|
-
* userMessageType: "USER"
|
|
75
|
-
* conversationMessageId: {
|
|
76
|
-
* referenceId: "referenceId"
|
|
77
|
-
* }
|
|
79
|
+
* userMessageType: "USER"
|
|
78
80
|
* }]
|
|
79
81
|
* })
|
|
80
82
|
*/
|
|
81
|
-
initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions):
|
|
83
|
+
initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
84
|
+
private __initialize;
|
|
82
85
|
/**
|
|
83
86
|
* Get a conversation
|
|
84
87
|
*
|
|
@@ -93,7 +96,8 @@ export declare class Conversation {
|
|
|
93
96
|
* @example
|
|
94
97
|
* await client.conversation.get("conversationId")
|
|
95
98
|
*/
|
|
96
|
-
get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: Conversation.RequestOptions):
|
|
99
|
+
get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
100
|
+
private __get;
|
|
97
101
|
/**
|
|
98
102
|
* Wipes a conversation of all user data.
|
|
99
103
|
* The conversation ID will still exist and non-user specific data will still be retained.
|
|
@@ -116,7 +120,8 @@ export declare class Conversation {
|
|
|
116
120
|
* reason: "GDPR deletion request 1234."
|
|
117
121
|
* })
|
|
118
122
|
*/
|
|
119
|
-
delete(conversationId: string, request: MavenAGI.ConversationDeleteRequest, requestOptions?: Conversation.RequestOptions):
|
|
123
|
+
delete(conversationId: string, request: MavenAGI.ConversationDeleteRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<void>;
|
|
124
|
+
private __delete;
|
|
120
125
|
/**
|
|
121
126
|
* Append messages to an existing conversation. The conversation must be initialized first. If a message with the same ID already exists, it will be ignored. Messages do not allow modification.
|
|
122
127
|
*
|
|
@@ -130,26 +135,27 @@ export declare class Conversation {
|
|
|
130
135
|
*
|
|
131
136
|
* @example
|
|
132
137
|
* await client.conversation.appendNewMessages("conversationId", [{
|
|
138
|
+
* conversationMessageId: {
|
|
139
|
+
* referenceId: "referenceId"
|
|
140
|
+
* },
|
|
133
141
|
* userId: {
|
|
134
142
|
* referenceId: "referenceId"
|
|
135
143
|
* },
|
|
136
144
|
* text: "text",
|
|
137
|
-
* userMessageType: "USER"
|
|
145
|
+
* userMessageType: "USER"
|
|
146
|
+
* }, {
|
|
138
147
|
* conversationMessageId: {
|
|
139
148
|
* referenceId: "referenceId"
|
|
140
|
-
* }
|
|
141
|
-
* }, {
|
|
149
|
+
* },
|
|
142
150
|
* userId: {
|
|
143
151
|
* referenceId: "referenceId"
|
|
144
152
|
* },
|
|
145
153
|
* text: "text",
|
|
146
|
-
* userMessageType: "USER"
|
|
147
|
-
* conversationMessageId: {
|
|
148
|
-
* referenceId: "referenceId"
|
|
149
|
-
* }
|
|
154
|
+
* userMessageType: "USER"
|
|
150
155
|
* }])
|
|
151
156
|
*/
|
|
152
|
-
appendNewMessages(conversationId: string, request: MavenAGI.ConversationMessageRequest[], requestOptions?: Conversation.RequestOptions):
|
|
157
|
+
appendNewMessages(conversationId: string, request: MavenAGI.ConversationMessageRequest[], requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
158
|
+
private __appendNewMessages;
|
|
153
159
|
/**
|
|
154
160
|
* Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
155
161
|
* they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
@@ -189,7 +195,8 @@ export declare class Conversation {
|
|
|
189
195
|
* timezone: "America/New_York"
|
|
190
196
|
* })
|
|
191
197
|
*/
|
|
192
|
-
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions):
|
|
198
|
+
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
199
|
+
private __ask;
|
|
193
200
|
/**
|
|
194
201
|
* Get an answer from Maven for a given user question with a streaming response. The response will be sent as a stream of events.
|
|
195
202
|
* The text portions of stream responses should be concatenated to form the full response text.
|
|
@@ -205,7 +212,8 @@ export declare class Conversation {
|
|
|
205
212
|
* Known Limitation:
|
|
206
213
|
* - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
|
|
207
214
|
*/
|
|
208
|
-
askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions):
|
|
215
|
+
askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.StreamResponse>>;
|
|
216
|
+
private __askStream;
|
|
209
217
|
/**
|
|
210
218
|
* This method is deprecated and will be removed in a future release. Use either `ask` or `askStream` instead.
|
|
211
219
|
*
|
|
@@ -226,37 +234,8 @@ export declare class Conversation {
|
|
|
226
234
|
* }]
|
|
227
235
|
* })
|
|
228
236
|
*/
|
|
229
|
-
generateMavenSuggestions(conversationId: string, request: MavenAGI.GenerateMavenSuggestionsRequest, requestOptions?: Conversation.RequestOptions):
|
|
230
|
-
|
|
231
|
-
* Generate a structured object response based on a provided schema and user prompt.
|
|
232
|
-
*
|
|
233
|
-
* If the user question and object response already exist, they will be reused and not updated.
|
|
234
|
-
*
|
|
235
|
-
* Known Limitations:
|
|
236
|
-
* - Schema enforcement is best-effort and may not guarantee exact conformity.
|
|
237
|
-
* - This endpoint does not stream results. Use `askDataStream` (coming soon) for progressive rendering.
|
|
238
|
-
*
|
|
239
|
-
* @param {string} conversationId - The ID of a new or existing conversation to use as context for the object generation request
|
|
240
|
-
* @param {MavenAGI.GenerateObjectRequest} request
|
|
241
|
-
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
242
|
-
*
|
|
243
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
244
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
245
|
-
* @throws {@link MavenAGI.ServerError}
|
|
246
|
-
*
|
|
247
|
-
* @example
|
|
248
|
-
* await client.conversation.generateObject("conversationId", {
|
|
249
|
-
* conversationMessageId: {
|
|
250
|
-
* referenceId: "referenceId"
|
|
251
|
-
* },
|
|
252
|
-
* userId: {
|
|
253
|
-
* referenceId: "referenceId"
|
|
254
|
-
* },
|
|
255
|
-
* text: "text",
|
|
256
|
-
* schema: "schema"
|
|
257
|
-
* })
|
|
258
|
-
*/
|
|
259
|
-
generateObject(conversationId: string, request: MavenAGI.GenerateObjectRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.BotObjectResponse>;
|
|
237
|
+
generateMavenSuggestions(conversationId: string, request: MavenAGI.GenerateMavenSuggestionsRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
238
|
+
private __generateMavenSuggestions;
|
|
260
239
|
/**
|
|
261
240
|
* Uses an LLM flow to categorize the conversation. Experimental.
|
|
262
241
|
*
|
|
@@ -270,7 +249,8 @@ export declare class Conversation {
|
|
|
270
249
|
* @example
|
|
271
250
|
* await client.conversation.categorize("conversationId")
|
|
272
251
|
*/
|
|
273
|
-
categorize(conversationId: string, requestOptions?: Conversation.RequestOptions):
|
|
252
|
+
categorize(conversationId: string, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.CategorizationResponse>;
|
|
253
|
+
private __categorize;
|
|
274
254
|
/**
|
|
275
255
|
* Update feedback or create it if it doesn't exist
|
|
276
256
|
*
|
|
@@ -299,7 +279,8 @@ export declare class Conversation {
|
|
|
299
279
|
* text: "Great answer!"
|
|
300
280
|
* })
|
|
301
281
|
*/
|
|
302
|
-
createFeedback(request: MavenAGI.FeedbackRequest, requestOptions?: Conversation.RequestOptions):
|
|
282
|
+
createFeedback(request: MavenAGI.FeedbackRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.Feedback>;
|
|
283
|
+
private __createFeedback;
|
|
303
284
|
/**
|
|
304
285
|
* Submit a filled out action form
|
|
305
286
|
*
|
|
@@ -321,7 +302,8 @@ export declare class Conversation {
|
|
|
321
302
|
* }
|
|
322
303
|
* })
|
|
323
304
|
*/
|
|
324
|
-
submitActionForm(conversationId: string, request: MavenAGI.SubmitActionFormRequest, requestOptions?: Conversation.RequestOptions):
|
|
305
|
+
submitActionForm(conversationId: string, request: MavenAGI.SubmitActionFormRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
306
|
+
private __submitActionForm;
|
|
325
307
|
/**
|
|
326
308
|
* Replaced by `updateConversationMetadata`.
|
|
327
309
|
*
|
|
@@ -340,7 +322,8 @@ export declare class Conversation {
|
|
|
340
322
|
* "string": "string"
|
|
341
323
|
* })
|
|
342
324
|
*/
|
|
343
|
-
addConversationMetadata(conversationId: string, request: Record<string, string>, requestOptions?: Conversation.RequestOptions):
|
|
325
|
+
addConversationMetadata(conversationId: string, request: Record<string, string>, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
326
|
+
private __addConversationMetadata;
|
|
344
327
|
/**
|
|
345
328
|
* Update metadata supplied by the calling application for an existing conversation.
|
|
346
329
|
* Does not modify metadata saved by other apps.
|
|
@@ -366,7 +349,8 @@ export declare class Conversation {
|
|
|
366
349
|
* }
|
|
367
350
|
* })
|
|
368
351
|
*/
|
|
369
|
-
updateConversationMetadata(conversationId: string, request: MavenAGI.UpdateMetadataRequest, requestOptions?: Conversation.RequestOptions):
|
|
352
|
+
updateConversationMetadata(conversationId: string, request: MavenAGI.UpdateMetadataRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationMetadata>;
|
|
353
|
+
private __updateConversationMetadata;
|
|
370
354
|
/**
|
|
371
355
|
* Search conversations
|
|
372
356
|
*
|
|
@@ -380,6 +364,7 @@ export declare class Conversation {
|
|
|
380
364
|
* @example
|
|
381
365
|
* await client.conversation.search({})
|
|
382
366
|
*/
|
|
383
|
-
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions):
|
|
367
|
+
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsResponse>;
|
|
368
|
+
private __search;
|
|
384
369
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
385
370
|
}
|