mavenagi 1.0.8 → 1.0.10
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.d.ts +24 -0
- package/api/resources/appSettings/client/Client.js +91 -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 +8 -0
- package/api/resources/commons/types/ConversationPreview.d.ts +6 -0
- package/api/resources/commons/types/ConversationPreview.js +5 -0
- package/api/resources/commons/types/ConversationResponse.d.ts +4 -10
- package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/api/resources/commons/types/index.d.ts +8 -3
- package/api/resources/commons/types/index.js +8 -3
- package/api/resources/conversation/client/Client.d.ts +22 -6
- package/api/resources/conversation/client/Client.js +100 -18
- 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/conversation/types/ConversationsResponse.js +5 -0
- 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 -2
- package/api/resources/conversation/types/index.js +2 -2
- 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 +4 -3
- package/api/resources/knowledge/client/Client.js +11 -10
- 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 +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -4
- package/api/resources/knowledge/types/KnowledgeBaseType.js +0 -2
- package/api/resources/knowledge/types/index.d.ts +1 -1
- package/api/resources/knowledge/types/index.js +1 -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/HangUpPublishEvent.d.ts +6 -0
- package/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/api/resources/realtime/types/PublishEvent.d.ts +16 -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 +6 -0
- package/api/resources/realtime/types/index.js +22 -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.d.ts +24 -0
- package/dist/api/resources/appSettings/client/Client.js +91 -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 +8 -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/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/dist/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/dist/api/resources/commons/types/index.d.ts +8 -3
- package/dist/api/resources/commons/types/index.js +8 -3
- package/dist/api/resources/conversation/client/Client.d.ts +22 -6
- package/dist/api/resources/conversation/client/Client.js +100 -18
- 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 -2
- package/dist/api/resources/conversation/types/index.js +2 -2
- 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 +4 -3
- package/dist/api/resources/knowledge/client/Client.js +11 -10
- 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 +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -4
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +0 -2
- package/dist/api/resources/knowledge/types/index.d.ts +1 -1
- package/dist/api/resources/knowledge/types/index.js +1 -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/HangUpPublishEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +16 -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 +6 -0
- package/dist/api/resources/realtime/types/index.js +22 -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/appSettings/client/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/client/index.js +2 -1
- package/dist/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/dist/serialization/resources/appSettings/client/update.js +42 -0
- package/dist/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ActionBase.js +1 -0
- package/{serialization/resources/commons/types/ConversationBase.d.ts → dist/serialization/resources/commons/types/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 +6 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +6 -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/{conversation → commons}/types/QualityReason.d.ts +1 -1
- package/dist/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/dist/serialization/resources/commons/types/index.d.ts +8 -3
- package/dist/serialization/resources/commons/types/index.js +8 -3
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -2
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +3 -2
- 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 -2
- package/dist/serialization/resources/conversation/types/index.js +2 -2
- 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/KnowledgeBaseResponse.d.ts +2 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/index.js +1 -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/dist/serialization/resources/realtime/types/ControlEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +18 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.js +51 -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 +6 -0
- package/dist/serialization/resources/realtime/types/index.js +22 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/reference.md +151 -11
- package/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/serialization/resources/appSettings/client/index.js +2 -1
- package/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/serialization/resources/appSettings/client/update.js +42 -0
- package/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/serialization/resources/commons/types/ActionBase.js +1 -0
- package/{dist/serialization/resources/commons/types/ConversationBase.d.ts → serialization/resources/commons/types/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 +6 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +6 -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/{conversation → commons}/types/QualityReason.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/serialization/resources/commons/types/index.d.ts +8 -3
- package/serialization/resources/commons/types/index.js +8 -3
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -2
- package/serialization/resources/conversation/types/ConversationFilter.js +3 -2
- 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 -2
- package/serialization/resources/conversation/types/index.js +2 -2
- 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/KnowledgeBaseResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/serialization/resources/knowledge/types/index.d.ts +1 -1
- package/serialization/resources/knowledge/types/index.js +1 -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/serialization/resources/realtime/types/ControlEvent.js +43 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/serialization/resources/realtime/types/PublishEvent.d.ts +18 -0
- package/serialization/resources/realtime/types/PublishEvent.js +51 -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 +6 -0
- package/serialization/resources/realtime/types/index.js +22 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /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/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SubscribeEvent = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const AudioSubscribeEvent_1 = require("./AudioSubscribeEvent");
|
|
42
|
+
const ControlEvent_1 = require("./ControlEvent");
|
|
43
|
+
exports.SubscribeEvent = core.serialization
|
|
44
|
+
.union("messageType", {
|
|
45
|
+
audio: AudioSubscribeEvent_1.AudioSubscribeEvent,
|
|
46
|
+
controlSessionStart: ControlEvent_1.ControlEvent,
|
|
47
|
+
controlSessionStop: ControlEvent_1.ControlEvent,
|
|
48
|
+
controlAudioDone: ControlEvent_1.ControlEvent,
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => value,
|
|
52
|
+
untransform: (value) => value,
|
|
53
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ControlEvent"), exports);
|
|
18
|
+
__exportStar(require("./PublishEvent"), exports);
|
|
19
|
+
__exportStar(require("./HangUpPublishEvent"), exports);
|
|
20
|
+
__exportStar(require("./AudioPublishEvent"), exports);
|
|
21
|
+
__exportStar(require("./SubscribeEvent"), exports);
|
|
22
|
+
__exportStar(require("./AudioSubscribeEvent"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.10";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mavenagi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/mavenagi/mavenagi-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"url-join": "4.0.1",
|
|
16
|
+
"ws": "^8.16.0",
|
|
16
17
|
"form-data": "^4.0.0",
|
|
17
18
|
"formdata-node": "^6.0.3",
|
|
18
19
|
"node-fetch": "^2.7.0",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@types/url-join": "4.0.1",
|
|
26
|
+
"@types/ws": "^8.5.10",
|
|
25
27
|
"@types/qs": "^6.9.17",
|
|
26
28
|
"@types/node-fetch": "^2.6.12",
|
|
27
29
|
"@types/readable-stream": "^4.0.18",
|
package/reference.md
CHANGED
|
@@ -52,6 +52,7 @@ await client.actions.createOrUpdate({
|
|
|
52
52
|
},
|
|
53
53
|
],
|
|
54
54
|
},
|
|
55
|
+
language: "en",
|
|
55
56
|
});
|
|
56
57
|
```
|
|
57
58
|
|
|
@@ -522,9 +523,7 @@ await client.appSettings.get();
|
|
|
522
523
|
</dl>
|
|
523
524
|
</details>
|
|
524
525
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">initialize</a>({ ...params }) -> MavenAGI.ConversationResponse</code></summary>
|
|
526
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
528
527
|
<dl>
|
|
529
528
|
<dd>
|
|
530
529
|
|
|
@@ -536,7 +535,13 @@ await client.appSettings.get();
|
|
|
536
535
|
<dl>
|
|
537
536
|
<dd>
|
|
538
537
|
|
|
539
|
-
|
|
538
|
+
Update app settings. Performs a merge of the provided settings with the existing app settings.
|
|
539
|
+
|
|
540
|
+
- If a new key is provided, it will be added to the app settings.
|
|
541
|
+
- If an existing key is provided, it will be updated.
|
|
542
|
+
- No keys will be removed.
|
|
543
|
+
|
|
544
|
+
Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
540
545
|
|
|
541
546
|
</dd>
|
|
542
547
|
</dl>
|
|
@@ -552,12 +557,83 @@ Initialize a new conversation. Only required if the ask request wishes to supply
|
|
|
552
557
|
<dd>
|
|
553
558
|
|
|
554
559
|
```typescript
|
|
555
|
-
await client.
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
allMetadata: "allMetadata",
|
|
559
|
-
},
|
|
560
|
+
await client.appSettings.update({
|
|
561
|
+
string: {
|
|
562
|
+
key: "value",
|
|
560
563
|
},
|
|
564
|
+
});
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
</dd>
|
|
568
|
+
</dl>
|
|
569
|
+
</dd>
|
|
570
|
+
</dl>
|
|
571
|
+
|
|
572
|
+
#### ⚙️ Parameters
|
|
573
|
+
|
|
574
|
+
<dl>
|
|
575
|
+
<dd>
|
|
576
|
+
|
|
577
|
+
<dl>
|
|
578
|
+
<dd>
|
|
579
|
+
|
|
580
|
+
**request:** `Record<string, unknown>`
|
|
581
|
+
|
|
582
|
+
</dd>
|
|
583
|
+
</dl>
|
|
584
|
+
|
|
585
|
+
<dl>
|
|
586
|
+
<dd>
|
|
587
|
+
|
|
588
|
+
**requestOptions:** `AppSettings.RequestOptions`
|
|
589
|
+
|
|
590
|
+
</dd>
|
|
591
|
+
</dl>
|
|
592
|
+
</dd>
|
|
593
|
+
</dl>
|
|
594
|
+
|
|
595
|
+
</dd>
|
|
596
|
+
</dl>
|
|
597
|
+
</details>
|
|
598
|
+
|
|
599
|
+
## Conversation
|
|
600
|
+
|
|
601
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">initialize</a>({ ...params }) -> MavenAGI.ConversationResponse</code></summary>
|
|
602
|
+
<dl>
|
|
603
|
+
<dd>
|
|
604
|
+
|
|
605
|
+
#### 📝 Description
|
|
606
|
+
|
|
607
|
+
<dl>
|
|
608
|
+
<dd>
|
|
609
|
+
|
|
610
|
+
<dl>
|
|
611
|
+
<dd>
|
|
612
|
+
|
|
613
|
+
Initialize a new conversation.
|
|
614
|
+
Only required if the ask request wishes to supply conversation level data or when syncing to external systems.
|
|
615
|
+
|
|
616
|
+
Conversations can not be modified using this API. If the conversation already exists then the existing conversation will be returned.
|
|
617
|
+
|
|
618
|
+
After initialization,
|
|
619
|
+
|
|
620
|
+
- metadata can be changed using the `updateConversationMetadata` API.
|
|
621
|
+
- messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
|
|
622
|
+
</dd>
|
|
623
|
+
</dl>
|
|
624
|
+
</dd>
|
|
625
|
+
</dl>
|
|
626
|
+
|
|
627
|
+
#### 🔌 Usage
|
|
628
|
+
|
|
629
|
+
<dl>
|
|
630
|
+
<dd>
|
|
631
|
+
|
|
632
|
+
<dl>
|
|
633
|
+
<dd>
|
|
634
|
+
|
|
635
|
+
```typescript
|
|
636
|
+
await client.conversation.initialize({
|
|
561
637
|
conversationId: {
|
|
562
638
|
referenceId: "referenceId",
|
|
563
639
|
},
|
|
@@ -1519,6 +1595,69 @@ await client.conversation.updateConversationMetadata("conversation-0", {
|
|
|
1519
1595
|
</dl>
|
|
1520
1596
|
</details>
|
|
1521
1597
|
|
|
1598
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">search</a>({ ...params }) -> MavenAGI.ConversationsResponse</code></summary>
|
|
1599
|
+
<dl>
|
|
1600
|
+
<dd>
|
|
1601
|
+
|
|
1602
|
+
#### 📝 Description
|
|
1603
|
+
|
|
1604
|
+
<dl>
|
|
1605
|
+
<dd>
|
|
1606
|
+
|
|
1607
|
+
<dl>
|
|
1608
|
+
<dd>
|
|
1609
|
+
|
|
1610
|
+
Search conversations
|
|
1611
|
+
|
|
1612
|
+
</dd>
|
|
1613
|
+
</dl>
|
|
1614
|
+
</dd>
|
|
1615
|
+
</dl>
|
|
1616
|
+
|
|
1617
|
+
#### 🔌 Usage
|
|
1618
|
+
|
|
1619
|
+
<dl>
|
|
1620
|
+
<dd>
|
|
1621
|
+
|
|
1622
|
+
<dl>
|
|
1623
|
+
<dd>
|
|
1624
|
+
|
|
1625
|
+
```typescript
|
|
1626
|
+
await client.conversation.search({});
|
|
1627
|
+
```
|
|
1628
|
+
|
|
1629
|
+
</dd>
|
|
1630
|
+
</dl>
|
|
1631
|
+
</dd>
|
|
1632
|
+
</dl>
|
|
1633
|
+
|
|
1634
|
+
#### ⚙️ Parameters
|
|
1635
|
+
|
|
1636
|
+
<dl>
|
|
1637
|
+
<dd>
|
|
1638
|
+
|
|
1639
|
+
<dl>
|
|
1640
|
+
<dd>
|
|
1641
|
+
|
|
1642
|
+
**request:** `MavenAGI.ConversationsSearchRequest`
|
|
1643
|
+
|
|
1644
|
+
</dd>
|
|
1645
|
+
</dl>
|
|
1646
|
+
|
|
1647
|
+
<dl>
|
|
1648
|
+
<dd>
|
|
1649
|
+
|
|
1650
|
+
**requestOptions:** `Conversation.RequestOptions`
|
|
1651
|
+
|
|
1652
|
+
</dd>
|
|
1653
|
+
</dl>
|
|
1654
|
+
</dd>
|
|
1655
|
+
</dl>
|
|
1656
|
+
|
|
1657
|
+
</dd>
|
|
1658
|
+
</dl>
|
|
1659
|
+
</details>
|
|
1660
|
+
|
|
1522
1661
|
## Inbox
|
|
1523
1662
|
|
|
1524
1663
|
<details><summary><code>client.inbox.<a href="/src/api/resources/inbox/client/Client.ts">search</a>({ ...params }) -> MavenAGI.InboxSearchResponse</code></summary>
|
|
@@ -1911,7 +2050,6 @@ await client.knowledge.createOrUpdateKnowledgeBase({
|
|
|
1911
2050
|
referenceId: "help-center",
|
|
1912
2051
|
},
|
|
1913
2052
|
name: "Help center",
|
|
1914
|
-
type: "API",
|
|
1915
2053
|
});
|
|
1916
2054
|
```
|
|
1917
2055
|
|
|
@@ -2022,7 +2160,9 @@ await client.knowledge.getKnowledgeBase("help-center");
|
|
|
2022
2160
|
<dl>
|
|
2023
2161
|
<dd>
|
|
2024
2162
|
|
|
2025
|
-
Create a new knowledge base version.
|
|
2163
|
+
Create a new knowledge base version.
|
|
2164
|
+
|
|
2165
|
+
If an existing version is in progress, then that version will be finalized in an error state.
|
|
2026
2166
|
|
|
2027
2167
|
</dd>
|
|
2028
2168
|
</dl>
|
|
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.get = void 0;
|
|
36
|
+
exports.update = exports.get = void 0;
|
|
37
37
|
exports.get = __importStar(require("./get"));
|
|
38
|
+
exports.update = __importStar(require("./update"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.appSettings.update.Request.Raw, Record<string, unknown>>;
|
|
7
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.appSettings.update.Response.Raw, Record<string, unknown>>;
|
|
11
|
+
export declare namespace Response {
|
|
12
|
+
type Raw = Record<string, unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
42
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -47,4 +47,5 @@ exports.ActionBase = core.serialization.object({
|
|
|
47
47
|
buttonName: core.serialization.string().optional(),
|
|
48
48
|
precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
|
|
49
49
|
userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
|
|
50
|
+
language: core.serialization.string().optional(),
|
|
50
51
|
});
|
|
@@ -5,8 +5,11 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { ResponseConfig } from "./ResponseConfig";
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { EntityId } from "./EntityId";
|
|
9
|
+
import { ConversationAnalysis } from "./ConversationAnalysis";
|
|
10
|
+
import { ConversationSummary } from "./ConversationSummary";
|
|
11
|
+
export declare const BaseConversationResponse: core.serialization.ObjectSchema<serializers.BaseConversationResponse.Raw, MavenAGI.BaseConversationResponse>;
|
|
12
|
+
export declare namespace BaseConversationResponse {
|
|
10
13
|
interface Raw {
|
|
11
14
|
responseConfig?: ResponseConfig.Raw | null;
|
|
12
15
|
subject?: string | null;
|
|
@@ -16,5 +19,9 @@ export declare namespace ConversationBase {
|
|
|
16
19
|
tags?: string[] | null;
|
|
17
20
|
metadata?: Record<string, string> | null;
|
|
18
21
|
allMetadata: Record<string, Record<string, string>>;
|
|
22
|
+
conversationId: EntityId.Raw;
|
|
23
|
+
analysis: ConversationAnalysis.Raw;
|
|
24
|
+
summary: ConversationSummary.Raw;
|
|
25
|
+
deleted: boolean;
|
|
19
26
|
}
|
|
20
27
|
}
|
package/serialization/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js}
RENAMED
|
@@ -36,10 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.BaseConversationResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ResponseConfig_1 = require("./ResponseConfig");
|
|
42
|
-
|
|
42
|
+
const EntityId_1 = require("./EntityId");
|
|
43
|
+
const ConversationAnalysis_1 = require("./ConversationAnalysis");
|
|
44
|
+
const ConversationSummary_1 = require("./ConversationSummary");
|
|
45
|
+
exports.BaseConversationResponse = core.serialization.object({
|
|
43
46
|
responseConfig: ResponseConfig_1.ResponseConfig.optional(),
|
|
44
47
|
subject: core.serialization.string().optional(),
|
|
45
48
|
url: core.serialization.string().optional(),
|
|
@@ -48,4 +51,8 @@ exports.ConversationBase = core.serialization.object({
|
|
|
48
51
|
tags: core.serialization.set(core.serialization.string()).optional(),
|
|
49
52
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
50
53
|
allMetadata: core.serialization.record(core.serialization.string(), core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
54
|
+
conversationId: EntityId_1.EntityId,
|
|
55
|
+
analysis: ConversationAnalysis_1.ConversationAnalysis,
|
|
56
|
+
summary: ConversationSummary_1.ConversationSummary,
|
|
57
|
+
deleted: core.serialization.boolean(),
|
|
51
58
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const BasePaginatedRequest: core.serialization.ObjectSchema<serializers.BasePaginatedRequest.Raw, MavenAGI.BasePaginatedRequest>;
|
|
8
|
+
export declare namespace BasePaginatedRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
page?: number | null;
|
|
11
|
+
size?: number | null;
|
|
12
|
+
sortDesc?: boolean | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.BasePaginatedRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.BasePaginatedRequest = core.serialization.object({
|
|
42
|
+
page: core.serialization.number().optional(),
|
|
43
|
+
size: core.serialization.number().optional(),
|
|
44
|
+
sortDesc: core.serialization.boolean().optional(),
|
|
45
|
+
});
|
|
@@ -8,6 +8,7 @@ import { EntityId } from "./EntityId";
|
|
|
8
8
|
import { BotConversationMessageType } from "./BotConversationMessageType";
|
|
9
9
|
import { BotResponse } from "./BotResponse";
|
|
10
10
|
import { BotResponseMetadata } from "./BotResponseMetadata";
|
|
11
|
+
import { BotMessageStatus } from "./BotMessageStatus";
|
|
11
12
|
import { ConversationMessageBase } from "./ConversationMessageBase";
|
|
12
13
|
export declare const BotMessage: core.serialization.ObjectSchema<serializers.BotMessage.Raw, MavenAGI.BotMessage>;
|
|
13
14
|
export declare namespace BotMessage {
|
|
@@ -16,5 +17,6 @@ export declare namespace BotMessage {
|
|
|
16
17
|
botMessageType: BotConversationMessageType.Raw;
|
|
17
18
|
responses: BotResponse.Raw[];
|
|
18
19
|
metadata: BotResponseMetadata.Raw;
|
|
20
|
+
status: BotMessageStatus.Raw;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -42,6 +42,7 @@ const EntityId_1 = require("./EntityId");
|
|
|
42
42
|
const BotConversationMessageType_1 = require("./BotConversationMessageType");
|
|
43
43
|
const BotResponse_1 = require("./BotResponse");
|
|
44
44
|
const BotResponseMetadata_1 = require("./BotResponseMetadata");
|
|
45
|
+
const BotMessageStatus_1 = require("./BotMessageStatus");
|
|
45
46
|
const ConversationMessageBase_1 = require("./ConversationMessageBase");
|
|
46
47
|
exports.BotMessage = core.serialization
|
|
47
48
|
.object({
|
|
@@ -49,5 +50,6 @@ exports.BotMessage = core.serialization
|
|
|
49
50
|
botMessageType: BotConversationMessageType_1.BotConversationMessageType,
|
|
50
51
|
responses: core.serialization.list(BotResponse_1.BotResponse),
|
|
51
52
|
metadata: BotResponseMetadata_1.BotResponseMetadata,
|
|
53
|
+
status: BotMessageStatus_1.BotMessageStatus,
|
|
52
54
|
})
|
|
53
55
|
.extend(ConversationMessageBase_1.ConversationMessageBase);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const BotMessageStatus: core.serialization.Schema<serializers.BotMessageStatus.Raw, MavenAGI.BotMessageStatus>;
|
|
8
|
+
export declare namespace BotMessageStatus {
|
|
9
|
+
type Raw = "SENDING" | "SENT" | "REJECTED" | "CANCELED" | "FAILED" | "UNKNOWN";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.BotMessageStatus = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.BotMessageStatus = core.serialization.enum_(["SENDING", "SENT", "REJECTED", "CANCELED", "FAILED", "UNKNOWN"]);
|
|
@@ -5,6 +5,8 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { Sentiment } from "./Sentiment";
|
|
8
|
+
import { Quality } from "./Quality";
|
|
9
|
+
import { QualityReason } from "./QualityReason";
|
|
8
10
|
export declare const ConversationAnalysis: core.serialization.ObjectSchema<serializers.ConversationAnalysis.Raw, MavenAGI.ConversationAnalysis>;
|
|
9
11
|
export declare namespace ConversationAnalysis {
|
|
10
12
|
interface Raw {
|
|
@@ -13,5 +15,9 @@ export declare namespace ConversationAnalysis {
|
|
|
13
15
|
resolutionStatus?: string | null;
|
|
14
16
|
category?: string | null;
|
|
15
17
|
sentiment?: Sentiment.Raw | null;
|
|
18
|
+
quality?: Quality.Raw | null;
|
|
19
|
+
qualityReason?: QualityReason.Raw | null;
|
|
20
|
+
resolvedByMaven?: boolean | null;
|
|
21
|
+
primaryLanguage?: string | null;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
@@ -39,10 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ConversationAnalysis = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Sentiment_1 = require("./Sentiment");
|
|
42
|
+
const Quality_1 = require("./Quality");
|
|
43
|
+
const QualityReason_1 = require("./QualityReason");
|
|
42
44
|
exports.ConversationAnalysis = core.serialization.object({
|
|
43
45
|
userRequest: core.serialization.string().optional(),
|
|
44
46
|
agentResponse: core.serialization.string().optional(),
|
|
45
47
|
resolutionStatus: core.serialization.string().optional(),
|
|
46
48
|
category: core.serialization.string().optional(),
|
|
47
49
|
sentiment: Sentiment_1.Sentiment.optional(),
|
|
50
|
+
quality: Quality_1.Quality.optional(),
|
|
51
|
+
qualityReason: QualityReason_1.QualityReason.optional(),
|
|
52
|
+
resolvedByMaven: core.serialization.boolean().optional(),
|
|
53
|
+
primaryLanguage: core.serialization.string().optional(),
|
|
48
54
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BaseConversationResponse } from "./BaseConversationResponse";
|
|
8
|
+
export declare const ConversationPreview: core.serialization.ObjectSchema<serializers.ConversationPreview.Raw, MavenAGI.ConversationPreview>;
|
|
9
|
+
export declare namespace ConversationPreview {
|
|
10
|
+
interface Raw extends BaseConversationResponse.Raw {
|
|
11
|
+
}
|
|
12
|
+
}
|