mavenagi 1.2.67 → 1.2.68

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.
Files changed (143) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.d.ts +14 -0
  3. package/api/resources/actions/client/Client.js +14 -0
  4. package/api/resources/agents/client/Client.d.ts +10 -12
  5. package/api/resources/agents/client/Client.js +10 -12
  6. package/api/resources/analytics/client/Client.d.ts +10 -0
  7. package/api/resources/analytics/client/Client.js +10 -0
  8. package/api/resources/appDirectory/client/Client.d.ts +3 -1
  9. package/api/resources/appDirectory/client/Client.js +3 -1
  10. package/api/resources/assets/client/Client.d.ts +4 -0
  11. package/api/resources/assets/client/Client.js +4 -0
  12. package/api/resources/capabilities/client/Client.d.ts +20 -0
  13. package/api/resources/capabilities/client/Client.js +20 -0
  14. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +4 -0
  15. package/api/resources/charters/client/Client.d.ts +18 -0
  16. package/api/resources/charters/client/Client.js +18 -0
  17. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +4 -4
  18. package/api/resources/commons/types/MetadataComparisonOperator.js +4 -4
  19. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +1 -1
  20. package/api/resources/commons/types/MetadataFilter.d.ts +6 -1
  21. package/api/resources/commons/types/SimulationContext.d.ts +9 -0
  22. package/api/resources/commons/types/SystemEventName.d.ts +3 -0
  23. package/api/resources/commons/types/SystemEventName.js +3 -0
  24. package/api/resources/conversation/client/Client.d.ts +42 -3
  25. package/api/resources/conversation/client/Client.js +42 -3
  26. package/api/resources/conversation/types/AskRequest.d.ts +1 -62
  27. package/api/resources/conversation/types/AskRequestBase.d.ts +67 -0
  28. package/api/resources/conversation/types/index.d.ts +1 -0
  29. package/api/resources/conversation/types/index.js +1 -0
  30. package/api/resources/conversationKickoffs/client/Client.d.ts +2 -0
  31. package/api/resources/conversationKickoffs/client/Client.js +2 -0
  32. package/api/resources/customers/client/Client.d.ts +14 -0
  33. package/api/resources/customers/client/Client.js +14 -0
  34. package/api/resources/events/client/Client.d.ts +16 -3
  35. package/api/resources/events/client/Client.js +16 -3
  36. package/api/resources/inbox/client/Client.d.ts +20 -0
  37. package/api/resources/inbox/client/Client.js +20 -0
  38. package/api/resources/intelligentFields/client/Client.d.ts +10 -0
  39. package/api/resources/intelligentFields/client/Client.js +10 -0
  40. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -1
  41. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +2 -1
  42. package/api/resources/knowledge/client/Client.d.ts +40 -0
  43. package/api/resources/knowledge/client/Client.js +40 -0
  44. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -1
  45. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  46. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  47. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -5
  48. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
  49. package/api/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +4 -0
  50. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -3
  51. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
  52. package/api/resources/knowledge/types/index.d.ts +1 -0
  53. package/api/resources/knowledge/types/index.js +1 -0
  54. package/api/resources/segments/client/Client.d.ts +16 -0
  55. package/api/resources/segments/client/Client.js +16 -0
  56. package/api/resources/translations/client/Client.d.ts +2 -0
  57. package/api/resources/translations/client/Client.js +2 -0
  58. package/api/resources/triggers/client/Client.d.ts +10 -0
  59. package/api/resources/triggers/client/Client.js +10 -0
  60. package/api/resources/users/client/Client.d.ts +16 -0
  61. package/api/resources/users/client/Client.js +16 -0
  62. package/api/resources/voice/client/Client.d.ts +1 -1
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +4 -2
  65. package/api/resources/voiceConversations/client/Client.d.ts +5 -2
  66. package/api/resources/voiceConversations/client/Client.js +6 -3
  67. package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
  68. package/api/resources/voiceConversations/client/Socket.js +10 -0
  69. package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
  70. package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
  71. package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
  72. package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  73. package/api/resources/voiceConversations/types/Config.d.ts +2 -6
  74. package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
  75. package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
  76. package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
  77. package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
  78. package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
  79. package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
  80. package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
  81. package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
  82. package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
  83. package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
  84. package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
  85. package/api/resources/voiceConversations/types/index.d.ts +6 -5
  86. package/api/resources/voiceConversations/types/index.js +6 -5
  87. package/package.json +1 -1
  88. package/reference.md +290 -20
  89. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  90. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  91. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  92. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  93. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  94. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  95. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
  96. package/serialization/resources/conversation/types/AskRequest.js +5 -13
  97. package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
  98. package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
  99. package/serialization/resources/conversation/types/index.d.ts +1 -0
  100. package/serialization/resources/conversation/types/index.js +1 -0
  101. package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
  102. package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
  103. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  104. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  105. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
  106. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  107. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  108. package/serialization/resources/knowledge/types/index.js +1 -0
  109. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
  110. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
  111. package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  112. package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
  113. package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
  114. package/serialization/resources/voiceConversations/types/Config.js +0 -2
  115. package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
  116. package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
  117. package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
  118. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
  119. package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
  120. package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
  121. package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
  122. package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
  123. package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
  124. package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
  125. package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
  126. package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
  127. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
  128. package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
  129. package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
  130. package/serialization/resources/voiceConversations/types/index.js +6 -5
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
  134. package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
  135. package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
  136. package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
  137. package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
  138. package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
  139. /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
  140. /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
  141. /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
  142. /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
  143. /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
