mavenagi 1.2.64 → 1.2.65
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.js +3 -3
- package/api/resources/agents/client/Client.js +5 -5
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +10 -2
- package/api/resources/agents/types/Agent.d.ts +3 -1
- package/api/resources/agents/types/AgentPrompting.d.ts +12 -2
- package/api/resources/appDirectory/client/Client.js +5 -5
- package/api/resources/assets/client/Client.js +1 -1
- package/api/resources/capabilities/client/Client.d.ts +33 -0
- package/api/resources/capabilities/client/Client.js +126 -3
- package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
- package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +1 -0
- package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
- package/api/resources/capabilities/types/ActionSimulationInput.js +3 -0
- package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/api/resources/capabilities/types/CapabilitySimulationInput.js +3 -0
- package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
- package/api/resources/capabilities/types/CapabilitySimulationResult.js +3 -0
- package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
- package/api/resources/capabilities/types/ConversationContextSimulationInput.js +3 -0
- package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
- package/api/resources/capabilities/types/SimulatedUser.js +3 -0
- package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
- package/api/resources/capabilities/types/SimulatedUserData.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +6 -0
- package/api/resources/capabilities/types/index.js +6 -0
- package/api/resources/charters/client/Client.js +4 -4
- package/api/resources/charters/types/CharterBase.d.ts +5 -1
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
- package/api/resources/charters/types/CharterContent.d.ts +2 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
- package/api/resources/charters/types/CharterReferences.d.ts +2 -0
- package/api/resources/charters/types/CharterResponse.d.ts +5 -1
- package/api/resources/charters/types/CharterStatus.d.ts +4 -0
- package/api/resources/charters/types/CharterStatus.js +4 -0
- package/api/resources/charters/types/CharterSummary.d.ts +5 -1
- package/api/resources/charters/types/index.d.ts +0 -1
- package/api/resources/charters/types/index.js +0 -1
- package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
- package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
- package/api/resources/commons/types/ActionProperties.d.ts +1 -1
- package/api/resources/commons/types/AdditionalDataKey.d.ts +3 -0
- package/api/resources/commons/types/AdditionalDataKey.js +3 -0
- package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
- package/api/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
- package/api/resources/commons/types/BotMessage.d.ts +5 -0
- package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
- package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
- package/api/resources/commons/types/Capability.d.ts +4 -0
- package/api/resources/commons/types/Capability.js +4 -0
- package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
- package/api/resources/commons/types/CapabilityStatus.js +2 -2
- package/api/resources/commons/types/ConversationAnalysis.d.ts +1 -1
- package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
- package/api/resources/commons/types/ConversationMetadataValueSource.js +3 -0
- package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
- package/api/resources/commons/types/ConversationValueSource.d.ts +10 -0
- package/api/resources/commons/types/ConversationValueSource.js +3 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -0
- package/api/resources/commons/types/EntityType.js +5 -0
- package/api/resources/commons/types/ErrorReason.d.ts +4 -1
- package/api/resources/commons/types/ErrorReason.js +4 -1
- package/api/resources/commons/types/EventFilter.d.ts +1 -0
- package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
- package/api/resources/commons/types/ExecuteActionResponse.js +3 -0
- package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
- package/api/resources/commons/types/ExecutionMode.js +13 -0
- package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
- package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
- package/api/resources/commons/types/InboxItemStatus.js +1 -1
- package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
- package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
- package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
- package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
- package/api/resources/commons/types/Quality.d.ts +2 -0
- package/api/resources/commons/types/Quality.js +2 -0
- package/api/resources/commons/types/QualityReason.d.ts +4 -0
- package/api/resources/commons/types/QualityReason.js +4 -0
- package/api/resources/commons/types/RelationshipType.d.ts +2 -2
- package/api/resources/commons/types/RelationshipType.js +2 -2
- package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
- package/api/resources/commons/types/ResolutionStatus.js +2 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
- package/api/resources/commons/types/SimulationActionBehavior.d.ts +18 -0
- package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
- package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
- package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
- package/api/resources/commons/types/SimulationActionMock.d.ts +6 -0
- package/api/resources/commons/types/SimulationActionMock.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +19 -0
- package/api/resources/commons/types/SystemEventName.d.ts +5 -2
- package/api/resources/commons/types/SystemEventName.js +5 -2
- package/api/resources/commons/types/UserEvent.d.ts +1 -1
- package/api/resources/commons/types/UserEventName.d.ts +1 -1
- package/api/resources/commons/types/UserEventName.js +1 -1
- package/api/resources/commons/types/index.d.ts +12 -0
- package/api/resources/commons/types/index.js +12 -0
- package/api/resources/conversation/client/Client.d.ts +11 -7
- package/api/resources/conversation/client/Client.js +21 -17
- package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
- package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
- package/api/resources/conversation/types/BillableFilterField.js +3 -3
- package/api/resources/conversation/types/ConversationField.d.ts +8 -0
- package/api/resources/conversation/types/ConversationField.js +8 -0
- package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
- package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
- package/api/resources/customers/client/Client.js +2 -2
- package/api/resources/customers/types/CustomerFilter.d.ts +2 -0
- package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/inbox/client/Client.js +6 -6
- package/api/resources/integrations/client/Client.js +1 -1
- package/api/resources/intelligentFields/client/Client.d.ts +3 -2
- package/api/resources/intelligentFields/client/Client.js +6 -5
- package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
- package/api/resources/knowledge/client/Client.js +13 -13
- 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 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
- package/api/resources/organizations/client/Client.js +4 -4
- package/api/resources/segments/client/Client.d.ts +1 -1
- package/api/resources/segments/client/Client.js +4 -4
- package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
- package/api/resources/segments/types/SegmentStatus.js +4 -0
- package/api/resources/triggers/client/Client.js +3 -3
- package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
- package/api/resources/users/client/Client.d.ts +42 -1
- package/api/resources/users/client/Client.js +116 -4
- package/api/resources/users/types/AgentUser.d.ts +3 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
- package/api/resources/voiceConversations/client/Client.d.ts +1 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
- package/api/resources/voiceConversations/client/Socket.js +16 -17
- package/core/fetcher/Fetcher.js +33 -3
- package/core/fetcher/getErrorResponseBody.js +20 -7
- package/core/fetcher/getResponseBody.d.ts +16 -0
- package/core/fetcher/getResponseBody.js +27 -22
- package/core/fetcher/makePassthroughRequest.js +20 -4
- package/core/fetcher/makeRequest.d.ts +6 -1
- package/core/fetcher/makeRequest.js +38 -5
- package/core/fetcher/requestWithRetries.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +23 -2
- package/core/fetcher/signals.d.ts +1 -0
- package/core/fetcher/signals.js +3 -2
- package/core/stream/Stream.d.ts +3 -0
- package/core/stream/Stream.js +5 -0
- package/core/url/encodePathParam.d.ts +3 -1
- package/core/url/encodePathParam.js +8 -2
- package/core/websocket/ws.d.ts +16 -2
- package/core/websocket/ws.js +110 -20
- package/errors/MavenAGIError.js +16 -2
- package/package.json +1 -1
- package/reference.md +188 -11
- package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
- package/serialization/resources/capabilities/types/ActionSimulationInput.js +44 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +47 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +47 -0
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
- package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
- package/serialization/resources/capabilities/types/SimulatedUser.js +44 -0
- package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
- package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
- package/serialization/resources/capabilities/types/index.d.ts +6 -0
- package/serialization/resources/capabilities/types/index.js +6 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
- package/serialization/resources/charters/types/CharterContent.js +1 -1
- package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
- package/serialization/resources/charters/types/CharterResponse.js +1 -1
- package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
- package/serialization/resources/charters/types/CharterSummary.js +1 -1
- package/serialization/resources/charters/types/index.d.ts +0 -1
- package/serialization/resources/charters/types/index.js +0 -1
- package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
- package/serialization/resources/commons/types/ActionExecutionStatus.js +39 -0
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
- package/serialization/resources/commons/types/AdditionalDataKey.js +1 -0
- package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
- package/serialization/resources/commons/types/AppUserRequest.js +2 -0
- package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
- package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/serialization/resources/commons/types/BotMessage.js +2 -0
- package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
- package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
- package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
- package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
- package/serialization/resources/commons/types/ConversationValueSource.d.ts +11 -0
- package/serialization/resources/commons/types/ConversationValueSource.js +47 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +5 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
- package/serialization/resources/commons/types/ErrorReason.js +1 -0
- package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
- package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
- package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
- package/serialization/resources/commons/types/ExecutionMode.js +39 -0
- package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
- package/serialization/resources/commons/types/FunctionVersionBinding.js +43 -0
- package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
- package/serialization/resources/commons/types/MetadataFilter.js +2 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
- package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
- package/serialization/resources/commons/types/SimulationActionCallApp.js +39 -0
- package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
- package/serialization/resources/commons/types/SimulationActionMock.js +44 -0
- package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
- package/serialization/resources/commons/types/SimulationContext.js +4 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +12 -0
- package/serialization/resources/commons/types/index.js +12 -0
- package/serialization/resources/users/types/AgentUser.d.ts +2 -0
- package/serialization/resources/users/types/AgentUser.js +2 -0
- package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
- package/serialization/resources/users/types/AgentUserFilter.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
|
@@ -226,7 +226,7 @@ class ChartersClient {
|
|
|
226
226
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
227
227
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
228
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
229
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
229
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
230
230
|
method: "GET",
|
|
231
231
|
headers: _headers,
|
|
232
232
|
queryString: core.url
|
|
@@ -353,7 +353,7 @@ class ChartersClient {
|
|
|
353
353
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
354
354
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
355
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
356
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
356
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
357
357
|
method: "PATCH",
|
|
358
358
|
headers: _headers,
|
|
359
359
|
contentType: "application/merge-patch+json",
|
|
@@ -469,7 +469,7 @@ class ChartersClient {
|
|
|
469
469
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
470
470
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
471
471
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
472
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
472
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
473
473
|
method: "DELETE",
|
|
474
474
|
headers: _headers,
|
|
475
475
|
queryString: core.url
|
|
@@ -699,7 +699,7 @@ class ChartersClient {
|
|
|
699
699
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
700
700
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
701
701
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
702
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}/ancestors`),
|
|
702
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}/ancestors`),
|
|
703
703
|
method: "GET",
|
|
704
704
|
headers: _headers,
|
|
705
705
|
queryString: core.url
|
|
@@ -3,7 +3,9 @@ export interface CharterBase {
|
|
|
3
3
|
/** Display name for this charter or group. */
|
|
4
4
|
name: string;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* On a write request, the agent variant to stage the write in. On a response, it is set
|
|
7
|
+
* only on each side of a working-set diff, naming the variant that side comes from; every
|
|
8
|
+
* other charter response, and every staged-edit payload, leaves it unset.
|
|
7
9
|
*
|
|
8
10
|
* While charters are versioned for the agent, a write is staged in this variant's
|
|
9
11
|
* working set rather than applied to the agent's live configuration, and a write that
|
|
@@ -19,6 +21,8 @@ export interface CharterBase {
|
|
|
19
21
|
* before delivery.
|
|
20
22
|
*
|
|
21
23
|
* If not set, existing manual is preserved if present.
|
|
24
|
+
*
|
|
25
|
+
* Shown in Agent Designer as "Manual", or "Return text" when `type` is `STRICT_RETURN`.
|
|
22
26
|
*/
|
|
23
27
|
manual?: string;
|
|
24
28
|
}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const CharterChildrenExclusionPolicy: {
|
|
14
14
|
readonly Default: "DEFAULT";
|
|
15
|
+
/**
|
|
16
|
+
* Shown in Agent Designer as "Turn overlapping children on". */
|
|
15
17
|
readonly AllowOverlap: "ALLOW_OVERLAP";
|
|
16
18
|
};
|
|
17
19
|
export type CharterChildrenExclusionPolicy = (typeof CharterChildrenExclusionPolicy)[keyof typeof CharterChildrenExclusionPolicy] | string;
|
|
@@ -22,6 +22,8 @@ export interface CharterContent extends MavenAGI.CharterBase {
|
|
|
22
22
|
* precondition to determine whether there is a match. When null, the
|
|
23
23
|
* charter is a wildcard and always matches (subject to ancestor
|
|
24
24
|
* preconditions still combining with AND logic).
|
|
25
|
+
*
|
|
26
|
+
* Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
|
|
25
27
|
*/
|
|
26
28
|
precondition?: MavenAGI.Precondition | null;
|
|
27
29
|
/** Desired lifecycle status. */
|
|
@@ -17,6 +17,8 @@ export interface CharterPatchReferences {
|
|
|
17
17
|
* Replaces the entire set when provided. Omit to leave unchanged.
|
|
18
18
|
* An empty set removes all action associations.
|
|
19
19
|
* Maximum 50 actions per charter.
|
|
20
|
+
*
|
|
21
|
+
* Shown in Agent Designer as "Capabilities".
|
|
20
22
|
*/
|
|
21
23
|
actionIds?: MavenAGI.EntityId[];
|
|
22
24
|
}
|
|
@@ -43,7 +43,11 @@ export interface CharterResponse extends MavenAGI.CharterBase {
|
|
|
43
43
|
parentCharterId?: MavenAGI.EntityId;
|
|
44
44
|
/** The IDs of direct child charters, in their userRank order. */
|
|
45
45
|
childCharterIds: MavenAGI.EntityId[];
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* The rule controlling when this charter applies. Empty means wildcard (always matches).
|
|
48
|
+
*
|
|
49
|
+
* Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
|
|
50
|
+
*/
|
|
47
51
|
precondition?: MavenAGI.PreconditionResponse;
|
|
48
52
|
/** The lifecycle status of this charter. */
|
|
49
53
|
status: MavenAGI.CharterStatus;
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
10
10
|
*/
|
|
11
11
|
export declare const CharterStatus: {
|
|
12
|
+
/**
|
|
13
|
+
* Shown in Agent Designer as "Live". */
|
|
12
14
|
readonly Active: "ACTIVE";
|
|
15
|
+
/**
|
|
16
|
+
* Shown in Agent Designer as "Draft". */
|
|
13
17
|
readonly Inactive: "INACTIVE";
|
|
14
18
|
readonly Deleted: "DELETED";
|
|
15
19
|
};
|
|
@@ -13,7 +13,11 @@ exports.CharterStatus = void 0;
|
|
|
13
13
|
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
14
14
|
*/
|
|
15
15
|
exports.CharterStatus = {
|
|
16
|
+
/**
|
|
17
|
+
* Shown in Agent Designer as "Live". */
|
|
16
18
|
Active: "ACTIVE",
|
|
19
|
+
/**
|
|
20
|
+
* Shown in Agent Designer as "Draft". */
|
|
17
21
|
Inactive: "INACTIVE",
|
|
18
22
|
Deleted: "DELETED",
|
|
19
23
|
};
|
|
@@ -8,7 +8,11 @@ export interface CharterSummary {
|
|
|
8
8
|
charterId: MavenAGI.EntityId;
|
|
9
9
|
/** The display name of the charter. */
|
|
10
10
|
name: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The rule controlling when this charter applies. Null means wildcard (always matches).
|
|
13
|
+
*
|
|
14
|
+
* Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
|
|
15
|
+
*/
|
|
12
16
|
precondition: MavenAGI.PreconditionResponse | null;
|
|
13
17
|
/** The ID of the parent charter. Null for root-level charters. */
|
|
14
18
|
parentCharterId: MavenAGI.EntityId | null;
|
|
@@ -32,4 +32,3 @@ __exportStar(require("./CharterSearchRequest"), exports);
|
|
|
32
32
|
__exportStar(require("./CharterSearchResponse"), exports);
|
|
33
33
|
__exportStar(require("./CharterStatus"), exports);
|
|
34
34
|
__exportStar(require("./CharterSummary"), exports);
|
|
35
|
-
__exportStar(require("./CharterType"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ActionExecutionStatus = void 0;
|
|
5
|
+
/** Outcome of an action execution. */
|
|
6
|
+
exports.ActionExecutionStatus = {
|
|
7
|
+
Success: "SUCCESS",
|
|
8
|
+
Error: "ERROR",
|
|
9
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface ActionProperties {
|
|
3
|
-
/** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. */
|
|
3
|
+
/** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. Shown in Agent Designer as "User Confirmation". */
|
|
4
4
|
userInteractionRequired: boolean;
|
|
5
5
|
/** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action. Defaults to "Submit" if not supplied. */
|
|
6
6
|
buttonName?: string;
|
|
@@ -38,6 +38,9 @@ export declare const AdditionalDataKey: {
|
|
|
38
38
|
/**
|
|
39
39
|
* The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
|
|
40
40
|
readonly Position: "position";
|
|
41
|
+
/**
|
|
42
|
+
* The `botMessageType` of the bot message. Maven sets it on `BOT_REPLY_CREATED`. */
|
|
43
|
+
readonly BotMessageType: "botMessageType";
|
|
41
44
|
/**
|
|
42
45
|
* A monetary amount, as a decimal number in `currency`. */
|
|
43
46
|
readonly Amount: "amount";
|
|
@@ -42,6 +42,9 @@ exports.AdditionalDataKey = {
|
|
|
42
42
|
/**
|
|
43
43
|
* The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
|
|
44
44
|
Position: "position",
|
|
45
|
+
/**
|
|
46
|
+
* The `botMessageType` of the bot message. Maven sets it on `BOT_REPLY_CREATED`. */
|
|
47
|
+
BotMessageType: "botMessageType",
|
|
45
48
|
/**
|
|
46
49
|
* A monetary amount, as a decimal number in `currency`. */
|
|
47
50
|
Amount: "amount",
|
|
@@ -20,4 +20,15 @@ import type * as MavenAGI from "../../../index";
|
|
|
20
20
|
export interface AppUserRequest extends MavenAGI.AppUser {
|
|
21
21
|
/** ID that uniquely identifies this app user */
|
|
22
22
|
userId: MavenAGI.EntityIdBase;
|
|
23
|
+
/**
|
|
24
|
+
* The execution mode the user lives in. Defaults to `LIVE` for a new user, and to the existing
|
|
25
|
+
* user's execution mode on update; an update can't move a user to a different one.
|
|
26
|
+
*
|
|
27
|
+
* A `SIMULATION` user is only linked to other `SIMULATION` users, is excluded from user search
|
|
28
|
+
* unless `simulationFilter` asks for it, and may only talk in simulation conversations. A `LIVE`
|
|
29
|
+
* user can't talk in a simulation conversation either, so give each simulation its own user ids
|
|
30
|
+
* rather than reusing live ones.
|
|
31
|
+
* Creating one needs the same permission as creating a simulation conversation.
|
|
32
|
+
*/
|
|
33
|
+
executionMode?: MavenAGI.ExecutionMode;
|
|
23
34
|
}
|
|
@@ -11,4 +11,6 @@ export interface BotLogicCharterDetail {
|
|
|
11
11
|
segmentId?: MavenAGI.EntityIdWithoutAgent;
|
|
12
12
|
/** The parent charter in the hierarchy, if any. Absent for root-level charters. */
|
|
13
13
|
parentId?: MavenAGI.EntityIdWithoutAgent;
|
|
14
|
+
/** The charter's type when the response was generated. A matched `STRICT_RETURN` charter's manual is the whole response. */
|
|
15
|
+
type?: MavenAGI.CharterType;
|
|
14
16
|
}
|
|
@@ -8,4 +8,9 @@ export interface BotMessage extends MavenAGI.ConversationMessageBase {
|
|
|
8
8
|
status: MavenAGI.MessageStatus;
|
|
9
9
|
/** The logic that was used to generate the response. Response size may be large; only present on the getConversation request. */
|
|
10
10
|
logic?: MavenAGI.BotLogic;
|
|
11
|
+
/**
|
|
12
|
+
* Why the agent could not answer. Present only when `status` is `REJECTED` or `FAILED`, and absent for every other status.
|
|
13
|
+
* A `FAILED` message without a reason failed for some other cause, such as the model returning no answer.
|
|
14
|
+
*/
|
|
15
|
+
statusReason?: MavenAGI.BotMessageStatusReason;
|
|
11
16
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why the agent could not answer. Recorded when the response is generated, alongside its `status`.
|
|
3
|
+
*
|
|
4
|
+
* * `CONTENT_SAFETY_ISSUE`: The user's message failed the content safety check, so the agent did not answer it. The response is the agent's content safety reply. `status` is `REJECTED`.
|
|
5
|
+
* * `FAILED_TO_RETRIEVE_KNOWLEDGE`: Knowledge retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
|
|
6
|
+
* * `FAILED_TO_RETRIEVE_ACTIONS`: Action retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BotMessageStatusReason: {
|
|
9
|
+
readonly ContentSafetyIssue: "CONTENT_SAFETY_ISSUE";
|
|
10
|
+
readonly FailedToRetrieveKnowledge: "FAILED_TO_RETRIEVE_KNOWLEDGE";
|
|
11
|
+
readonly FailedToRetrieveActions: "FAILED_TO_RETRIEVE_ACTIONS";
|
|
12
|
+
};
|
|
13
|
+
export type BotMessageStatusReason = (typeof BotMessageStatusReason)[keyof typeof BotMessageStatusReason] | string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BotMessageStatusReason = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Why the agent could not answer. Recorded when the response is generated, alongside its `status`.
|
|
7
|
+
*
|
|
8
|
+
* * `CONTENT_SAFETY_ISSUE`: The user's message failed the content safety check, so the agent did not answer it. The response is the agent's content safety reply. `status` is `REJECTED`.
|
|
9
|
+
* * `FAILED_TO_RETRIEVE_KNOWLEDGE`: Knowledge retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
|
|
10
|
+
* * `FAILED_TO_RETRIEVE_ACTIONS`: Action retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
|
|
11
|
+
*/
|
|
12
|
+
exports.BotMessageStatusReason = {
|
|
13
|
+
ContentSafetyIssue: "CONTENT_SAFETY_ISSUE",
|
|
14
|
+
FailedToRetrieveKnowledge: "FAILED_TO_RETRIEVE_KNOWLEDGE",
|
|
15
|
+
FailedToRetrieveActions: "FAILED_TO_RETRIEVE_ACTIONS",
|
|
16
|
+
};
|
|
@@ -2,7 +2,11 @@ export declare const Capability: {
|
|
|
2
2
|
readonly Markdown: "MARKDOWN";
|
|
3
3
|
readonly Forms: "FORMS";
|
|
4
4
|
readonly Images: "IMAGES";
|
|
5
|
+
/**
|
|
6
|
+
* Shown in Agent Designer as "Charts". */
|
|
5
7
|
readonly ChartsHighchartsTs: "CHARTS_HIGHCHARTS_TS";
|
|
8
|
+
/**
|
|
9
|
+
* Shown in Agent Designer as "Async messaging". */
|
|
6
10
|
readonly Async: "ASYNC";
|
|
7
11
|
readonly OauthButtons: "OAUTH_BUTTONS";
|
|
8
12
|
};
|
|
@@ -6,7 +6,11 @@ exports.Capability = {
|
|
|
6
6
|
Markdown: "MARKDOWN",
|
|
7
7
|
Forms: "FORMS",
|
|
8
8
|
Images: "IMAGES",
|
|
9
|
+
/**
|
|
10
|
+
* Shown in Agent Designer as "Charts". */
|
|
9
11
|
ChartsHighchartsTs: "CHARTS_HIGHCHARTS_TS",
|
|
12
|
+
/**
|
|
13
|
+
* Shown in Agent Designer as "Async messaging". */
|
|
10
14
|
Async: "ASYNC",
|
|
11
15
|
OauthButtons: "OAUTH_BUTTONS",
|
|
12
16
|
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const CapabilityStatus: {
|
|
6
6
|
/**
|
|
7
|
-
* The field is evaluated, and values are computed for matching entities. */
|
|
7
|
+
* The field is evaluated, and values are computed for matching entities. Shown in Agent Designer as "Enabled" on conversation kickoffs. */
|
|
8
8
|
readonly Active: "ACTIVE";
|
|
9
9
|
/**
|
|
10
|
-
* The field exists but is not evaluated. This is the state a new field is created in. */
|
|
10
|
+
* The field exists but is not evaluated. This is the state a new field is created in. Shown in Agent Designer as "Disabled" on conversation kickoffs. */
|
|
11
11
|
readonly Inactive: "INACTIVE";
|
|
12
12
|
/**
|
|
13
13
|
* The field has been soft deleted and cannot be modified. Set by the delete endpoint
|
|
@@ -8,10 +8,10 @@ exports.CapabilityStatus = void 0;
|
|
|
8
8
|
*/
|
|
9
9
|
exports.CapabilityStatus = {
|
|
10
10
|
/**
|
|
11
|
-
* The field is evaluated, and values are computed for matching entities. */
|
|
11
|
+
* The field is evaluated, and values are computed for matching entities. Shown in Agent Designer as "Enabled" on conversation kickoffs. */
|
|
12
12
|
Active: "ACTIVE",
|
|
13
13
|
/**
|
|
14
|
-
* The field exists but is not evaluated. This is the state a new field is created in. */
|
|
14
|
+
* The field exists but is not evaluated. This is the state a new field is created in. Shown in Agent Designer as "Disabled" on conversation kickoffs. */
|
|
15
15
|
Inactive: "INACTIVE",
|
|
16
16
|
/**
|
|
17
17
|
* The field has been soft deleted and cannot be modified. Set by the delete endpoint
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface ConversationAnalysis {
|
|
3
|
-
/** Generated user request summary of the conversation */
|
|
3
|
+
/** Generated user request summary of the conversation. Shown in Agent Designer as "Subject" in the conversations table and "Customer request" on a conversation. */
|
|
4
4
|
userRequest?: string;
|
|
5
5
|
/** Generated agent response summary of the conversation */
|
|
6
6
|
agentResponse?: string;
|
|
@@ -18,7 +18,7 @@ export interface ConversationSummary {
|
|
|
18
18
|
thumbsDownCount: number;
|
|
19
19
|
/** The number of bot response messages that failed and returned the Agent's system fallback message. */
|
|
20
20
|
handoffCount: number;
|
|
21
|
-
/** The number of messages of type `USER` in the conversation. */
|
|
21
|
+
/** The number of messages of type `USER` in the conversation. Shown in Agent Designer as "Customer interactions". */
|
|
22
22
|
userMessageCount: number;
|
|
23
23
|
/** The number of bot answer messages in the conversation. */
|
|
24
24
|
botMessageCount: number;
|
|
@@ -35,11 +35,13 @@ export interface ConversationSummary {
|
|
|
35
35
|
* minus the timestamp of the first message in the conversation.
|
|
36
36
|
*
|
|
37
37
|
* Will not be provided if the conversation does not have a message of type `HUMAN_AGENT`.
|
|
38
|
+
*
|
|
39
|
+
* Shown in Agent Designer as "First response time".
|
|
38
40
|
*/
|
|
39
41
|
humanAgentResponseDelay?: number;
|
|
40
|
-
/** The names of all users that have a message of type `HUMAN_AGENT` on the conversation. */
|
|
42
|
+
/** The names of all users that have a message of type `HUMAN_AGENT` on the conversation. Shown in Agent Designer as "Agents involved". */
|
|
41
43
|
humanAgents: string[];
|
|
42
|
-
/** The names of all users that have an associated insert event on the conversation. */
|
|
44
|
+
/** The names of all users that have an associated insert event on the conversation. Shown in Agent Designer as "Inserted by". */
|
|
43
45
|
humanAgentsWithInserts: string[];
|
|
44
46
|
/** The names of all users that have a message of type `USER` on the conversation. */
|
|
45
47
|
users: string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Where on a conversation a value is read from.
|
|
4
|
+
*/
|
|
5
|
+
export type ConversationValueSource = MavenAGI.ConversationValueSource.ConversationMetadata;
|
|
6
|
+
export declare namespace ConversationValueSource {
|
|
7
|
+
interface ConversationMetadata extends MavenAGI.ConversationMetadataValueSource {
|
|
8
|
+
type: "conversationMetadata";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -26,5 +26,10 @@ export declare const EntityType: {
|
|
|
26
26
|
readonly AgentVariant: "AGENT_VARIANT";
|
|
27
27
|
readonly Asset: "ASSET";
|
|
28
28
|
readonly TrafficConfig: "TRAFFIC_CONFIG";
|
|
29
|
+
readonly Scenario: "SCENARIO";
|
|
30
|
+
readonly ScenarioSuite: "SCENARIO_SUITE";
|
|
31
|
+
readonly ScenarioRun: "SCENARIO_RUN";
|
|
32
|
+
readonly Function: "FUNCTION";
|
|
33
|
+
readonly FunctionVersion: "FUNCTION_VERSION";
|
|
29
34
|
};
|
|
30
35
|
export type EntityType = (typeof EntityType)[keyof typeof EntityType] | string;
|
|
@@ -30,4 +30,9 @@ exports.EntityType = {
|
|
|
30
30
|
AgentVariant: "AGENT_VARIANT",
|
|
31
31
|
Asset: "ASSET",
|
|
32
32
|
TrafficConfig: "TRAFFIC_CONFIG",
|
|
33
|
+
Scenario: "SCENARIO",
|
|
34
|
+
ScenarioSuite: "SCENARIO_SUITE",
|
|
35
|
+
ScenarioRun: "SCENARIO_RUN",
|
|
36
|
+
Function: "FUNCTION",
|
|
37
|
+
FunctionVersion: "FUNCTION_VERSION",
|
|
33
38
|
};
|
|
@@ -18,6 +18,9 @@ export declare const ErrorReason: {
|
|
|
18
18
|
/**
|
|
19
19
|
* The ID requested for a new variant is already taken. */
|
|
20
20
|
readonly VariantAlreadyExists: "VARIANT_ALREADY_EXISTS";
|
|
21
|
+
/**
|
|
22
|
+
* The agent is at its limit of ACTIVE variants, so no variant can be created, forked, committed or set back to ACTIVE. Archive or delete one first. */
|
|
23
|
+
readonly VariantLimitReached: "VARIANT_LIMIT_REACHED";
|
|
21
24
|
/**
|
|
22
25
|
* The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
|
|
23
26
|
readonly CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT";
|
|
@@ -31,7 +34,7 @@ export declare const ErrorReason: {
|
|
|
31
34
|
* The write would change an intelligent field's `validationType` in an agent variant. A field keeps its type across variants; to use a different type, create a new field. */
|
|
32
35
|
readonly IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED";
|
|
33
36
|
/**
|
|
34
|
-
* The working set holds staged edits of an entity type that isn't versioned for the
|
|
37
|
+
* The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`' `entityType` or `agentSetting`, then retry. */
|
|
35
38
|
readonly WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS";
|
|
36
39
|
};
|
|
37
40
|
export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;
|
|
@@ -22,6 +22,9 @@ exports.ErrorReason = {
|
|
|
22
22
|
/**
|
|
23
23
|
* The ID requested for a new variant is already taken. */
|
|
24
24
|
VariantAlreadyExists: "VARIANT_ALREADY_EXISTS",
|
|
25
|
+
/**
|
|
26
|
+
* The agent is at its limit of ACTIVE variants, so no variant can be created, forked, committed or set back to ACTIVE. Archive or delete one first. */
|
|
27
|
+
VariantLimitReached: "VARIANT_LIMIT_REACHED",
|
|
25
28
|
/**
|
|
26
29
|
* The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
|
|
27
30
|
CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT",
|
|
@@ -35,6 +38,6 @@ exports.ErrorReason = {
|
|
|
35
38
|
* The write would change an intelligent field's `validationType` in an agent variant. A field keeps its type across variants; to use a different type, create a new field. */
|
|
36
39
|
IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED",
|
|
37
40
|
/**
|
|
38
|
-
* The working set holds staged edits of an entity type that isn't versioned for the
|
|
41
|
+
* The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`' `entityType` or `agentSetting`, then retry. */
|
|
39
42
|
WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS",
|
|
40
43
|
};
|
|
@@ -5,6 +5,7 @@ export interface EventFilter {
|
|
|
5
5
|
createdBefore?: Date;
|
|
6
6
|
references?: MavenAGI.ScopedEntity[];
|
|
7
7
|
eventTypes?: MavenAGI.EventType[];
|
|
8
|
+
/** Shown in Agent Designer as "Event type". */
|
|
8
9
|
userEventNames?: MavenAGI.UserEventName[];
|
|
9
10
|
systemEventNames?: MavenAGI.SystemEventName[];
|
|
10
11
|
agentUserIds?: string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The result of executing an action.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExecuteActionResponse {
|
|
6
|
+
/** The action's result. This is what the agent is given, whether it succeeded or failed. */
|
|
7
|
+
response: string;
|
|
8
|
+
/** Structured data returned alongside the response. Must serialize to fewer than 10,000 characters of JSON; data over that limit is omitted and the response is kept. */
|
|
9
|
+
data?: Record<string, unknown>;
|
|
10
|
+
/** Whether the action succeeded. Defaults to SUCCESS when absent. */
|
|
11
|
+
status?: MavenAGI.ActionExecutionStatus;
|
|
12
|
+
/** Why the action failed, when status is ERROR. Never given to the agent. Truncated to 2,000 characters; a blank value is treated as if it were absent. */
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The silo a record lives in. LIVE is real end-user data. SIMULATION is a test or
|
|
3
|
+
* simulation run, kept apart from LIVE data: a simulation record is only ever linked to
|
|
4
|
+
* other simulation records.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ExecutionMode: {
|
|
7
|
+
readonly Live: "LIVE";
|
|
8
|
+
readonly Simulation: "SIMULATION";
|
|
9
|
+
};
|
|
10
|
+
export type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode] | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExecutionMode = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The silo a record lives in. LIVE is real end-user data. SIMULATION is a test or
|
|
7
|
+
* simulation run, kept apart from LIVE data: a simulation record is only ever linked to
|
|
8
|
+
* other simulation records.
|
|
9
|
+
*/
|
|
10
|
+
exports.ExecutionMode = {
|
|
11
|
+
Live: "LIVE",
|
|
12
|
+
Simulation: "SIMULATION",
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Binds a capability to one version of a Function. Both IDs carry the Function's app, which
|
|
4
|
+
* must be the capability's own app.
|
|
5
|
+
*/
|
|
6
|
+
export interface FunctionVersionBinding {
|
|
7
|
+
/** The bound Function. `type` is `FUNCTION`. */
|
|
8
|
+
functionId: MavenAGI.EntityIdWithoutAgent;
|
|
9
|
+
/** The version of that Function that runs. `type` is `FUNCTION_VERSION`. */
|
|
10
|
+
versionId: MavenAGI.EntityIdWithoutAgent;
|
|
11
|
+
}
|
|
@@ -4,7 +4,7 @@ export interface InboxItemDuplicateDocuments extends MavenAGI.InboxItemBase {
|
|
|
4
4
|
recommendedFixes: MavenAGI.InboxItemFixDeactivateDocument[];
|
|
5
5
|
/** List of fixes associated with the inbox item. */
|
|
6
6
|
otherFixes: MavenAGI.InboxItemFixDeactivateDocument[];
|
|
7
|
-
/** Information about the source document associated with the inbox item. */
|
|
7
|
+
/** Information about the source document associated with the inbox item. Shown in Agent Designer as "Reference Document". */
|
|
8
8
|
sourceDocument: MavenAGI.DocumentInformation;
|
|
9
9
|
/** List of Document information objects related to the inbox item. */
|
|
10
10
|
documents: MavenAGI.DocumentInformation[];
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.InboxItemStatus = void 0;
|
|
5
5
|
exports.InboxItemStatus = {
|
|
6
6
|
/**
|
|
7
|
-
* The inbox item is open. */
|
|
7
|
+
* The inbox item is open. Shown in Agent Designer as "Unresolved". */
|
|
8
8
|
Open: "OPEN",
|
|
9
9
|
/**
|
|
10
10
|
* The inbox item was resolved by the user. */
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/** Shown in Agent Designer as "Agent inclusion". */
|
|
1
2
|
export declare const LlmInclusionStatus: {
|
|
2
3
|
readonly Always: "ALWAYS";
|
|
3
4
|
readonly WhenRelevant: "WHEN_RELEVANT";
|
|
5
|
+
/**
|
|
6
|
+
* A knowledge base's "Deactivate" action sets this, and "Activate" sets `WHEN_RELEVANT`. */
|
|
4
7
|
readonly Never: "NEVER";
|
|
5
8
|
};
|
|
6
9
|
export type LlmInclusionStatus = (typeof LlmInclusionStatus)[keyof typeof LlmInclusionStatus] | string;
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.LlmInclusionStatus = void 0;
|
|
5
|
+
/** Shown in Agent Designer as "Agent inclusion". */
|
|
5
6
|
exports.LlmInclusionStatus = {
|
|
6
7
|
Always: "ALWAYS",
|
|
7
8
|
WhenRelevant: "WHEN_RELEVANT",
|
|
9
|
+
/**
|
|
10
|
+
* A knowledge base's "Deactivate" action sets this, and "Activate" sets `WHEN_RELEVANT`. */
|
|
8
11
|
Never: "NEVER",
|
|
9
12
|
};
|