mavenagi 1.2.69 → 1.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.js +2 -2
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -1
- package/api/resources/agents/types/AgentPrompting.d.ts +4 -3
- package/api/resources/appSettings/client/Client.d.ts +2 -0
- package/api/resources/appSettings/client/Client.js +2 -0
- package/api/resources/assets/client/Client.d.ts +5 -0
- package/api/resources/assets/client/Client.js +5 -0
- package/api/resources/capabilities/client/Client.d.ts +6 -2
- package/api/resources/capabilities/client/Client.js +6 -2
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +4 -25
- package/api/resources/capabilities/types/CapabilityRunBase.d.ts +31 -0
- package/api/resources/capabilities/types/CapabilityRunBase.js +3 -0
- package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -3
- package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +7 -1
- package/api/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +6 -0
- package/api/resources/capabilities/types/ConversationKickoffSimulationInput.js +3 -0
- package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +1 -7
- package/api/resources/capabilities/types/TriggerRunDetails.d.ts +12 -0
- package/api/resources/capabilities/types/TriggerRunDetails.js +3 -0
- package/api/resources/capabilities/types/TriggerSimulationInput.d.ts +14 -0
- package/api/resources/capabilities/types/TriggerSimulationInput.js +3 -0
- package/api/resources/capabilities/types/TriggerSimulationResult.d.ts +7 -0
- package/api/resources/capabilities/types/TriggerSimulationResult.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +5 -0
- package/api/resources/capabilities/types/index.js +5 -0
- package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +18 -0
- package/api/resources/commons/types/AbsoluteTimeWindow.js +3 -0
- package/api/resources/commons/types/ActionEffects.d.ts +18 -0
- package/api/resources/commons/types/ActionEffects.js +3 -0
- package/api/resources/commons/types/AllUsersConversationAudience.d.ts +1 -0
- package/api/resources/commons/types/AllUsersConversationAudience.js +3 -0
- package/api/resources/commons/types/AppUser.d.ts +9 -0
- package/api/resources/commons/types/ArraySettingsSchemaEntry.d.ts +1 -2
- package/api/resources/commons/types/BotLogic.d.ts +9 -0
- package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
- package/api/resources/commons/types/ChangeAuthor.d.ts +18 -0
- package/api/resources/commons/types/ChangeAuthor.js +3 -0
- package/api/resources/commons/types/ColorSettingsSchemaEntry.d.ts +1 -2
- package/api/resources/commons/types/ConversationAnalysis.d.ts +10 -2
- package/api/resources/commons/types/ConversationAudience.d.ts +19 -0
- package/api/resources/commons/types/ConversationAudience.js +3 -0
- package/api/resources/commons/types/ConversationAudienceResponse.d.ts +16 -0
- package/api/resources/commons/types/ConversationAudienceResponse.js +3 -0
- package/api/resources/commons/types/ConversationKickoffExecutionResponse.d.ts +1 -1
- package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
- package/api/resources/commons/types/ConversationResponse.d.ts +8 -0
- package/api/resources/commons/types/ConversationSetupFields.d.ts +21 -0
- package/api/resources/commons/types/ConversationSetupFields.js +3 -0
- package/api/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +7 -0
- package/api/resources/commons/types/CrossOrganizationLevelEntityId.js +3 -0
- package/api/resources/commons/types/DayOfMonthDaySelector.d.ts +4 -0
- package/api/resources/commons/types/DayOfMonthDaySelector.js +3 -0
- package/api/resources/commons/types/DayOfWeek.d.ts +10 -0
- package/api/resources/commons/types/DayOfWeek.js +13 -0
- package/api/resources/commons/types/DaySelector.d.ts +33 -0
- package/api/resources/commons/types/DaySelector.js +3 -0
- package/api/resources/commons/types/EntityIdBase.d.ts +1 -1
- package/api/resources/commons/types/EntityType.d.ts +4 -0
- package/api/resources/commons/types/EntityType.js +4 -0
- package/api/resources/commons/types/InitializeConversationResponse.d.ts +3 -0
- package/api/resources/commons/types/LeveledEntityId.d.ts +28 -0
- package/api/resources/commons/types/LeveledEntityId.js +3 -0
- package/api/resources/commons/types/Month.d.ts +15 -0
- package/api/resources/commons/types/Month.js +18 -0
- package/api/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +1 -2
- package/api/resources/commons/types/NthWeekdayDaySelector.d.ts +15 -0
- package/api/resources/commons/types/NthWeekdayDaySelector.js +3 -0
- package/api/resources/commons/types/NumberSettingsSchemaEntry.d.ts +1 -2
- package/api/resources/commons/types/Occurrence.d.ts +11 -0
- package/api/resources/commons/types/Occurrence.js +14 -0
- package/api/resources/commons/types/OrganizationLevelEntityId.d.ts +9 -0
- package/api/resources/commons/types/OrganizationLevelEntityId.js +3 -0
- package/api/resources/commons/types/RecurringTimeWindow.d.ts +21 -0
- package/api/resources/commons/types/RecurringTimeWindow.js +3 -0
- package/api/resources/commons/types/ResolutionStatus.d.ts +57 -1
- package/api/resources/commons/types/ResolutionStatus.js +57 -1
- package/api/resources/commons/types/SimulationActionBehavior.d.ts +1 -1
- package/api/resources/commons/types/SimulationContext.d.ts +1 -24
- package/api/resources/commons/types/SimulationFixedResponse.d.ts +14 -0
- package/api/resources/commons/types/SimulationFixedResponse.js +3 -0
- package/api/resources/commons/types/SimulationSetupFields.d.ts +29 -0
- package/api/resources/commons/types/SimulationSetupFields.js +3 -0
- package/api/resources/commons/types/TextSettingsSchemaEntry.d.ts +1 -2
- package/api/resources/commons/types/TimeOfDayRange.d.ts +14 -0
- package/api/resources/commons/types/TimeOfDayRange.js +3 -0
- package/api/resources/commons/types/TimePrecondition.d.ts +110 -0
- package/api/resources/commons/types/TimePrecondition.js +3 -0
- package/api/resources/commons/types/TimeWindow.d.ts +22 -0
- package/api/resources/commons/types/TimeWindow.js +3 -0
- package/api/resources/commons/types/UserData.d.ts +14 -1
- package/api/resources/commons/types/UserDataEffect.d.ts +10 -0
- package/api/resources/commons/types/UserDataEffect.js +3 -0
- package/api/resources/commons/types/UserDataPatch.d.ts +10 -0
- package/api/resources/commons/types/UserDataPatch.js +3 -0
- package/api/resources/commons/types/UsersConversationAudience.d.ts +8 -0
- package/api/resources/commons/types/UsersConversationAudience.js +3 -0
- package/api/resources/commons/types/UsersConversationAudienceResponse.d.ts +9 -0
- package/api/resources/commons/types/UsersConversationAudienceResponse.js +3 -0
- package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +7 -0
- package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +3 -0
- package/api/resources/commons/types/WeekTime.d.ts +9 -0
- package/api/resources/commons/types/WeekTime.js +3 -0
- package/api/resources/commons/types/WeekdaysDaySelector.d.ts +5 -0
- package/api/resources/commons/types/WeekdaysDaySelector.js +3 -0
- package/api/resources/commons/types/WeeklyTimeWindow.d.ts +23 -0
- package/api/resources/commons/types/WeeklyTimeWindow.js +3 -0
- package/api/resources/commons/types/YearlyDatesDaySelector.d.ts +16 -0
- package/api/resources/commons/types/YearlyDatesDaySelector.js +3 -0
- package/api/resources/commons/types/index.d.ts +31 -0
- package/api/resources/commons/types/index.js +31 -0
- package/api/resources/conversation/client/Client.d.ts +71 -10
- package/api/resources/conversation/client/Client.js +71 -10
- package/api/resources/conversation/types/AskRequest.d.ts +4 -1
- package/api/resources/conversation/types/AskRequestBase.d.ts +1 -35
- package/api/resources/conversation/types/AskRequestFields.d.ts +40 -0
- package/api/resources/conversation/types/AskRequestFields.js +3 -0
- package/api/resources/conversation/types/BillableFilterField.d.ts +7 -2
- package/api/resources/conversation/types/BillableFilterField.js +7 -2
- package/api/resources/conversation/types/ConversationFilter.d.ts +11 -8
- package/api/resources/conversation/types/ConversationRequest.d.ts +26 -16
- package/api/resources/conversation/types/DeliverAskRequest.d.ts +9 -0
- package/api/resources/conversation/types/DeliverAskRequest.js +3 -0
- package/api/resources/conversation/types/DeliverContent.d.ts +19 -0
- package/api/resources/conversation/types/DeliverContent.js +3 -0
- package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -3
- package/api/resources/conversation/types/DeliverMessageBase.d.ts +11 -0
- package/api/resources/conversation/types/DeliverMessageBase.js +3 -0
- package/api/resources/conversation/types/DeliverMessageResponse.d.ts +5 -0
- package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +21 -3
- package/api/resources/conversation/types/index.d.ts +4 -0
- package/api/resources/conversation/types/index.js +4 -0
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
- package/api/resources/organizations/client/Client.d.ts +0 -4
- package/api/resources/organizations/client/Client.js +0 -4
- package/api/resources/users/client/Client.d.ts +7 -1
- package/api/resources/users/client/Client.js +7 -1
- package/api/resources/users/types/AppUserSummary.d.ts +1 -1
- package/package.json +1 -1
- package/reference.md +50 -15
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -12
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +5 -13
- package/serialization/resources/capabilities/types/CapabilityRunBase.d.ts +20 -0
- package/serialization/resources/capabilities/types/CapabilityRunBase.js +52 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -1
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +4 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +9 -1
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +4 -0
- package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +9 -0
- package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.js +40 -0
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +2 -6
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +3 -6
- package/serialization/resources/capabilities/types/TriggerRunDetails.d.ts +13 -0
- package/serialization/resources/capabilities/types/TriggerRunDetails.js +45 -0
- package/serialization/resources/capabilities/types/TriggerSimulationInput.d.ts +10 -0
- package/serialization/resources/capabilities/types/TriggerSimulationInput.js +42 -0
- package/serialization/resources/capabilities/types/TriggerSimulationResult.d.ts +10 -0
- package/serialization/resources/capabilities/types/TriggerSimulationResult.js +41 -0
- package/serialization/resources/capabilities/types/index.d.ts +5 -0
- package/serialization/resources/capabilities/types/index.js +5 -0
- package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +11 -0
- package/serialization/resources/commons/types/AbsoluteTimeWindow.js +43 -0
- package/serialization/resources/commons/types/ActionEffects.d.ts +11 -0
- package/serialization/resources/commons/types/ActionEffects.js +45 -0
- package/serialization/resources/commons/types/AllUsersConversationAudience.d.ts +7 -0
- package/serialization/resources/commons/types/AllUsersConversationAudience.js +39 -0
- package/serialization/resources/commons/types/ArraySettingsSchemaEntry.d.ts +2 -4
- package/serialization/resources/commons/types/ArraySettingsSchemaEntry.js +2 -4
- package/serialization/resources/commons/types/ChangeAuthor.d.ts +12 -0
- package/serialization/resources/commons/types/ChangeAuthor.js +44 -0
- package/serialization/resources/commons/types/ColorSettingsSchemaEntry.d.ts +2 -4
- package/serialization/resources/commons/types/ColorSettingsSchemaEntry.js +2 -4
- package/serialization/resources/commons/types/ConversationAudience.d.ts +15 -0
- package/serialization/resources/commons/types/ConversationAudience.js +49 -0
- package/serialization/resources/commons/types/ConversationAudienceResponse.d.ts +15 -0
- package/serialization/resources/commons/types/ConversationAudienceResponse.js +49 -0
- package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
- package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
- package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
- package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/ConversationResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationSetupFields.d.ts +12 -0
- package/serialization/resources/commons/types/ConversationSetupFields.js +44 -0
- package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +9 -0
- package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.js +40 -0
- package/serialization/resources/commons/types/DayOfMonthDaySelector.d.ts +9 -0
- package/serialization/resources/commons/types/DayOfMonthDaySelector.js +41 -0
- package/serialization/resources/commons/types/DayOfWeek.d.ts +7 -0
- package/serialization/resources/commons/types/DayOfWeek.js +47 -0
- package/serialization/resources/commons/types/DaySelector.d.ts +23 -0
- package/serialization/resources/commons/types/DaySelector.js +53 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/LeveledEntityId.d.ts +19 -0
- package/serialization/resources/commons/types/LeveledEntityId.js +51 -0
- package/serialization/resources/commons/types/Month.d.ts +7 -0
- package/serialization/resources/commons/types/Month.js +52 -0
- package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +2 -4
- package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.js +2 -4
- package/serialization/resources/commons/types/NthWeekdayDaySelector.d.ts +12 -0
- package/serialization/resources/commons/types/NthWeekdayDaySelector.js +44 -0
- package/serialization/resources/commons/types/NumberSettingsSchemaEntry.d.ts +2 -4
- package/serialization/resources/commons/types/NumberSettingsSchemaEntry.js +2 -4
- package/serialization/resources/commons/types/Occurrence.d.ts +7 -0
- package/serialization/resources/commons/types/Occurrence.js +39 -0
- package/serialization/resources/commons/types/OrganizationLevelEntityId.d.ts +10 -0
- package/serialization/resources/commons/types/OrganizationLevelEntityId.js +44 -0
- package/serialization/resources/commons/types/RecurringTimeWindow.d.ts +15 -0
- package/serialization/resources/commons/types/RecurringTimeWindow.js +47 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +2 -2
- package/serialization/resources/commons/types/SimulationActionBehavior.js +2 -2
- package/serialization/resources/commons/types/SimulationContext.d.ts +2 -6
- package/serialization/resources/commons/types/SimulationContext.js +5 -7
- package/serialization/resources/commons/types/SimulationFixedResponse.d.ts +11 -0
- package/serialization/resources/commons/types/SimulationFixedResponse.js +45 -0
- package/serialization/resources/commons/types/SimulationSetupFields.d.ts +13 -0
- package/serialization/resources/commons/types/SimulationSetupFields.js +45 -0
- package/serialization/resources/commons/types/TextSettingsSchemaEntry.d.ts +2 -4
- package/serialization/resources/commons/types/TextSettingsSchemaEntry.js +2 -4
- package/serialization/resources/commons/types/TimeOfDayRange.d.ts +10 -0
- package/serialization/resources/commons/types/TimeOfDayRange.js +42 -0
- package/serialization/resources/commons/types/TimePrecondition.d.ts +11 -0
- package/serialization/resources/commons/types/TimePrecondition.js +45 -0
- package/serialization/resources/commons/types/TimeWindow.d.ts +19 -0
- package/serialization/resources/commons/types/TimeWindow.js +51 -0
- package/serialization/resources/commons/types/UserDataEffect.d.ts +11 -0
- package/serialization/resources/commons/types/UserDataEffect.js +43 -0
- package/serialization/resources/commons/types/UserDataPatch.d.ts +11 -0
- package/serialization/resources/commons/types/UserDataPatch.js +43 -0
- package/serialization/resources/commons/types/UsersConversationAudience.d.ts +10 -0
- package/serialization/resources/commons/types/UsersConversationAudience.js +42 -0
- package/serialization/resources/commons/types/UsersConversationAudienceResponse.d.ts +10 -0
- package/serialization/resources/commons/types/UsersConversationAudienceResponse.js +42 -0
- package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +12 -0
- package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +46 -0
- package/serialization/resources/commons/types/WeekTime.d.ts +11 -0
- package/serialization/resources/commons/types/WeekTime.js +43 -0
- package/serialization/resources/commons/types/WeekdaysDaySelector.d.ts +10 -0
- package/serialization/resources/commons/types/WeekdaysDaySelector.js +42 -0
- package/serialization/resources/commons/types/WeeklyTimeWindow.d.ts +12 -0
- package/serialization/resources/commons/types/WeeklyTimeWindow.js +44 -0
- package/serialization/resources/commons/types/YearlyDatesDaySelector.d.ts +10 -0
- package/serialization/resources/commons/types/YearlyDatesDaySelector.js +42 -0
- package/serialization/resources/commons/types/index.d.ts +31 -0
- package/serialization/resources/commons/types/index.js +31 -0
- package/serialization/resources/conversation/types/AskRequestBase.d.ts +2 -11
- package/serialization/resources/conversation/types/AskRequestBase.js +5 -12
- package/serialization/resources/conversation/types/AskRequestFields.d.ts +18 -0
- package/serialization/resources/conversation/types/AskRequestFields.js +50 -0
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +4 -5
- package/serialization/resources/conversation/types/ConversationRequest.js +7 -6
- package/serialization/resources/conversation/types/DeliverAskRequest.d.ts +11 -0
- package/serialization/resources/conversation/types/DeliverAskRequest.js +45 -0
- package/serialization/resources/conversation/types/DeliverContent.d.ts +15 -0
- package/serialization/resources/conversation/types/DeliverContent.js +49 -0
- package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +2 -3
- package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +5 -4
- package/serialization/resources/conversation/types/DeliverMessageBase.d.ts +12 -0
- package/serialization/resources/conversation/types/DeliverMessageBase.js +44 -0
- package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +2 -0
- package/serialization/resources/conversation/types/DeliverMessageResponse.js +2 -0
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +3 -3
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +6 -4
- package/serialization/resources/conversation/types/index.d.ts +4 -0
- package/serialization/resources/conversation/types/index.js +4 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.ConversationMode | MavenAGI.ConversationPreconditionResponse.IntelligentField;
|
|
2
|
+
export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.ConversationMode | MavenAGI.ConversationPreconditionResponse.IntelligentField | MavenAGI.ConversationPreconditionResponse.Time;
|
|
3
3
|
export declare namespace ConversationPreconditionResponse {
|
|
4
4
|
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
5
|
conversationPreconditionType: "tags";
|
|
@@ -25,4 +25,7 @@ export declare namespace ConversationPreconditionResponse {
|
|
|
25
25
|
interface IntelligentField extends MavenAGI.IntelligentFieldPreconditionResponse {
|
|
26
26
|
conversationPreconditionType: "intelligentField";
|
|
27
27
|
}
|
|
28
|
+
interface Time extends MavenAGI.TimePrecondition {
|
|
29
|
+
conversationPreconditionType: "time";
|
|
30
|
+
}
|
|
28
31
|
}
|
|
@@ -9,6 +9,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* agentId: "support",
|
|
10
10
|
* type: MavenAGI.EntityType.Conversation
|
|
11
11
|
* },
|
|
12
|
+
* audience: {
|
|
13
|
+
* type: "allUsers"
|
|
14
|
+
* },
|
|
12
15
|
* deleted: false,
|
|
13
16
|
* open: false,
|
|
14
17
|
* llmEnabled: true,
|
|
@@ -92,4 +95,9 @@ export interface ConversationResponse extends MavenAGI.BaseConversationResponse
|
|
|
92
95
|
* Message attachments are included in LLM context, conversation attachments are not.
|
|
93
96
|
*/
|
|
94
97
|
attachments: MavenAGI.AttachmentResponse[];
|
|
98
|
+
/**
|
|
99
|
+
* Who the conversation is for, as set when it was initialized. `allUsers` for a conversation
|
|
100
|
+
* initialized without an audience or created by an ask.
|
|
101
|
+
*/
|
|
102
|
+
audience: MavenAGI.ConversationAudienceResponse;
|
|
95
103
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The settings a conversation is created with.
|
|
4
|
+
*/
|
|
5
|
+
export interface ConversationSetupFields {
|
|
6
|
+
/** Optional configurations for responses to this conversation */
|
|
7
|
+
responseConfig?: MavenAGI.ResponseConfig;
|
|
8
|
+
/** The tags of the conversation. Used for filtering in Agent Designer. */
|
|
9
|
+
tags?: Set<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing
|
|
12
|
+
* additional information about the object in a structured format, and querying for objects
|
|
13
|
+
* via API or the dashboard.
|
|
14
|
+
*
|
|
15
|
+
* Keys are strings with a maximum length of 500 characters. Values are strings with a maximum
|
|
16
|
+
* length of 512 characters.
|
|
17
|
+
*
|
|
18
|
+
* The metadata of the conversation supplied by the app which created the conversation.
|
|
19
|
+
*/
|
|
20
|
+
metadata?: Record<string, string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The ID of an object above the organization level. It has no `organizationId` or `agentId`, and
|
|
4
|
+
* none is inferred: the ID is unique within one residency zone and environment.
|
|
5
|
+
*/
|
|
6
|
+
export interface CrossOrganizationLevelEntityId extends MavenAGI.EntityIdWithoutAgent {
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export interface DayOfMonthDaySelector {
|
|
2
|
+
/** The dates of the month the window covers, from 1 to 31, or from -1 to -31 to count back from the end of the month: -1 is the last day and -3 the third from last. Must not be empty. A date past the end of a month never matches it, so 31 and -31 skip 30-day months and February. */
|
|
3
|
+
days: Set<number>;
|
|
4
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const DayOfWeek: {
|
|
2
|
+
readonly Monday: "MONDAY";
|
|
3
|
+
readonly Tuesday: "TUESDAY";
|
|
4
|
+
readonly Wednesday: "WEDNESDAY";
|
|
5
|
+
readonly Thursday: "THURSDAY";
|
|
6
|
+
readonly Friday: "FRIDAY";
|
|
7
|
+
readonly Saturday: "SATURDAY";
|
|
8
|
+
readonly Sunday: "SUNDAY";
|
|
9
|
+
};
|
|
10
|
+
export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek] | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DayOfWeek = void 0;
|
|
5
|
+
exports.DayOfWeek = {
|
|
6
|
+
Monday: "MONDAY",
|
|
7
|
+
Tuesday: "TUESDAY",
|
|
8
|
+
Wednesday: "WEDNESDAY",
|
|
9
|
+
Thursday: "THURSDAY",
|
|
10
|
+
Friday: "FRIDAY",
|
|
11
|
+
Saturday: "SATURDAY",
|
|
12
|
+
Sunday: "SUNDAY",
|
|
13
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Which days a recurring window covers. Each member names one way of picking days, so a
|
|
4
|
+
* selector means exactly what its type says. For a window that covers days picked two ways
|
|
5
|
+
* ("the 15th, or the third Monday"), OR two preconditions in a `PreconditionGroup`.
|
|
6
|
+
*/
|
|
7
|
+
export type DaySelector =
|
|
8
|
+
/**
|
|
9
|
+
* Every occurrence of the listed days of the week. */
|
|
10
|
+
MavenAGI.DaySelector.Weekdays
|
|
11
|
+
/**
|
|
12
|
+
* Fixed dates of the month, such as the 1st, the 15th, or the last day. */
|
|
13
|
+
| MavenAGI.DaySelector.DayOfMonth
|
|
14
|
+
/**
|
|
15
|
+
* Numbered occurrences within the month, such as the third Monday or the last weekday. */
|
|
16
|
+
| MavenAGI.DaySelector.NthWeekday
|
|
17
|
+
/**
|
|
18
|
+
* One run of dates every year, such as December 24 through January 2. */
|
|
19
|
+
| MavenAGI.DaySelector.YearlyDates;
|
|
20
|
+
export declare namespace DaySelector {
|
|
21
|
+
interface Weekdays extends MavenAGI.WeekdaysDaySelector {
|
|
22
|
+
dayType: "weekdays";
|
|
23
|
+
}
|
|
24
|
+
interface DayOfMonth extends MavenAGI.DayOfMonthDaySelector {
|
|
25
|
+
dayType: "dayOfMonth";
|
|
26
|
+
}
|
|
27
|
+
interface NthWeekday extends MavenAGI.NthWeekdayDaySelector {
|
|
28
|
+
dayType: "nthWeekday";
|
|
29
|
+
}
|
|
30
|
+
interface YearlyDates extends MavenAGI.YearlyDatesDaySelector {
|
|
31
|
+
dayType: "yearlyDates";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface EntityIdBase {
|
|
5
5
|
/**
|
|
6
|
-
* Externally supplied ID to uniquely identify this object. Is globally unique when combined with
|
|
6
|
+
* Externally supplied ID to uniquely identify this object. Is globally unique when combined with the other fields of its ID.
|
|
7
7
|
*
|
|
8
8
|
* Must be less than 192 characters and contain only:
|
|
9
9
|
* - alphanumeric characters (`a-z`, `A-Z`, `0-9`)
|
|
@@ -31,5 +31,9 @@ export declare const EntityType: {
|
|
|
31
31
|
readonly ScenarioRun: "SCENARIO_RUN";
|
|
32
32
|
readonly Function: "FUNCTION";
|
|
33
33
|
readonly FunctionVersion: "FUNCTION_VERSION";
|
|
34
|
+
/**
|
|
35
|
+
* In development. A person or a service account, identified above the organization level. No
|
|
36
|
+
* `EntityId` has this type: a mavenUser belongs to no organization or agent. */
|
|
37
|
+
readonly MavenUser: "MAVEN_USER";
|
|
34
38
|
};
|
|
35
39
|
export type EntityType = (typeof EntityType)[keyof typeof EntityType] | string;
|
|
@@ -35,4 +35,8 @@ exports.EntityType = {
|
|
|
35
35
|
ScenarioRun: "SCENARIO_RUN",
|
|
36
36
|
Function: "FUNCTION",
|
|
37
37
|
FunctionVersion: "FUNCTION_VERSION",
|
|
38
|
+
/**
|
|
39
|
+
* In development. A person or a service account, identified above the organization level. No
|
|
40
|
+
* `EntityId` has this type: a mavenUser belongs to no organization or agent. */
|
|
41
|
+
MavenUser: "MAVEN_USER",
|
|
38
42
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* An object ID that states the level its object lives at: `AGENT` (it belongs to an agent),
|
|
4
|
+
* `ORGANIZATION` (it belongs to an organization and to none of its agents), or `CROSS_ORGANIZATION` (it
|
|
5
|
+
* is above the organization level). An `AGENT` ID has the same fields as `EntityId`, plus `level`. An ID
|
|
6
|
+
* sent without `level` is read as `AGENT`.
|
|
7
|
+
*/
|
|
8
|
+
export type LeveledEntityId =
|
|
9
|
+
/**
|
|
10
|
+
* An object that belongs to an agent. */
|
|
11
|
+
MavenAGI.LeveledEntityId.Agent
|
|
12
|
+
/**
|
|
13
|
+
* An object that belongs to an organization and to none of its agents. */
|
|
14
|
+
| MavenAGI.LeveledEntityId.Organization
|
|
15
|
+
/**
|
|
16
|
+
* An object above the organization level. */
|
|
17
|
+
| MavenAGI.LeveledEntityId.CrossOrganization;
|
|
18
|
+
export declare namespace LeveledEntityId {
|
|
19
|
+
interface Agent extends MavenAGI.EntityId {
|
|
20
|
+
level: "AGENT";
|
|
21
|
+
}
|
|
22
|
+
interface Organization extends MavenAGI.OrganizationLevelEntityId {
|
|
23
|
+
level: "ORGANIZATION";
|
|
24
|
+
}
|
|
25
|
+
interface CrossOrganization extends MavenAGI.CrossOrganizationLevelEntityId {
|
|
26
|
+
level: "CROSS_ORGANIZATION";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const Month: {
|
|
2
|
+
readonly January: "JANUARY";
|
|
3
|
+
readonly February: "FEBRUARY";
|
|
4
|
+
readonly March: "MARCH";
|
|
5
|
+
readonly April: "APRIL";
|
|
6
|
+
readonly May: "MAY";
|
|
7
|
+
readonly June: "JUNE";
|
|
8
|
+
readonly July: "JULY";
|
|
9
|
+
readonly August: "AUGUST";
|
|
10
|
+
readonly September: "SEPTEMBER";
|
|
11
|
+
readonly October: "OCTOBER";
|
|
12
|
+
readonly November: "NOVEMBER";
|
|
13
|
+
readonly December: "DECEMBER";
|
|
14
|
+
};
|
|
15
|
+
export type Month = (typeof Month)[keyof typeof Month] | string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Month = void 0;
|
|
5
|
+
exports.Month = {
|
|
6
|
+
January: "JANUARY",
|
|
7
|
+
February: "FEBRUARY",
|
|
8
|
+
March: "MARCH",
|
|
9
|
+
April: "APRIL",
|
|
10
|
+
May: "MAY",
|
|
11
|
+
June: "JUNE",
|
|
12
|
+
July: "JULY",
|
|
13
|
+
August: "AUGUST",
|
|
14
|
+
September: "SEPTEMBER",
|
|
15
|
+
October: "OCTOBER",
|
|
16
|
+
November: "NOVEMBER",
|
|
17
|
+
December: "DECEMBER",
|
|
18
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export interface MultilineSettingsSchemaEntry extends MavenAGI.
|
|
2
|
+
export interface MultilineSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
|
|
3
3
|
defaultValue?: string;
|
|
4
|
-
validation?: MavenAGI.SettingsSchemaValidation;
|
|
5
4
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Picks days by counting, within each month, the days that fall on any of `daysOfWeek`, and
|
|
4
|
+
* keeping the occurrences listed.
|
|
5
|
+
*
|
|
6
|
+
* With a single day of the week this reads naturally: `[MONDAY]` with `[THIRD]` is the third
|
|
7
|
+
* Monday. With several, the count runs across all of them: Monday through Friday with `[LAST]`
|
|
8
|
+
* is the last weekday of the month, not the last Monday, last Tuesday, and so on.
|
|
9
|
+
*/
|
|
10
|
+
export interface NthWeekdayDaySelector {
|
|
11
|
+
/** The days of the week to count. Must not be empty. */
|
|
12
|
+
daysOfWeek: Set<MavenAGI.DayOfWeek>;
|
|
13
|
+
/** Which of the counted days the window covers. Must not be empty. */
|
|
14
|
+
occurrences: Set<MavenAGI.Occurrence>;
|
|
15
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export interface NumberSettingsSchemaEntry extends MavenAGI.
|
|
2
|
+
export interface NumberSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
|
|
3
3
|
defaultValue?: number;
|
|
4
|
-
validation?: MavenAGI.SettingsSchemaValidation;
|
|
5
4
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A numbered occurrence within a month. */
|
|
2
|
+
export declare const Occurrence: {
|
|
3
|
+
readonly First: "FIRST";
|
|
4
|
+
readonly Second: "SECOND";
|
|
5
|
+
readonly Third: "THIRD";
|
|
6
|
+
readonly Fourth: "FOURTH";
|
|
7
|
+
/**
|
|
8
|
+
* The final occurrence in the month, whether that is the fourth or the fifth. */
|
|
9
|
+
readonly Last: "LAST";
|
|
10
|
+
};
|
|
11
|
+
export type Occurrence = (typeof Occurrence)[keyof typeof Occurrence] | string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Occurrence = void 0;
|
|
5
|
+
/** A numbered occurrence within a month. */
|
|
6
|
+
exports.Occurrence = {
|
|
7
|
+
First: "FIRST",
|
|
8
|
+
Second: "SECOND",
|
|
9
|
+
Third: "THIRD",
|
|
10
|
+
Fourth: "FOURTH",
|
|
11
|
+
/**
|
|
12
|
+
* The final occurrence in the month, whether that is the fourth or the fifth. */
|
|
13
|
+
Last: "LAST",
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The ID of an object that belongs to an organization and to none of its agents. It has no `agentId`,
|
|
4
|
+
* and none is inferred.
|
|
5
|
+
*/
|
|
6
|
+
export interface OrganizationLevelEntityId extends MavenAGI.EntityIdWithoutAgent {
|
|
7
|
+
/** The ID of the organization that this object belongs to */
|
|
8
|
+
organizationId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A window that repeats on the calendar of one timezone.
|
|
4
|
+
*
|
|
5
|
+
* Every field that is set must match, and an unset field matches anything, so a window with
|
|
6
|
+
* only `months: [FEBRUARY]` is all of February and one with only `timeOfDay` is those hours
|
|
7
|
+
* every day. Values inside a set match if any of them does.
|
|
8
|
+
*
|
|
9
|
+
* When `timeOfDay` wraps past midnight, `days` and `months` apply to the day the window
|
|
10
|
+
* opens: Fridays with 22:00–02:00 runs from Friday night into early Saturday.
|
|
11
|
+
*/
|
|
12
|
+
export interface RecurringTimeWindow {
|
|
13
|
+
/** The IANA timezone the calendar fields are read in (e.g. "America/New_York"). Required because business hours belong to the business, not to the end user, and a rule written against a fixed offset drifts by an hour at every daylight-saving change. Fixed offsets (e.g. "-08:00") and legacy IDs (e.g. "EST") are accepted, but they do not follow daylight saving. Clients can prefill it from the agent's `defaultTimezone`. */
|
|
14
|
+
timezone: string;
|
|
15
|
+
/** Which days the window covers: days of the week, dates of the month, numbered weekdays of the month, or one range of dates every year. Omit to cover every day. */
|
|
16
|
+
days?: MavenAGI.DaySelector;
|
|
17
|
+
/** The months the window covers. Omit to cover every month. Not allowed with `yearlyDates` days, which name their own months. */
|
|
18
|
+
months?: Set<MavenAGI.Month>;
|
|
19
|
+
/** The hours the window covers on each matching day. Omit to cover the whole day. */
|
|
20
|
+
timeOfDay?: MavenAGI.TimeOfDayRange;
|
|
21
|
+
}
|
|
@@ -1,16 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The outcome of a conversation. Shown in Agent Designer as "Resolution status".
|
|
3
|
+
*
|
|
4
|
+
* The status is recalculated whenever the conversation changes, such as a new message,
|
|
5
|
+
* feedback, a CSAT rating or an insert. The conditions are checked in this order, and the
|
|
6
|
+
* first one that matches sets the status: `INELIGIBLE`, `CONTENT_SAFETY_FLAGGED`,
|
|
7
|
+
* `PROMPT_ATTACK_FLAGGED`, `HANGUP`, `IN_PROGRESS`, `ERROR`, `NEGATIVE_FEEDBACK`, `ESCALATED`,
|
|
8
|
+
* then `RESOLVED`.
|
|
9
|
+
*
|
|
10
|
+
* Code applies these checks, except for one input: the AI summary of the transcript can report
|
|
11
|
+
* a handoff, which sets `ESCALATED`.
|
|
12
|
+
*
|
|
13
|
+
* Each status maps to one billing status (`BillableFilterField`): `RESOLVED` is billable;
|
|
14
|
+
* `ESCALATED`, `NEGATIVE_FEEDBACK`, `ERROR`, `IN_PROGRESS` and `INCOMPLETE` are not billable;
|
|
15
|
+
* the others are not eligible. These are labels. Volume-based pricing also bills not billable
|
|
16
|
+
* conversations. See
|
|
17
|
+
* [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
|
|
18
|
+
*/
|
|
1
19
|
export declare const ResolutionStatus: {
|
|
20
|
+
/**
|
|
21
|
+
* Reserved. Not assigned to conversations today. Billing status: not eligible. Shown in
|
|
22
|
+
* Agent Designer as "Unknown". */
|
|
2
23
|
readonly Unknown: "UNKNOWN";
|
|
24
|
+
/**
|
|
25
|
+
* The agent returned an empty response to a message. Billing status: not billable. Shown
|
|
26
|
+
* in Agent Designer as "Error". */
|
|
3
27
|
readonly Error: "ERROR";
|
|
28
|
+
/**
|
|
29
|
+
* The agent has not responded yet. Billing status: not billable. Shown in Agent Designer
|
|
30
|
+
* as "In progress". */
|
|
4
31
|
readonly InProgress: "IN_PROGRESS";
|
|
5
32
|
/**
|
|
6
|
-
*
|
|
33
|
+
* The agent responded and no other status applies. Billing status: billable, the only
|
|
34
|
+
* status that is. `resolvedByMaven` is `true` exactly when the status is `RESOLVED`. Shown
|
|
35
|
+
* in Agent Designer as "Resolved by Maven". */
|
|
7
36
|
readonly Resolved: "RESOLVED";
|
|
37
|
+
/**
|
|
38
|
+
* The conversation was handed off to a human agent. Either an AI analysis of the
|
|
39
|
+
* transcript found a handoff, or a handoff action that Maven recognizes ran successfully.
|
|
40
|
+
* The AI analysis can be wrong. Once escalation is detected, later messages do not undo
|
|
41
|
+
* it, but the earlier checks, such as `NEGATIVE_FEEDBACK`, still take precedence. Copilot
|
|
42
|
+
* conversations are never `ESCALATED`. Billing status: not billable. Shown in Agent
|
|
43
|
+
* Designer as "Escalated". */
|
|
8
44
|
readonly Escalated: "ESCALATED";
|
|
45
|
+
/**
|
|
46
|
+
* Reserved. Not assigned to conversations today. Billing status: not billable. Shown in
|
|
47
|
+
* Agent Designer as "Incomplete". */
|
|
9
48
|
readonly Incomplete: "INCOMPLETE";
|
|
49
|
+
/**
|
|
50
|
+
* The end user or a human agent gave a thumbs down, or the average CSAT is below 50% of
|
|
51
|
+
* the maximum rating. An insert of an agent response overrides a thumbs down. Billing
|
|
52
|
+
* status: not billable. Shown in Agent Designer as "Negative feedback". */
|
|
10
53
|
readonly NegativeFeedback: "NEGATIVE_FEEDBACK";
|
|
54
|
+
/**
|
|
55
|
+
* A message was flagged by content safety guardrails. Billing status: not eligible. Shown
|
|
56
|
+
* in Agent Designer as "Content safety flagged". */
|
|
11
57
|
readonly ContentSafetyFlagged: "CONTENT_SAFETY_FLAGGED";
|
|
58
|
+
/**
|
|
59
|
+
* A message was flagged as a prompt injection attack. Billing status: not eligible. Shown
|
|
60
|
+
* in Agent Designer as "Prompt attack flagged". */
|
|
12
61
|
readonly PromptAttackFlagged: "PROMPT_ATTACK_FLAGGED";
|
|
62
|
+
/**
|
|
63
|
+
* A voice call of 5 seconds or less, measured from the first message to the last. Billing
|
|
64
|
+
* status: not eligible. Shown in Agent Designer as "Hangup". */
|
|
13
65
|
readonly Hangup: "HANGUP";
|
|
66
|
+
/**
|
|
67
|
+
* A copilot chat conversation. Billing status: not eligible. Shown in Agent Designer as
|
|
68
|
+
* "Ineligible". Not the same as the `INELIGIBLE` billing status, which covers every not
|
|
69
|
+
* eligible status. */
|
|
14
70
|
readonly Ineligible: "INELIGIBLE";
|
|
15
71
|
};
|
|
16
72
|
export type ResolutionStatus = (typeof ResolutionStatus)[keyof typeof ResolutionStatus] | string;
|
|
@@ -2,18 +2,74 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ResolutionStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The outcome of a conversation. Shown in Agent Designer as "Resolution status".
|
|
7
|
+
*
|
|
8
|
+
* The status is recalculated whenever the conversation changes, such as a new message,
|
|
9
|
+
* feedback, a CSAT rating or an insert. The conditions are checked in this order, and the
|
|
10
|
+
* first one that matches sets the status: `INELIGIBLE`, `CONTENT_SAFETY_FLAGGED`,
|
|
11
|
+
* `PROMPT_ATTACK_FLAGGED`, `HANGUP`, `IN_PROGRESS`, `ERROR`, `NEGATIVE_FEEDBACK`, `ESCALATED`,
|
|
12
|
+
* then `RESOLVED`.
|
|
13
|
+
*
|
|
14
|
+
* Code applies these checks, except for one input: the AI summary of the transcript can report
|
|
15
|
+
* a handoff, which sets `ESCALATED`.
|
|
16
|
+
*
|
|
17
|
+
* Each status maps to one billing status (`BillableFilterField`): `RESOLVED` is billable;
|
|
18
|
+
* `ESCALATED`, `NEGATIVE_FEEDBACK`, `ERROR`, `IN_PROGRESS` and `INCOMPLETE` are not billable;
|
|
19
|
+
* the others are not eligible. These are labels. Volume-based pricing also bills not billable
|
|
20
|
+
* conversations. See
|
|
21
|
+
* [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
|
|
22
|
+
*/
|
|
5
23
|
exports.ResolutionStatus = {
|
|
24
|
+
/**
|
|
25
|
+
* Reserved. Not assigned to conversations today. Billing status: not eligible. Shown in
|
|
26
|
+
* Agent Designer as "Unknown". */
|
|
6
27
|
Unknown: "UNKNOWN",
|
|
28
|
+
/**
|
|
29
|
+
* The agent returned an empty response to a message. Billing status: not billable. Shown
|
|
30
|
+
* in Agent Designer as "Error". */
|
|
7
31
|
Error: "ERROR",
|
|
32
|
+
/**
|
|
33
|
+
* The agent has not responded yet. Billing status: not billable. Shown in Agent Designer
|
|
34
|
+
* as "In progress". */
|
|
8
35
|
InProgress: "IN_PROGRESS",
|
|
9
36
|
/**
|
|
10
|
-
*
|
|
37
|
+
* The agent responded and no other status applies. Billing status: billable, the only
|
|
38
|
+
* status that is. `resolvedByMaven` is `true` exactly when the status is `RESOLVED`. Shown
|
|
39
|
+
* in Agent Designer as "Resolved by Maven". */
|
|
11
40
|
Resolved: "RESOLVED",
|
|
41
|
+
/**
|
|
42
|
+
* The conversation was handed off to a human agent. Either an AI analysis of the
|
|
43
|
+
* transcript found a handoff, or a handoff action that Maven recognizes ran successfully.
|
|
44
|
+
* The AI analysis can be wrong. Once escalation is detected, later messages do not undo
|
|
45
|
+
* it, but the earlier checks, such as `NEGATIVE_FEEDBACK`, still take precedence. Copilot
|
|
46
|
+
* conversations are never `ESCALATED`. Billing status: not billable. Shown in Agent
|
|
47
|
+
* Designer as "Escalated". */
|
|
12
48
|
Escalated: "ESCALATED",
|
|
49
|
+
/**
|
|
50
|
+
* Reserved. Not assigned to conversations today. Billing status: not billable. Shown in
|
|
51
|
+
* Agent Designer as "Incomplete". */
|
|
13
52
|
Incomplete: "INCOMPLETE",
|
|
53
|
+
/**
|
|
54
|
+
* The end user or a human agent gave a thumbs down, or the average CSAT is below 50% of
|
|
55
|
+
* the maximum rating. An insert of an agent response overrides a thumbs down. Billing
|
|
56
|
+
* status: not billable. Shown in Agent Designer as "Negative feedback". */
|
|
14
57
|
NegativeFeedback: "NEGATIVE_FEEDBACK",
|
|
58
|
+
/**
|
|
59
|
+
* A message was flagged by content safety guardrails. Billing status: not eligible. Shown
|
|
60
|
+
* in Agent Designer as "Content safety flagged". */
|
|
15
61
|
ContentSafetyFlagged: "CONTENT_SAFETY_FLAGGED",
|
|
62
|
+
/**
|
|
63
|
+
* A message was flagged as a prompt injection attack. Billing status: not eligible. Shown
|
|
64
|
+
* in Agent Designer as "Prompt attack flagged". */
|
|
16
65
|
PromptAttackFlagged: "PROMPT_ATTACK_FLAGGED",
|
|
66
|
+
/**
|
|
67
|
+
* A voice call of 5 seconds or less, measured from the first message to the last. Billing
|
|
68
|
+
* status: not eligible. Shown in Agent Designer as "Hangup". */
|
|
17
69
|
Hangup: "HANGUP",
|
|
70
|
+
/**
|
|
71
|
+
* A copilot chat conversation. Billing status: not eligible. Shown in Agent Designer as
|
|
72
|
+
* "Ineligible". Not the same as the `INELIGIBLE` billing status, which covers every not
|
|
73
|
+
* eligible status. */
|
|
18
74
|
Ineligible: "INELIGIBLE",
|
|
19
75
|
};
|
|
@@ -10,7 +10,7 @@ MavenAGI.SimulationActionBehavior.FixedResponse
|
|
|
10
10
|
* The platform calls the action's app instead of returning a mocked result. */
|
|
11
11
|
| MavenAGI.SimulationActionBehavior.CallApp;
|
|
12
12
|
export declare namespace SimulationActionBehavior {
|
|
13
|
-
interface FixedResponse extends MavenAGI.
|
|
13
|
+
interface FixedResponse extends MavenAGI.SimulationFixedResponse {
|
|
14
14
|
type: "fixedResponse";
|
|
15
15
|
}
|
|
16
16
|
interface CallApp extends MavenAGI.SimulationActionCallApp {
|
|
@@ -2,7 +2,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* Conversations with a simulation context are the runs on the Agent Designer "Simulator" page.
|
|
4
4
|
*/
|
|
5
|
-
export interface SimulationContext {
|
|
5
|
+
export interface SimulationContext extends MavenAGI.SimulationSetupFields {
|
|
6
6
|
/**
|
|
7
7
|
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
8
8
|
*
|
|
@@ -27,27 +27,4 @@ export interface SimulationContext {
|
|
|
27
27
|
* keeps the variant it was created with.
|
|
28
28
|
*/
|
|
29
29
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
30
|
-
/**
|
|
31
|
-
* When true, the simulation evaluates the agent's charters even if charter evaluation is
|
|
32
|
-
* turned off for the agent. When absent or false, the simulation follows the agent's own
|
|
33
|
-
* charter evaluation setting, like any other conversation. While charters are evaluated,
|
|
34
|
-
* `additionalPromptText` has no effect. Not yet enabled for every agent: until it is, the
|
|
35
|
-
* value is stored and returned, and the agent's own setting applies. A conversation that
|
|
36
|
-
* already exists keeps the value it was created with.
|
|
37
|
-
*/
|
|
38
|
-
evaluateWithCharters?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* What the platform does when the agent executes each action during this simulation. At
|
|
41
|
-
* most one entry per action; a request that names an action twice is rejected. An action
|
|
42
|
-
* with no entry follows `defaultActionBehavior`. A conversation that already exists keeps
|
|
43
|
-
* the mocks and default it was created with.
|
|
44
|
-
*/
|
|
45
|
-
actionMocks?: MavenAGI.SimulationActionMock[];
|
|
46
|
-
/**
|
|
47
|
-
* What the platform does when the agent executes an action that has no `actionMocks`
|
|
48
|
-
* entry. When absent, the action's app is called as usual. A `fixedResponse` here keeps the
|
|
49
|
-
* simulation from calling any action's app that `actionMocks` doesn't name with `callApp`;
|
|
50
|
-
* its templates are rendered over the parameters of whichever action was called.
|
|
51
|
-
*/
|
|
52
|
-
defaultActionBehavior?: MavenAGI.SimulationActionBehavior;
|
|
53
30
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface SimulationFixedResponse extends MavenAGI.ExecuteActionResponse {
|
|
3
|
+
/**
|
|
4
|
+
* State the action would have changed. The platform writes it each time this mock answers,
|
|
5
|
+
* under the app that initialized the conversation; the mocked app is not called. Both
|
|
6
|
+
* writes are attempted; if either fails, the action's result is an error and the other
|
|
7
|
+
* write stays applied. `userData` patches the initializing app's profile of the user who
|
|
8
|
+
* sent the message that triggered the action: that user must be a `SIMULATION` user with a
|
|
9
|
+
* profile under that app. Allowed on an `actionMocks` entry, not on
|
|
10
|
+
* `defaultActionBehavior`, and not with an `ERROR` status: a failed action changes no
|
|
11
|
+
* state.
|
|
12
|
+
*/
|
|
13
|
+
effects?: MavenAGI.ActionEffects;
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* How a simulation evaluates charters and handles the actions the agent executes.
|
|
4
|
+
*/
|
|
5
|
+
export interface SimulationSetupFields {
|
|
6
|
+
/**
|
|
7
|
+
* When true, the simulation evaluates the agent's charters even if charter evaluation is
|
|
8
|
+
* turned off for the agent. When absent or false, the simulation follows the agent's own
|
|
9
|
+
* charter evaluation setting, like any other conversation. While charters are evaluated,
|
|
10
|
+
* `additionalPromptText` has no effect. Not yet enabled for every agent: until it is, the
|
|
11
|
+
* value is stored and returned, and the agent's own setting applies. A conversation that
|
|
12
|
+
* already exists keeps the value it was created with.
|
|
13
|
+
*/
|
|
14
|
+
evaluateWithCharters?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* What the platform does when the agent executes each action during this simulation. At
|
|
17
|
+
* most one entry per action; a request that names an action twice is rejected. An action
|
|
18
|
+
* with no entry follows `defaultActionBehavior`. A conversation that already exists keeps
|
|
19
|
+
* the mocks and default it was created with.
|
|
20
|
+
*/
|
|
21
|
+
actionMocks?: MavenAGI.SimulationActionMock[];
|
|
22
|
+
/**
|
|
23
|
+
* What the platform does when the agent executes an action that has no `actionMocks`
|
|
24
|
+
* entry. When absent, the action's app is called as usual. A `fixedResponse` here keeps the
|
|
25
|
+
* simulation from calling any action's app that `actionMocks` doesn't name with `callApp`;
|
|
26
|
+
* its templates are rendered over the parameters of whichever action was called.
|
|
27
|
+
*/
|
|
28
|
+
defaultActionBehavior?: MavenAGI.SimulationActionBehavior;
|
|
29
|
+
}
|