mavenagi 1.2.61 → 1.2.63
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/Client.d.ts +6 -0
- package/Client.js +40 -30
- package/api/resources/actions/client/Client.d.ts +16 -0
- package/api/resources/actions/client/Client.js +16 -0
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +4 -0
- package/api/resources/analytics/types/ConversationBasicMetric.d.ts +4 -1
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +2 -0
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +2 -0
- package/api/resources/capabilities/client/Client.d.ts +118 -0
- package/api/resources/capabilities/client/Client.js +521 -0
- package/api/resources/capabilities/client/index.d.ts +1 -0
- package/api/resources/capabilities/client/index.js +17 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +38 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +4 -0
- package/api/resources/capabilities/client/requests/index.js +2 -0
- package/api/resources/capabilities/exports.d.ts +2 -0
- package/api/resources/capabilities/exports.js +21 -0
- package/api/resources/capabilities/index.d.ts +2 -0
- package/api/resources/capabilities/index.js +18 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
- package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
- package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +4 -0
- package/api/resources/capabilities/types/index.js +20 -0
- package/api/resources/charters/client/Client.js +3 -1
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +1 -1
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +4 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +1 -1
- package/api/resources/charters/types/CharterBase.d.ts +9 -0
- package/api/resources/charters/types/CharterRequest.d.ts +0 -8
- package/api/resources/charters/types/CharterSearchFilter.d.ts +14 -9
- package/api/resources/commons/types/ActionResponse.d.ts +11 -2
- package/api/resources/commons/types/AdditionalDataKey.d.ts +63 -0
- package/api/resources/commons/types/AdditionalDataKey.js +66 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +7 -0
- package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
- package/api/resources/commons/types/CapabilityBase.js +3 -0
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
- package/api/resources/commons/types/CapabilityType.d.ts +8 -0
- package/api/resources/commons/types/CapabilityType.js +11 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -1
- package/api/resources/commons/types/EntityType.js +5 -1
- package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
- package/api/resources/commons/types/ErrorReason.d.ts +34 -0
- package/api/resources/commons/types/ErrorReason.js +37 -0
- package/api/resources/commons/types/EventCondition.d.ts +35 -0
- package/api/resources/commons/types/EventCondition.js +3 -0
- package/api/resources/commons/types/EventConditionGroup.d.ts +11 -0
- package/api/resources/commons/types/EventConditionGroup.js +3 -0
- package/api/resources/commons/types/EventReferencesCondition.d.ts +13 -0
- package/api/resources/commons/types/EventReferencesCondition.js +3 -0
- package/api/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +1 -1
- package/api/resources/commons/types/IntelligentFieldFilter.js +3 -0
- package/api/resources/commons/types/IntelligentFieldSearchCondition.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +12 -0
- package/api/resources/commons/types/SystemEventName.d.ts +4 -1
- package/api/resources/commons/types/SystemEventName.js +4 -1
- package/api/resources/commons/types/SystemEventNameCondition.d.ts +10 -0
- package/api/resources/commons/types/SystemEventNameCondition.js +3 -0
- package/api/resources/commons/types/UserEventNameCondition.d.ts +10 -0
- package/api/resources/commons/types/UserEventNameCondition.js +3 -0
- package/api/resources/commons/types/index.d.ts +13 -0
- package/api/resources/commons/types/index.js +13 -0
- package/api/resources/conversation/client/Client.d.ts +16 -0
- package/api/resources/conversation/client/Client.js +16 -0
- package/api/resources/conversation/types/ConversationField.d.ts +22 -1
- package/api/resources/conversation/types/ConversationField.js +22 -1
- package/api/resources/conversation/types/ConversationFilter.d.ts +18 -0
- package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
- package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +2 -2
- package/api/resources/conversation/types/index.d.ts +0 -3
- package/api/resources/conversation/types/index.js +0 -3
- package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
- package/api/resources/conversationKickoffs/client/Client.js +175 -0
- package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/index.js +17 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
- package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
- package/api/resources/conversationKickoffs/exports.d.ts +2 -0
- package/api/resources/conversationKickoffs/exports.js +21 -0
- package/api/resources/conversationKickoffs/index.d.ts +2 -0
- package/api/resources/conversationKickoffs/index.js +18 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
- package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/types/index.js +17 -0
- package/api/resources/events/client/Client.d.ts +1 -1
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/inbox/types/InboxFilter.d.ts +11 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/intelligentFields/client/Client.d.ts +23 -3
- package/api/resources/intelligentFields/client/Client.js +23 -3
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
- package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +2 -2
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +9 -1
- package/api/resources/intelligentFields/types/index.d.ts +0 -1
- package/api/resources/intelligentFields/types/index.js +0 -1
- package/api/resources/knowledge/client/Client.d.ts +3 -0
- package/api/resources/knowledge/client/Client.js +3 -0
- package/api/resources/segments/client/Client.js +1 -3
- package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +0 -12
- package/api/resources/segments/types/SegmentPatchRequest.d.ts +0 -8
- package/api/resources/segments/types/SegmentRequest.d.ts +0 -8
- package/api/resources/triggers/client/Client.d.ts +22 -5
- package/api/resources/triggers/client/Client.js +38 -10
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -4
- package/api/resources/triggers/types/EventTriggerBase.d.ts +8 -4
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
- package/api/resources/triggers/types/index.d.ts +0 -1
- package/api/resources/triggers/types/index.js +0 -1
- package/api/resources/users/types/AgentUser.d.ts +2 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +3 -0
- package/package.json +1 -1
- package/reference.md +489 -8
- package/serialization/resources/capabilities/client/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/index.js +17 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +23 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +57 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/index.js +7 -0
- package/serialization/resources/capabilities/index.d.ts +2 -0
- package/serialization/resources/capabilities/index.js +18 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
- package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
- package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
- package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
- package/serialization/resources/capabilities/types/index.d.ts +4 -0
- package/serialization/resources/capabilities/types/index.js +20 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +2 -0
- package/serialization/resources/charters/types/CharterBase.js +2 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +0 -2
- package/serialization/resources/charters/types/CharterRequest.js +0 -2
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +3 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +3 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
- package/serialization/resources/commons/types/ActionResponse.js +4 -2
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +7 -0
- package/serialization/resources/commons/types/AdditionalDataKey.js +57 -0
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
- package/serialization/resources/commons/types/CapabilityBase.js +46 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
- package/serialization/resources/{triggers/types/TriggerPartialUpdate.js → commons/types/CapabilityStatus.js} +2 -4
- package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
- package/serialization/resources/commons/types/CapabilityType.js +39 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
- package/serialization/resources/commons/types/ErrorReason.js +50 -0
- package/serialization/resources/commons/types/EventCondition.d.ts +26 -0
- package/serialization/resources/commons/types/EventCondition.js +55 -0
- package/serialization/resources/commons/types/EventConditionGroup.d.ts +11 -0
- package/serialization/resources/commons/types/EventConditionGroup.js +44 -0
- package/serialization/resources/commons/types/EventReferencesCondition.d.ts +12 -0
- package/serialization/resources/commons/types/EventReferencesCondition.js +44 -0
- package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.js +1 -1
- package/serialization/resources/commons/types/SimulationContext.d.ts +2 -0
- package/serialization/resources/commons/types/SimulationContext.js +2 -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/SystemEventNameCondition.d.ts +12 -0
- package/serialization/resources/commons/types/SystemEventNameCondition.js +44 -0
- package/serialization/resources/commons/types/UserEventNameCondition.d.ts +12 -0
- package/serialization/resources/commons/types/UserEventNameCondition.js +44 -0
- package/serialization/resources/commons/types/index.d.ts +13 -0
- package/serialization/resources/commons/types/index.js +13 -0
- package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationField.js +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -1
- package/serialization/resources/conversation/types/ConversationFilter.js +3 -1
- package/serialization/resources/conversation/types/index.d.ts +0 -3
- package/serialization/resources/conversation/types/index.js +0 -3
- package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/index.js +17 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
- package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/index.js +18 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
- package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/types/index.js +17 -0
- package/serialization/resources/inbox/types/InboxFilter.d.ts +2 -0
- package/serialization/resources/inbox/types/InboxFilter.js +2 -0
- package/serialization/resources/index.d.ts +7 -0
- package/serialization/resources/index.js +8 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +4 -4
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
- package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
- package/serialization/resources/intelligentFields/types/index.js +0 -1
- package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +0 -2
- package/serialization/resources/segments/types/SegmentPatchRequest.js +0 -2
- package/serialization/resources/segments/types/SegmentRequest.d.ts +0 -2
- package/serialization/resources/segments/types/SegmentRequest.js +0 -2
- package/serialization/resources/triggers/client/index.d.ts +1 -0
- package/serialization/resources/triggers/client/index.js +17 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +10 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +43 -0
- package/serialization/resources/triggers/client/requests/index.d.ts +1 -0
- package/serialization/resources/triggers/client/requests/index.js +5 -0
- package/serialization/resources/triggers/index.d.ts +1 -0
- package/serialization/resources/triggers/index.js +1 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +2 -3
- package/serialization/resources/triggers/types/EventTriggerBase.js +2 -2
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
- package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
- package/serialization/resources/triggers/types/index.d.ts +0 -1
- package/serialization/resources/triggers/types/index.js +0 -1
- 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/triggers/types/TriggerPartialUpdate.d.ts +0 -4
- package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -9
- /package/api/resources/{conversation/types/IntelligentFieldFilter.js → capabilities/client/requests/CapabilitiesSearchRequest.js} +0 -0
- /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → capabilities/client/requests/DeleteCapabilityByTypeRequest.js} +0 -0
- /package/api/resources/{triggers/types/TriggerPartialUpdate.js → capabilities/client/requests/GetCapabilityByTypeRequest.js} +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
|
|
2
|
+
export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
|
|
3
|
+
export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
|
|
4
|
+
export type { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CapabilitiesClient = void 0;
|
|
19
|
+
var Client_1 = require("./client/Client");
|
|
20
|
+
Object.defineProperty(exports, "CapabilitiesClient", { enumerable: true, get: function () { return Client_1.CapabilitiesClient; } });
|
|
21
|
+
__exportStar(require("./client/index"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* number: 0,
|
|
6
|
+
* size: 2,
|
|
7
|
+
* totalElements: 2,
|
|
8
|
+
* totalPages: 1,
|
|
9
|
+
* capabilities: [{
|
|
10
|
+
* capabilityId: {
|
|
11
|
+
* referenceId: "ticket-priority",
|
|
12
|
+
* appId: "my-billing-system",
|
|
13
|
+
* organizationId: "acme",
|
|
14
|
+
* agentId: "support",
|
|
15
|
+
* type: MavenAGI.EntityType.IntelligentField
|
|
16
|
+
* },
|
|
17
|
+
* capabilityType: MavenAGI.CapabilityType.IntelligentField,
|
|
18
|
+
* name: "Ticket priority",
|
|
19
|
+
* description: "How urgent the conversation is",
|
|
20
|
+
* status: MavenAGI.CapabilityStatus.Inactive,
|
|
21
|
+
* createdAt: new Date("2026-01-16T08:00:00.000Z"),
|
|
22
|
+
* updatedAt: new Date("2026-01-16T08:00:00.000Z")
|
|
23
|
+
* }, {
|
|
24
|
+
* capabilityId: {
|
|
25
|
+
* referenceId: "get-balance",
|
|
26
|
+
* appId: "my-billing-system",
|
|
27
|
+
* organizationId: "acme",
|
|
28
|
+
* agentId: "support",
|
|
29
|
+
* type: MavenAGI.EntityType.Action
|
|
30
|
+
* },
|
|
31
|
+
* capabilityType: MavenAGI.CapabilityType.Action,
|
|
32
|
+
* name: "Check balance",
|
|
33
|
+
* description: "Looks up the customer's current account balance",
|
|
34
|
+
* status: MavenAGI.CapabilityStatus.Active,
|
|
35
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
36
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z")
|
|
37
|
+
* }]
|
|
38
|
+
* }
|
|
39
|
+
*/
|
|
40
|
+
export interface CapabilitiesSearchResponse extends MavenAGI.Page {
|
|
41
|
+
/** The capabilities on this page, in the order the request asked for. */
|
|
42
|
+
capabilities: MavenAGI.CapabilitySummary[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* One of an agent's capabilities, of whichever kind. Each variant is the very type that
|
|
4
|
+
* capability's own API returns, so nothing is redefined here.
|
|
5
|
+
*
|
|
6
|
+
* The discriminant is `capabilityType` rather than `type` because an event trigger already has
|
|
7
|
+
* a `type` of its own. Naming it apart is what lets each variant keep its own fields unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export type CapabilityResponse = MavenAGI.CapabilityResponse.Action | MavenAGI.CapabilityResponse.Trigger | MavenAGI.CapabilityResponse.IntelligentField | MavenAGI.CapabilityResponse.ConversationKickoff;
|
|
10
|
+
export declare namespace CapabilityResponse {
|
|
11
|
+
interface Action extends MavenAGI.ActionResponse {
|
|
12
|
+
capabilityType: "ACTION";
|
|
13
|
+
}
|
|
14
|
+
interface Trigger extends MavenAGI.EventTriggerResponse {
|
|
15
|
+
capabilityType: "TRIGGER";
|
|
16
|
+
}
|
|
17
|
+
interface IntelligentField extends MavenAGI.IntelligentFieldResponse {
|
|
18
|
+
capabilityType: "INTELLIGENT_FIELD";
|
|
19
|
+
}
|
|
20
|
+
interface ConversationKickoff extends MavenAGI.ConversationKickoff {
|
|
21
|
+
capabilityType: "CONVERSATION_KICKOFF";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The fields a capability search can be ordered by. */
|
|
2
|
+
export declare const CapabilitySortField: {
|
|
3
|
+
readonly CreatedAt: "CreatedAt";
|
|
4
|
+
readonly Name: "Name";
|
|
5
|
+
readonly Type: "Type";
|
|
6
|
+
};
|
|
7
|
+
export type CapabilitySortField = (typeof CapabilitySortField)[keyof typeof CapabilitySortField] | string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilitySortField = void 0;
|
|
5
|
+
/** The fields a capability search can be ordered by. */
|
|
6
|
+
exports.CapabilitySortField = {
|
|
7
|
+
CreatedAt: "CreatedAt",
|
|
8
|
+
Name: "Name",
|
|
9
|
+
Type: "Type",
|
|
10
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What every capability has in common, whatever kind it is, plus which kind it is and how to
|
|
4
|
+
* address it.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* capabilityId: {
|
|
9
|
+
* referenceId: "get-balance",
|
|
10
|
+
* appId: "my-billing-system",
|
|
11
|
+
* organizationId: "acme",
|
|
12
|
+
* agentId: "support",
|
|
13
|
+
* type: MavenAGI.EntityType.Action
|
|
14
|
+
* },
|
|
15
|
+
* capabilityType: MavenAGI.CapabilityType.Action,
|
|
16
|
+
* name: "Check balance",
|
|
17
|
+
* description: "Looks up the customer's current account balance",
|
|
18
|
+
* status: MavenAGI.CapabilityStatus.Active,
|
|
19
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
20
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z")
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
export interface CapabilitySummary extends MavenAGI.CapabilityBase {
|
|
24
|
+
/** ID that uniquely identifies this capability. */
|
|
25
|
+
capabilityId: MavenAGI.EntityId;
|
|
26
|
+
/** Which kind of capability this is, and the path segment that addresses it. */
|
|
27
|
+
capabilityType: MavenAGI.CapabilityType;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CapabilitiesSearchResponse"), exports);
|
|
18
|
+
__exportStar(require("./CapabilityResponse"), exports);
|
|
19
|
+
__exportStar(require("./CapabilitySortField"), exports);
|
|
20
|
+
__exportStar(require("./CapabilitySummary"), exports);
|
|
@@ -214,9 +214,11 @@ class ChartersClient {
|
|
|
214
214
|
__get(charterReferenceId_1) {
|
|
215
215
|
return __awaiter(this, arguments, void 0, function* (charterReferenceId, request = {}, requestOptions) {
|
|
216
216
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
217
|
-
const { appId } = request;
|
|
217
|
+
const { appId, variantReferenceId, variantAppId } = request;
|
|
218
218
|
const _queryParams = {
|
|
219
219
|
appId,
|
|
220
|
+
variantReferenceId,
|
|
221
|
+
variantAppId,
|
|
220
222
|
};
|
|
221
223
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
222
224
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -11,7 +11,7 @@ export interface CharterDeleteRequest {
|
|
|
11
11
|
* agent's live configuration.
|
|
12
12
|
*
|
|
13
13
|
* Omit this parameter to delete directly from the agent. Variant scoping is not
|
|
14
|
-
* active yet: a variant supplied today is
|
|
14
|
+
* active yet: a variant supplied today is validated but not applied, and the delete applies
|
|
15
15
|
* to the agent.
|
|
16
16
|
*/
|
|
17
17
|
variantReferenceId?: string;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
export interface CharterGetRequest {
|
|
6
6
|
/** The App ID of the charter to get. If not provided, the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
+
/** The agent variant reference ID to resolve the charter's version through. If not provided, defaults to the agent's production variant. Currently, validated but not applied. */
|
|
9
|
+
variantReferenceId?: string;
|
|
10
|
+
/** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
|
|
11
|
+
variantAppId?: string;
|
|
8
12
|
}
|
|
@@ -60,7 +60,7 @@ export interface CharterPatchRequest {
|
|
|
60
60
|
* variant's working set instead of being applied to the agent's live configuration.
|
|
61
61
|
*
|
|
62
62
|
* Omit this field to patch the agent directly. Variant scoping is not active yet:
|
|
63
|
-
* a variant supplied today is
|
|
63
|
+
* a variant supplied today is validated but not applied, and the patch applies to the
|
|
64
64
|
* agent.
|
|
65
65
|
*/
|
|
66
66
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
1
2
|
export interface CharterBase {
|
|
2
3
|
/** Display name for this charter or group. */
|
|
3
4
|
name: string;
|
|
5
|
+
/**
|
|
6
|
+
* ID of the agent variant this charter belongs to, if applicable.
|
|
7
|
+
*
|
|
8
|
+
* On a write this is validated -- an unknown variant is rejected, as is any
|
|
9
|
+
* variant while variant scoping is off for charters -- but not yet applied: the
|
|
10
|
+
* write reaches the agent's live configuration either way.
|
|
11
|
+
*/
|
|
12
|
+
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
4
13
|
/** A plain text description of this charter. If not set, existing description is preserved if present. */
|
|
5
14
|
description?: string;
|
|
6
15
|
/**
|
|
@@ -25,12 +25,4 @@ import type * as MavenAGI from "../../../index";
|
|
|
25
25
|
export interface CharterRequest extends MavenAGI.CharterContent {
|
|
26
26
|
/** ID that uniquely identifies this charter. */
|
|
27
27
|
charterId: MavenAGI.EntityIdBase;
|
|
28
|
-
/**
|
|
29
|
-
* The agent variant this write is scoped to. When set, the charter content is staged in
|
|
30
|
-
* that variant's working set instead of being applied to the agent's live configuration.
|
|
31
|
-
*
|
|
32
|
-
* Omit this field to write directly to the agent. Variant scoping is not active yet: a
|
|
33
|
-
* variant supplied today is accepted and ignored, and the write applies to the agent.
|
|
34
|
-
*/
|
|
35
|
-
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
36
28
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Filters combine with AND: a charter must match every filter given. Within one filter, a
|
|
4
|
+
* charter matches if it references any of the listed IDs. An empty list is the same as
|
|
5
|
+
* omitting the filter.
|
|
6
|
+
*/
|
|
2
7
|
export interface CharterSearchFilter {
|
|
3
|
-
/**
|
|
4
|
-
* Filter to charters that reference any of the specified actions (OR within this field).
|
|
5
|
-
* When combined with knowledgeBaseIds, both filters must match (AND across fields).
|
|
6
|
-
* An empty list is equivalent to omitting the field. Maximum 50 IDs.
|
|
7
|
-
*/
|
|
8
|
+
/** Only return charters referencing these actions. At most 50. */
|
|
8
9
|
actionIds?: MavenAGI.EntityId[];
|
|
10
|
+
/** Only return charters referencing these knowledge bases. At most 50. */
|
|
11
|
+
knowledgeBaseIds?: MavenAGI.EntityId[];
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
+
* Only return charters whose precondition references these intelligent fields. At most 50.
|
|
14
|
+
* A charter reaches an intelligent field through its precondition, not by referencing it
|
|
15
|
+
* directly the way it does an action or a knowledge base.
|
|
13
16
|
*/
|
|
14
|
-
|
|
17
|
+
intelligentFieldIds?: MavenAGI.EntityId[];
|
|
18
|
+
/** Filter to values generated by a specific agent variant. If not provided, returns values from all variants. */
|
|
19
|
+
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
15
20
|
}
|
|
@@ -2,6 +2,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
6
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
7
|
+
* status: MavenAGI.CapabilityStatus.Active,
|
|
5
8
|
* actionId: {
|
|
6
9
|
* referenceId: "get-balance",
|
|
7
10
|
* appId: "my-billing-system",
|
|
@@ -37,7 +40,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
37
40
|
* deleted: false
|
|
38
41
|
* }
|
|
39
42
|
*/
|
|
40
|
-
export interface ActionResponse extends MavenAGI.
|
|
43
|
+
export interface ActionResponse extends MavenAGI.ActionProperties, MavenAGI.CapabilityBase {
|
|
41
44
|
/** ID that uniquely identifies this action */
|
|
42
45
|
actionId: MavenAGI.EntityId;
|
|
43
46
|
/**
|
|
@@ -46,6 +49,8 @@ export interface ActionResponse extends MavenAGI.ActionBase {
|
|
|
46
49
|
*/
|
|
47
50
|
instructions?: string;
|
|
48
51
|
/**
|
|
52
|
+
* Deprecated. Superseded by `status`, which says the same thing for every capability type.
|
|
53
|
+
*
|
|
49
54
|
* Determines whether the action is sent to the LLM as part of a conversation.
|
|
50
55
|
*
|
|
51
56
|
* - `ALWAYS`: The action is always available for use in conversations, textual relevance is not considered.
|
|
@@ -61,6 +66,10 @@ export interface ActionResponse extends MavenAGI.ActionBase {
|
|
|
61
66
|
segmentId?: MavenAGI.EntityId;
|
|
62
67
|
/** No longer populated. This field is always absent and will be removed in a future release. */
|
|
63
68
|
preconditionExplanation?: string;
|
|
64
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Deprecated. Superseded by `status`, where a deleted action is `DELETED`.
|
|
71
|
+
*
|
|
72
|
+
* Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results.
|
|
73
|
+
*/
|
|
65
74
|
deleted: boolean;
|
|
66
75
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A shared vocabulary of `contextInfo.additionalData` keys, for any event from any sender. Events
|
|
3
|
+
* that carry the same kind of information under the same key share a shape, so one event
|
|
4
|
+
* condition or report works across all of them. Using these keys is encouraged, not required:
|
|
5
|
+
* any other key is still accepted.
|
|
6
|
+
*
|
|
7
|
+
* Values are strings, like every value in `additionalData`: numbers and booleans as their text
|
|
8
|
+
* (`3`, `true`), anything structured as JSON.
|
|
9
|
+
*/
|
|
10
|
+
export declare const AdditionalDataKey: {
|
|
11
|
+
/**
|
|
12
|
+
* The new value of whatever changed. Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
|
|
13
|
+
readonly Value: "value";
|
|
14
|
+
/**
|
|
15
|
+
* The value before the change. Absent when it was undetermined or there was none. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
|
|
16
|
+
readonly PreviousValue: "previousValue";
|
|
17
|
+
/**
|
|
18
|
+
* The name of the thing acted on, such as a form, flow, file or plan. */
|
|
19
|
+
readonly Name: "name";
|
|
20
|
+
/**
|
|
21
|
+
* The step reached within a flow or form, as its name or number. */
|
|
22
|
+
readonly Step: "step";
|
|
23
|
+
/**
|
|
24
|
+
* Why it happened, such as why a handoff was requested or a subscription cancelled. */
|
|
25
|
+
readonly Reason: "reason";
|
|
26
|
+
/**
|
|
27
|
+
* A machine-readable code for the error, for events that report a failure. */
|
|
28
|
+
readonly ErrorCode: "errorCode";
|
|
29
|
+
/**
|
|
30
|
+
* A human-readable description of the error, for events that report a failure. */
|
|
31
|
+
readonly ErrorMessage: "errorMessage";
|
|
32
|
+
/**
|
|
33
|
+
* The URL involved, such as the target of a clicked link. */
|
|
34
|
+
readonly Url: "url";
|
|
35
|
+
/**
|
|
36
|
+
* The text searched for. */
|
|
37
|
+
readonly Query: "query";
|
|
38
|
+
/**
|
|
39
|
+
* The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
|
|
40
|
+
readonly Position: "position";
|
|
41
|
+
/**
|
|
42
|
+
* A monetary amount, as a decimal number in `currency`. */
|
|
43
|
+
readonly Amount: "amount";
|
|
44
|
+
/**
|
|
45
|
+
* The ISO 4217 code of `amount`'s currency, such as `USD`. */
|
|
46
|
+
readonly Currency: "currency";
|
|
47
|
+
/**
|
|
48
|
+
* The channel a message went out on, such as `email`, `sms` or `push`. */
|
|
49
|
+
readonly Channel: "channel";
|
|
50
|
+
/**
|
|
51
|
+
* The language content was translated from, as a BCP 47 tag. */
|
|
52
|
+
readonly SourceLanguage: "sourceLanguage";
|
|
53
|
+
/**
|
|
54
|
+
* The language content was translated into, as a BCP 47 tag. */
|
|
55
|
+
readonly TargetLanguage: "targetLanguage";
|
|
56
|
+
/**
|
|
57
|
+
* The MIME type of the file involved. */
|
|
58
|
+
readonly MimeType: "mimeType";
|
|
59
|
+
/**
|
|
60
|
+
* The size of the file involved, in bytes. */
|
|
61
|
+
readonly SizeBytes: "sizeBytes";
|
|
62
|
+
};
|
|
63
|
+
export type AdditionalDataKey = (typeof AdditionalDataKey)[keyof typeof AdditionalDataKey] | string;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AdditionalDataKey = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* A shared vocabulary of `contextInfo.additionalData` keys, for any event from any sender. Events
|
|
7
|
+
* that carry the same kind of information under the same key share a shape, so one event
|
|
8
|
+
* condition or report works across all of them. Using these keys is encouraged, not required:
|
|
9
|
+
* any other key is still accepted.
|
|
10
|
+
*
|
|
11
|
+
* Values are strings, like every value in `additionalData`: numbers and booleans as their text
|
|
12
|
+
* (`3`, `true`), anything structured as JSON.
|
|
13
|
+
*/
|
|
14
|
+
exports.AdditionalDataKey = {
|
|
15
|
+
/**
|
|
16
|
+
* The new value of whatever changed. Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
|
|
17
|
+
Value: "value",
|
|
18
|
+
/**
|
|
19
|
+
* The value before the change. Absent when it was undetermined or there was none. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
|
|
20
|
+
PreviousValue: "previousValue",
|
|
21
|
+
/**
|
|
22
|
+
* The name of the thing acted on, such as a form, flow, file or plan. */
|
|
23
|
+
Name: "name",
|
|
24
|
+
/**
|
|
25
|
+
* The step reached within a flow or form, as its name or number. */
|
|
26
|
+
Step: "step",
|
|
27
|
+
/**
|
|
28
|
+
* Why it happened, such as why a handoff was requested or a subscription cancelled. */
|
|
29
|
+
Reason: "reason",
|
|
30
|
+
/**
|
|
31
|
+
* A machine-readable code for the error, for events that report a failure. */
|
|
32
|
+
ErrorCode: "errorCode",
|
|
33
|
+
/**
|
|
34
|
+
* A human-readable description of the error, for events that report a failure. */
|
|
35
|
+
ErrorMessage: "errorMessage",
|
|
36
|
+
/**
|
|
37
|
+
* The URL involved, such as the target of a clicked link. */
|
|
38
|
+
Url: "url",
|
|
39
|
+
/**
|
|
40
|
+
* The text searched for. */
|
|
41
|
+
Query: "query",
|
|
42
|
+
/**
|
|
43
|
+
* The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
|
|
44
|
+
Position: "position",
|
|
45
|
+
/**
|
|
46
|
+
* A monetary amount, as a decimal number in `currency`. */
|
|
47
|
+
Amount: "amount",
|
|
48
|
+
/**
|
|
49
|
+
* The ISO 4217 code of `amount`'s currency, such as `USD`. */
|
|
50
|
+
Currency: "currency",
|
|
51
|
+
/**
|
|
52
|
+
* The channel a message went out on, such as `email`, `sms` or `push`. */
|
|
53
|
+
Channel: "channel",
|
|
54
|
+
/**
|
|
55
|
+
* The language content was translated from, as a BCP 47 tag. */
|
|
56
|
+
SourceLanguage: "sourceLanguage",
|
|
57
|
+
/**
|
|
58
|
+
* The language content was translated into, as a BCP 47 tag. */
|
|
59
|
+
TargetLanguage: "targetLanguage",
|
|
60
|
+
/**
|
|
61
|
+
* The MIME type of the file involved. */
|
|
62
|
+
MimeType: "mimeType",
|
|
63
|
+
/**
|
|
64
|
+
* The size of the file involved, in bytes. */
|
|
65
|
+
SizeBytes: "sizeBytes",
|
|
66
|
+
};
|
|
@@ -52,4 +52,11 @@ export interface BaseConversationResponse {
|
|
|
52
52
|
* it cannot be supplied when creating or updating a conversation.
|
|
53
53
|
*/
|
|
54
54
|
conversationMode?: MavenAGI.ConversationMode;
|
|
55
|
+
/**
|
|
56
|
+
* The agent variant this conversation is pinned to. Chosen when the conversation is created,
|
|
57
|
+
* by the agent's traffic rules or by the simulation's `simulationContext.variantId`, and fixed
|
|
58
|
+
* for its lifetime. Absent when the conversation was not routed to a variant, for example one
|
|
59
|
+
* created before the agent had variants.
|
|
60
|
+
*/
|
|
61
|
+
variantId?: MavenAGI.EntityId;
|
|
55
62
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The fields every capability has, whatever kind it is: Actions, Event Triggers, Intelligent
|
|
4
|
+
* Fields and Conversation Kickoffs all carry these.
|
|
5
|
+
*/
|
|
6
|
+
export interface CapabilityBase {
|
|
7
|
+
/**
|
|
8
|
+
* The capability's display name, shown to whoever manages the agent. A trigger registered
|
|
9
|
+
* without one is named after the app that registered it and the event it fires on.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* What the capability does. Shown to whoever manages the agent, and for the types the LLM
|
|
14
|
+
* can choose between, used to decide when the capability applies.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/** When the capability was created. */
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
/** When the capability was last modified. */
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
/** Whether the agent uses this capability, and whether it still exists. */
|
|
22
|
+
status: MavenAGI.CapabilityStatus;
|
|
23
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Whether an agent uses a capability, and whether it still exists. Applies to every capability
|
|
3
|
+
* type.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CapabilityStatus: {
|
|
3
6
|
/**
|
|
4
7
|
* The field is evaluated, and values are computed for matching entities. */
|
|
5
8
|
readonly Active: "ACTIVE";
|
|
@@ -11,4 +14,4 @@ export declare const IntelligentFieldStatus: {
|
|
|
11
14
|
* rather than by a patch. */
|
|
12
15
|
readonly Deleted: "DELETED";
|
|
13
16
|
};
|
|
14
|
-
export type
|
|
17
|
+
export type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus] | string;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
/**
|
|
6
|
-
|
|
4
|
+
exports.CapabilityStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Whether an agent uses a capability, and whether it still exists. Applies to every capability
|
|
7
|
+
* type.
|
|
8
|
+
*/
|
|
9
|
+
exports.CapabilityStatus = {
|
|
7
10
|
/**
|
|
8
11
|
* The field is evaluated, and values are computed for matching entities. */
|
|
9
12
|
Active: "ACTIVE",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Which kind of capability an entity is, and the path segment that addresses it. */
|
|
2
|
+
export declare const CapabilityType: {
|
|
3
|
+
readonly Action: "ACTION";
|
|
4
|
+
readonly Trigger: "TRIGGER";
|
|
5
|
+
readonly IntelligentField: "INTELLIGENT_FIELD";
|
|
6
|
+
readonly ConversationKickoff: "CONVERSATION_KICKOFF";
|
|
7
|
+
};
|
|
8
|
+
export type CapabilityType = (typeof CapabilityType)[keyof typeof CapabilityType] | string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilityType = void 0;
|
|
5
|
+
/** Which kind of capability an entity is, and the path segment that addresses it. */
|
|
6
|
+
exports.CapabilityType = {
|
|
7
|
+
Action: "ACTION",
|
|
8
|
+
Trigger: "TRIGGER",
|
|
9
|
+
IntelligentField: "INTELLIGENT_FIELD",
|
|
10
|
+
ConversationKickoff: "CONVERSATION_KICKOFF",
|
|
11
|
+
};
|
|
@@ -9,7 +9,12 @@ export declare const EntityType: {
|
|
|
9
9
|
readonly User: "USER";
|
|
10
10
|
readonly Event: "EVENT";
|
|
11
11
|
readonly EventTrigger: "EVENT_TRIGGER";
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated. Use `USER` instead. */
|
|
12
14
|
readonly UserProfile: "USER_PROFILE";
|
|
15
|
+
/**
|
|
16
|
+
* A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
|
|
17
|
+
readonly AgentUser: "AGENT_USER";
|
|
13
18
|
readonly Feedback: "FEEDBACK";
|
|
14
19
|
readonly InboxItem: "INBOX_ITEM";
|
|
15
20
|
readonly InboxItemFix: "INBOX_ITEM_FIX";
|
|
@@ -19,7 +24,6 @@ export declare const EntityType: {
|
|
|
19
24
|
readonly Charter: "CHARTER";
|
|
20
25
|
readonly ConversationKickoff: "CONVERSATION_KICKOFF";
|
|
21
26
|
readonly AgentVariant: "AGENT_VARIANT";
|
|
22
|
-
readonly ConfigSnapshot: "CONFIG_SNAPSHOT";
|
|
23
27
|
readonly Asset: "ASSET";
|
|
24
28
|
readonly TrafficConfig: "TRAFFIC_CONFIG";
|
|
25
29
|
};
|
|
@@ -13,7 +13,12 @@ exports.EntityType = {
|
|
|
13
13
|
User: "USER",
|
|
14
14
|
Event: "EVENT",
|
|
15
15
|
EventTrigger: "EVENT_TRIGGER",
|
|
16
|
+
/**
|
|
17
|
+
* Deprecated. Use `USER` instead. */
|
|
16
18
|
UserProfile: "USER_PROFILE",
|
|
19
|
+
/**
|
|
20
|
+
* A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
|
|
21
|
+
AgentUser: "AGENT_USER",
|
|
17
22
|
Feedback: "FEEDBACK",
|
|
18
23
|
InboxItem: "INBOX_ITEM",
|
|
19
24
|
InboxItemFix: "INBOX_ITEM_FIX",
|
|
@@ -23,7 +28,6 @@ exports.EntityType = {
|
|
|
23
28
|
Charter: "CHARTER",
|
|
24
29
|
ConversationKickoff: "CONVERSATION_KICKOFF",
|
|
25
30
|
AgentVariant: "AGENT_VARIANT",
|
|
26
|
-
ConfigSnapshot: "CONFIG_SNAPSHOT",
|
|
27
31
|
Asset: "ASSET",
|
|
28
32
|
TrafficConfig: "TRAFFIC_CONFIG",
|
|
29
33
|
};
|