mavenagi 1.0.8 → 1.0.9
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 -0
- package/Client.js +11 -6
- package/api/resources/actions/client/Client.d.ts +2 -1
- package/api/resources/actions/client/Client.js +5 -4
- package/api/resources/actions/types/ActionRequest.d.ts +2 -1
- package/api/resources/analytics/client/Client.js +3 -3
- package/api/resources/appSettings/client/Client.js +1 -1
- package/api/resources/commons/types/ActionBase.d.ts +3 -1
- package/api/resources/commons/types/ActionResponse.d.ts +2 -1
- package/api/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -1
- package/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
- package/api/resources/commons/types/BotMessage.d.ts +1 -0
- package/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
- package/api/resources/commons/types/BotMessageStatus.js +14 -0
- package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -0
- package/api/resources/commons/types/ConversationPreview.d.ts +6 -0
- package/{dist/api/resources/knowledge/types/KnowledgeBaseType.js → api/resources/commons/types/ConversationPreview.js} +0 -6
- package/api/resources/commons/types/ConversationResponse.d.ts +4 -10
- package/api/resources/commons/types/index.d.ts +6 -3
- package/api/resources/commons/types/index.js +6 -3
- package/api/resources/conversation/client/Client.d.ts +14 -5
- package/api/resources/conversation/client/Client.js +92 -17
- package/api/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
- package/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
- package/api/resources/{knowledge/types/KnowledgeBaseType.js → conversation/types/ConversationsResponse.js} +0 -6
- package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
- package/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
- package/api/resources/conversation/types/index.d.ts +2 -0
- package/api/resources/conversation/types/index.js +2 -0
- package/api/resources/inbox/client/Client.js +5 -5
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/knowledge/client/Client.d.ts +1 -2
- package/api/resources/knowledge/client/Client.js +8 -9
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
- package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -2
- package/api/resources/knowledge/types/index.d.ts +0 -1
- package/api/resources/knowledge/types/index.js +0 -1
- package/api/resources/realtime/client/Client.d.ts +34 -0
- package/api/resources/realtime/client/Client.js +87 -0
- package/api/resources/realtime/client/Socket.d.ts +41 -0
- package/api/resources/realtime/client/Socket.js +155 -0
- package/api/resources/realtime/client/index.d.ts +1 -0
- package/api/resources/realtime/client/index.js +2 -0
- package/api/resources/realtime/index.d.ts +2 -0
- package/api/resources/realtime/index.js +18 -0
- package/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
- package/api/resources/realtime/types/AudioPublishEvent.js +5 -0
- package/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
- package/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
- package/api/resources/realtime/types/ControlEvent.d.ts +6 -0
- package/api/resources/realtime/types/ControlEvent.js +5 -0
- package/api/resources/realtime/types/PublishEvent.d.ts +13 -0
- package/api/resources/realtime/types/PublishEvent.js +5 -0
- package/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
- package/api/resources/realtime/types/SubscribeEvent.js +5 -0
- package/api/resources/realtime/types/index.d.ts +5 -0
- package/api/resources/realtime/types/index.js +21 -0
- package/api/resources/translations/client/Client.js +1 -1
- package/api/resources/triggers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +3 -3
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/websocket/events.d.ts +36 -0
- package/core/websocket/events.js +27 -0
- package/core/websocket/index.d.ts +1 -0
- package/core/websocket/index.js +17 -0
- package/core/websocket/ws.d.ts +137 -0
- package/core/websocket/ws.js +452 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/actions/client/Client.d.ts +2 -1
- package/dist/api/resources/actions/client/Client.js +5 -4
- package/dist/api/resources/actions/types/ActionRequest.d.ts +2 -1
- package/dist/api/resources/analytics/client/Client.js +3 -3
- package/dist/api/resources/appSettings/client/Client.js +1 -1
- package/dist/api/resources/commons/types/ActionBase.d.ts +3 -1
- package/dist/api/resources/commons/types/ActionResponse.d.ts +2 -1
- package/dist/api/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -1
- package/dist/api/resources/commons/types/BaseConversationResponse.js +5 -0
- package/dist/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
- package/dist/api/resources/commons/types/BasePaginatedRequest.js +5 -0
- package/dist/api/resources/commons/types/BotMessage.d.ts +1 -0
- package/dist/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
- package/dist/api/resources/commons/types/BotMessageStatus.js +14 -0
- package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +2 -0
- package/dist/api/resources/commons/types/ConversationPreview.d.ts +6 -0
- package/dist/api/resources/commons/types/ConversationPreview.js +5 -0
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +4 -10
- package/dist/api/resources/commons/types/index.d.ts +6 -3
- package/dist/api/resources/commons/types/index.js +6 -3
- package/dist/api/resources/conversation/client/Client.d.ts +14 -5
- package/dist/api/resources/conversation/client/Client.js +92 -17
- package/dist/api/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/dist/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
- package/dist/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationsResponse.js +5 -0
- package/dist/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
- package/dist/api/resources/conversation/types/index.d.ts +2 -0
- package/dist/api/resources/conversation/types/index.js +2 -0
- package/dist/api/resources/inbox/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/knowledge/client/Client.d.ts +1 -2
- package/dist/api/resources/knowledge/client/Client.js +8 -9
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -2
- package/dist/api/resources/knowledge/types/index.d.ts +0 -1
- package/dist/api/resources/knowledge/types/index.js +0 -1
- package/dist/api/resources/realtime/client/Client.d.ts +34 -0
- package/dist/api/resources/realtime/client/Client.js +87 -0
- package/dist/api/resources/realtime/client/Socket.d.ts +41 -0
- package/dist/api/resources/realtime/client/Socket.js +155 -0
- package/dist/api/resources/realtime/client/index.d.ts +1 -0
- package/dist/api/resources/realtime/client/index.js +2 -0
- package/dist/api/resources/realtime/index.d.ts +2 -0
- package/dist/api/resources/realtime/index.js +18 -0
- package/dist/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/AudioPublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
- package/dist/api/resources/realtime/types/ControlEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/ControlEvent.js +5 -0
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +13 -0
- package/dist/api/resources/realtime/types/PublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
- package/dist/api/resources/realtime/types/SubscribeEvent.js +5 -0
- package/dist/api/resources/realtime/types/index.d.ts +5 -0
- package/dist/api/resources/realtime/types/index.js +21 -0
- package/dist/api/resources/translations/client/Client.js +1 -1
- package/dist/api/resources/triggers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +3 -3
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/websocket/events.d.ts +36 -0
- package/dist/core/websocket/events.js +27 -0
- package/dist/core/websocket/index.d.ts +1 -0
- package/dist/core/websocket/index.js +17 -0
- package/dist/core/websocket/ws.d.ts +137 -0
- package/dist/core/websocket/ws.js +452 -0
- package/dist/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ActionBase.js +1 -0
- package/dist/serialization/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -2
- package/dist/serialization/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +9 -2
- package/dist/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
- package/dist/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
- package/dist/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/dist/serialization/resources/commons/types/BotMessage.js +2 -0
- package/dist/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/BotMessageStatus.js +41 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +1 -0
- package/dist/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
- package/dist/serialization/resources/commons/types/ConversationPreview.js +42 -0
- package/dist/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
- package/dist/serialization/resources/commons/types/ConversationResponse.js +2 -9
- package/dist/serialization/resources/commons/types/index.d.ts +6 -3
- package/dist/serialization/resources/commons/types/index.js +6 -3
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +1 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +10 -5
- package/dist/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
- package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +0 -3
- package/dist/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/index.js +0 -1
- package/dist/serialization/resources/realtime/index.d.ts +1 -0
- package/dist/serialization/resources/realtime/index.js +17 -0
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
- package/{serialization/resources/knowledge/types/KnowledgeBaseType.js → dist/serialization/resources/realtime/types/ControlEvent.js} +4 -2
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +14 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.js +49 -0
- package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
- package/dist/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
- package/dist/serialization/resources/realtime/types/index.d.ts +5 -0
- package/dist/serialization/resources/realtime/types/index.js +21 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/reference.md +64 -6
- package/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/serialization/resources/commons/types/ActionBase.js +1 -0
- package/serialization/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -2
- package/serialization/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +9 -2
- package/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
- package/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/serialization/resources/commons/types/BotMessage.js +2 -0
- package/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
- package/serialization/resources/commons/types/BotMessageStatus.js +41 -0
- package/serialization/resources/commons/types/ConversationAnalysis.d.ts +1 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +1 -0
- package/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
- package/serialization/resources/commons/types/ConversationPreview.js +42 -0
- package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
- package/serialization/resources/commons/types/ConversationResponse.js +2 -9
- package/serialization/resources/commons/types/index.d.ts +6 -3
- package/serialization/resources/commons/types/index.js +6 -3
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +1 -0
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
- package/serialization/resources/conversation/types/ConversationRequest.js +10 -5
- package/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
- package/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
- package/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
- package/serialization/resources/conversation/types/index.d.ts +2 -0
- package/serialization/resources/conversation/types/index.js +2 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +0 -3
- package/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/serialization/resources/knowledge/types/index.js +0 -1
- package/serialization/resources/realtime/index.d.ts +1 -0
- package/serialization/resources/realtime/index.js +17 -0
- package/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
- package/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
- package/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
- package/{dist/serialization/resources/knowledge/types/KnowledgeBaseType.js → serialization/resources/realtime/types/ControlEvent.js} +4 -2
- package/serialization/resources/realtime/types/PublishEvent.d.ts +14 -0
- package/serialization/resources/realtime/types/PublishEvent.js +49 -0
- package/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
- package/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
- package/serialization/resources/realtime/types/index.d.ts +5 -0
- package/serialization/resources/realtime/types/index.js +21 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -12
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -12
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -10
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -10
- /package/api/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +0 -0
- /package/{dist/api/resources/commons/types/ConversationBase.js → api/resources/commons/types/BasePaginatedRequest.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { AppSettings } from "./api/resources/appSettings/client/Client";
|
|
|
9
9
|
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
10
10
|
import { Inbox } from "./api/resources/inbox/client/Client";
|
|
11
11
|
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
12
|
+
import { Realtime } from "./api/resources/realtime/client/Client";
|
|
12
13
|
import { Translations } from "./api/resources/translations/client/Client";
|
|
13
14
|
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
14
15
|
import { Users } from "./api/resources/users/client/Client";
|
|
@@ -48,6 +49,7 @@ export declare class MavenAGIClient {
|
|
|
48
49
|
protected _conversation: Conversation | undefined;
|
|
49
50
|
protected _inbox: Inbox | undefined;
|
|
50
51
|
protected _knowledge: Knowledge | undefined;
|
|
52
|
+
protected _realtime: Realtime | undefined;
|
|
51
53
|
protected _translations: Translations | undefined;
|
|
52
54
|
protected _triggers: Triggers | undefined;
|
|
53
55
|
protected _users: Users | undefined;
|
|
@@ -58,6 +60,7 @@ export declare class MavenAGIClient {
|
|
|
58
60
|
get conversation(): Conversation;
|
|
59
61
|
get inbox(): Inbox;
|
|
60
62
|
get knowledge(): Knowledge;
|
|
63
|
+
get realtime(): Realtime;
|
|
61
64
|
get translations(): Translations;
|
|
62
65
|
get triggers(): Triggers;
|
|
63
66
|
get users(): Users;
|
package/Client.js
CHANGED
|
@@ -10,9 +10,10 @@ const Client_3 = require("./api/resources/appSettings/client/Client");
|
|
|
10
10
|
const Client_4 = require("./api/resources/conversation/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/inbox/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/knowledge/client/Client");
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
13
|
+
const Client_7 = require("./api/resources/realtime/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/translations/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/triggers/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/users/client/Client");
|
|
16
17
|
class MavenAGIClient {
|
|
17
18
|
constructor(_options) {
|
|
18
19
|
this._options = _options;
|
|
@@ -41,17 +42,21 @@ class MavenAGIClient {
|
|
|
41
42
|
var _a;
|
|
42
43
|
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_6.Knowledge(this._options)));
|
|
43
44
|
}
|
|
45
|
+
get realtime() {
|
|
46
|
+
var _a;
|
|
47
|
+
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_7.Realtime(this._options)));
|
|
48
|
+
}
|
|
44
49
|
get translations() {
|
|
45
50
|
var _a;
|
|
46
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
51
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_8.Translations(this._options)));
|
|
47
52
|
}
|
|
48
53
|
get triggers() {
|
|
49
54
|
var _a;
|
|
50
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
55
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_9.Triggers(this._options)));
|
|
51
56
|
}
|
|
52
57
|
get users() {
|
|
53
58
|
var _a;
|
|
54
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
59
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_10.Users(this._options)));
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
exports.MavenAGIClient = MavenAGIClient;
|
|
@@ -64,7 +64,8 @@ export declare class Actions {
|
|
|
64
64
|
* preconditionType: "user",
|
|
65
65
|
* key: "userKey2"
|
|
66
66
|
* }]
|
|
67
|
-
* }
|
|
67
|
+
* },
|
|
68
|
+
* language: "en"
|
|
68
69
|
* })
|
|
69
70
|
*/
|
|
70
71
|
createOrUpdate(request: MavenAGI.ActionRequest, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionResponse>;
|
|
@@ -88,7 +88,8 @@ class Actions {
|
|
|
88
88
|
* preconditionType: "user",
|
|
89
89
|
* key: "userKey2"
|
|
90
90
|
* }]
|
|
91
|
-
* }
|
|
91
|
+
* },
|
|
92
|
+
* language: "en"
|
|
92
93
|
* })
|
|
93
94
|
*/
|
|
94
95
|
createOrUpdate(request, requestOptions) {
|
|
@@ -97,7 +98,7 @@ class Actions {
|
|
|
97
98
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
98
99
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/actions"),
|
|
99
100
|
method: "PUT",
|
|
100
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
101
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
102
|
contentType: "application/json",
|
|
102
103
|
requestType: "json",
|
|
103
104
|
body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -177,7 +178,7 @@ class Actions {
|
|
|
177
178
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
178
179
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
179
180
|
method: "GET",
|
|
180
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
181
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
181
182
|
contentType: "application/json",
|
|
182
183
|
requestType: "json",
|
|
183
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -256,7 +257,7 @@ class Actions {
|
|
|
256
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
257
258
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
258
259
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
260
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
260
261
|
contentType: "application/json",
|
|
261
262
|
requestType: "json",
|
|
262
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -105,7 +105,7 @@ class Analytics {
|
|
|
105
105
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
106
106
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/tables/conversations"),
|
|
107
107
|
method: "POST",
|
|
108
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
108
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
109
|
contentType: "application/json",
|
|
110
110
|
requestType: "json",
|
|
111
111
|
body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -228,7 +228,7 @@ class Analytics {
|
|
|
228
228
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
229
229
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/charts/conversations"),
|
|
230
230
|
method: "POST",
|
|
231
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
231
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
232
232
|
contentType: "application/json",
|
|
233
233
|
requestType: "json",
|
|
234
234
|
body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -321,7 +321,7 @@ class Analytics {
|
|
|
321
321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
322
322
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/tables/feedback"),
|
|
323
323
|
method: "POST",
|
|
324
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
324
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
325
325
|
contentType: "application/json",
|
|
326
326
|
requestType: "json",
|
|
327
327
|
body: serializers.FeedbackTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -77,7 +77,7 @@ class AppSettings {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "v1/app-settings"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
80
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -9,10 +9,12 @@ export interface ActionBase {
|
|
|
9
9
|
description: string;
|
|
10
10
|
/** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. */
|
|
11
11
|
userInteractionRequired: boolean;
|
|
12
|
-
/** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action */
|
|
12
|
+
/** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action. Defaults to "Submit" if not supplied. */
|
|
13
13
|
buttonName?: string;
|
|
14
14
|
/** The preconditions that must be met for an action to be relevant to a conversation. Can be used to restrict actions to certain types of users. */
|
|
15
15
|
precondition?: MavenAGI.Precondition;
|
|
16
16
|
/** The parameters that the action uses as input. An action will only be executed when all of the required parameters are provided. During execution, actions all have access to the full Conversation and User objects. Parameter values may be inferred from the user's conversation by the LLM. */
|
|
17
17
|
userFormParameters: MavenAGI.ActionParameter[];
|
|
18
|
+
/** The ISO 639-1 code for the language used in all fields of this action. Will be derived using the description's text if not specified. */
|
|
19
|
+
language?: string;
|
|
18
20
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface BaseConversationResponse {
|
|
6
6
|
/** Optional configurations for responses to this conversation */
|
|
7
7
|
responseConfig?: MavenAGI.ResponseConfig;
|
|
8
8
|
/** The subject of the conversation */
|
|
@@ -19,4 +19,12 @@ export interface ConversationBase {
|
|
|
19
19
|
metadata?: Record<string, string>;
|
|
20
20
|
/** All metadata for the conversation. Keyed by appId. */
|
|
21
21
|
allMetadata: Record<string, Record<string, string>>;
|
|
22
|
+
/** The ID that uniquely identifies this conversation */
|
|
23
|
+
conversationId: MavenAGI.EntityId;
|
|
24
|
+
/** An analysis of the conversation. Fields are generated by Maven via an analysis of user messages. This object is calculated on a delay. Fields will not be up to date on ask requests. */
|
|
25
|
+
analysis: MavenAGI.ConversationAnalysis;
|
|
26
|
+
/** A summary of the conversation. Fields are calculated from conversation data. Unlike analysis, all fields can be derived from other data available in the API. This object is provided as a convenience and is calculated on a delay. Fields will not be up to date on ask requests. */
|
|
27
|
+
summary: MavenAGI.ConversationSummary;
|
|
28
|
+
/** Whether the conversation user-specific data has been deleted. See `deleteConversation` for details. */
|
|
29
|
+
deleted: boolean;
|
|
22
30
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BasePaginatedRequest {
|
|
5
|
+
/** Page number to return, defaults to 0 */
|
|
6
|
+
page?: number;
|
|
7
|
+
/** The size of the page to return, defaults to 20 */
|
|
8
|
+
size?: number;
|
|
9
|
+
/** Whether to sort descending, defaults to true */
|
|
10
|
+
sortDesc?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The delivery status of the bot message.
|
|
6
|
+
*
|
|
7
|
+
* * `SENDING`: The message is being streamed to the user.
|
|
8
|
+
* * `SENT`: The message has been sent to the user.
|
|
9
|
+
* * `REJECTED`: The message was rejected by the system.
|
|
10
|
+
* * `CANCELED`: The message was canceled by the user before streaming was complete.
|
|
11
|
+
* * `FAILED`: The message generating or sending encountered an error.
|
|
12
|
+
* * `UNKNOWN`: The message status is unknown.
|
|
13
|
+
*/
|
|
14
|
+
export type BotMessageStatus = "SENDING" | "SENT" | "REJECTED" | "CANCELED" | "FAILED" | "UNKNOWN";
|
|
15
|
+
export declare const BotMessageStatus: {
|
|
16
|
+
readonly Sending: "SENDING";
|
|
17
|
+
readonly Sent: "SENT";
|
|
18
|
+
readonly Rejected: "REJECTED";
|
|
19
|
+
readonly Canceled: "CANCELED";
|
|
20
|
+
readonly Failed: "FAILED";
|
|
21
|
+
readonly Unknown: "UNKNOWN";
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BotMessageStatus = void 0;
|
|
7
|
+
exports.BotMessageStatus = {
|
|
8
|
+
Sending: "SENDING",
|
|
9
|
+
Sent: "SENT",
|
|
10
|
+
Rejected: "REJECTED",
|
|
11
|
+
Canceled: "CANCELED",
|
|
12
|
+
Failed: "FAILED",
|
|
13
|
+
Unknown: "UNKNOWN",
|
|
14
|
+
};
|
|
@@ -15,7 +15,8 @@ import * as MavenAGI from "../../../index";
|
|
|
15
15
|
* deleted: false,
|
|
16
16
|
* analysis: {
|
|
17
17
|
* resolutionStatus: "Resolved",
|
|
18
|
-
* sentiment: MavenAGI.Sentiment.Positive
|
|
18
|
+
* sentiment: MavenAGI.Sentiment.Positive,
|
|
19
|
+
* resolvedByMaven: true
|
|
19
20
|
* },
|
|
20
21
|
* summary: {
|
|
21
22
|
* actionIds: [],
|
|
@@ -50,6 +51,7 @@ import * as MavenAGI from "../../../index";
|
|
|
50
51
|
* agentId: "support",
|
|
51
52
|
* type: MavenAGI.EntityType.ConversationMessage
|
|
52
53
|
* },
|
|
54
|
+
* status: MavenAGI.BotMessageStatus.Sent,
|
|
53
55
|
* responses: [{
|
|
54
56
|
* type: "text",
|
|
55
57
|
* text: "Hi! Go to acme.com/reset-password"
|
|
@@ -61,15 +63,7 @@ import * as MavenAGI from "../../../index";
|
|
|
61
63
|
* }]
|
|
62
64
|
* }
|
|
63
65
|
*/
|
|
64
|
-
export interface ConversationResponse extends MavenAGI.
|
|
65
|
-
/** The ID that uniquely identifies this conversation */
|
|
66
|
-
conversationId: MavenAGI.EntityId;
|
|
66
|
+
export interface ConversationResponse extends MavenAGI.BaseConversationResponse {
|
|
67
67
|
/** The messages in the conversation */
|
|
68
68
|
messages: MavenAGI.ConversationMessageResponse[];
|
|
69
|
-
/** An analysis of the conversation. Fields are generated by Maven via an analysis of user messages. This object is calculated on a delay. Fields will not be up to date on ask requests. */
|
|
70
|
-
analysis: MavenAGI.ConversationAnalysis;
|
|
71
|
-
/** A summary of the conversation. Fields are calculated from conversation data. Unlike analysis, all fields can be derived from other data available in the API. This object is provided as a convenience and is calculated on a delay. Fields will not be up to date on ask requests. */
|
|
72
|
-
summary: MavenAGI.ConversationSummary;
|
|
73
|
-
/** Whether the conversation user-specific data has been deleted. See `deleteConversation` for details. */
|
|
74
|
-
deleted: boolean;
|
|
75
69
|
}
|
|
@@ -2,10 +2,10 @@ export * from "./ErrorMessage";
|
|
|
2
2
|
export * from "./EntityType";
|
|
3
3
|
export * from "./EntityIdBase";
|
|
4
4
|
export * from "./EntityIdWithoutAgent";
|
|
5
|
-
export * from "./EntityIdFilter";
|
|
6
5
|
export * from "./EntityId";
|
|
7
|
-
export * from "./
|
|
6
|
+
export * from "./EntityIdFilter";
|
|
8
7
|
export * from "./FeedbackType";
|
|
8
|
+
export * from "./FeedbackBase";
|
|
9
9
|
export * from "./Feedback";
|
|
10
10
|
export * from "./AppUserIdentifier";
|
|
11
11
|
export * from "./AppUserIdentifyingPropertyType";
|
|
@@ -18,6 +18,7 @@ export * from "./EventTriggerBase";
|
|
|
18
18
|
export * from "./EventTriggerResponse";
|
|
19
19
|
export * from "./EventTriggerType";
|
|
20
20
|
export * from "./Page";
|
|
21
|
+
export * from "./BasePaginatedRequest";
|
|
21
22
|
export * from "./ActionParameterType";
|
|
22
23
|
export * from "./ActionEnumOption";
|
|
23
24
|
export * from "./Sentiment";
|
|
@@ -27,8 +28,9 @@ export * from "./ConversationInformation";
|
|
|
27
28
|
export * from "./ResponseLength";
|
|
28
29
|
export * from "./Capability";
|
|
29
30
|
export * from "./ResponseConfig";
|
|
30
|
-
export * from "./ConversationBase";
|
|
31
31
|
export * from "./ConversationResponse";
|
|
32
|
+
export * from "./ConversationPreview";
|
|
33
|
+
export * from "./BaseConversationResponse";
|
|
32
34
|
export * from "./ConversationMessageResponse";
|
|
33
35
|
export * from "./ConversationMessageBase";
|
|
34
36
|
export * from "./UserConversationMessageType";
|
|
@@ -36,6 +38,7 @@ export * from "./UserMessageBase";
|
|
|
36
38
|
export * from "./UserMessageAttachment";
|
|
37
39
|
export * from "./UserMessage";
|
|
38
40
|
export * from "./BotConversationMessageType";
|
|
41
|
+
export * from "./BotMessageStatus";
|
|
39
42
|
export * from "./BotMessage";
|
|
40
43
|
export * from "./Source";
|
|
41
44
|
export * from "./BotResponseMetadata";
|
|
@@ -18,10 +18,10 @@ __exportStar(require("./ErrorMessage"), exports);
|
|
|
18
18
|
__exportStar(require("./EntityType"), exports);
|
|
19
19
|
__exportStar(require("./EntityIdBase"), exports);
|
|
20
20
|
__exportStar(require("./EntityIdWithoutAgent"), exports);
|
|
21
|
-
__exportStar(require("./EntityIdFilter"), exports);
|
|
22
21
|
__exportStar(require("./EntityId"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./EntityIdFilter"), exports);
|
|
24
23
|
__exportStar(require("./FeedbackType"), exports);
|
|
24
|
+
__exportStar(require("./FeedbackBase"), exports);
|
|
25
25
|
__exportStar(require("./Feedback"), exports);
|
|
26
26
|
__exportStar(require("./AppUserIdentifier"), exports);
|
|
27
27
|
__exportStar(require("./AppUserIdentifyingPropertyType"), exports);
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./EventTriggerBase"), exports);
|
|
|
34
34
|
__exportStar(require("./EventTriggerResponse"), exports);
|
|
35
35
|
__exportStar(require("./EventTriggerType"), exports);
|
|
36
36
|
__exportStar(require("./Page"), exports);
|
|
37
|
+
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
37
38
|
__exportStar(require("./ActionParameterType"), exports);
|
|
38
39
|
__exportStar(require("./ActionEnumOption"), exports);
|
|
39
40
|
__exportStar(require("./Sentiment"), exports);
|
|
@@ -43,8 +44,9 @@ __exportStar(require("./ConversationInformation"), exports);
|
|
|
43
44
|
__exportStar(require("./ResponseLength"), exports);
|
|
44
45
|
__exportStar(require("./Capability"), exports);
|
|
45
46
|
__exportStar(require("./ResponseConfig"), exports);
|
|
46
|
-
__exportStar(require("./ConversationBase"), exports);
|
|
47
47
|
__exportStar(require("./ConversationResponse"), exports);
|
|
48
|
+
__exportStar(require("./ConversationPreview"), exports);
|
|
49
|
+
__exportStar(require("./BaseConversationResponse"), exports);
|
|
48
50
|
__exportStar(require("./ConversationMessageResponse"), exports);
|
|
49
51
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
50
52
|
__exportStar(require("./UserConversationMessageType"), exports);
|
|
@@ -52,6 +54,7 @@ __exportStar(require("./UserMessageBase"), exports);
|
|
|
52
54
|
__exportStar(require("./UserMessageAttachment"), exports);
|
|
53
55
|
__exportStar(require("./UserMessage"), exports);
|
|
54
56
|
__exportStar(require("./BotConversationMessageType"), exports);
|
|
57
|
+
__exportStar(require("./BotMessageStatus"), exports);
|
|
55
58
|
__exportStar(require("./BotMessage"), exports);
|
|
56
59
|
__exportStar(require("./Source"), exports);
|
|
57
60
|
__exportStar(require("./BotResponseMetadata"), exports);
|
|
@@ -47,11 +47,6 @@ export declare class Conversation {
|
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* await client.conversation.initialize({
|
|
50
|
-
* allMetadata: {
|
|
51
|
-
* "allMetadata": {
|
|
52
|
-
* "allMetadata": "allMetadata"
|
|
53
|
-
* }
|
|
54
|
-
* },
|
|
55
50
|
* conversationId: {
|
|
56
51
|
* referenceId: "referenceId"
|
|
57
52
|
* },
|
|
@@ -334,5 +329,19 @@ export declare class Conversation {
|
|
|
334
329
|
* })
|
|
335
330
|
*/
|
|
336
331
|
updateConversationMetadata(conversationId: string, request: MavenAGI.UpdateMetadataRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationMetadata>;
|
|
332
|
+
/**
|
|
333
|
+
* Search conversations
|
|
334
|
+
*
|
|
335
|
+
* @param {MavenAGI.ConversationsSearchRequest} request
|
|
336
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
337
|
+
*
|
|
338
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
339
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
340
|
+
* @throws {@link MavenAGI.ServerError}
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* await client.conversation.search({})
|
|
344
|
+
*/
|
|
345
|
+
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationsResponse>;
|
|
337
346
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
338
347
|
}
|