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,45 @@
|
|
|
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.UserTranscript = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ServerEventBase_1 = require("./ServerEventBase");
|
|
40
|
+
exports.UserTranscript = core.serialization
|
|
41
|
+
.object({
|
|
42
|
+
type: core.serialization.stringLiteral("user_transcript"),
|
|
43
|
+
text: core.serialization.string(),
|
|
44
|
+
})
|
|
45
|
+
.extend(ServerEventBase_1.ServerEventBase);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./AgentAudioChunk";
|
|
2
|
+
export * from "./AgentTranscript";
|
|
3
|
+
export * from "./AudioFormat";
|
|
4
|
+
export * from "./Config";
|
|
5
|
+
export * from "./ConversationEnded";
|
|
6
|
+
export * from "./ConversationReady";
|
|
7
|
+
export * from "./Error_";
|
|
8
|
+
export * from "./ServerEventBase";
|
|
9
|
+
export * from "./UserAudioChunk";
|
|
10
|
+
export * from "./UserFinishedSpeaking";
|
|
11
|
+
export * from "./UserStartedSpeaking";
|
|
12
|
+
export * from "./UserTranscript";
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./AgentAudioChunk"), exports);
|
|
18
|
+
__exportStar(require("./AgentTranscript"), exports);
|
|
19
|
+
__exportStar(require("./AudioFormat"), exports);
|
|
20
|
+
__exportStar(require("./Config"), exports);
|
|
21
|
+
__exportStar(require("./ConversationEnded"), exports);
|
|
22
|
+
__exportStar(require("./ConversationReady"), exports);
|
|
23
|
+
__exportStar(require("./Error_"), exports);
|
|
24
|
+
__exportStar(require("./ServerEventBase"), exports);
|
|
25
|
+
__exportStar(require("./UserAudioChunk"), exports);
|
|
26
|
+
__exportStar(require("./UserFinishedSpeaking"), exports);
|
|
27
|
+
__exportStar(require("./UserStartedSpeaking"), exports);
|
|
28
|
+
__exportStar(require("./UserTranscript"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.11";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mavenagi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "github:mavenagi/mavenagi-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
"test": "vitest",
|
|
18
18
|
"test:unit": "vitest --project unit"
|
|
19
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"ws": "^8.16.0"
|
|
22
|
+
},
|
|
20
23
|
"devDependencies": {
|
|
21
24
|
"webpack": "^5.97.1",
|
|
22
25
|
"ts-loader": "^9.5.1",
|
|
26
|
+
"@types/ws": "^8.5.10",
|
|
23
27
|
"vitest": "^3.2.4",
|
|
24
28
|
"@types/node": "^18.19.70",
|
|
25
29
|
"typescript": "~5.7.2",
|
package/reference.md
CHANGED
|
@@ -1413,7 +1413,7 @@ await client.appSettings.search({
|
|
|
1413
1413
|
</dl>
|
|
1414
1414
|
</details>
|
|
1415
1415
|
|
|
1416
|
-
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record
|
|
1416
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record<string, unknown></code></summary>
|
|
1417
1417
|
<dl>
|
|
1418
1418
|
<dd>
|
|
1419
1419
|
|
|
@@ -1468,7 +1468,7 @@ await client.appSettings.get();
|
|
|
1468
1468
|
</dl>
|
|
1469
1469
|
</details>
|
|
1470
1470
|
|
|
1471
|
-
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record
|
|
1471
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
1472
1472
|
<dl>
|
|
1473
1473
|
<dd>
|
|
1474
1474
|
|
|
@@ -1676,6 +1676,74 @@ await client.assets.commitUpload("assetReferenceId", {});
|
|
|
1676
1676
|
</dl>
|
|
1677
1677
|
|
|
1678
1678
|
|
|
1679
|
+
</dd>
|
|
1680
|
+
</dl>
|
|
1681
|
+
</details>
|
|
1682
|
+
|
|
1683
|
+
## Auth
|
|
1684
|
+
<details><summary><code>client.auth.<a href="/src/api/resources/auth/client/Client.ts">sessionToken</a>({ ...params }) -> MavenAGI.SessionTokenResponse</code></summary>
|
|
1685
|
+
<dl>
|
|
1686
|
+
<dd>
|
|
1687
|
+
|
|
1688
|
+
#### 📝 Description
|
|
1689
|
+
|
|
1690
|
+
<dl>
|
|
1691
|
+
<dd>
|
|
1692
|
+
|
|
1693
|
+
<dl>
|
|
1694
|
+
<dd>
|
|
1695
|
+
|
|
1696
|
+
Creates a short-lived session token that can be used to authenticate
|
|
1697
|
+
WebSocket connections. Session tokens are useful for client-side applications where
|
|
1698
|
+
you don’t want to expose your API key.
|
|
1699
|
+
</dd>
|
|
1700
|
+
</dl>
|
|
1701
|
+
</dd>
|
|
1702
|
+
</dl>
|
|
1703
|
+
|
|
1704
|
+
#### 🔌 Usage
|
|
1705
|
+
|
|
1706
|
+
<dl>
|
|
1707
|
+
<dd>
|
|
1708
|
+
|
|
1709
|
+
<dl>
|
|
1710
|
+
<dd>
|
|
1711
|
+
|
|
1712
|
+
```typescript
|
|
1713
|
+
await client.auth.sessionToken({
|
|
1714
|
+
ttlSeconds: 3600
|
|
1715
|
+
});
|
|
1716
|
+
|
|
1717
|
+
```
|
|
1718
|
+
</dd>
|
|
1719
|
+
</dl>
|
|
1720
|
+
</dd>
|
|
1721
|
+
</dl>
|
|
1722
|
+
|
|
1723
|
+
#### ⚙️ Parameters
|
|
1724
|
+
|
|
1725
|
+
<dl>
|
|
1726
|
+
<dd>
|
|
1727
|
+
|
|
1728
|
+
<dl>
|
|
1729
|
+
<dd>
|
|
1730
|
+
|
|
1731
|
+
**request:** `MavenAGI.SessionTokenRequest`
|
|
1732
|
+
|
|
1733
|
+
</dd>
|
|
1734
|
+
</dl>
|
|
1735
|
+
|
|
1736
|
+
<dl>
|
|
1737
|
+
<dd>
|
|
1738
|
+
|
|
1739
|
+
**requestOptions:** `Auth.RequestOptions`
|
|
1740
|
+
|
|
1741
|
+
</dd>
|
|
1742
|
+
</dl>
|
|
1743
|
+
</dd>
|
|
1744
|
+
</dl>
|
|
1745
|
+
|
|
1746
|
+
|
|
1679
1747
|
</dd>
|
|
1680
1748
|
</dl>
|
|
1681
1749
|
</details>
|
|
@@ -2188,7 +2256,7 @@ await client.conversation.ask("conversation-0", {
|
|
|
2188
2256
|
</dl>
|
|
2189
2257
|
</details>
|
|
2190
2258
|
|
|
2191
|
-
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askStream</a>(conversationId, { ...params }) -> core.Stream
|
|
2259
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askStream</a>(conversationId, { ...params }) -> core.Stream<MavenAGI.StreamResponse></code></summary>
|
|
2192
2260
|
<dl>
|
|
2193
2261
|
<dd>
|
|
2194
2262
|
|
|
@@ -2291,7 +2359,7 @@ for await (const item of response) {
|
|
|
2291
2359
|
</dl>
|
|
2292
2360
|
</details>
|
|
2293
2361
|
|
|
2294
|
-
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askObjectStream</a>(conversationId, { ...params }) -> core.Stream
|
|
2362
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askObjectStream</a>(conversationId, { ...params }) -> core.Stream<MavenAGI.ObjectStreamResponse></code></summary>
|
|
2295
2363
|
<dl>
|
|
2296
2364
|
<dd>
|
|
2297
2365
|
|
|
@@ -2609,7 +2677,7 @@ await client.conversation.submitActionForm("conversationId", {
|
|
|
2609
2677
|
</dl>
|
|
2610
2678
|
</details>
|
|
2611
2679
|
|
|
2612
|
-
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">addConversationMetadata</a>(conversationId, { ...params }) -> Record
|
|
2680
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">addConversationMetadata</a>(conversationId, { ...params }) -> Record<string, string></code></summary>
|
|
2613
2681
|
<dl>
|
|
2614
2682
|
<dd>
|
|
2615
2683
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -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("./types"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const SessionTokenRequest: core.serialization.ObjectSchema<serializers.SessionTokenRequest.Raw, MavenAGI.SessionTokenRequest>;
|
|
5
|
+
export declare namespace SessionTokenRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
ttlSeconds: number;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.SessionTokenRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.SessionTokenRequest = core.serialization.object({
|
|
40
|
+
ttlSeconds: core.serialization.number(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const SessionTokenResponse: core.serialization.ObjectSchema<serializers.SessionTokenResponse.Raw, MavenAGI.SessionTokenResponse>;
|
|
5
|
+
export declare namespace SessionTokenResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
sessionToken: string;
|
|
8
|
+
expiresAt: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -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(),
|