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
|
@@ -18,6 +18,7 @@ __exportStar(require("./ActionFormAttachment"), exports);
|
|
|
18
18
|
__exportStar(require("./ActionFormRequestParamValue"), exports);
|
|
19
19
|
__exportStar(require("./AskRequest"), exports);
|
|
20
20
|
__exportStar(require("./AskRequestBase"), exports);
|
|
21
|
+
__exportStar(require("./AskRequestFields"), exports);
|
|
21
22
|
__exportStar(require("./AskStreamActionEvent"), exports);
|
|
22
23
|
__exportStar(require("./AskStreamChartEvent"), exports);
|
|
23
24
|
__exportStar(require("./AskStreamEndEvent"), exports);
|
|
@@ -38,7 +39,10 @@ __exportStar(require("./ConversationsCursorSearchRequest"), exports);
|
|
|
38
39
|
__exportStar(require("./ConversationsCursorSearchResponse"), exports);
|
|
39
40
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
40
41
|
__exportStar(require("./ConversationsSearchRequest"), exports);
|
|
42
|
+
__exportStar(require("./DeliverAskRequest"), exports);
|
|
43
|
+
__exportStar(require("./DeliverContent"), exports);
|
|
41
44
|
__exportStar(require("./DeliverConversationMessageRequest"), exports);
|
|
45
|
+
__exportStar(require("./DeliverMessageBase"), exports);
|
|
42
46
|
__exportStar(require("./DeliverMessageRequest"), exports);
|
|
43
47
|
__exportStar(require("./DeliverMessageResponse"), exports);
|
|
44
48
|
__exportStar(require("./DeliverUserMessageRequest"), exports);
|
|
@@ -32,4 +32,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
32
32
|
export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase, MavenAGI.CapabilityBase {
|
|
33
33
|
/** ID that uniquely identifies this intelligent field */
|
|
34
34
|
fieldId: MavenAGI.EntityId;
|
|
35
|
+
/** Who wrote this version of the field. Absent when no one was recorded. Shown in Agent Designer as "Created by" on a field a variant adds. */
|
|
36
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
37
|
+
/** Who last changed this version of the field. Absent when no one was recorded. Shown in Agent Designer as "Modified by" on a field a variant changes. */
|
|
38
|
+
updatedBy?: MavenAGI.ChangeAuthor;
|
|
35
39
|
}
|
|
@@ -8,6 +8,8 @@ export declare const KnowledgeBaseType: {
|
|
|
8
8
|
readonly Api: "API";
|
|
9
9
|
readonly Url: "URL";
|
|
10
10
|
readonly Manual: "MANUAL";
|
|
11
|
+
/**
|
|
12
|
+
* No longer returned. RSS knowledge bases are `LEGACY`; filtering on `RSS` still matches them. */
|
|
11
13
|
readonly Rss: "RSS";
|
|
12
14
|
readonly Legacy: "LEGACY";
|
|
13
15
|
};
|
|
@@ -8,4 +8,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
8
8
|
export interface KnowledgeBaseVersionRequest {
|
|
9
9
|
/** Indicates whether the completed version constitutes a full or partial refresh of the knowledge base. Deleting and updating documents is only supported for partial refreshes. */
|
|
10
10
|
type: MavenAGI.KnowledgeBaseVersionType;
|
|
11
|
+
/** The Function versions that build this version. On a version, absent for historical versions and for versions created without them. */
|
|
12
|
+
functionVersions?: MavenAGI.KnowledgeBaseFunctionBindings;
|
|
11
13
|
}
|
|
@@ -103,8 +103,6 @@ export declare class OrganizationsClient {
|
|
|
103
103
|
delete(organizationReferenceId: string, requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
104
104
|
private __delete;
|
|
105
105
|
/**
|
|
106
|
-
* @beta This endpoint is in development and may change.
|
|
107
|
-
*
|
|
108
106
|
* Retrieves structured conversation data across all organizations, formatted as a table,
|
|
109
107
|
* allowing users to group, filter, and define specific metrics to display as columns.
|
|
110
108
|
*
|
|
@@ -156,8 +154,6 @@ export declare class OrganizationsClient {
|
|
|
156
154
|
getConversationTable(request: MavenAGI.ConversationTableRequest, requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationTableResponse>;
|
|
157
155
|
private __getConversationTable;
|
|
158
156
|
/**
|
|
159
|
-
* @beta This endpoint is in development and may change.
|
|
160
|
-
*
|
|
161
157
|
* Fetches conversation data across all organizations, visualized in a chart format.
|
|
162
158
|
* Supported chart types include pie chart, date histogram, and stacked bar charts.
|
|
163
159
|
*
|
|
@@ -464,8 +464,6 @@ class OrganizationsClient {
|
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
/**
|
|
467
|
-
* @beta This endpoint is in development and may change.
|
|
468
|
-
*
|
|
469
467
|
* Retrieves structured conversation data across all organizations, formatted as a table,
|
|
470
468
|
* allowing users to group, filter, and define specific metrics to display as columns.
|
|
471
469
|
*
|
|
@@ -599,8 +597,6 @@ class OrganizationsClient {
|
|
|
599
597
|
});
|
|
600
598
|
}
|
|
601
599
|
/**
|
|
602
|
-
* @beta This endpoint is in development and may change.
|
|
603
|
-
*
|
|
604
600
|
* Fetches conversation data across all organizations, visualized in a chart format.
|
|
605
601
|
* Supported chart types include pie chart, date histogram, and stacked bar charts.
|
|
606
602
|
*
|
|
@@ -101,6 +101,10 @@ export declare class UsersClient {
|
|
|
101
101
|
/**
|
|
102
102
|
* Update an app user or create it if it doesn't exist.
|
|
103
103
|
*
|
|
104
|
+
* <Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
|
|
105
|
+
*
|
|
106
|
+
* When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
|
|
107
|
+
*
|
|
104
108
|
* <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
105
109
|
*
|
|
106
110
|
* @param {MavenAGI.AppUserRequest} request
|
|
@@ -134,7 +138,9 @@ export declare class UsersClient {
|
|
|
134
138
|
createOrUpdate(request: MavenAGI.AppUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppUserResponse>;
|
|
135
139
|
private __createOrUpdate;
|
|
136
140
|
/**
|
|
137
|
-
* Get an app user by its supplied ID
|
|
141
|
+
* Get an app user by its supplied ID.
|
|
142
|
+
*
|
|
143
|
+
* Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
|
|
138
144
|
*
|
|
139
145
|
* <Note>**Required permission:** `read:agents`</Note>
|
|
140
146
|
*
|
|
@@ -380,6 +380,10 @@ class UsersClient {
|
|
|
380
380
|
/**
|
|
381
381
|
* Update an app user or create it if it doesn't exist.
|
|
382
382
|
*
|
|
383
|
+
* <Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
|
|
384
|
+
*
|
|
385
|
+
* When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
|
|
386
|
+
*
|
|
383
387
|
* <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
384
388
|
*
|
|
385
389
|
* @param {MavenAGI.AppUserRequest} request
|
|
@@ -495,7 +499,9 @@ class UsersClient {
|
|
|
495
499
|
});
|
|
496
500
|
}
|
|
497
501
|
/**
|
|
498
|
-
* Get an app user by its supplied ID
|
|
502
|
+
* Get an app user by its supplied ID.
|
|
503
|
+
*
|
|
504
|
+
* Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
|
|
499
505
|
*
|
|
500
506
|
* <Note>**Required permission:** `read:agents`</Note>
|
|
501
507
|
*
|
|
@@ -4,6 +4,6 @@ export interface AppUserSummary {
|
|
|
4
4
|
userId: MavenAGI.EntityId;
|
|
5
5
|
/** App provided identifiers for the user. */
|
|
6
6
|
identifiers: MavenAGI.AppUserIdentifier[];
|
|
7
|
-
/** App provided data masked
|
|
7
|
+
/** App provided data, masked by each value's visibility. `HIDDEN` values are returned as `********`, and `PARTIALLY_VISIBLE` values have all but their last 3 characters masked. The masking applies to this response only; `GET /users/{userId}` returns the full values. */
|
|
8
8
|
visibleData: Record<string, string>;
|
|
9
9
|
}
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1875,6 +1875,8 @@ Update app settings. Performs a merge of the provided settings with the existing
|
|
|
1875
1875
|
- No keys will be removed.
|
|
1876
1876
|
|
|
1877
1877
|
Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
1878
|
+
|
|
1879
|
+
Returns the full app settings after the merge, including keys that were not in the request. This is the same object that Get app settings returns.
|
|
1878
1880
|
</dd>
|
|
1879
1881
|
</dl>
|
|
1880
1882
|
</dd>
|
|
@@ -2013,6 +2015,11 @@ await client.assets.initiateUpload({
|
|
|
2013
2015
|
Commit an upload after successful file transfer.
|
|
2014
2016
|
Updates the asset status and makes it available for use.
|
|
2015
2017
|
|
|
2018
|
+
An asset is committed once. Committing it again with the same checksum is safe while its file
|
|
2019
|
+
is unchanged, so a client can retry a commit; a different checksum returns a 409. Once
|
|
2020
|
+
committed, don't write to the upload URL again, even with the same bytes: committing after
|
|
2021
|
+
that may return a 409, and the file then has to be uploaded as a new asset.
|
|
2022
|
+
|
|
2016
2023
|
<Note>**Required permission:** `ask:agent`</Note>
|
|
2017
2024
|
</dd>
|
|
2018
2025
|
</dl>
|
|
@@ -2350,8 +2357,12 @@ conversation or agent user has to exist first. The capability is told its mode i
|
|
|
2350
2357
|
`SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
|
|
2351
2358
|
effects in real systems. Nothing here runs a capability live.
|
|
2352
2359
|
|
|
2353
|
-
|
|
2354
|
-
|
|
2360
|
+
A simulated run is not recorded. It returns its result here and never appears in
|
|
2361
|
+
capability execution search.
|
|
2362
|
+
|
|
2363
|
+
Actions, conversation kickoffs and event triggers can be simulated today. An event trigger
|
|
2364
|
+
is given one event the caller describes in full; the event is never stored, and its user
|
|
2365
|
+
does not have to exist. Intelligent fields cannot be simulated.
|
|
2355
2366
|
|
|
2356
2367
|
<Note>**Required permission:** `create:simulations`</Note>
|
|
2357
2368
|
</dd>
|
|
@@ -3507,7 +3518,7 @@ Non-simulation conversations remain visible; they cannot be fully removed from t
|
|
|
3507
3518
|
<Warning>This is a destructive operation and cannot be undone. <br/><br/>
|
|
3508
3519
|
What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
|
|
3509
3520
|
Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
3510
|
-
Evaluation results for the conversation are deleted,
|
|
3521
|
+
Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
|
|
3511
3522
|
What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
|
|
3512
3523
|
|
|
3513
3524
|
<Note>**Required permission:** `delete:conversations`</Note>
|
|
@@ -4122,6 +4133,8 @@ Replaced by `updateConversationMetadata`.
|
|
|
4122
4133
|
|
|
4123
4134
|
Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
|
|
4124
4135
|
|
|
4136
|
+
When a metadata size limit is enforced for the agent, each entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
|
|
4137
|
+
|
|
4125
4138
|
A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
4126
4139
|
</dd>
|
|
4127
4140
|
</dl>
|
|
@@ -4504,11 +4517,26 @@ await client.conversation.export({});
|
|
|
4504
4517
|
|
|
4505
4518
|
Deliver a message to a user or conversation.
|
|
4506
4519
|
|
|
4520
|
+
Send `content` with `contentType: message` to deliver a message as written, or `contentType: ask`
|
|
4521
|
+
to have the agent take a `WELCOME` or `PROACTIVE` turn and deliver its reply. Either way the app
|
|
4522
|
+
that owns the conversation receives the message through its `handleMessage` hook.
|
|
4523
|
+
|
|
4507
4524
|
A closed conversation (`open` set to false) takes no new messages and returns a 400.
|
|
4508
4525
|
|
|
4526
|
+
To reach a user rather than a known conversation, send `type: user`. The message goes to one of that
|
|
4527
|
+
user's open conversations, chosen as described on `appIds`. The response's `conversationId` names the
|
|
4528
|
+
conversation it went to.
|
|
4529
|
+
|
|
4509
4530
|
<Warning>
|
|
4510
4531
|
Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability.
|
|
4511
|
-
|
|
4532
|
+
Delivering to a user only reaches a conversation that already exists; it never starts a new one.
|
|
4533
|
+
</Warning>
|
|
4534
|
+
|
|
4535
|
+
<Warning>
|
|
4536
|
+
Retrying a delivery is not supported. Sending the same `conversationMessageId` again saves the message, or an
|
|
4537
|
+
`ask`'s reply, only once in a conversation, but calls the app's `handleMessage` hook again each time. With
|
|
4538
|
+
`type: user`, a repeat can also go to a different conversation if the user's conversations changed in between,
|
|
4539
|
+
so the message is saved and delivered twice.
|
|
4512
4540
|
</Warning>
|
|
4513
4541
|
|
|
4514
4542
|
<Note>**Required permission:** `ask:agent`</Note>
|
|
@@ -4527,21 +4555,22 @@ User message delivery is not yet supported and returns a 400.
|
|
|
4527
4555
|
|
|
4528
4556
|
```typescript
|
|
4529
4557
|
await client.conversation.deliverMessage({
|
|
4530
|
-
type: "
|
|
4531
|
-
|
|
4532
|
-
type: "
|
|
4533
|
-
appId: "
|
|
4534
|
-
referenceId: "
|
|
4558
|
+
type: "conversation",
|
|
4559
|
+
conversationId: {
|
|
4560
|
+
type: "CONVERSATION",
|
|
4561
|
+
appId: "chat-app",
|
|
4562
|
+
referenceId: "conversation-0"
|
|
4535
4563
|
},
|
|
4536
|
-
|
|
4564
|
+
content: {
|
|
4565
|
+
contentType: "message",
|
|
4537
4566
|
conversationMessageId: {
|
|
4538
|
-
referenceId: "
|
|
4567
|
+
referenceId: "message-0"
|
|
4539
4568
|
},
|
|
4540
4569
|
userId: {
|
|
4541
|
-
referenceId: "
|
|
4570
|
+
referenceId: "human-agent-0"
|
|
4542
4571
|
},
|
|
4543
|
-
text: "
|
|
4544
|
-
userMessageType: "
|
|
4572
|
+
text: "Hi, I'm Priya. I can help with your refund.",
|
|
4573
|
+
userMessageType: "HUMAN_AGENT"
|
|
4545
4574
|
}
|
|
4546
4575
|
});
|
|
4547
4576
|
|
|
@@ -9040,6 +9069,10 @@ await client.users.deleteAgentUser("aus_1234567890");
|
|
|
9040
9069
|
|
|
9041
9070
|
Update an app user or create it if it doesn't exist.
|
|
9042
9071
|
|
|
9072
|
+
<Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
|
|
9073
|
+
|
|
9074
|
+
When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
|
|
9075
|
+
|
|
9043
9076
|
<Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
9044
9077
|
</dd>
|
|
9045
9078
|
</dl>
|
|
@@ -9117,7 +9150,9 @@ await client.users.createOrUpdate({
|
|
|
9117
9150
|
<dl>
|
|
9118
9151
|
<dd>
|
|
9119
9152
|
|
|
9120
|
-
Get an app user by its supplied ID
|
|
9153
|
+
Get an app user by its supplied ID.
|
|
9154
|
+
|
|
9155
|
+
Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
|
|
9121
9156
|
|
|
9122
9157
|
<Note>**Required permission:** `read:agents`</Note>
|
|
9123
9158
|
</dd>
|
|
@@ -2,21 +2,11 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
|
-
import {
|
|
6
|
-
import { CapabilityExecutionCompletionReason } from "./CapabilityExecutionCompletionReason";
|
|
7
|
-
import { CapabilityExecutionStatus } from "./CapabilityExecutionStatus";
|
|
5
|
+
import { CapabilityRunBase } from "./CapabilityRunBase";
|
|
8
6
|
export declare const CapabilityExecutionBase: core.serialization.ObjectSchema<serializers.CapabilityExecutionBase.Raw, MavenAGI.CapabilityExecutionBase>;
|
|
9
7
|
export declare namespace CapabilityExecutionBase {
|
|
10
|
-
interface Raw {
|
|
11
|
-
capabilityId: EntityId.Raw;
|
|
8
|
+
interface Raw extends CapabilityRunBase.Raw {
|
|
12
9
|
subjectId: EntityId.Raw;
|
|
13
|
-
status: CapabilityExecutionStatus.Raw;
|
|
14
|
-
completionReason?: CapabilityExecutionCompletionReason.Raw | null;
|
|
15
|
-
message?: string | null;
|
|
16
|
-
startedAt: string;
|
|
17
|
-
completedAt?: string | null;
|
|
18
|
-
durationMs?: number | null;
|
|
19
10
|
createdAt: string;
|
|
20
|
-
executionMode: ExecutionMode.Raw;
|
|
21
11
|
}
|
|
22
12
|
}
|
|
@@ -37,18 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CapabilityExecutionBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
exports.CapabilityExecutionBase = core.serialization.object({
|
|
44
|
-
capabilityId: EntityId_1.EntityId,
|
|
40
|
+
const CapabilityRunBase_1 = require("./CapabilityRunBase");
|
|
41
|
+
exports.CapabilityExecutionBase = core.serialization
|
|
42
|
+
.object({
|
|
45
43
|
subjectId: EntityId_1.EntityId,
|
|
46
|
-
status: CapabilityExecutionStatus_1.CapabilityExecutionStatus,
|
|
47
|
-
completionReason: CapabilityExecutionCompletionReason_1.CapabilityExecutionCompletionReason.optional(),
|
|
48
|
-
message: core.serialization.string().optional(),
|
|
49
|
-
startedAt: core.serialization.date(),
|
|
50
|
-
completedAt: core.serialization.date().optional(),
|
|
51
|
-
durationMs: core.serialization.number().optional(),
|
|
52
44
|
createdAt: core.serialization.date(),
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
})
|
|
46
|
+
.extend(CapabilityRunBase_1.CapabilityRunBase);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
5
|
+
import { ExecutionMode } from "../../commons/types/ExecutionMode";
|
|
6
|
+
import { CapabilityExecutionCompletionReason } from "./CapabilityExecutionCompletionReason";
|
|
7
|
+
import { CapabilityExecutionStatus } from "./CapabilityExecutionStatus";
|
|
8
|
+
export declare const CapabilityRunBase: core.serialization.ObjectSchema<serializers.CapabilityRunBase.Raw, MavenAGI.CapabilityRunBase>;
|
|
9
|
+
export declare namespace CapabilityRunBase {
|
|
10
|
+
interface Raw {
|
|
11
|
+
capabilityId: EntityId.Raw;
|
|
12
|
+
status: CapabilityExecutionStatus.Raw;
|
|
13
|
+
completionReason?: CapabilityExecutionCompletionReason.Raw | null;
|
|
14
|
+
message?: string | null;
|
|
15
|
+
startedAt: string;
|
|
16
|
+
completedAt?: string | null;
|
|
17
|
+
durationMs?: number | null;
|
|
18
|
+
executionMode: ExecutionMode.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CapabilityRunBase = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
|
+
const ExecutionMode_1 = require("../../commons/types/ExecutionMode");
|
|
41
|
+
const CapabilityExecutionCompletionReason_1 = require("./CapabilityExecutionCompletionReason");
|
|
42
|
+
const CapabilityExecutionStatus_1 = require("./CapabilityExecutionStatus");
|
|
43
|
+
exports.CapabilityRunBase = core.serialization.object({
|
|
44
|
+
capabilityId: EntityId_1.EntityId,
|
|
45
|
+
status: CapabilityExecutionStatus_1.CapabilityExecutionStatus,
|
|
46
|
+
completionReason: CapabilityExecutionCompletionReason_1.CapabilityExecutionCompletionReason.optional(),
|
|
47
|
+
message: core.serialization.string().optional(),
|
|
48
|
+
startedAt: core.serialization.date(),
|
|
49
|
+
completedAt: core.serialization.date().optional(),
|
|
50
|
+
durationMs: core.serialization.number().optional(),
|
|
51
|
+
executionMode: ExecutionMode_1.ExecutionMode,
|
|
52
|
+
});
|
|
@@ -2,10 +2,18 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { ActionSimulationInput } from "./ActionSimulationInput";
|
|
5
|
+
import { ConversationKickoffSimulationInput } from "./ConversationKickoffSimulationInput";
|
|
6
|
+
import { TriggerSimulationInput } from "./TriggerSimulationInput";
|
|
5
7
|
export declare const CapabilitySimulationInput: core.serialization.Schema<serializers.CapabilitySimulationInput.Raw, MavenAGI.CapabilitySimulationInput>;
|
|
6
8
|
export declare namespace CapabilitySimulationInput {
|
|
7
|
-
type Raw = CapabilitySimulationInput.Action;
|
|
9
|
+
type Raw = CapabilitySimulationInput.Action | CapabilitySimulationInput.ConversationKickoff | CapabilitySimulationInput.Trigger;
|
|
8
10
|
interface Action extends ActionSimulationInput.Raw {
|
|
9
11
|
capabilityType: "ACTION";
|
|
10
12
|
}
|
|
13
|
+
interface ConversationKickoff extends ConversationKickoffSimulationInput.Raw {
|
|
14
|
+
capabilityType: "CONVERSATION_KICKOFF";
|
|
15
|
+
}
|
|
16
|
+
interface Trigger extends TriggerSimulationInput.Raw {
|
|
17
|
+
capabilityType: "TRIGGER";
|
|
18
|
+
}
|
|
11
19
|
}
|
|
@@ -37,9 +37,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CapabilitySimulationInput = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const ActionSimulationInput_1 = require("./ActionSimulationInput");
|
|
40
|
+
const ConversationKickoffSimulationInput_1 = require("./ConversationKickoffSimulationInput");
|
|
41
|
+
const TriggerSimulationInput_1 = require("./TriggerSimulationInput");
|
|
40
42
|
exports.CapabilitySimulationInput = core.serialization
|
|
41
43
|
.union("capabilityType", {
|
|
42
44
|
ACTION: ActionSimulationInput_1.ActionSimulationInput,
|
|
45
|
+
CONVERSATION_KICKOFF: ConversationKickoffSimulationInput_1.ConversationKickoffSimulationInput,
|
|
46
|
+
TRIGGER: TriggerSimulationInput_1.TriggerSimulationInput,
|
|
43
47
|
})
|
|
44
48
|
.transform({
|
|
45
49
|
transform: (value) => value,
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
|
+
import { ConversationKickoffExecutionResponse } from "../../commons/types/ConversationKickoffExecutionResponse";
|
|
4
5
|
import { ExecuteActionResponse } from "../../commons/types/ExecuteActionResponse";
|
|
6
|
+
import { TriggerSimulationResult } from "./TriggerSimulationResult";
|
|
5
7
|
export declare const CapabilitySimulationResult: core.serialization.Schema<serializers.CapabilitySimulationResult.Raw, MavenAGI.CapabilitySimulationResult>;
|
|
6
8
|
export declare namespace CapabilitySimulationResult {
|
|
7
|
-
type Raw = CapabilitySimulationResult.Action;
|
|
9
|
+
type Raw = CapabilitySimulationResult.Action | CapabilitySimulationResult.ConversationKickoff | CapabilitySimulationResult.Trigger;
|
|
8
10
|
interface Action extends ExecuteActionResponse.Raw {
|
|
9
11
|
capabilityType: "ACTION";
|
|
10
12
|
}
|
|
13
|
+
interface ConversationKickoff extends ConversationKickoffExecutionResponse.Raw {
|
|
14
|
+
capabilityType: "CONVERSATION_KICKOFF";
|
|
15
|
+
}
|
|
16
|
+
interface Trigger extends TriggerSimulationResult.Raw {
|
|
17
|
+
capabilityType: "TRIGGER";
|
|
18
|
+
}
|
|
11
19
|
}
|
|
@@ -36,10 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.CapabilitySimulationResult = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ConversationKickoffExecutionResponse_1 = require("../../commons/types/ConversationKickoffExecutionResponse");
|
|
39
40
|
const ExecuteActionResponse_1 = require("../../commons/types/ExecuteActionResponse");
|
|
41
|
+
const TriggerSimulationResult_1 = require("./TriggerSimulationResult");
|
|
40
42
|
exports.CapabilitySimulationResult = core.serialization
|
|
41
43
|
.union("capabilityType", {
|
|
42
44
|
ACTION: ExecuteActionResponse_1.ExecuteActionResponse,
|
|
45
|
+
CONVERSATION_KICKOFF: ConversationKickoffExecutionResponse_1.ConversationKickoffExecutionResponse,
|
|
46
|
+
TRIGGER: TriggerSimulationResult_1.TriggerSimulationResult,
|
|
43
47
|
})
|
|
44
48
|
.transform({
|
|
45
49
|
transform: (value) => value,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ConversationContextSimulationInput } from "./ConversationContextSimulationInput";
|
|
5
|
+
export declare const ConversationKickoffSimulationInput: core.serialization.ObjectSchema<serializers.ConversationKickoffSimulationInput.Raw, MavenAGI.ConversationKickoffSimulationInput>;
|
|
6
|
+
export declare namespace ConversationKickoffSimulationInput {
|
|
7
|
+
interface Raw extends ConversationContextSimulationInput.Raw {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ConversationKickoffSimulationInput = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ConversationContextSimulationInput_1 = require("./ConversationContextSimulationInput");
|
|
40
|
+
exports.ConversationKickoffSimulationInput = core.serialization.object({}).extend(ConversationContextSimulationInput_1.ConversationContextSimulationInput);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
|
-
import { EventTriggerType } from "../../commons/types/EventTriggerType";
|
|
5
4
|
import { CapabilityExecutionBase } from "./CapabilityExecutionBase";
|
|
6
|
-
import {
|
|
5
|
+
import { TriggerRunDetails } from "./TriggerRunDetails";
|
|
7
6
|
export declare const TriggerCapabilityExecution: core.serialization.ObjectSchema<serializers.TriggerCapabilityExecution.Raw, MavenAGI.TriggerCapabilityExecution>;
|
|
8
7
|
export declare namespace TriggerCapabilityExecution {
|
|
9
|
-
interface Raw extends CapabilityExecutionBase.Raw {
|
|
10
|
-
eventType: EventTriggerType.Raw;
|
|
8
|
+
interface Raw extends CapabilityExecutionBase.Raw, TriggerRunDetails.Raw {
|
|
11
9
|
attempt: number;
|
|
12
|
-
retryability?: CapabilityExecutionRetryability.Raw | null;
|
|
13
|
-
httpStatus?: number | null;
|
|
14
10
|
}
|
|
15
11
|
}
|
|
@@ -36,14 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TriggerCapabilityExecution = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
|
|
40
39
|
const CapabilityExecutionBase_1 = require("./CapabilityExecutionBase");
|
|
41
|
-
const
|
|
40
|
+
const TriggerRunDetails_1 = require("./TriggerRunDetails");
|
|
42
41
|
exports.TriggerCapabilityExecution = core.serialization
|
|
43
42
|
.object({
|
|
44
|
-
eventType: EventTriggerType_1.EventTriggerType,
|
|
45
43
|
attempt: core.serialization.number(),
|
|
46
|
-
retryability: CapabilityExecutionRetryability_1.CapabilityExecutionRetryability.optional(),
|
|
47
|
-
httpStatus: core.serialization.number().optional(),
|
|
48
44
|
})
|
|
49
|
-
.extend(CapabilityExecutionBase_1.CapabilityExecutionBase)
|
|
45
|
+
.extend(CapabilityExecutionBase_1.CapabilityExecutionBase)
|
|
46
|
+
.extend(TriggerRunDetails_1.TriggerRunDetails);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EventTriggerType } from "../../commons/types/EventTriggerType";
|
|
5
|
+
import { CapabilityExecutionRetryability } from "./CapabilityExecutionRetryability";
|
|
6
|
+
export declare const TriggerRunDetails: core.serialization.ObjectSchema<serializers.TriggerRunDetails.Raw, MavenAGI.TriggerRunDetails>;
|
|
7
|
+
export declare namespace TriggerRunDetails {
|
|
8
|
+
interface Raw {
|
|
9
|
+
eventType: EventTriggerType.Raw;
|
|
10
|
+
retryability?: CapabilityExecutionRetryability.Raw | null;
|
|
11
|
+
httpStatus?: number | null;
|
|
12
|
+
}
|
|
13
|
+
}
|