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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export interface IntelligentFieldGetRequest {
|
|
6
6
|
/** The App ID of the intelligent field 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 intelligent field's version through.
|
|
8
|
+
/** The agent variant reference ID to resolve the intelligent field's version through. Required on an agent with versioned intelligent fields; a request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise, if omitted, the agent's only variant is used. */
|
|
9
9
|
variantReferenceId?: string;
|
|
10
10
|
/** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
|
|
11
11
|
variantAppId?: string;
|
|
@@ -23,13 +23,13 @@ export interface IntelligentFieldPatchRequest {
|
|
|
23
23
|
* field beyond that limit is rejected. A field referenced by an active precondition
|
|
24
24
|
* cannot be deactivated.
|
|
25
25
|
*/
|
|
26
|
-
status?: MavenAGI.
|
|
26
|
+
status?: MavenAGI.CapabilityStatus;
|
|
27
27
|
/** A plain text description of the intelligent field. */
|
|
28
28
|
description?: string;
|
|
29
29
|
/** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
|
|
30
30
|
enumOptions?: MavenAGI.EnumOption[];
|
|
31
|
-
/** The agent variant to stage this patch in
|
|
32
|
-
variantId?: MavenAGI.
|
|
33
|
-
/**
|
|
31
|
+
/** The agent variant to stage this patch in. Required on an agent with versioned intelligent fields; a patch that omits it there is rejected with reason `VARIANT_REQUIRED`. */
|
|
32
|
+
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
33
|
+
/** Deprecated, use `variantId.appId`, which wins when both are set. */
|
|
34
34
|
variantAppId?: string;
|
|
35
35
|
}
|
|
@@ -8,4 +8,9 @@ export interface EnumOption {
|
|
|
8
8
|
value: string;
|
|
9
9
|
/** Display label for the option */
|
|
10
10
|
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Instructions that tell the LLM when to pick this option. Up to 1200 characters. On a
|
|
13
|
+
* patch, an option sent without a description has its description cleared.
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
11
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
|
|
3
|
-
/** Target entity type for evaluation.
|
|
3
|
+
/** Target entity type for evaluation. CONVERSATION is supported, and AGENT_USER is supported for agents with user-level intelligent fields enabled. The backend will return an error for other types. */
|
|
4
4
|
entityType: MavenAGI.EntityType;
|
|
5
|
-
/**
|
|
5
|
+
/** On a request, the agent variant to stage the write in. On a response, the variant the request named, if any; absent when it named none. */
|
|
6
6
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
7
7
|
}
|
|
@@ -3,10 +3,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
3
3
|
* The content of an intelligent field -- what it is called, and what the LLM should produce for it.
|
|
4
4
|
*/
|
|
5
5
|
export interface IntelligentFieldCore {
|
|
6
|
-
/** Display name for the intelligent field */
|
|
7
|
-
name: string;
|
|
8
|
-
/** A plain text description of the intelligent field. */
|
|
9
|
-
description?: string;
|
|
10
6
|
/**
|
|
11
7
|
* The type of value this field holds. It constrains the schema the LLM is asked to fill
|
|
12
8
|
* and the JSON type of the computed `value`.
|
|
@@ -11,7 +11,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* },
|
|
12
12
|
* name: "Ticket Priority",
|
|
13
13
|
* description: "The priority of the conversation based on urgency",
|
|
14
|
-
* status: MavenAGI.
|
|
14
|
+
* status: MavenAGI.CapabilityStatus.Inactive,
|
|
15
15
|
* entityType: MavenAGI.EntityType.Conversation,
|
|
16
16
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
17
17
|
* enumOptions: [{
|
|
@@ -11,7 +11,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
12
12
|
* enumOptions: [{
|
|
13
13
|
* value: "HIGH",
|
|
14
|
-
* label: "High Priority"
|
|
14
|
+
* label: "High Priority",
|
|
15
|
+
* description: "The customer is blocked or reports an outage."
|
|
15
16
|
* }, {
|
|
16
17
|
* value: "MEDIUM",
|
|
17
18
|
* label: "Medium Priority"
|
|
@@ -23,6 +24,10 @@ import type * as MavenAGI from "../../../index";
|
|
|
23
24
|
* }
|
|
24
25
|
*/
|
|
25
26
|
export interface IntelligentFieldRequest extends MavenAGI.IntelligentFieldBase {
|
|
27
|
+
/** Display name for the intelligent field */
|
|
28
|
+
name: string;
|
|
29
|
+
/** A plain text description of the intelligent field. */
|
|
30
|
+
description?: string;
|
|
26
31
|
/**
|
|
27
32
|
* ID that uniquely identifies this intelligent field. `referenceId` is supplied by the
|
|
28
33
|
* caller and is how the field is addressed on every other endpoint.
|
|
@@ -11,7 +11,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* },
|
|
12
12
|
* name: "Ticket Priority",
|
|
13
13
|
* description: "The priority of the conversation based on urgency",
|
|
14
|
-
* status: MavenAGI.
|
|
14
|
+
* status: MavenAGI.CapabilityStatus.Inactive,
|
|
15
15
|
* entityType: MavenAGI.EntityType.Conversation,
|
|
16
16
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
17
17
|
* enumOptions: [{
|
|
@@ -29,13 +29,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
29
29
|
* updatedAt: new Date("2024-01-15T10:30:00.000Z")
|
|
30
30
|
* }
|
|
31
31
|
*/
|
|
32
|
-
export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase {
|
|
32
|
+
export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase, MavenAGI.CapabilityBase {
|
|
33
33
|
/** ID that uniquely identifies this intelligent field */
|
|
34
34
|
fieldId: MavenAGI.EntityId;
|
|
35
|
-
/** Lifecycle state for whether this field is evaluated by workflows. Defaults to INACTIVE on creation. Use PATCH to activate. */
|
|
36
|
-
status: MavenAGI.IntelligentFieldStatus;
|
|
37
|
-
/** The date and time the intelligent field was created */
|
|
38
|
-
createdAt?: Date;
|
|
39
|
-
/** The date and time the intelligent field was last updated */
|
|
40
|
-
updatedAt?: Date;
|
|
41
35
|
}
|
|
@@ -12,6 +12,14 @@ export interface IntelligentFieldValueSearchRequest extends MavenAGI.BaseCappedP
|
|
|
12
12
|
includeUnknownValues?: boolean;
|
|
13
13
|
/** Field to sort by. Defaults to CREATED_AT. */
|
|
14
14
|
sort?: MavenAGI.IntelligentFieldValueSortField;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Returns values of the fields in this agent variant's scope: its published snapshot plus
|
|
17
|
+
* its staged edits, matched by field. A value is included whichever variant's conversation
|
|
18
|
+
* produced it, and is named as this variant names the field. If not provided, returns
|
|
19
|
+
* values from all variants.
|
|
20
|
+
*
|
|
21
|
+
* To see values from the conversations pinned to a variant, filter conversations by
|
|
22
|
+
* `variantIds` in conversation search or the analytics APIs.
|
|
23
|
+
*/
|
|
16
24
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
17
25
|
}
|
|
@@ -4,7 +4,6 @@ export * from "./IntelligentFieldCore";
|
|
|
4
4
|
export * from "./IntelligentFieldDetailResponse";
|
|
5
5
|
export * from "./IntelligentFieldRequest";
|
|
6
6
|
export * from "./IntelligentFieldResponse";
|
|
7
|
-
export * from "./IntelligentFieldStatus";
|
|
8
7
|
export * from "./IntelligentFieldType";
|
|
9
8
|
export * from "./IntelligentFieldValueEntityFilter";
|
|
10
9
|
export * from "./IntelligentFieldValueFieldFilter";
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./IntelligentFieldCore"), exports);
|
|
|
20
20
|
__exportStar(require("./IntelligentFieldDetailResponse"), exports);
|
|
21
21
|
__exportStar(require("./IntelligentFieldRequest"), exports);
|
|
22
22
|
__exportStar(require("./IntelligentFieldResponse"), exports);
|
|
23
|
-
__exportStar(require("./IntelligentFieldStatus"), exports);
|
|
24
23
|
__exportStar(require("./IntelligentFieldType"), exports);
|
|
25
24
|
__exportStar(require("./IntelligentFieldValueEntityFilter"), exports);
|
|
26
25
|
__exportStar(require("./IntelligentFieldValueFieldFilter"), exports);
|
|
@@ -181,6 +181,9 @@ export declare class KnowledgeClient {
|
|
|
181
181
|
*
|
|
182
182
|
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
183
183
|
*
|
|
184
|
+
* If another version create for the same knowledge base is still in progress, this request may
|
|
185
|
+
* return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
186
|
+
*
|
|
184
187
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
185
188
|
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
186
189
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -780,6 +780,9 @@ class KnowledgeClient {
|
|
|
780
780
|
*
|
|
781
781
|
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
782
782
|
*
|
|
783
|
+
* If another version create for the same knowledge base is still in progress, this request may
|
|
784
|
+
* return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
785
|
+
*
|
|
783
786
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
784
787
|
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
785
788
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -523,11 +523,9 @@ class SegmentsClient {
|
|
|
523
523
|
__delete(segmentReferenceId_1) {
|
|
524
524
|
return __awaiter(this, arguments, void 0, function* (segmentReferenceId, request = {}, requestOptions) {
|
|
525
525
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
526
|
-
const { appId
|
|
526
|
+
const { appId } = request;
|
|
527
527
|
const _queryParams = {
|
|
528
528
|
appId,
|
|
529
|
-
variantReferenceId,
|
|
530
|
-
variantAppId,
|
|
531
529
|
};
|
|
532
530
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
533
531
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -5,16 +5,4 @@
|
|
|
5
5
|
export interface SegmentDeleteRequest {
|
|
6
6
|
/** The App ID of the segment to delete. If not provided, the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The reference ID of the agent variant this delete is scoped to. When set, the
|
|
10
|
-
* deletion is staged in that variant's working set instead of being applied to the
|
|
11
|
-
* agent's live configuration.
|
|
12
|
-
*
|
|
13
|
-
* Omit this parameter to delete directly from the agent. Variant scoping is not
|
|
14
|
-
* active yet: a variant supplied today is accepted and ignored, and the delete applies
|
|
15
|
-
* to the agent.
|
|
16
|
-
*/
|
|
17
|
-
variantReferenceId?: string;
|
|
18
|
-
/** The App ID of the agent variant named by `variantReferenceId`. If not provided, the ID of the calling app will be used. */
|
|
19
|
-
variantAppId?: string;
|
|
20
8
|
}
|
|
@@ -10,12 +10,4 @@ export interface SegmentPatchRequest {
|
|
|
10
10
|
precondition?: MavenAGI.Precondition;
|
|
11
11
|
/** The status of the segment. Segments can only be deactivated if they are not set on any actions or active knowledge bases. */
|
|
12
12
|
status?: MavenAGI.SegmentStatus;
|
|
13
|
-
/**
|
|
14
|
-
* The agent variant this patch is scoped to. When set, the patch is staged in that
|
|
15
|
-
* variant's working set instead of being applied to the agent's live configuration.
|
|
16
|
-
*
|
|
17
|
-
* Omit this field to patch the agent directly. Variant scoping is not active yet: a
|
|
18
|
-
* variant supplied today is accepted and ignored, and the patch applies to the agent.
|
|
19
|
-
*/
|
|
20
|
-
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
21
13
|
}
|
|
@@ -22,14 +22,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
export interface SegmentRequest extends MavenAGI.SegmentBase {
|
|
23
23
|
/** ID that uniquely identifies this segment */
|
|
24
24
|
segmentId: MavenAGI.EntityIdBase;
|
|
25
|
-
/**
|
|
26
|
-
* The agent variant this write is scoped to. When set, the segment content is staged in
|
|
27
|
-
* that variant's working set instead of being applied to the agent's live configuration.
|
|
28
|
-
*
|
|
29
|
-
* Omit this field to write directly to the agent. Variant scoping is not active yet: a
|
|
30
|
-
* variant supplied today is accepted and ignored, and the write applies to the agent.
|
|
31
|
-
*/
|
|
32
|
-
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
33
25
|
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
34
26
|
precondition: MavenAGI.Precondition;
|
|
35
27
|
/** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
|
|
@@ -11,6 +11,12 @@ export declare class TriggersClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<TriggersClient.Options>;
|
|
12
12
|
constructor(options: TriggersClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*
|
|
16
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
17
|
+
* at once. It returns the fields every capability shares rather than the whole Event
|
|
18
|
+
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
19
|
+
*
|
|
14
20
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
15
21
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
22
|
*
|
|
@@ -53,6 +59,11 @@ export declare class TriggersClient {
|
|
|
53
59
|
createOrUpdate(request: MavenAGI.EventTriggerRequest, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
54
60
|
private __createOrUpdate;
|
|
55
61
|
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
*
|
|
64
|
+
* Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
|
|
65
|
+
* object for a trigger and the equivalent for every other kind of capability.
|
|
66
|
+
*
|
|
56
67
|
* Get an event trigger by its supplied ID
|
|
57
68
|
*
|
|
58
69
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
@@ -72,6 +83,11 @@ export declare class TriggersClient {
|
|
|
72
83
|
get(triggerReferenceId: string, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
73
84
|
private __get;
|
|
74
85
|
/**
|
|
86
|
+
* @deprecated
|
|
87
|
+
*
|
|
88
|
+
* Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
|
|
89
|
+
* of capability the same way.
|
|
90
|
+
*
|
|
75
91
|
* Delete an event trigger
|
|
76
92
|
*
|
|
77
93
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
@@ -91,7 +107,10 @@ export declare class TriggersClient {
|
|
|
91
107
|
delete(triggerReferenceId: string, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
92
108
|
private __delete;
|
|
93
109
|
/**
|
|
94
|
-
* Updates an event trigger.
|
|
110
|
+
* Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
111
|
+
*
|
|
112
|
+
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
113
|
+
* off, the same way it publishes and unpublishes any kind of capability.
|
|
95
114
|
*
|
|
96
115
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
97
116
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
@@ -106,10 +125,8 @@ export declare class TriggersClient {
|
|
|
106
125
|
* @throws {@link errors.MavenAGITimeoutError}
|
|
107
126
|
*
|
|
108
127
|
* @example
|
|
109
|
-
* await client.triggers.partialUpdate("triggerReferenceId"
|
|
110
|
-
* body: {}
|
|
111
|
-
* })
|
|
128
|
+
* await client.triggers.partialUpdate("triggerReferenceId")
|
|
112
129
|
*/
|
|
113
|
-
partialUpdate(triggerReferenceId: string, request
|
|
130
|
+
partialUpdate(triggerReferenceId: string, request?: MavenAGI.PartialUpdateRequest, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
114
131
|
private __partialUpdate;
|
|
115
132
|
}
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.TriggersClient = void 0;
|
|
47
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
@@ -58,6 +69,12 @@ class TriggersClient {
|
|
|
58
69
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
59
70
|
}
|
|
60
71
|
/**
|
|
72
|
+
* @deprecated
|
|
73
|
+
*
|
|
74
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
75
|
+
* at once. It returns the fields every capability shares rather than the whole Event
|
|
76
|
+
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
77
|
+
*
|
|
61
78
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
62
79
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
80
|
*
|
|
@@ -264,6 +281,11 @@ class TriggersClient {
|
|
|
264
281
|
});
|
|
265
282
|
}
|
|
266
283
|
/**
|
|
284
|
+
* @deprecated
|
|
285
|
+
*
|
|
286
|
+
* Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
|
|
287
|
+
* object for a trigger and the equivalent for every other kind of capability.
|
|
288
|
+
*
|
|
267
289
|
* Get an event trigger by its supplied ID
|
|
268
290
|
*
|
|
269
291
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
@@ -362,6 +384,11 @@ class TriggersClient {
|
|
|
362
384
|
});
|
|
363
385
|
}
|
|
364
386
|
/**
|
|
387
|
+
* @deprecated
|
|
388
|
+
*
|
|
389
|
+
* Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
|
|
390
|
+
* of capability the same way.
|
|
391
|
+
*
|
|
365
392
|
* Delete an event trigger
|
|
366
393
|
*
|
|
367
394
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
@@ -452,7 +479,10 @@ class TriggersClient {
|
|
|
452
479
|
});
|
|
453
480
|
}
|
|
454
481
|
/**
|
|
455
|
-
* Updates an event trigger.
|
|
482
|
+
* Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
483
|
+
*
|
|
484
|
+
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
485
|
+
* off, the same way it publishes and unpublishes any kind of capability.
|
|
456
486
|
*
|
|
457
487
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
458
488
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
@@ -467,17 +497,15 @@ class TriggersClient {
|
|
|
467
497
|
* @throws {@link errors.MavenAGITimeoutError}
|
|
468
498
|
*
|
|
469
499
|
* @example
|
|
470
|
-
* await client.triggers.partialUpdate("triggerReferenceId"
|
|
471
|
-
* body: {}
|
|
472
|
-
* })
|
|
500
|
+
* await client.triggers.partialUpdate("triggerReferenceId")
|
|
473
501
|
*/
|
|
474
|
-
partialUpdate(triggerReferenceId, request, requestOptions) {
|
|
502
|
+
partialUpdate(triggerReferenceId, request = {}, requestOptions) {
|
|
475
503
|
return core.HttpResponsePromise.fromPromise(this.__partialUpdate(triggerReferenceId, request, requestOptions));
|
|
476
504
|
}
|
|
477
|
-
__partialUpdate(
|
|
478
|
-
return __awaiter(this,
|
|
505
|
+
__partialUpdate(triggerReferenceId_1) {
|
|
506
|
+
return __awaiter(this, arguments, void 0, function* (triggerReferenceId, request = {}, requestOptions) {
|
|
479
507
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
480
|
-
const { appId,
|
|
508
|
+
const { appId } = request, _body = __rest(request, ["appId"]);
|
|
481
509
|
const _queryParams = {
|
|
482
510
|
appId,
|
|
483
511
|
};
|
|
@@ -490,14 +518,14 @@ class TriggersClient {
|
|
|
490
518
|
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/triggers/${core.url.encodePathParam(triggerReferenceId)}`),
|
|
491
519
|
method: "PATCH",
|
|
492
520
|
headers: _headers,
|
|
493
|
-
contentType: "application/json",
|
|
521
|
+
contentType: "application/merge-patch+json",
|
|
494
522
|
queryString: core.url
|
|
495
523
|
.queryBuilder()
|
|
496
524
|
.addMany(_queryParams)
|
|
497
525
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
498
526
|
.build(),
|
|
499
527
|
requestType: "json",
|
|
500
|
-
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.
|
|
528
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.PartialUpdateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
501
529
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
502
530
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
503
531
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
|
-
* {
|
|
5
|
-
* body: {}
|
|
6
|
-
* }
|
|
4
|
+
* {}
|
|
7
5
|
*/
|
|
8
6
|
export interface PartialUpdateRequest {
|
|
9
7
|
/** The App ID of the trigger to update. If not provided, the ID of the calling app will be used. */
|
|
10
8
|
appId?: string;
|
|
11
|
-
|
|
9
|
+
/** Whether the trigger will be called by Maven. */
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
/** Narrows which events fire this trigger. Omitted leaves the current condition alone; an explicit null removes it, so the trigger fires for every event again. */
|
|
12
|
+
condition?: MavenAGI.EventCondition | null;
|
|
12
13
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface EventTriggerBase {
|
|
3
|
-
/** The name of the trigger, displayed to end users. If not set, a name is derived from the app ID and trigger type. */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** The description of what the event trigger does, shown in the Maven Dashboard */
|
|
6
|
-
description: string;
|
|
7
3
|
/**
|
|
8
4
|
* The type of event trigger this app wishes to handle.
|
|
9
5
|
*
|
|
@@ -15,4 +11,12 @@ export interface EventTriggerBase {
|
|
|
15
11
|
* Inbox triggers fire when an inbox item is created or updated.
|
|
16
12
|
*/
|
|
17
13
|
type: MavenAGI.EventTriggerType;
|
|
14
|
+
/**
|
|
15
|
+
* Narrows which events fire this trigger. Without one the trigger fires for every event on
|
|
16
|
+
* the agent. Re-registering writes whatever condition the request carries, so omitting it
|
|
17
|
+
* removes one; PATCH changes or removes a condition without re-registering.
|
|
18
|
+
*
|
|
19
|
+
* Only allowed on `EVENT_CREATED`; the other trigger types reject it.
|
|
20
|
+
*/
|
|
21
|
+
condition?: MavenAGI.EventCondition;
|
|
18
22
|
}
|
|
@@ -10,6 +10,10 @@ import type * as MavenAGI from "../../../index";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface EventTriggerRequest extends MavenAGI.EventTriggerBase {
|
|
13
|
+
/** The name of the trigger, displayed to end users. If not set, a name is derived from the app ID and trigger type. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** The description of what the event trigger does, shown in the Maven Dashboard */
|
|
16
|
+
description: string;
|
|
13
17
|
/** ID that uniquely identifies this event trigger */
|
|
14
18
|
triggerId: MavenAGI.EntityIdBase;
|
|
15
19
|
}
|
|
@@ -9,14 +9,22 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* agentId: "support",
|
|
10
10
|
* type: MavenAGI.EntityType.EventTrigger
|
|
11
11
|
* },
|
|
12
|
+
* name: "Store in Snowflake",
|
|
12
13
|
* description: "Stores conversation data in Snowflake",
|
|
13
14
|
* type: MavenAGI.EventTriggerType.ConversationCreated,
|
|
14
|
-
* enabled: true
|
|
15
|
+
* enabled: true,
|
|
16
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
17
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
18
|
+
* status: MavenAGI.CapabilityStatus.Active
|
|
15
19
|
* }
|
|
16
20
|
*/
|
|
17
|
-
export interface EventTriggerResponse extends MavenAGI.EventTriggerBase {
|
|
21
|
+
export interface EventTriggerResponse extends MavenAGI.EventTriggerBase, MavenAGI.CapabilityBase {
|
|
18
22
|
/** ID that uniquely identifies this event trigger */
|
|
19
23
|
triggerId: MavenAGI.EntityId;
|
|
20
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Deprecated. Superseded by `status`, which says the same thing for every capability type.
|
|
26
|
+
*
|
|
27
|
+
* Whether this trigger will be called by Maven.
|
|
28
|
+
*/
|
|
21
29
|
enabled: boolean;
|
|
22
30
|
}
|
|
@@ -20,4 +20,3 @@ __exportStar(require("./EventTriggerResponse"), exports);
|
|
|
20
20
|
__exportStar(require("./EventTriggersSearchRequest"), exports);
|
|
21
21
|
__exportStar(require("./EventTriggersSearchResponse"), exports);
|
|
22
22
|
__exportStar(require("./TriggerField"), exports);
|
|
23
|
-
__exportStar(require("./TriggerPartialUpdate"), exports);
|
|
@@ -59,4 +59,6 @@ export interface AgentUser {
|
|
|
59
59
|
* If two apps create users with the same identifying properties, they will be merged into a single agent user.
|
|
60
60
|
*/
|
|
61
61
|
users: MavenAGI.AppUserSummary[];
|
|
62
|
+
/** Latest successful values of the agent user's intelligent fields. */
|
|
63
|
+
intelligentFieldValues?: MavenAGI.IntelligentFieldValueResponse[];
|
|
62
64
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
1
2
|
export interface AgentUserFilter {
|
|
2
3
|
/**
|
|
3
4
|
* Full-text search query for matching agent users by content.
|
|
@@ -16,4 +17,6 @@ export interface AgentUserFilter {
|
|
|
16
17
|
* When false, only non-anonymous users are returned. An anonymous user is one without any identifiers or name data.
|
|
17
18
|
*/
|
|
18
19
|
isAnonymous?: boolean;
|
|
20
|
+
/** Filter by intelligent field values. All conditions are ANDed together. */
|
|
21
|
+
intelligentFields?: MavenAGI.IntelligentFieldFilter;
|
|
19
22
|
}
|