@@ -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
  }
@@ -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
  }
@@ -50,5 +50,6 @@ exports.SystemEventName = core.serialization.forwardCompatibleEnum_([
50
50
  "SYNC_FAILED",
51
51
  "CONVERSATION_CLOSED",
52
52
  "BOT_REPLY_CREATED",
53
+ "USER_MESSAGE_CREATED",
53
54
  "INTELLIGENT_FIELD_VALUE_CHANGED",
54
55
  ]);
@@ -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 { TextFormat } from "../../commons/types/TextFormat";
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 TextFormat_1 = require("../../commons/types/TextFormat");
43
- exports.AskRequest = core.serialization.object({
44
- conversationMessageId: EntityIdBase_1.EntityIdBase,
40
+ const AskRequestBase_1 = require("./AskRequestBase");
41
+ exports.AskRequest = core.serialization
42
+ .object({
45
43
  userId: EntityIdBase_1.EntityIdBase,
46
- type: AskType_1.AskType.optional(),
47
- text: core.serialization.string().optional(),
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.UserTranscript = void 0;
37
+ exports.KnowledgeDocumentMetadataValue = void 0;
38
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);
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, string> | null;
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(), core.serialization.string()).optional(),
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, 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(), 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,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 { UserFinishedSpeaking } from "../../types/UserFinishedSpeaking";
10
- import { UserStartedSpeaking } from "../../types/UserStartedSpeaking";
11
- import { UserTranscript } from "../../types/UserTranscript";
12
- export declare const VoiceConversationsSocketResponse: core.serialization.Schema<serializers.VoiceConversationsSocketResponse.Raw, MavenAGI.ConversationReady | MavenAGI.AgentAudioChunk | MavenAGI.UserTranscript | MavenAGI.AgentTranscript | MavenAGI.ConversationEnded | MavenAGI.UserStartedSpeaking | MavenAGI.UserFinishedSpeaking | MavenAGI.Error_>;
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 | UserTranscript.Raw | AgentTranscript.Raw | ConversationEnded.Raw | UserStartedSpeaking.Raw | UserFinishedSpeaking.Raw | Error_.Raw;
13
+ type Raw = ConversationReady.Raw | AgentAudioChunk.Raw | Mark.Raw | Transcript.Raw | VadSpeechStarted.Raw | VadSpeechStopped.Raw | Error_.Raw;
15
14
  }
@@ -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 UserFinishedSpeaking_1 = require("../../types/UserFinishedSpeaking");
45
- const UserStartedSpeaking_1 = require("../../types/UserStartedSpeaking");
46
- const UserTranscript_1 = require("../../types/UserTranscript");
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
- UserTranscript_1.UserTranscript,
51
- AgentTranscript_1.AgentTranscript,
52
- ConversationEnded_1.ConversationEnded,
53
- UserStartedSpeaking_1.UserStartedSpeaking,
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
+ });
@@ -8,7 +8,5 @@ export declare namespace Config {
8
8
  type: "config";
9
9
  inputFormat: AudioFormat.Raw;
10
10
  outputFormat: AudioFormat.Raw;
11
- conversationId: string;
12
- appId: string;
13
11
  }
