mavenagi 1.2.67 → 1.2.69
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/BaseClient.js +2 -2
- package/api/resources/actions/client/Client.d.ts +14 -0
- package/api/resources/actions/client/Client.js +14 -0
- package/api/resources/agents/client/Client.d.ts +10 -12
- package/api/resources/agents/client/Client.js +10 -12
- package/api/resources/analytics/client/Client.d.ts +10 -0
- package/api/resources/analytics/client/Client.js +10 -0
- package/api/resources/appDirectory/client/Client.d.ts +3 -1
- package/api/resources/appDirectory/client/Client.js +3 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +4 -0
- package/api/resources/capabilities/client/Client.d.ts +20 -0
- package/api/resources/capabilities/client/Client.js +20 -0
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +4 -0
- package/api/resources/charters/client/Client.d.ts +18 -0
- package/api/resources/charters/client/Client.js +18 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +4 -4
- package/api/resources/commons/types/MetadataComparisonOperator.js +4 -4
- package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +1 -1
- package/api/resources/commons/types/MetadataFilter.d.ts +6 -1
- package/api/resources/commons/types/SimulationContext.d.ts +9 -0
- package/api/resources/commons/types/SystemEventName.d.ts +3 -0
- package/api/resources/commons/types/SystemEventName.js +3 -0
- package/api/resources/conversation/client/Client.d.ts +42 -3
- package/api/resources/conversation/client/Client.js +42 -3
- package/api/resources/conversation/types/AskRequest.d.ts +1 -62
- package/api/resources/conversation/types/AskRequestBase.d.ts +67 -0
- package/api/resources/conversation/types/index.d.ts +1 -0
- package/api/resources/conversation/types/index.js +1 -0
- package/api/resources/conversationKickoffs/client/Client.d.ts +2 -0
- package/api/resources/conversationKickoffs/client/Client.js +2 -0
- package/api/resources/customers/client/Client.d.ts +14 -0
- package/api/resources/customers/client/Client.js +14 -0
- package/api/resources/events/client/Client.d.ts +16 -3
- package/api/resources/events/client/Client.js +16 -3
- package/api/resources/inbox/client/Client.d.ts +20 -0
- package/api/resources/inbox/client/Client.js +20 -0
- package/api/resources/intelligentFields/client/Client.d.ts +10 -0
- package/api/resources/intelligentFields/client/Client.js +10 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +2 -1
- package/api/resources/knowledge/client/Client.d.ts +40 -0
- package/api/resources/knowledge/client/Client.js +40 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -5
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -3
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/api/resources/segments/client/Client.d.ts +16 -0
- package/api/resources/segments/client/Client.js +16 -0
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +2 -0
- package/api/resources/triggers/client/Client.d.ts +10 -0
- package/api/resources/triggers/client/Client.js +10 -0
- package/api/resources/users/client/Client.d.ts +16 -0
- package/api/resources/users/client/Client.js +16 -0
- package/api/resources/voice/client/Client.d.ts +3 -2
- package/api/resources/voice/client/Client.js +3 -2
- package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +14 -3
- package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -1
- package/api/resources/voice/types/VoiceWebRtcTransport.d.ts +10 -0
- package/api/resources/voice/types/VoiceWebRtcTransport.js +13 -0
- package/api/resources/voice/types/index.d.ts +1 -0
- package/api/resources/voice/types/index.js +1 -0
- package/api/resources/voiceConversations/client/Client.d.ts +5 -2
- package/api/resources/voiceConversations/client/Client.js +6 -3
- package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
- package/api/resources/voiceConversations/client/Socket.js +10 -0
- package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
- package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
- package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
- package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
- package/api/resources/voiceConversations/types/Config.d.ts +2 -6
- package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
- package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
- package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
- package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
- package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
- package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
- package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
- package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
- package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
- package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
- package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
- package/api/resources/voiceConversations/types/index.d.ts +6 -5
- package/api/resources/voiceConversations/types/index.js +6 -5
- package/package.json +1 -1
- package/reference.md +292 -21
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
- package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
- package/serialization/resources/conversation/types/AskRequest.js +5 -13
- package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
- package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
- package/serialization/resources/conversation/types/index.d.ts +1 -0
- package/serialization/resources/conversation/types/index.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
- package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +2 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +2 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +1 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +1 -0
- package/serialization/resources/voice/types/VoiceWebRtcTransport.d.ts +7 -0
- package/serialization/resources/voice/types/VoiceWebRtcTransport.js +39 -0
- package/serialization/resources/voice/types/index.d.ts +1 -0
- package/serialization/resources/voice/types/index.js +1 -0
- package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
- package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
- package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
- package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
- package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
- package/serialization/resources/voiceConversations/types/Config.js +0 -2
- package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
- package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
- package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
- package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
- package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
- package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
- package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
- package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
- package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
- package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
- package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
- package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
- package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
- package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
- package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
- package/serialization/resources/voiceConversations/types/index.js +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
- package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
- package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
- /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
- /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export declare namespace CapabilityExecutionsSearchRequest {
|
|
|
14
14
|
capabilityIds?: EntityId.Raw[] | null;
|
|
15
15
|
statuses?: CapabilityExecutionStatus.Raw[] | null;
|
|
16
16
|
simulationFilter?: SimulationFilter.Raw | null;
|
|
17
|
+
createdAfter?: string | null;
|
|
18
|
+
createdBefore?: string | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js
CHANGED
|
@@ -48,5 +48,7 @@ exports.CapabilityExecutionsSearchRequest = core.serialization
|
|
|
48
48
|
capabilityIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
49
49
|
statuses: core.serialization.list(CapabilityExecutionStatus_1.CapabilityExecutionStatus).optional(),
|
|
50
50
|
simulationFilter: SimulationFilter_1.SimulationFilter.optional(),
|
|
51
|
+
createdAfter: core.serialization.date().optional(),
|
|
52
|
+
createdBefore: core.serialization.date().optional(),
|
|
51
53
|
})
|
|
52
54
|
.extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
|
|
@@ -13,6 +13,7 @@ export declare namespace SimulationContext {
|
|
|
13
13
|
persona?: LlmPersona.Raw | null;
|
|
14
14
|
availableKnowledgeBases?: EntityId.Raw[] | null;
|
|
15
15
|
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
16
|
+
evaluateWithCharters?: boolean | null;
|
|
16
17
|
actionMocks?: SimulationActionMock.Raw[] | null;
|
|
17
18
|
defaultActionBehavior?: SimulationActionBehavior.Raw | null;
|
|
18
19
|
}
|
|
@@ -46,6 +46,7 @@ exports.SimulationContext = core.serialization.object({
|
|
|
46
46
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
47
47
|
availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
48
48
|
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
49
|
+
evaluateWithCharters: core.serialization.boolean().optional(),
|
|
49
50
|
actionMocks: core.serialization.list(SimulationActionMock_1.SimulationActionMock).optional(),
|
|
50
51
|
defaultActionBehavior: SimulationActionBehavior_1.SimulationActionBehavior.optional(),
|
|
51
52
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const SystemEventName: core.serialization.Schema<serializers.SystemEventName.Raw, MavenAGI.SystemEventName>;
|
|
5
5
|
export declare namespace SystemEventName {
|
|
6
|
-
type Raw = "APP_INSTALLED" | "APP_UNINSTALLED" | "APP_UPDATED" | "NOTIFICATION_SENT" | "NOTIFICATION_DELIVERED" | "NOTIFICATION_FAILED" | "INTEGRATION_CONNECTED" | "INTEGRATION_DISCONNECTED" | "SYNC_STARTED" | "SYNC_COMPLETED" | "SYNC_FAILED" | "CONVERSATION_CLOSED" | "BOT_REPLY_CREATED" | "INTELLIGENT_FIELD_VALUE_CHANGED";
|
|
6
|
+
type Raw = "APP_INSTALLED" | "APP_UNINSTALLED" | "APP_UPDATED" | "NOTIFICATION_SENT" | "NOTIFICATION_DELIVERED" | "NOTIFICATION_FAILED" | "INTEGRATION_CONNECTED" | "INTEGRATION_DISCONNECTED" | "SYNC_STARTED" | "SYNC_COMPLETED" | "SYNC_FAILED" | "CONVERSATION_CLOSED" | "BOT_REPLY_CREATED" | "USER_MESSAGE_CREATED" | "INTELLIGENT_FIELD_VALUE_CHANGED";
|
|
7
7
|
}
|
|
@@ -1,21 +1,11 @@
|
|
|
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 { AskType } from "../../commons/types/AskType";
|
|
5
|
-
import { AttachmentRequest } from "../../commons/types/AttachmentRequest";
|
|
6
4
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
7
|
-
import {
|
|
5
|
+
import { AskRequestBase } from "./AskRequestBase";
|
|
8
6
|
export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
|
|
9
7
|
export declare namespace AskRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
conversationMessageId: EntityIdBase.Raw;
|
|
8
|
+
interface Raw extends AskRequestBase.Raw {
|
|
12
9
|
userId: EntityIdBase.Raw;
|
|
13
|
-
type?: AskType.Raw | null;
|
|
14
|
-
text?: string | null;
|
|
15
|
-
textFormat?: TextFormat.Raw | null;
|
|
16
|
-
attachments?: AttachmentRequest.Raw[] | null;
|
|
17
|
-
transientData?: Record<string, string> | null;
|
|
18
|
-
timezone?: string | null;
|
|
19
|
-
appMetadata?: Record<string, string> | null;
|
|
20
10
|
}
|
|
21
11
|
}
|
|
@@ -36,18 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AskRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
const AskType_1 = require("../../commons/types/AskType");
|
|
40
|
-
const AttachmentRequest_1 = require("../../commons/types/AttachmentRequest");
|
|
41
39
|
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
42
|
-
const
|
|
43
|
-
exports.AskRequest = core.serialization
|
|
44
|
-
|
|
40
|
+
const AskRequestBase_1 = require("./AskRequestBase");
|
|
41
|
+
exports.AskRequest = core.serialization
|
|
42
|
+
.object({
|
|
45
43
|
userId: EntityIdBase_1.EntityIdBase,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
textFormat: TextFormat_1.TextFormat.optional(),
|
|
49
|
-
attachments: core.serialization.list(AttachmentRequest_1.AttachmentRequest).optional(),
|
|
50
|
-
transientData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
51
|
-
timezone: core.serialization.string().optional(),
|
|
52
|
-
appMetadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
53
|
-
});
|
|
44
|
+
})
|
|
45
|
+
.extend(AskRequestBase_1.AskRequestBase);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { AskType } from "../../commons/types/AskType";
|
|
5
|
+
import { AttachmentRequest } from "../../commons/types/AttachmentRequest";
|
|
6
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
7
|
+
import { TextFormat } from "../../commons/types/TextFormat";
|
|
8
|
+
export declare const AskRequestBase: core.serialization.ObjectSchema<serializers.AskRequestBase.Raw, MavenAGI.AskRequestBase>;
|
|
9
|
+
export declare namespace AskRequestBase {
|
|
10
|
+
interface Raw {
|
|
11
|
+
conversationMessageId: EntityIdBase.Raw;
|
|
12
|
+
type?: AskType.Raw | null;
|
|
13
|
+
text?: string | null;
|
|
14
|
+
textFormat?: TextFormat.Raw | null;
|
|
15
|
+
attachments?: AttachmentRequest.Raw[] | null;
|
|
16
|
+
transientData?: Record<string, string> | null;
|
|
17
|
+
timezone?: string | null;
|
|
18
|
+
appMetadata?: Record<string, string> | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.AskRequestBase = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const AskType_1 = require("../../commons/types/AskType");
|
|
40
|
+
const AttachmentRequest_1 = require("../../commons/types/AttachmentRequest");
|
|
41
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
42
|
+
const TextFormat_1 = require("../../commons/types/TextFormat");
|
|
43
|
+
exports.AskRequestBase = core.serialization.object({
|
|
44
|
+
conversationMessageId: EntityIdBase_1.EntityIdBase,
|
|
45
|
+
type: AskType_1.AskType.optional(),
|
|
46
|
+
text: core.serialization.string().optional(),
|
|
47
|
+
textFormat: TextFormat_1.TextFormat.optional(),
|
|
48
|
+
attachments: core.serialization.list(AttachmentRequest_1.AttachmentRequest).optional(),
|
|
49
|
+
transientData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
50
|
+
timezone: core.serialization.string().optional(),
|
|
51
|
+
appMetadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
52
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./ActionFormAttachment";
|
|
2
2
|
export * from "./ActionFormRequestParamValue";
|
|
3
3
|
export * from "./AskRequest";
|
|
4
|
+
export * from "./AskRequestBase";
|
|
4
5
|
export * from "./AskStreamActionEvent";
|
|
5
6
|
export * from "./AskStreamChartEvent";
|
|
6
7
|
export * from "./AskStreamEndEvent";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ActionFormAttachment"), exports);
|
|
18
18
|
__exportStar(require("./ActionFormRequestParamValue"), exports);
|
|
19
19
|
__exportStar(require("./AskRequest"), exports);
|
|
20
|
+
__exportStar(require("./AskRequestBase"), exports);
|
|
20
21
|
__exportStar(require("./AskStreamActionEvent"), exports);
|
|
21
22
|
__exportStar(require("./AskStreamChartEvent"), exports);
|
|
22
23
|
__exportStar(require("./AskStreamEndEvent"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
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 KnowledgeDocumentMetadataValue: core.serialization.Schema<serializers.KnowledgeDocumentMetadataValue.Raw, MavenAGI.KnowledgeDocumentMetadataValue>;
|
|
5
|
+
export declare namespace KnowledgeDocumentMetadataValue {
|
|
6
|
+
type Raw = string | string[];
|
|
7
|
+
}
|
|
@@ -34,12 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.KnowledgeDocumentMetadataValue = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
text: core.serialization.string(),
|
|
44
|
-
})
|
|
45
|
-
.extend(ServerEventBase_1.ServerEventBase);
|
|
39
|
+
exports.KnowledgeDocumentMetadataValue = core.serialization.undiscriminatedUnion([
|
|
40
|
+
core.serialization.string(),
|
|
41
|
+
core.serialization.list(core.serialization.string()),
|
|
42
|
+
]);
|
|
@@ -6,6 +6,7 @@ import { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
|
|
|
6
6
|
import { ScopedEntity } from "../../commons/types/ScopedEntity";
|
|
7
7
|
import { BaseKnowledgeDocument } from "./BaseKnowledgeDocument";
|
|
8
8
|
import { KnowledgeDocumentContentType } from "./KnowledgeDocumentContentType";
|
|
9
|
+
import { KnowledgeDocumentMetadataValue } from "./KnowledgeDocumentMetadataValue";
|
|
9
10
|
export declare const KnowledgeDocumentRequest: core.serialization.ObjectSchema<serializers.KnowledgeDocumentRequest.Raw, MavenAGI.KnowledgeDocumentRequest>;
|
|
10
11
|
export declare namespace KnowledgeDocumentRequest {
|
|
11
12
|
interface Raw extends BaseKnowledgeDocument.Raw {
|
|
@@ -15,7 +16,7 @@ export declare namespace KnowledgeDocumentRequest {
|
|
|
15
16
|
title: string;
|
|
16
17
|
assetId?: EntityIdWithoutAgent.Raw | null;
|
|
17
18
|
content?: string | null;
|
|
18
|
-
metadata?: Record<string,
|
|
19
|
+
metadata?: Record<string, KnowledgeDocumentMetadataValue.Raw> | null;
|
|
19
20
|
createdAt?: string | null;
|
|
20
21
|
updatedAt?: string | null;
|
|
21
22
|
relevantEntities?: ScopedEntity.Raw[] | null;
|
|
@@ -41,6 +41,7 @@ const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent
|
|
|
41
41
|
const ScopedEntity_1 = require("../../commons/types/ScopedEntity");
|
|
42
42
|
const BaseKnowledgeDocument_1 = require("./BaseKnowledgeDocument");
|
|
43
43
|
const KnowledgeDocumentContentType_1 = require("./KnowledgeDocumentContentType");
|
|
44
|
+
const KnowledgeDocumentMetadataValue_1 = require("./KnowledgeDocumentMetadataValue");
|
|
44
45
|
exports.KnowledgeDocumentRequest = core.serialization
|
|
45
46
|
.object({
|
|
46
47
|
knowledgeDocumentId: EntityIdBase_1.EntityIdBase,
|
|
@@ -49,7 +50,7 @@ exports.KnowledgeDocumentRequest = core.serialization
|
|
|
49
50
|
title: core.serialization.string(),
|
|
50
51
|
assetId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
51
52
|
content: core.serialization.string().optional(),
|
|
52
|
-
metadata: core.serialization.record(core.serialization.string(),
|
|
53
|
+
metadata: core.serialization.record(core.serialization.string(), KnowledgeDocumentMetadataValue_1.KnowledgeDocumentMetadataValue).optional(),
|
|
53
54
|
createdAt: core.serialization.date().optional(),
|
|
54
55
|
updatedAt: core.serialization.date().optional(),
|
|
55
56
|
relevantEntities: core.serialization.list(ScopedEntity_1.ScopedEntity).optional(),
|
|
@@ -2,6 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { AttachmentResponse } from "../../commons/types/AttachmentResponse";
|
|
5
|
+
import { KnowledgeDocumentMetadataValue } from "./KnowledgeDocumentMetadataValue";
|
|
5
6
|
import { KnowledgeDocumentSearchResponse } from "./KnowledgeDocumentSearchResponse";
|
|
6
7
|
import { KnowledgeDocumentStatus } from "./KnowledgeDocumentStatus";
|
|
7
8
|
export declare const KnowledgeDocumentResponse: core.serialization.ObjectSchema<serializers.KnowledgeDocumentResponse.Raw, MavenAGI.KnowledgeDocumentResponse>;
|
|
@@ -10,6 +11,6 @@ export declare namespace KnowledgeDocumentResponse {
|
|
|
10
11
|
processingStatus?: KnowledgeDocumentStatus.Raw | null;
|
|
11
12
|
content?: string | null;
|
|
12
13
|
asset?: AttachmentResponse.Raw | null;
|
|
13
|
-
metadata: Record<string,
|
|
14
|
+
metadata: Record<string, KnowledgeDocumentMetadataValue.Raw>;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.KnowledgeDocumentResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const AttachmentResponse_1 = require("../../commons/types/AttachmentResponse");
|
|
40
|
+
const KnowledgeDocumentMetadataValue_1 = require("./KnowledgeDocumentMetadataValue");
|
|
40
41
|
const KnowledgeDocumentSearchResponse_1 = require("./KnowledgeDocumentSearchResponse");
|
|
41
42
|
const KnowledgeDocumentStatus_1 = require("./KnowledgeDocumentStatus");
|
|
42
43
|
exports.KnowledgeDocumentResponse = core.serialization
|
|
@@ -44,6 +45,6 @@ exports.KnowledgeDocumentResponse = core.serialization
|
|
|
44
45
|
processingStatus: KnowledgeDocumentStatus_1.KnowledgeDocumentStatus.optional(),
|
|
45
46
|
content: core.serialization.string().optional(),
|
|
46
47
|
asset: AttachmentResponse_1.AttachmentResponse.optional(),
|
|
47
|
-
metadata: core.serialization.record(core.serialization.string(),
|
|
48
|
+
metadata: core.serialization.record(core.serialization.string(), KnowledgeDocumentMetadataValue_1.KnowledgeDocumentMetadataValue),
|
|
48
49
|
})
|
|
49
50
|
.extend(KnowledgeDocumentSearchResponse_1.KnowledgeDocumentSearchResponse);
|
|
@@ -27,6 +27,7 @@ export * from "./KnowledgeDeleteRequest";
|
|
|
27
27
|
export * from "./KnowledgeDocumentContentType";
|
|
28
28
|
export * from "./KnowledgeDocumentField";
|
|
29
29
|
export * from "./KnowledgeDocumentFilter";
|
|
30
|
+
export * from "./KnowledgeDocumentMetadataValue";
|
|
30
31
|
export * from "./KnowledgeDocumentRequest";
|
|
31
32
|
export * from "./KnowledgeDocumentResponse";
|
|
32
33
|
export * from "./KnowledgeDocumentSearchRequest";
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./KnowledgeDeleteRequest"), exports);
|
|
|
43
43
|
__exportStar(require("./KnowledgeDocumentContentType"), exports);
|
|
44
44
|
__exportStar(require("./KnowledgeDocumentField"), exports);
|
|
45
45
|
__exportStar(require("./KnowledgeDocumentFilter"), exports);
|
|
46
|
+
__exportStar(require("./KnowledgeDocumentMetadataValue"), exports);
|
|
46
47
|
__exportStar(require("./KnowledgeDocumentRequest"), exports);
|
|
47
48
|
__exportStar(require("./KnowledgeDocumentResponse"), exports);
|
|
48
49
|
__exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
|
|
@@ -2,11 +2,13 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { VoiceTokenType } from "./VoiceTokenType";
|
|
5
|
+
import { VoiceWebRtcTransport } from "./VoiceWebRtcTransport";
|
|
5
6
|
export declare const VoiceSessionTokenRequest: core.serialization.ObjectSchema<serializers.VoiceSessionTokenRequest.Raw, MavenAGI.VoiceSessionTokenRequest>;
|
|
6
7
|
export declare namespace VoiceSessionTokenRequest {
|
|
7
8
|
interface Raw {
|
|
8
9
|
appUserId: string;
|
|
9
10
|
type: VoiceTokenType.Raw;
|
|
11
|
+
transport?: VoiceWebRtcTransport.Raw | null;
|
|
10
12
|
customData?: Record<string, string> | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.VoiceSessionTokenRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const VoiceTokenType_1 = require("./VoiceTokenType");
|
|
40
|
+
const VoiceWebRtcTransport_1 = require("./VoiceWebRtcTransport");
|
|
40
41
|
exports.VoiceSessionTokenRequest = core.serialization.object({
|
|
41
42
|
appUserId: core.serialization.string(),
|
|
42
43
|
type: VoiceTokenType_1.VoiceTokenType,
|
|
44
|
+
transport: VoiceWebRtcTransport_1.VoiceWebRtcTransport.optional(),
|
|
43
45
|
customData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
44
46
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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 VoiceWebRtcTransport: core.serialization.Schema<serializers.VoiceWebRtcTransport.Raw, MavenAGI.VoiceWebRtcTransport>;
|
|
5
|
+
export declare namespace VoiceWebRtcTransport {
|
|
6
|
+
type Raw = "gateway" | "twilio";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.VoiceWebRtcTransport = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.VoiceWebRtcTransport = core.serialization.forwardCompatibleEnum_(["gateway", "twilio"]);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./VoiceSessionTokenRequest"), exports);
|
|
18
18
|
__exportStar(require("./VoiceSessionTokenResponse"), exports);
|
|
19
19
|
__exportStar(require("./VoiceTokenType"), exports);
|
|
20
|
+
__exportStar(require("./VoiceWebRtcTransport"), exports);
|
|
@@ -2,14 +2,13 @@ import type * as MavenAGI from "../../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../../core";
|
|
3
3
|
import type * as serializers from "../../../../index";
|
|
4
4
|
import { AgentAudioChunk } from "../../types/AgentAudioChunk";
|
|
5
|
-
import { AgentTranscript } from "../../types/AgentTranscript";
|
|
6
|
-
import { ConversationEnded } from "../../types/ConversationEnded";
|
|
7
5
|
import { ConversationReady } from "../../types/ConversationReady";
|
|
8
6
|
import { Error_ } from "../../types/Error_";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
7
|
+
import { Mark } from "../../types/Mark";
|
|
8
|
+
import { Transcript } from "../../types/Transcript";
|
|
9
|
+
import { VadSpeechStarted } from "../../types/VadSpeechStarted";
|
|
10
|
+
import { VadSpeechStopped } from "../../types/VadSpeechStopped";
|
|
11
|
+
export declare const VoiceConversationsSocketResponse: core.serialization.Schema<serializers.VoiceConversationsSocketResponse.Raw, MavenAGI.ConversationReady | MavenAGI.AgentAudioChunk | MavenAGI.Mark | MavenAGI.Transcript | MavenAGI.VadSpeechStarted | MavenAGI.VadSpeechStopped | MavenAGI.Error_>;
|
|
13
12
|
export declare namespace VoiceConversationsSocketResponse {
|
|
14
|
-
type Raw = ConversationReady.Raw | AgentAudioChunk.Raw |
|
|
13
|
+
type Raw = ConversationReady.Raw | AgentAudioChunk.Raw | Mark.Raw | Transcript.Raw | VadSpeechStarted.Raw | VadSpeechStopped.Raw | Error_.Raw;
|
|
15
14
|
}
|
package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js
CHANGED
|
@@ -37,20 +37,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.VoiceConversationsSocketResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core"));
|
|
39
39
|
const AgentAudioChunk_1 = require("../../types/AgentAudioChunk");
|
|
40
|
-
const AgentTranscript_1 = require("../../types/AgentTranscript");
|
|
41
|
-
const ConversationEnded_1 = require("../../types/ConversationEnded");
|
|
42
40
|
const ConversationReady_1 = require("../../types/ConversationReady");
|
|
43
41
|
const Error_1 = require("../../types/Error_");
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
42
|
+
const Mark_1 = require("../../types/Mark");
|
|
43
|
+
const Transcript_1 = require("../../types/Transcript");
|
|
44
|
+
const VadSpeechStarted_1 = require("../../types/VadSpeechStarted");
|
|
45
|
+
const VadSpeechStopped_1 = require("../../types/VadSpeechStopped");
|
|
47
46
|
exports.VoiceConversationsSocketResponse = core.serialization.undiscriminatedUnion([
|
|
48
47
|
ConversationReady_1.ConversationReady,
|
|
49
48
|
AgentAudioChunk_1.AgentAudioChunk,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
UserFinishedSpeaking_1.UserFinishedSpeaking,
|
|
49
|
+
Mark_1.Mark,
|
|
50
|
+
Transcript_1.Transcript,
|
|
51
|
+
VadSpeechStarted_1.VadSpeechStarted,
|
|
52
|
+
VadSpeechStopped_1.VadSpeechStopped,
|
|
55
53
|
Error_1.Error_,
|
|
56
54
|
]);
|
|
@@ -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 ClientMark: core.serialization.ObjectSchema<serializers.ClientMark.Raw, MavenAGI.ClientMark>;
|
|
5
|
+
export declare namespace ClientMark {
|
|
6
|
+
interface Raw {
|
|
7
|
+
type: "mark";
|
|
8
|
+
name: 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.ClientMark = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.ClientMark = core.serialization.object({
|
|
40
|
+
type: core.serialization.stringLiteral("mark"),
|
|
41
|
+
name: core.serialization.string(),
|
|
42
|
+
});
|
|
@@ -41,6 +41,4 @@ exports.Config = core.serialization.object({
|
|
|
41
41
|
type: core.serialization.stringLiteral("config"),
|
|
42
42
|
inputFormat: AudioFormat_1.AudioFormat,
|
|
43
43
|
outputFormat: AudioFormat_1.AudioFormat,
|
|
44
|
-
conversationId: core.serialization.string(),
|
|
45
|
-
appId: core.serialization.string(),
|
|
46
44
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
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 { ServerEventBase } from "./ServerEventBase";
|
|
4
5
|
export declare const ConversationReady: core.serialization.ObjectSchema<serializers.ConversationReady.Raw, MavenAGI.ConversationReady>;
|
|
5
6
|
export declare namespace ConversationReady {
|
|
6
|
-
interface Raw {
|
|
7
|
+
interface Raw extends ServerEventBase.Raw {
|
|
7
8
|
type: "conversation_ready";
|
|
9
|
+
sessionId: string;
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -36,6 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.ConversationReady = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
|
|
39
|
+
const ServerEventBase_1 = require("./ServerEventBase");
|
|
40
|
+
exports.ConversationReady = core.serialization
|
|
41
|
+
.object({
|
|
40
42
|
type: core.serialization.stringLiteral("conversation_ready"),
|
|
41
|
-
|
|
43
|
+
sessionId: core.serialization.string(),
|
|
44
|
+
})
|
|
45
|
+
.extend(ServerEventBase_1.ServerEventBase);
|
package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts}
RENAMED
|
@@ -2,9 +2,10 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { ServerEventBase } from "./ServerEventBase";
|
|
5
|
-
export declare const
|
|
6
|
-
export declare namespace
|
|
5
|
+
export declare const Mark: core.serialization.ObjectSchema<serializers.Mark.Raw, MavenAGI.Mark>;
|
|
6
|
+
export declare namespace Mark {
|
|
7
7
|
interface Raw extends ServerEventBase.Raw {
|
|
8
|
-
type: "
|
|
8
|
+
type: "mark";
|
|
9
|
+
name: string;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -34,11 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.Mark = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const ServerEventBase_1 = require("./ServerEventBase");
|
|
40
|
-
exports.
|
|
40
|
+
exports.Mark = core.serialization
|
|
41
41
|
.object({
|
|
42
|
-
type: core.serialization.stringLiteral("
|
|
42
|
+
type: core.serialization.stringLiteral("mark"),
|
|
43
|
+
name: core.serialization.string(),
|
|
43
44
|
})
|
|
44
45
|
.extend(ServerEventBase_1.ServerEventBase);
|
|
@@ -4,6 +4,6 @@ import type * as serializers from "../../../index";
|
|
|
4
4
|
export declare const ServerEventBase: core.serialization.ObjectSchema<serializers.ServerEventBase.Raw, MavenAGI.ServerEventBase>;
|
|
5
5
|
export declare namespace ServerEventBase {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
7
|
+
timestamp: string;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -37,5 +37,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.ServerEventBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
exports.ServerEventBase = core.serialization.object({
|
|
40
|
-
|
|
40
|
+
timestamp: core.serialization.date(),
|
|
41
41
|
});
|