mavenagi 0.0.0-alpha.2 → 0.0.0-alpha.3
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 -0
- package/Client.js +10 -0
- package/README.md +11 -11
- package/api/resources/action/client/Client.d.ts +78 -0
- package/api/resources/action/client/Client.js +304 -0
- package/api/resources/action/client/index.d.ts +1 -0
- package/api/resources/action/client/index.js +1 -0
- package/api/resources/action/index.d.ts +2 -0
- package/api/resources/action/index.js +2 -0
- package/api/resources/action/types/Action.d.ts +23 -0
- package/api/resources/action/types/ActionParameter.d.ts +8 -0
- package/api/resources/action/types/index.d.ts +2 -0
- package/api/resources/action/types/index.js +2 -0
- package/api/resources/actionSet/client/Client.d.ts +71 -0
- package/api/resources/actionSet/client/Client.js +297 -0
- package/api/resources/actionSet/client/index.d.ts +1 -0
- package/api/resources/actionSet/client/index.js +1 -0
- package/api/resources/actionSet/index.d.ts +2 -0
- package/api/resources/actionSet/index.js +2 -0
- package/api/resources/actionSet/types/ActionSetBase.d.ts +9 -0
- package/{dist/api/resources/knowledge/types/IdBody.d.ts → api/resources/actionSet/types/ActionSetBase.js} +1 -3
- package/api/resources/actionSet/types/ActionSetRequest.d.ts +6 -0
- package/api/resources/{knowledge/types/IdBody.d.ts → actionSet/types/ActionSetRequest.js} +1 -3
- package/api/resources/actionSet/types/ActionSetResponse.d.ts +8 -0
- package/api/resources/actionSet/types/ActionSetResponse.js +4 -0
- package/api/resources/actionSet/types/index.d.ts +3 -0
- package/api/resources/actionSet/types/index.js +3 -0
- package/api/resources/commons/errors/{AgentNotFoundError.d.ts → BadRequestError.d.ts} +1 -1
- package/api/resources/{conversation/errors/EmptyConversationError.js → commons/errors/BadRequestError.js} +3 -3
- package/{dist/api/resources/commons/errors/AgentNotFoundError.d.ts → api/resources/commons/errors/NotFoundError.d.ts} +1 -1
- package/{dist/api/resources/commons/errors/AgentNotFoundError.js → api/resources/commons/errors/NotFoundError.js} +3 -3
- package/{dist/api/resources/conversation/errors/EmptyConversationError.d.ts → api/resources/commons/errors/ServerError.d.ts} +1 -1
- package/api/resources/commons/errors/ServerError.js +14 -0
- package/api/resources/commons/errors/index.d.ts +3 -1
- package/api/resources/commons/errors/index.js +3 -1
- package/api/resources/commons/types/Feedback.d.ts +16 -0
- package/api/resources/commons/types/Feedback.js +4 -0
- package/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
- package/{dist/api/resources/conversation → api/resources/commons}/types/FeedbackType.js +2 -0
- package/api/resources/commons/types/User.d.ts +1 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/conversation/client/Client.d.ts +61 -29
- package/api/resources/conversation/client/Client.js +215 -109
- package/api/resources/conversation/index.d.ts +0 -1
- package/api/resources/conversation/index.js +0 -1
- package/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
- package/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
- package/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
- package/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
- package/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
- package/api/resources/conversation/types/UserMessage.d.ts +1 -0
- package/api/resources/conversation/types/index.d.ts +2 -1
- package/api/resources/conversation/types/index.js +2 -1
- package/api/resources/index.d.ts +4 -2
- package/api/resources/index.js +4 -2
- package/api/resources/knowledge/client/Client.d.ts +30 -34
- package/api/resources/knowledge/client/Client.js +94 -121
- package/api/resources/knowledge/index.d.ts +0 -1
- package/api/resources/knowledge/index.js +0 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocument.d.ts +1 -1
- package/api/resources/knowledge/types/index.d.ts +0 -1
- package/api/resources/knowledge/types/index.js +0 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +10 -0
- package/dist/api/resources/action/client/Client.d.ts +78 -0
- package/dist/api/resources/action/client/Client.js +304 -0
- package/dist/api/resources/action/client/index.d.ts +1 -0
- package/dist/api/resources/action/client/index.js +1 -0
- package/dist/api/resources/action/index.d.ts +2 -0
- package/dist/api/resources/action/index.js +2 -0
- package/dist/api/resources/action/types/Action.d.ts +23 -0
- package/dist/api/resources/action/types/Action.js +4 -0
- package/dist/api/resources/action/types/ActionParameter.d.ts +8 -0
- package/dist/api/resources/action/types/ActionParameter.js +4 -0
- package/dist/api/resources/action/types/index.d.ts +2 -0
- package/dist/api/resources/action/types/index.js +2 -0
- package/dist/api/resources/actionSet/client/Client.d.ts +71 -0
- package/dist/api/resources/actionSet/client/Client.js +297 -0
- package/dist/api/resources/actionSet/client/index.d.ts +1 -0
- package/dist/api/resources/actionSet/client/index.js +1 -0
- package/dist/api/resources/actionSet/index.d.ts +2 -0
- package/dist/api/resources/actionSet/index.js +2 -0
- package/dist/api/resources/actionSet/types/ActionSetBase.d.ts +9 -0
- package/dist/api/resources/actionSet/types/ActionSetBase.js +4 -0
- package/dist/api/resources/actionSet/types/ActionSetRequest.d.ts +6 -0
- package/dist/api/resources/actionSet/types/ActionSetRequest.js +4 -0
- package/dist/api/resources/actionSet/types/ActionSetResponse.d.ts +8 -0
- package/dist/api/resources/actionSet/types/ActionSetResponse.js +4 -0
- package/dist/api/resources/actionSet/types/index.d.ts +3 -0
- package/dist/api/resources/actionSet/types/index.js +3 -0
- package/{api/resources/conversation/errors/EmptyConversationError.d.ts → dist/api/resources/commons/errors/BadRequestError.d.ts} +1 -1
- package/dist/api/resources/{knowledge/errors/VersionInProgressError.js → commons/errors/BadRequestError.js} +3 -3
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/{api/resources/commons/errors/AgentNotFoundError.js → dist/api/resources/commons/errors/NotFoundError.js} +3 -3
- package/dist/api/resources/commons/errors/ServerError.d.ts +8 -0
- package/dist/api/resources/commons/errors/ServerError.js +14 -0
- package/dist/api/resources/commons/errors/index.d.ts +3 -1
- package/dist/api/resources/commons/errors/index.js +3 -1
- package/dist/api/resources/commons/types/Feedback.d.ts +16 -0
- package/dist/api/resources/commons/types/Feedback.js +4 -0
- package/dist/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
- package/{api/resources/conversation → dist/api/resources/commons}/types/FeedbackType.js +2 -0
- package/dist/api/resources/commons/types/User.d.ts +1 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/conversation/client/Client.d.ts +61 -29
- package/dist/api/resources/conversation/client/Client.js +215 -109
- package/dist/api/resources/conversation/index.d.ts +0 -1
- package/dist/api/resources/conversation/index.js +0 -1
- package/dist/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
- package/dist/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
- package/dist/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
- package/dist/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
- package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
- package/dist/api/resources/conversation/types/UserMessage.d.ts +1 -0
- package/dist/api/resources/conversation/types/index.d.ts +2 -1
- package/dist/api/resources/conversation/types/index.js +2 -1
- package/dist/api/resources/index.d.ts +4 -2
- package/dist/api/resources/index.js +4 -2
- package/dist/api/resources/knowledge/client/Client.d.ts +30 -34
- package/dist/api/resources/knowledge/client/Client.js +94 -121
- package/dist/api/resources/knowledge/index.d.ts +0 -1
- package/dist/api/resources/knowledge/index.js +0 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocument.d.ts +1 -1
- package/dist/api/resources/knowledge/types/index.d.ts +0 -1
- package/dist/api/resources/knowledge/types/index.js +0 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/serialization/resources/action/index.d.ts +1 -0
- package/dist/serialization/resources/action/index.js +1 -0
- package/dist/serialization/resources/action/types/Action.d.ts +21 -0
- package/dist/serialization/resources/action/types/Action.js +16 -0
- package/dist/serialization/resources/action/types/ActionParameter.d.ts +14 -0
- package/dist/serialization/resources/action/types/ActionParameter.js +9 -0
- package/dist/serialization/resources/action/types/index.d.ts +2 -0
- package/dist/serialization/resources/action/types/index.js +2 -0
- package/dist/serialization/resources/actionSet/index.d.ts +1 -0
- package/dist/serialization/resources/actionSet/index.js +1 -0
- package/dist/serialization/resources/{knowledge/types/IdBody.d.ts → actionSet/types/ActionSetBase.d.ts} +4 -3
- package/dist/serialization/resources/actionSet/types/ActionSetBase.js +8 -0
- package/dist/serialization/resources/actionSet/types/ActionSetRequest.d.ts +12 -0
- package/dist/serialization/resources/actionSet/types/ActionSetRequest.js +6 -0
- package/dist/serialization/resources/actionSet/types/ActionSetResponse.d.ts +14 -0
- package/dist/serialization/resources/actionSet/types/ActionSetResponse.js +11 -0
- package/dist/serialization/resources/actionSet/types/index.d.ts +3 -0
- package/dist/serialization/resources/actionSet/types/index.js +3 -0
- package/dist/serialization/resources/commons/types/Feedback.d.ts +17 -0
- package/dist/serialization/resources/commons/types/Feedback.js +12 -0
- package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
- package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
- package/dist/serialization/resources/commons/types/User.d.ts +1 -0
- package/dist/serialization/resources/commons/types/User.js +1 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
- package/dist/serialization/resources/{knowledge/types/IdBody.js → conversation/types/ActionExecutionResponse.js} +2 -2
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
- package/dist/serialization/resources/conversation/types/index.d.ts +2 -1
- package/dist/serialization/resources/conversation/types/index.js +2 -1
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +4 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/index.js +0 -1
- package/package.json +1 -1
- package/serialization/resources/action/index.d.ts +1 -0
- package/serialization/resources/action/index.js +1 -0
- package/serialization/resources/action/types/Action.d.ts +21 -0
- package/serialization/resources/action/types/Action.js +16 -0
- package/serialization/resources/action/types/ActionParameter.d.ts +14 -0
- package/serialization/resources/action/types/ActionParameter.js +9 -0
- package/serialization/resources/action/types/index.d.ts +2 -0
- package/serialization/resources/action/types/index.js +2 -0
- package/serialization/resources/actionSet/index.d.ts +1 -0
- package/serialization/resources/actionSet/index.js +1 -0
- package/serialization/resources/{knowledge/types/IdBody.d.ts → actionSet/types/ActionSetBase.d.ts} +4 -3
- package/serialization/resources/actionSet/types/ActionSetBase.js +8 -0
- package/serialization/resources/actionSet/types/ActionSetRequest.d.ts +12 -0
- package/serialization/resources/actionSet/types/ActionSetRequest.js +6 -0
- package/serialization/resources/actionSet/types/ActionSetResponse.d.ts +14 -0
- package/serialization/resources/actionSet/types/ActionSetResponse.js +11 -0
- package/serialization/resources/actionSet/types/index.d.ts +3 -0
- package/serialization/resources/actionSet/types/index.js +3 -0
- package/serialization/resources/commons/types/Feedback.d.ts +17 -0
- package/serialization/resources/commons/types/Feedback.js +12 -0
- package/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
- package/serialization/resources/commons/types/User.d.ts +1 -0
- package/serialization/resources/commons/types/User.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
- package/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
- package/serialization/resources/{knowledge/types/IdBody.js → conversation/types/ActionExecutionResponse.js} +2 -2
- package/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
- package/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
- package/serialization/resources/conversation/types/index.d.ts +2 -1
- package/serialization/resources/conversation/types/index.js +2 -1
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +4 -0
- package/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/serialization/resources/knowledge/types/index.js +0 -1
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
- package/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
- package/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
- package/api/resources/conversation/errors/index.d.ts +0 -7
- package/api/resources/conversation/errors/index.js +0 -7
- package/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
- package/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
- package/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
- package/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
- package/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
- package/api/resources/knowledge/errors/VersionInProgressError.js +0 -14
- package/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
- package/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
- package/api/resources/knowledge/errors/index.d.ts +0 -6
- package/api/resources/knowledge/errors/index.js +0 -6
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
- package/dist/api/resources/conversation/errors/EmptyConversationError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
- package/dist/api/resources/conversation/errors/index.d.ts +0 -7
- package/dist/api/resources/conversation/errors/index.js +0 -7
- package/dist/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
- package/dist/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
- package/dist/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
- package/dist/api/resources/knowledge/errors/index.d.ts +0 -6
- package/dist/api/resources/knowledge/errors/index.js +0 -6
- /package/api/resources/{knowledge/types/IdBody.js → action/types/Action.js} +0 -0
- /package/{dist/api/resources/knowledge/types/IdBody.js → api/resources/action/types/ActionParameter.js} +0 -0
|
@@ -13,12 +13,13 @@ export * from "./BotResponse";
|
|
|
13
13
|
export * from "./BotTextResponse";
|
|
14
14
|
export * from "./BotActionFormResponse";
|
|
15
15
|
export * from "./ActionFormField";
|
|
16
|
+
export * from "./ActionExecutionRequest";
|
|
17
|
+
export * from "./ActionExecutionResponse";
|
|
16
18
|
export * from "./ConversationContext";
|
|
17
19
|
export * from "./ConversationMessageContext";
|
|
18
20
|
export * from "./UserConversationMessageType";
|
|
19
21
|
export * from "./BotConversationMessageType";
|
|
20
22
|
export * from "./FeedbackRequest";
|
|
21
|
-
export * from "./FeedbackType";
|
|
22
23
|
export * from "./StreamResponse";
|
|
23
24
|
export * from "./AskStreamTextEvent";
|
|
24
25
|
export * from "./AskStreamMetadataEvent";
|
|
@@ -13,12 +13,13 @@ export * from "./BotResponse";
|
|
|
13
13
|
export * from "./BotTextResponse";
|
|
14
14
|
export * from "./BotActionFormResponse";
|
|
15
15
|
export * from "./ActionFormField";
|
|
16
|
+
export * from "./ActionExecutionRequest";
|
|
17
|
+
export * from "./ActionExecutionResponse";
|
|
16
18
|
export * from "./ConversationContext";
|
|
17
19
|
export * from "./ConversationMessageContext";
|
|
18
20
|
export * from "./UserConversationMessageType";
|
|
19
21
|
export * from "./BotConversationMessageType";
|
|
20
22
|
export * from "./FeedbackRequest";
|
|
21
|
-
export * from "./FeedbackType";
|
|
22
23
|
export * from "./StreamResponse";
|
|
23
24
|
export * from "./AskStreamTextEvent";
|
|
24
25
|
export * from "./AskStreamMetadataEvent";
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * as actionSet from "./actionSet";
|
|
2
|
+
export * from "./actionSet/types";
|
|
3
|
+
export * as action from "./action";
|
|
4
|
+
export * from "./action/types";
|
|
1
5
|
export * as commons from "./commons";
|
|
2
6
|
export * from "./commons/types";
|
|
3
7
|
export * as conversation from "./conversation";
|
|
@@ -5,5 +9,3 @@ export * from "./conversation/types";
|
|
|
5
9
|
export * as knowledge from "./knowledge";
|
|
6
10
|
export * from "./knowledge/types";
|
|
7
11
|
export * from "./commons/errors";
|
|
8
|
-
export * from "./conversation/errors";
|
|
9
|
-
export * from "./knowledge/errors";
|
package/api/resources/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * as actionSet from "./actionSet";
|
|
2
|
+
export * from "./actionSet/types";
|
|
3
|
+
export * as action from "./action";
|
|
4
|
+
export * from "./action/types";
|
|
1
5
|
export * as commons from "./commons";
|
|
2
6
|
export * from "./commons/types";
|
|
3
7
|
export * as conversation from "./conversation";
|
|
@@ -5,5 +9,3 @@ export * from "./conversation/types";
|
|
|
5
9
|
export * as knowledge from "./knowledge";
|
|
6
10
|
export * from "./knowledge/types";
|
|
7
11
|
export * from "./commons/errors";
|
|
8
|
-
export * from "./conversation/errors";
|
|
9
|
-
export * from "./knowledge/errors";
|
|
@@ -23,15 +23,17 @@ export declare class Knowledge {
|
|
|
23
23
|
protected readonly _options: Knowledge.Options;
|
|
24
24
|
constructor(_options: Knowledge.Options);
|
|
25
25
|
/**
|
|
26
|
-
* Create knowledge base
|
|
26
|
+
* Create a new knowledge base.
|
|
27
27
|
*
|
|
28
28
|
* @param {MavenAGI.KnowledgeBase} request
|
|
29
29
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
|
-
* @throws {@link MavenAGI.
|
|
31
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
32
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
33
|
+
* @throws {@link MavenAGI.ServerError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
|
-
* await
|
|
36
|
+
* await client.knowledge.createKnowledgeBase({
|
|
35
37
|
* displayName: "string",
|
|
36
38
|
* type: MavenAGI.KnowledgeBaseType.Api,
|
|
37
39
|
* url: "string",
|
|
@@ -40,54 +42,50 @@ export declare class Knowledge {
|
|
|
40
42
|
*/
|
|
41
43
|
createKnowledgeBase(request: MavenAGI.KnowledgeBase, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBase>;
|
|
42
44
|
/**
|
|
43
|
-
* Create a new knowledge base version. Only supported on API knowledge bases.
|
|
45
|
+
* Create a new knowledge base version. Only supported on API knowledge bases. Will throw an exception if there is an existing version in progress.
|
|
44
46
|
*
|
|
45
47
|
* @param {MavenAGI.KnowledgeBaseVersion} request
|
|
46
48
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
49
|
*
|
|
48
|
-
* @throws {@link MavenAGI.
|
|
49
|
-
* @throws {@link MavenAGI.
|
|
50
|
-
* @throws {@link MavenAGI.
|
|
51
|
-
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
50
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
51
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
52
|
+
* @throws {@link MavenAGI.ServerError}
|
|
52
53
|
*
|
|
53
54
|
* @example
|
|
54
|
-
* await
|
|
55
|
+
* await client.knowledge.createKnowledgeBaseVersion({
|
|
55
56
|
* knowledgeBaseId: "string",
|
|
56
57
|
* type: MavenAGI.KnowledgeBaseVersionType.Full
|
|
57
58
|
* })
|
|
58
59
|
*/
|
|
59
60
|
createKnowledgeBaseVersion(request: MavenAGI.KnowledgeBaseVersion, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseVersion>;
|
|
60
61
|
/**
|
|
61
|
-
* Finalize
|
|
62
|
+
* Finalize the latest knowledge base version. Required to indicate the version is complete. Will throw an exception if the latest version is not in progress.
|
|
62
63
|
*
|
|
63
64
|
* @param {MavenAGI.KnowledgeBaseId} request
|
|
64
65
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
66
|
*
|
|
66
|
-
* @throws {@link MavenAGI.
|
|
67
|
-
* @throws {@link MavenAGI.
|
|
68
|
-
* @throws {@link MavenAGI.
|
|
69
|
-
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
67
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
68
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
69
|
+
* @throws {@link MavenAGI.ServerError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await
|
|
72
|
+
* await client.knowledge.finalizeKnowledgeBaseVersion({
|
|
73
73
|
* knowledgeBaseId: "string"
|
|
74
74
|
* })
|
|
75
75
|
*/
|
|
76
76
|
finalizeKnowledgeBaseVersion(request: MavenAGI.KnowledgeBaseId, requestOptions?: Knowledge.RequestOptions): Promise<void>;
|
|
77
77
|
/**
|
|
78
|
-
* Create knowledge document
|
|
78
|
+
* Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
|
|
79
79
|
*
|
|
80
80
|
* @param {MavenAGI.KnowledgeDocument} request
|
|
81
81
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
82
|
*
|
|
83
|
-
* @throws {@link MavenAGI.
|
|
84
|
-
* @throws {@link MavenAGI.
|
|
85
|
-
* @throws {@link MavenAGI.
|
|
86
|
-
* @throws {@link MavenAGI.DocumentCreationError}
|
|
87
|
-
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
83
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
84
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
85
|
+
* @throws {@link MavenAGI.ServerError}
|
|
88
86
|
*
|
|
89
87
|
* @example
|
|
90
|
-
* await
|
|
88
|
+
* await client.knowledge.createKnowledgeDocument({
|
|
91
89
|
* title: "string",
|
|
92
90
|
* content: "string",
|
|
93
91
|
* url: "string",
|
|
@@ -101,18 +99,17 @@ export declare class Knowledge {
|
|
|
101
99
|
*/
|
|
102
100
|
createKnowledgeDocument(request: MavenAGI.KnowledgeDocument, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeDocument>;
|
|
103
101
|
/**
|
|
104
|
-
* Update knowledge document
|
|
102
|
+
* Update knowledge document. Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the latest version is not in progress.
|
|
105
103
|
*
|
|
106
104
|
* @param {MavenAGI.KnowledgeDocument} request
|
|
107
105
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
106
|
*
|
|
109
|
-
* @throws {@link MavenAGI.
|
|
110
|
-
* @throws {@link MavenAGI.
|
|
111
|
-
* @throws {@link MavenAGI.
|
|
112
|
-
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
107
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
108
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
109
|
+
* @throws {@link MavenAGI.ServerError}
|
|
113
110
|
*
|
|
114
111
|
* @example
|
|
115
|
-
* await
|
|
112
|
+
* await client.knowledge.updateKnowledgeDocument({
|
|
116
113
|
* title: "string",
|
|
117
114
|
* content: "string",
|
|
118
115
|
* url: "string",
|
|
@@ -126,18 +123,17 @@ export declare class Knowledge {
|
|
|
126
123
|
*/
|
|
127
124
|
updateKnowledgeDocument(request: MavenAGI.KnowledgeDocument, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeDocument>;
|
|
128
125
|
/**
|
|
129
|
-
* Delete knowledge document
|
|
126
|
+
* Delete knowledge document. Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the latest version is not in progress.
|
|
130
127
|
*
|
|
131
128
|
* @param {MavenAGI.KnowledgeDocumentId} request
|
|
132
129
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
130
|
*
|
|
134
|
-
* @throws {@link MavenAGI.
|
|
135
|
-
* @throws {@link MavenAGI.
|
|
136
|
-
* @throws {@link MavenAGI.
|
|
137
|
-
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
131
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
132
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
133
|
+
* @throws {@link MavenAGI.ServerError}
|
|
138
134
|
*
|
|
139
135
|
* @example
|
|
140
|
-
* await
|
|
136
|
+
* await client.knowledge.deleteKnowledgeDocument({
|
|
141
137
|
* knowledgeBaseId: "string",
|
|
142
138
|
* documentId: "string"
|
|
143
139
|
* })
|