14
12
  }
@@ -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
- exports.ConversationReady = core.serialization.object({
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);
@@ -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 ConversationEnded: core.serialization.ObjectSchema<serializers.ConversationEnded.Raw, MavenAGI.ConversationEnded>;
6
- export declare namespace ConversationEnded {
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: "conversation_ended";
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.UserStartedSpeaking = void 0;
37
+ exports.Mark = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const ServerEventBase_1 = require("./ServerEventBase");
40
- exports.UserStartedSpeaking = core.serialization
40
+ exports.Mark = core.serialization
41
41
  .object({
42
- type: core.serialization.stringLiteral("user_started_speaking"),
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
- eventId: string;
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
- eventId: core.serialization.string(),
40
+ timestamp: core.serialization.date(),
41
41
  });
@@ -2,10 +2,12 @@ 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 AgentTranscript: core.serialization.ObjectSchema<serializers.AgentTranscript.Raw, MavenAGI.AgentTranscript>;
6
- export declare namespace AgentTranscript {
5
+ import { TranscriptRole } from "./TranscriptRole";
6
+ export declare const Transcript: core.serialization.ObjectSchema<serializers.Transcript.Raw, MavenAGI.Transcript>;
7
+ export declare namespace Transcript {
7
8
  interface Raw extends ServerEventBase.Raw {
8
- type: "agent_transcript";
9
+ type: "transcript";
10
+ role: TranscriptRole.Raw;
9
11
  text: string;
10
12
  }
11
13
  }
@@ -34,12 +34,14 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.AgentTranscript = void 0;
37
+ exports.Transcript = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const ServerEventBase_1 = require("./ServerEventBase");
40
- exports.AgentTranscript = core.serialization
40
+ const TranscriptRole_1 = require("./TranscriptRole");
41
+ exports.Transcript = core.serialization
41
42
  .object({
42
- type: core.serialization.stringLiteral("agent_transcript"),
43
+ type: core.serialization.stringLiteral("transcript"),
44
+ role: TranscriptRole_1.TranscriptRole,
43
45
  text: core.serialization.string(),
44
46
  })
45
47
  .extend(ServerEventBase_1.ServerEventBase);
@@ -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 TranscriptRole: core.serialization.Schema<serializers.TranscriptRole.Raw, MavenAGI.TranscriptRole>;
5
+ export declare namespace TranscriptRole {
6
+ type Raw = "user" | "agent";
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.TranscriptRole = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.TranscriptRole = core.serialization.forwardCompatibleEnum_(["user", "agent"]);
@@ -2,10 +2,9 @@ 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 UserTranscript: core.serialization.ObjectSchema<serializers.UserTranscript.Raw, MavenAGI.UserTranscript>;
6
- export declare namespace UserTranscript {
5
+ export declare const VadSpeechStarted: core.serialization.ObjectSchema<serializers.VadSpeechStarted.Raw, MavenAGI.VadSpeechStarted>;
6
+ export declare namespace VadSpeechStarted {
7
7
  interface Raw extends ServerEventBase.Raw {
8
- type: "user_transcript";
9
- text: string;
8
+ type: "vad_speech_started";
10
9
  }
11
10
  }