mavenagi 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +6 -0
- package/Client.js +32 -22
- package/api/resources/auth/client/Client.d.ts +33 -0
- package/api/resources/auth/client/Client.js +171 -0
- package/api/resources/auth/client/index.d.ts +1 -0
- package/api/resources/auth/client/index.js +2 -0
- package/api/resources/auth/index.d.ts +2 -0
- package/api/resources/auth/index.js +18 -0
- package/api/resources/auth/types/SessionTokenRequest.d.ts +3 -0
- package/api/resources/auth/types/SessionTokenRequest.js +3 -0
- package/api/resources/auth/types/SessionTokenResponse.d.ts +6 -0
- package/api/resources/auth/types/SessionTokenResponse.js +3 -0
- package/api/resources/auth/types/index.d.ts +2 -0
- package/api/resources/auth/types/index.js +18 -0
- package/api/resources/commons/types/ActionBase.d.ts +1 -11
- package/api/resources/commons/types/ActionParameterType.d.ts +3 -0
- package/api/resources/commons/types/ActionParameterType.js +3 -0
- package/api/resources/commons/types/ActionProperties.d.ts +13 -0
- package/api/resources/commons/types/ActionProperties.js +3 -0
- package/api/resources/commons/types/ActionUser.d.ts +46 -0
- package/api/resources/commons/types/ActionUser.js +3 -0
- package/api/resources/commons/types/EntityType.d.ts +1 -0
- package/api/resources/commons/types/EntityType.js +1 -0
- package/api/resources/commons/types/EventField.d.ts +1 -0
- package/api/resources/commons/types/EventField.js +1 -0
- package/api/resources/commons/types/UserEvent.d.ts +2 -0
- package/api/resources/commons/types/index.d.ts +3 -0
- package/api/resources/commons/types/index.js +3 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
- package/api/resources/triggers/types/index.d.ts +0 -1
- package/api/resources/triggers/types/index.js +0 -1
- package/api/resources/websockets/client/Client.d.ts +22 -0
- package/api/resources/websockets/client/Client.js +89 -0
- package/api/resources/websockets/client/Socket.d.ts +48 -0
- package/api/resources/websockets/client/Socket.js +172 -0
- package/api/resources/websockets/client/index.d.ts +1 -0
- package/api/resources/websockets/client/index.js +2 -0
- package/api/resources/websockets/index.d.ts +2 -0
- package/api/resources/websockets/index.js +18 -0
- package/api/resources/websockets/types/AgentAudioChunk.d.ts +9 -0
- package/api/resources/websockets/types/AgentAudioChunk.js +3 -0
- package/api/resources/websockets/types/AgentTranscript.d.ts +9 -0
- package/api/resources/websockets/types/AgentTranscript.js +3 -0
- package/api/resources/websockets/types/AudioFormat.d.ts +7 -0
- package/api/resources/websockets/types/AudioFormat.js +10 -0
- package/api/resources/websockets/types/Config.d.ts +15 -0
- package/api/resources/websockets/types/Config.js +3 -0
- package/api/resources/websockets/types/ConversationEnded.d.ts +7 -0
- package/api/resources/websockets/types/ConversationEnded.js +3 -0
- package/api/resources/websockets/types/ConversationReady.d.ts +6 -0
- package/api/resources/websockets/types/ConversationReady.js +3 -0
- package/api/resources/websockets/types/Error_.d.ts +9 -0
- package/api/resources/websockets/types/Error_.js +3 -0
- package/api/resources/websockets/types/ServerEventBase.d.ts +6 -0
- package/api/resources/websockets/types/ServerEventBase.js +3 -0
- package/api/resources/websockets/types/UserAudioChunk.d.ts +8 -0
- package/api/resources/websockets/types/UserAudioChunk.js +3 -0
- package/api/resources/websockets/types/UserFinishedSpeaking.d.ts +7 -0
- package/api/resources/websockets/types/UserFinishedSpeaking.js +3 -0
- package/api/resources/websockets/types/UserStartedSpeaking.d.ts +7 -0
- package/api/resources/websockets/types/UserStartedSpeaking.js +3 -0
- package/api/resources/websockets/types/UserTranscript.d.ts +9 -0
- package/api/resources/websockets/types/UserTranscript.js +3 -0
- package/api/resources/websockets/types/index.d.ts +12 -0
- package/api/resources/websockets/types/index.js +28 -0
- 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 +147 -0
- package/core/websocket/ws.js +444 -0
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +32 -22
- package/dist/api/resources/auth/client/Client.d.ts +33 -0
- package/dist/api/resources/auth/client/Client.js +171 -0
- package/dist/api/resources/auth/client/index.d.ts +1 -0
- package/dist/api/resources/auth/client/index.js +2 -0
- package/dist/api/resources/auth/index.d.ts +2 -0
- package/dist/api/resources/auth/index.js +18 -0
- package/dist/api/resources/auth/types/SessionTokenRequest.d.ts +3 -0
- package/dist/api/resources/auth/types/SessionTokenRequest.js +3 -0
- package/dist/api/resources/auth/types/SessionTokenResponse.d.ts +6 -0
- package/dist/api/resources/auth/types/SessionTokenResponse.js +3 -0
- package/dist/api/resources/auth/types/index.d.ts +2 -0
- package/dist/api/resources/auth/types/index.js +18 -0
- package/dist/api/resources/commons/types/ActionBase.d.ts +1 -11
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +3 -0
- package/dist/api/resources/commons/types/ActionParameterType.js +3 -0
- package/dist/api/resources/commons/types/ActionProperties.d.ts +13 -0
- package/dist/api/resources/commons/types/ActionProperties.js +3 -0
- package/dist/api/resources/commons/types/ActionUser.d.ts +46 -0
- package/dist/api/resources/commons/types/ActionUser.js +3 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +1 -0
- package/dist/api/resources/commons/types/EntityType.js +1 -0
- package/dist/api/resources/commons/types/EventField.d.ts +1 -0
- package/dist/api/resources/commons/types/EventField.js +1 -0
- package/dist/api/resources/commons/types/UserEvent.d.ts +2 -0
- package/dist/api/resources/commons/types/index.d.ts +3 -0
- package/dist/api/resources/commons/types/index.js +3 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
- package/dist/api/resources/triggers/types/index.d.ts +0 -1
- package/dist/api/resources/triggers/types/index.js +0 -1
- package/dist/api/resources/websockets/client/Client.d.ts +22 -0
- package/dist/api/resources/websockets/client/Client.js +89 -0
- package/dist/api/resources/websockets/client/Socket.d.ts +48 -0
- package/dist/api/resources/websockets/client/Socket.js +172 -0
- package/dist/api/resources/websockets/client/index.d.ts +1 -0
- package/dist/api/resources/websockets/client/index.js +2 -0
- package/dist/api/resources/websockets/index.d.ts +2 -0
- package/dist/api/resources/websockets/index.js +18 -0
- package/dist/api/resources/websockets/types/AgentAudioChunk.d.ts +9 -0
- package/dist/api/resources/websockets/types/AgentAudioChunk.js +3 -0
- package/dist/api/resources/websockets/types/AgentTranscript.d.ts +9 -0
- package/dist/api/resources/websockets/types/AgentTranscript.js +3 -0
- package/dist/api/resources/websockets/types/AudioFormat.d.ts +7 -0
- package/dist/api/resources/websockets/types/AudioFormat.js +10 -0
- package/dist/api/resources/websockets/types/Config.d.ts +15 -0
- package/dist/api/resources/websockets/types/Config.js +3 -0
- package/dist/api/resources/websockets/types/ConversationEnded.d.ts +7 -0
- package/dist/api/resources/websockets/types/ConversationEnded.js +3 -0
- package/dist/api/resources/websockets/types/ConversationReady.d.ts +6 -0
- package/dist/api/resources/websockets/types/ConversationReady.js +3 -0
- package/dist/api/resources/websockets/types/Error_.d.ts +9 -0
- package/dist/api/resources/websockets/types/Error_.js +3 -0
- package/dist/api/resources/websockets/types/ServerEventBase.d.ts +6 -0
- package/dist/api/resources/websockets/types/ServerEventBase.js +3 -0
- package/dist/api/resources/websockets/types/UserAudioChunk.d.ts +8 -0
- package/dist/api/resources/websockets/types/UserAudioChunk.js +3 -0
- package/dist/api/resources/websockets/types/UserFinishedSpeaking.d.ts +7 -0
- package/dist/api/resources/websockets/types/UserFinishedSpeaking.js +3 -0
- package/dist/api/resources/websockets/types/UserStartedSpeaking.d.ts +7 -0
- package/dist/api/resources/websockets/types/UserStartedSpeaking.js +3 -0
- package/dist/api/resources/websockets/types/UserTranscript.d.ts +9 -0
- package/dist/api/resources/websockets/types/UserTranscript.js +3 -0
- package/dist/api/resources/websockets/types/index.d.ts +12 -0
- package/dist/api/resources/websockets/types/index.js +28 -0
- 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 +147 -0
- package/dist/core/websocket/ws.js +444 -0
- package/dist/serialization/resources/auth/index.d.ts +1 -0
- package/dist/serialization/resources/auth/index.js +17 -0
- package/dist/serialization/resources/auth/types/SessionTokenRequest.d.ts +9 -0
- package/dist/serialization/resources/auth/types/SessionTokenRequest.js +41 -0
- package/dist/serialization/resources/auth/types/SessionTokenResponse.d.ts +10 -0
- package/dist/serialization/resources/auth/types/SessionTokenResponse.js +42 -0
- package/dist/serialization/resources/auth/types/index.d.ts +2 -0
- package/dist/serialization/resources/auth/types/index.js +18 -0
- package/dist/serialization/resources/commons/types/ActionBase.d.ts +3 -8
- package/dist/serialization/resources/commons/types/ActionBase.js +5 -9
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -0
- package/dist/serialization/resources/commons/types/ActionProperties.d.ts +14 -0
- package/dist/serialization/resources/commons/types/ActionProperties.js +47 -0
- package/dist/serialization/resources/commons/types/ActionUser.d.ts +17 -0
- package/dist/serialization/resources/commons/types/ActionUser.js +49 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +1 -0
- package/dist/serialization/resources/commons/types/EventField.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EventField.js +1 -0
- package/dist/serialization/resources/commons/types/UserEvent.d.ts +1 -0
- package/dist/serialization/resources/commons/types/UserEvent.js +1 -0
- package/dist/serialization/resources/commons/types/index.d.ts +3 -0
- package/dist/serialization/resources/commons/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +5 -0
- package/dist/serialization/resources/index.js +6 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerBase.js +1 -1
- package/dist/serialization/resources/triggers/types/index.d.ts +0 -1
- package/dist/serialization/resources/triggers/types/index.js +0 -1
- package/dist/serialization/resources/websockets/client/index.d.ts +1 -0
- package/dist/serialization/resources/websockets/client/index.js +17 -0
- package/dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +15 -0
- package/dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +56 -0
- package/dist/serialization/resources/websockets/client/socket/index.d.ts +1 -0
- package/dist/serialization/resources/websockets/client/socket/index.js +5 -0
- package/dist/serialization/resources/websockets/index.d.ts +2 -0
- package/dist/serialization/resources/websockets/index.js +18 -0
- package/dist/serialization/resources/websockets/types/AgentAudioChunk.d.ts +11 -0
- package/dist/serialization/resources/websockets/types/AgentAudioChunk.js +45 -0
- package/dist/serialization/resources/websockets/types/AgentTranscript.d.ts +11 -0
- package/dist/serialization/resources/websockets/types/AgentTranscript.js +45 -0
- package/dist/serialization/resources/websockets/types/AudioFormat.d.ts +7 -0
- package/dist/serialization/resources/websockets/types/AudioFormat.js +39 -0
- package/dist/serialization/resources/websockets/types/Config.d.ts +14 -0
- package/dist/serialization/resources/websockets/types/Config.js +46 -0
- package/dist/serialization/resources/websockets/types/ConversationEnded.d.ts +10 -0
- package/dist/serialization/resources/websockets/types/ConversationEnded.js +44 -0
- package/dist/serialization/resources/websockets/types/ConversationReady.d.ts +9 -0
- package/dist/serialization/resources/websockets/types/ConversationReady.js +41 -0
- package/dist/serialization/resources/websockets/types/Error_.d.ts +12 -0
- package/dist/serialization/resources/websockets/types/Error_.js +46 -0
- package/dist/serialization/resources/websockets/types/ServerEventBase.d.ts +9 -0
- package/dist/serialization/resources/websockets/types/ServerEventBase.js +41 -0
- package/dist/serialization/resources/websockets/types/UserAudioChunk.d.ts +10 -0
- package/dist/serialization/resources/websockets/types/UserAudioChunk.js +42 -0
- package/dist/serialization/resources/websockets/types/UserFinishedSpeaking.d.ts +10 -0
- package/dist/serialization/resources/websockets/types/UserFinishedSpeaking.js +44 -0
- package/dist/serialization/resources/websockets/types/UserStartedSpeaking.d.ts +10 -0
- package/dist/serialization/resources/websockets/types/UserStartedSpeaking.js +44 -0
- package/dist/serialization/resources/websockets/types/UserTranscript.d.ts +11 -0
- package/dist/serialization/resources/websockets/types/UserTranscript.js +45 -0
- package/dist/serialization/resources/websockets/types/index.d.ts +12 -0
- package/dist/serialization/resources/websockets/types/index.js +28 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -1
- package/reference.md +73 -5
- package/serialization/resources/auth/index.d.ts +1 -0
- package/serialization/resources/auth/index.js +17 -0
- package/serialization/resources/auth/types/SessionTokenRequest.d.ts +9 -0
- package/serialization/resources/auth/types/SessionTokenRequest.js +41 -0
- package/serialization/resources/auth/types/SessionTokenResponse.d.ts +10 -0
- package/serialization/resources/auth/types/SessionTokenResponse.js +42 -0
- package/serialization/resources/auth/types/index.d.ts +2 -0
- package/serialization/resources/auth/types/index.js +18 -0
- package/serialization/resources/commons/types/ActionBase.d.ts +3 -8
- package/serialization/resources/commons/types/ActionBase.js +5 -9
- package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/serialization/resources/commons/types/ActionParameterType.js +1 -0
- package/serialization/resources/commons/types/ActionProperties.d.ts +14 -0
- package/serialization/resources/commons/types/ActionProperties.js +47 -0
- package/serialization/resources/commons/types/ActionUser.d.ts +17 -0
- package/serialization/resources/commons/types/ActionUser.js +49 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/EventField.d.ts +1 -1
- package/serialization/resources/commons/types/EventField.js +1 -0
- package/serialization/resources/commons/types/UserEvent.d.ts +1 -0
- package/serialization/resources/commons/types/UserEvent.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +3 -0
- package/serialization/resources/commons/types/index.js +3 -0
- package/serialization/resources/index.d.ts +5 -0
- package/serialization/resources/index.js +6 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -1
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -1
- package/serialization/resources/triggers/types/EventTriggerBase.js +1 -1
- package/serialization/resources/triggers/types/index.d.ts +0 -1
- package/serialization/resources/triggers/types/index.js +0 -1
- package/serialization/resources/websockets/client/index.d.ts +1 -0
- package/serialization/resources/websockets/client/index.js +17 -0
- package/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +15 -0
- package/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +56 -0
- package/serialization/resources/websockets/client/socket/index.d.ts +1 -0
- package/serialization/resources/websockets/client/socket/index.js +5 -0
- package/serialization/resources/websockets/index.d.ts +2 -0
- package/serialization/resources/websockets/index.js +18 -0
- package/serialization/resources/websockets/types/AgentAudioChunk.d.ts +11 -0
- package/serialization/resources/websockets/types/AgentAudioChunk.js +45 -0
- package/serialization/resources/websockets/types/AgentTranscript.d.ts +11 -0
- package/serialization/resources/websockets/types/AgentTranscript.js +45 -0
- package/serialization/resources/websockets/types/AudioFormat.d.ts +7 -0
- package/serialization/resources/websockets/types/AudioFormat.js +39 -0
- package/serialization/resources/websockets/types/Config.d.ts +14 -0
- package/serialization/resources/websockets/types/Config.js +46 -0
- package/serialization/resources/websockets/types/ConversationEnded.d.ts +10 -0
- package/serialization/resources/websockets/types/ConversationEnded.js +44 -0
- package/serialization/resources/websockets/types/ConversationReady.d.ts +9 -0
- package/serialization/resources/websockets/types/ConversationReady.js +41 -0
- package/serialization/resources/websockets/types/Error_.d.ts +12 -0
- package/serialization/resources/websockets/types/Error_.js +46 -0
- package/serialization/resources/websockets/types/ServerEventBase.d.ts +9 -0
- package/serialization/resources/websockets/types/ServerEventBase.js +41 -0
- package/serialization/resources/websockets/types/UserAudioChunk.d.ts +10 -0
- package/serialization/resources/websockets/types/UserAudioChunk.js +42 -0
- package/serialization/resources/websockets/types/UserFinishedSpeaking.d.ts +10 -0
- package/serialization/resources/websockets/types/UserFinishedSpeaking.js +44 -0
- package/serialization/resources/websockets/types/UserStartedSpeaking.d.ts +10 -0
- package/serialization/resources/websockets/types/UserStartedSpeaking.js +44 -0
- package/serialization/resources/websockets/types/UserTranscript.d.ts +11 -0
- package/serialization/resources/websockets/types/UserTranscript.js +45 -0
- package/serialization/resources/websockets/types/index.d.ts +12 -0
- package/serialization/resources/websockets/types/index.js +28 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.SessionTokenResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.SessionTokenResponse = core.serialization.object({
|
|
40
|
+
sessionToken: core.serialization.string(),
|
|
41
|
+
expiresAt: core.serialization.date(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./SessionTokenRequest"), exports);
|
|
18
|
+
__exportStar(require("./SessionTokenResponse"), exports);
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
|
-
import * as serializers from "../../../index";
|
|
4
|
-
import {
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ActionProperties } from "./ActionProperties";
|
|
5
5
|
export declare const ActionBase: core.serialization.ObjectSchema<serializers.ActionBase.Raw, MavenAGI.ActionBase>;
|
|
6
6
|
export declare namespace ActionBase {
|
|
7
|
-
interface Raw {
|
|
7
|
+
interface Raw extends ActionProperties.Raw {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
|
-
userInteractionRequired: boolean;
|
|
11
|
-
buttonName?: string | null;
|
|
12
|
-
precondition?: serializers.Precondition.Raw | null;
|
|
13
|
-
userFormParameters: ActionParameter.Raw[];
|
|
14
|
-
language?: string | null;
|
|
15
10
|
}
|
|
16
11
|
}
|
|
@@ -36,14 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.ActionBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const ActionProperties_1 = require("./ActionProperties");
|
|
40
|
+
exports.ActionBase = core.serialization
|
|
41
|
+
.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
43
|
description: core.serialization.string(),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
|
|
47
|
-
userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
|
|
48
|
-
language: core.serialization.string().optional(),
|
|
49
|
-
});
|
|
44
|
+
})
|
|
45
|
+
.extend(ActionProperties_1.ActionProperties);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const ActionParameterType: core.serialization.Schema<serializers.ActionParameterType.Raw, MavenAGI.ActionParameterType>;
|
|
5
5
|
export declare namespace ActionParameterType {
|
|
6
|
-
type Raw = "STRING" | "MULTILINE" | "BOOLEAN" | "NUMBER" | "DATETIME" | "DATE" | "TIME" | "EMAIL" | "SCHEMA" | "FILE" | "OAUTH";
|
|
6
|
+
type Raw = "STRING" | "MULTILINE" | "BOOLEAN" | "NUMBER" | "DATETIME" | "DATE" | "TIME" | "EMAIL" | "PHONE" | "SCHEMA" | "FILE" | "OAUTH";
|
|
7
7
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as serializers from "../../../index";
|
|
4
|
+
import { ActionParameter } from "./ActionParameter";
|
|
5
|
+
export declare const ActionProperties: core.serialization.ObjectSchema<serializers.ActionProperties.Raw, MavenAGI.ActionProperties>;
|
|
6
|
+
export declare namespace ActionProperties {
|
|
7
|
+
interface Raw {
|
|
8
|
+
userInteractionRequired: boolean;
|
|
9
|
+
buttonName?: string | null;
|
|
10
|
+
precondition?: serializers.Precondition.Raw | null;
|
|
11
|
+
userFormParameters: ActionParameter.Raw[];
|
|
12
|
+
language?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ActionProperties = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const serializers = __importStar(require("../../../index"));
|
|
40
|
+
const ActionParameter_1 = require("./ActionParameter");
|
|
41
|
+
exports.ActionProperties = core.serialization.object({
|
|
42
|
+
userInteractionRequired: core.serialization.boolean(),
|
|
43
|
+
buttonName: core.serialization.string().optional(),
|
|
44
|
+
precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
|
|
45
|
+
userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
|
|
46
|
+
language: core.serialization.string().optional(),
|
|
47
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { AppUserIdentifier } from "./AppUserIdentifier";
|
|
5
|
+
import { EntityIdBase } from "./EntityIdBase";
|
|
6
|
+
import { UserDataWithReference } from "./UserDataWithReference";
|
|
7
|
+
export declare const ActionUser: core.serialization.ObjectSchema<serializers.ActionUser.Raw, MavenAGI.ActionUser>;
|
|
8
|
+
export declare namespace ActionUser {
|
|
9
|
+
interface Raw {
|
|
10
|
+
userId?: EntityIdBase.Raw | null;
|
|
11
|
+
agentUserId?: string | null;
|
|
12
|
+
userIdentifiers: AppUserIdentifier.Raw[];
|
|
13
|
+
allUserData: Record<string, Record<string, string>>;
|
|
14
|
+
defaultUserData: Record<string, string>;
|
|
15
|
+
agentUserData: Record<string, UserDataWithReference.Raw[]>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ActionUser = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const AppUserIdentifier_1 = require("./AppUserIdentifier");
|
|
40
|
+
const EntityIdBase_1 = require("./EntityIdBase");
|
|
41
|
+
const UserDataWithReference_1 = require("./UserDataWithReference");
|
|
42
|
+
exports.ActionUser = core.serialization.object({
|
|
43
|
+
userId: EntityIdBase_1.EntityIdBase.optional(),
|
|
44
|
+
agentUserId: core.serialization.string().optional(),
|
|
45
|
+
userIdentifiers: core.serialization.list(AppUserIdentifier_1.AppUserIdentifier),
|
|
46
|
+
allUserData: core.serialization.record(core.serialization.string(), core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
47
|
+
defaultUserData: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
48
|
+
agentUserData: core.serialization.record(core.serialization.string(), core.serialization.list(UserDataWithReference_1.UserDataWithReference)),
|
|
49
|
+
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
|
|
5
5
|
export declare namespace EntityType {
|
|
6
|
-
type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER";
|
|
6
|
+
type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD";
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const EventField: core.serialization.Schema<serializers.EventField.Raw, MavenAGI.EventField>;
|
|
5
5
|
export declare namespace EventField {
|
|
6
|
-
type Raw = "CREATED_AT" | "EVENT_NAME" | "EVENT_TYPE" | "APP" | "SESSION_ID" | "SOURCE_TYPE" | "SOURCE_LANGUAGE_CODE" | "SOURCE_DEVICE_TYPE" | "SOURCE_DEVICE_NAME" | "SOURCE_BROWSER_TYPE" | "SOURCE_BROWSER_NAME" | "SOURCE_GEO_CITY" | "SOURCE_GEO_STATE" | "SOURCE_GEO_COUNTRY" | "USER_REFERENCE_ID" | "AGENT_USER_ID";
|
|
6
|
+
type Raw = "CREATED_AT" | "EVENT_NAME" | "EVENT_TYPE" | "APP" | "SESSION_ID" | "SOURCE_TYPE" | "SOURCE_LANGUAGE_CODE" | "SOURCE_DEVICE_TYPE" | "SOURCE_DEVICE_NAME" | "SOURCE_BROWSER_TYPE" | "SOURCE_BROWSER_NAME" | "SOURCE_GEO_CITY" | "SOURCE_GEO_STATE" | "SOURCE_GEO_COUNTRY" | "USER_REFERENCE_ID" | "AGENT_USER_ID" | "TIMESTAMP";
|
|
7
7
|
}
|
|
@@ -11,6 +11,7 @@ export declare const UserEvent: core.serialization.ObjectSchema<serializers.User
|
|
|
11
11
|
export declare namespace UserEvent {
|
|
12
12
|
interface Raw extends EventBaseNoId.Raw {
|
|
13
13
|
id: EntityId.Raw;
|
|
14
|
+
createdAt?: string | null;
|
|
14
15
|
eventName: UserEventName.Raw;
|
|
15
16
|
userInfo: EventUserInfo.Raw;
|
|
16
17
|
feedbackInfo?: FeedbackInfo.Raw[] | null;
|
|
@@ -45,6 +45,7 @@ const UserEventName_1 = require("./UserEventName");
|
|
|
45
45
|
exports.UserEvent = core.serialization
|
|
46
46
|
.object({
|
|
47
47
|
id: EntityId_1.EntityId,
|
|
48
|
+
createdAt: core.serialization.date().optional(),
|
|
48
49
|
eventName: UserEventName_1.UserEventName,
|
|
49
50
|
userInfo: EventUserInfo_1.EventUserInfo,
|
|
50
51
|
feedbackInfo: core.serialization.list(FeedbackInfo_1.FeedbackInfo).optional(),
|
|
@@ -5,7 +5,9 @@ export * from "./ActionFormField";
|
|
|
5
5
|
export * from "./ActionOAuthConfiguration";
|
|
6
6
|
export * from "./ActionParameter";
|
|
7
7
|
export * from "./ActionParameterType";
|
|
8
|
+
export * from "./ActionProperties";
|
|
8
9
|
export * from "./ActionResponse";
|
|
10
|
+
export * from "./ActionUser";
|
|
9
11
|
export * from "./AppPrecondition";
|
|
10
12
|
export * from "./AppUser";
|
|
11
13
|
export * from "./AppUserIdentifier";
|
|
@@ -70,6 +72,7 @@ export * from "./EventRequest";
|
|
|
70
72
|
export * from "./EventResponse";
|
|
71
73
|
export * from "./EventsSearchRequest";
|
|
72
74
|
export * from "./EventsSearchResponse";
|
|
75
|
+
export * from "./EventTriggerType";
|
|
73
76
|
export * from "./EventType";
|
|
74
77
|
export * from "./EventUserInfo";
|
|
75
78
|
export * from "./EventUserInfoBase";
|
|
@@ -21,7 +21,9 @@ __exportStar(require("./ActionFormField"), exports);
|
|
|
21
21
|
__exportStar(require("./ActionOAuthConfiguration"), exports);
|
|
22
22
|
__exportStar(require("./ActionParameter"), exports);
|
|
23
23
|
__exportStar(require("./ActionParameterType"), exports);
|
|
24
|
+
__exportStar(require("./ActionProperties"), exports);
|
|
24
25
|
__exportStar(require("./ActionResponse"), exports);
|
|
26
|
+
__exportStar(require("./ActionUser"), exports);
|
|
25
27
|
__exportStar(require("./AppPrecondition"), exports);
|
|
26
28
|
__exportStar(require("./AppUser"), exports);
|
|
27
29
|
__exportStar(require("./AppUserIdentifier"), exports);
|
|
@@ -86,6 +88,7 @@ __exportStar(require("./EventRequest"), exports);
|
|
|
86
88
|
__exportStar(require("./EventResponse"), exports);
|
|
87
89
|
__exportStar(require("./EventsSearchRequest"), exports);
|
|
88
90
|
__exportStar(require("./EventsSearchResponse"), exports);
|
|
91
|
+
__exportStar(require("./EventTriggerType"), exports);
|
|
89
92
|
__exportStar(require("./EventType"), exports);
|
|
90
93
|
__exportStar(require("./EventUserInfo"), exports);
|
|
91
94
|
__exportStar(require("./EventUserInfoBase"), exports);
|
|
@@ -10,6 +10,8 @@ export * as appSettings from "./appSettings";
|
|
|
10
10
|
export * from "./appSettings/types";
|
|
11
11
|
export * as assets from "./assets";
|
|
12
12
|
export * from "./assets/types";
|
|
13
|
+
export * as auth from "./auth";
|
|
14
|
+
export * from "./auth/types";
|
|
13
15
|
export * as commons from "./commons";
|
|
14
16
|
export * from "./commons/types";
|
|
15
17
|
export * as conversation from "./conversation";
|
|
@@ -31,3 +33,6 @@ export * as triggers from "./triggers";
|
|
|
31
33
|
export * from "./triggers/types";
|
|
32
34
|
export * as users from "./users";
|
|
33
35
|
export * from "./users/types";
|
|
36
|
+
export * as websockets from "./websockets";
|
|
37
|
+
export * from "./websockets/client/socket";
|
|
38
|
+
export * from "./websockets/types";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.inbox = exports.customers = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
|
|
39
|
+
exports.websockets = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.inbox = exports.customers = exports.conversation = exports.commons = exports.auth = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions"));
|
|
41
41
|
__exportStar(require("./actions/client/requests"), exports);
|
|
42
42
|
__exportStar(require("./actions/types"), exports);
|
|
@@ -49,6 +49,8 @@ exports.appSettings = __importStar(require("./appSettings"));
|
|
|
49
49
|
__exportStar(require("./appSettings/types"), exports);
|
|
50
50
|
exports.assets = __importStar(require("./assets"));
|
|
51
51
|
__exportStar(require("./assets/types"), exports);
|
|
52
|
+
exports.auth = __importStar(require("./auth"));
|
|
53
|
+
__exportStar(require("./auth/types"), exports);
|
|
52
54
|
exports.commons = __importStar(require("./commons"));
|
|
53
55
|
__exportStar(require("./commons/types"), exports);
|
|
54
56
|
exports.conversation = __importStar(require("./conversation"));
|
|
@@ -70,3 +72,6 @@ exports.triggers = __importStar(require("./triggers"));
|
|
|
70
72
|
__exportStar(require("./triggers/types"), exports);
|
|
71
73
|
exports.users = __importStar(require("./users"));
|
|
72
74
|
__exportStar(require("./users/types"), exports);
|
|
75
|
+
exports.websockets = __importStar(require("./websockets"));
|
|
76
|
+
__exportStar(require("./websockets/client/socket"), exports);
|
|
77
|
+
__exportStar(require("./websockets/types"), exports);
|
|
@@ -13,7 +13,7 @@ export declare namespace KnowledgeDocumentRequest {
|
|
|
13
13
|
versionId?: EntityIdWithoutAgent.Raw | null;
|
|
14
14
|
contentType: KnowledgeDocumentContentType.Raw;
|
|
15
15
|
title: string;
|
|
16
|
-
assetId?:
|
|
16
|
+
assetId?: EntityIdWithoutAgent.Raw | null;
|
|
17
17
|
content?: string | null;
|
|
18
18
|
metadata?: Record<string, string> | null;
|
|
19
19
|
createdAt?: string | null;
|
|
@@ -47,7 +47,7 @@ exports.KnowledgeDocumentRequest = core.serialization
|
|
|
47
47
|
versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
48
48
|
contentType: KnowledgeDocumentContentType_1.KnowledgeDocumentContentType,
|
|
49
49
|
title: core.serialization.string(),
|
|
50
|
-
assetId:
|
|
50
|
+
assetId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
51
51
|
content: core.serialization.string().optional(),
|
|
52
52
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
53
53
|
createdAt: core.serialization.date().optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
|
-
import { EventTriggerType } from "
|
|
4
|
+
import { EventTriggerType } from "../../commons/types/EventTriggerType";
|
|
5
5
|
export declare const EventTriggerBase: core.serialization.ObjectSchema<serializers.EventTriggerBase.Raw, MavenAGI.EventTriggerBase>;
|
|
6
6
|
export declare namespace EventTriggerBase {
|
|
7
7
|
interface Raw {
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.EventTriggerBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
const EventTriggerType_1 = require("
|
|
39
|
+
const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
|
|
40
40
|
exports.EventTriggerBase = core.serialization.object({
|
|
41
41
|
description: core.serialization.string(),
|
|
42
42
|
type: EventTriggerType_1.EventTriggerType,
|
|
@@ -3,6 +3,5 @@ export * from "./EventTriggerRequest";
|
|
|
3
3
|
export * from "./EventTriggerResponse";
|
|
4
4
|
export * from "./EventTriggersSearchRequest";
|
|
5
5
|
export * from "./EventTriggersSearchResponse";
|
|
6
|
-
export * from "./EventTriggerType";
|
|
7
6
|
export * from "./TriggerField";
|
|
8
7
|
export * from "./TriggerPartialUpdate";
|
|
@@ -19,6 +19,5 @@ __exportStar(require("./EventTriggerRequest"), exports);
|
|
|
19
19
|
__exportStar(require("./EventTriggerResponse"), exports);
|
|
20
20
|
__exportStar(require("./EventTriggersSearchRequest"), exports);
|
|
21
21
|
__exportStar(require("./EventTriggersSearchResponse"), exports);
|
|
22
|
-
__exportStar(require("./EventTriggerType"), exports);
|
|
23
22
|
__exportStar(require("./TriggerField"), exports);
|
|
24
23
|
__exportStar(require("./TriggerPartialUpdate"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./socket";
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./socket"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../index";
|
|
4
|
+
import { AgentAudioChunk } from "../../types/AgentAudioChunk";
|
|
5
|
+
import { AgentTranscript } from "../../types/AgentTranscript";
|
|
6
|
+
import { ConversationEnded } from "../../types/ConversationEnded";
|
|
7
|
+
import { ConversationReady } from "../../types/ConversationReady";
|
|
8
|
+
import { Error_ } from "../../types/Error_";
|
|
9
|
+
import { UserFinishedSpeaking } from "../../types/UserFinishedSpeaking";
|
|
10
|
+
import { UserStartedSpeaking } from "../../types/UserStartedSpeaking";
|
|
11
|
+
import { UserTranscript } from "../../types/UserTranscript";
|
|
12
|
+
export declare const WebsocketsSocketResponse: core.serialization.Schema<serializers.WebsocketsSocketResponse.Raw, MavenAGI.ConversationReady | MavenAGI.AgentAudioChunk | MavenAGI.UserTranscript | MavenAGI.AgentTranscript | MavenAGI.ConversationEnded | MavenAGI.UserStartedSpeaking | MavenAGI.UserFinishedSpeaking | MavenAGI.Error_>;
|
|
13
|
+
export declare namespace WebsocketsSocketResponse {
|
|
14
|
+
type Raw = ConversationReady.Raw | AgentAudioChunk.Raw | UserTranscript.Raw | AgentTranscript.Raw | ConversationEnded.Raw | UserStartedSpeaking.Raw | UserFinishedSpeaking.Raw | Error_.Raw;
|
|
15
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.WebsocketsSocketResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const AgentAudioChunk_1 = require("../../types/AgentAudioChunk");
|
|
40
|
+
const AgentTranscript_1 = require("../../types/AgentTranscript");
|
|
41
|
+
const ConversationEnded_1 = require("../../types/ConversationEnded");
|
|
42
|
+
const ConversationReady_1 = require("../../types/ConversationReady");
|
|
43
|
+
const Error_1 = require("../../types/Error_");
|
|
44
|
+
const UserFinishedSpeaking_1 = require("../../types/UserFinishedSpeaking");
|
|
45
|
+
const UserStartedSpeaking_1 = require("../../types/UserStartedSpeaking");
|
|
46
|
+
const UserTranscript_1 = require("../../types/UserTranscript");
|
|
47
|
+
exports.WebsocketsSocketResponse = core.serialization.undiscriminatedUnion([
|
|
48
|
+
ConversationReady_1.ConversationReady,
|
|
49
|
+
AgentAudioChunk_1.AgentAudioChunk,
|
|
50
|
+
UserTranscript_1.UserTranscript,
|
|
51
|
+
AgentTranscript_1.AgentTranscript,
|
|
52
|
+
ConversationEnded_1.ConversationEnded,
|
|
53
|
+
UserStartedSpeaking_1.UserStartedSpeaking,
|
|
54
|
+
UserFinishedSpeaking_1.UserFinishedSpeaking,
|
|
55
|
+
Error_1.Error_,
|
|
56
|
+
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WebsocketsSocketResponse } from "./WebsocketsSocketResponse";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebsocketsSocketResponse = void 0;
|
|
4
|
+
var WebsocketsSocketResponse_1 = require("./WebsocketsSocketResponse");
|
|
5
|
+
Object.defineProperty(exports, "WebsocketsSocketResponse", { enumerable: true, get: function () { return WebsocketsSocketResponse_1.WebsocketsSocketResponse; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./client"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ServerEventBase } from "./ServerEventBase";
|
|
5
|
+
export declare const AgentAudioChunk: core.serialization.ObjectSchema<serializers.AgentAudioChunk.Raw, MavenAGI.AgentAudioChunk>;
|
|
6
|
+
export declare namespace AgentAudioChunk {
|
|
7
|
+
interface Raw extends ServerEventBase.Raw {
|
|
8
|
+
type: "agent_audio_chunk";
|
|
9
|
+
data: string;
|
|
10
|
+
}
|
|
11
|
+
}
|