mavenagi 1.2.63 → 1.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.js +2 -2
- package/api/resources/actions/client/Client.js +3 -3
- package/api/resources/agents/client/Client.js +5 -5
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +23 -3
- package/api/resources/agents/types/Agent.d.ts +9 -1
- package/api/resources/agents/types/AgentPrompting.d.ts +14 -2
- package/api/resources/appDirectory/client/Client.js +5 -5
- package/api/resources/assets/client/Client.js +1 -1
- package/api/resources/capabilities/client/Client.d.ts +68 -0
- package/api/resources/capabilities/client/Client.js +243 -3
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +4 -1
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +3 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
- package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
- package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +2 -0
- package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
- package/api/resources/capabilities/types/ActionSimulationInput.js +3 -0
- package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
- package/api/resources/capabilities/types/CapabilityExecution.js +3 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.js +3 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
- package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
- package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
- package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
- package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
- package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
- package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/api/resources/capabilities/types/CapabilitySimulationInput.js +3 -0
- package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
- package/api/resources/capabilities/types/CapabilitySimulationResult.js +3 -0
- package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
- package/api/resources/capabilities/types/ConversationContextSimulationInput.js +3 -0
- package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
- package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
- package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
- package/api/resources/capabilities/types/SimulatedUser.js +3 -0
- package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
- package/api/resources/capabilities/types/SimulatedUserData.js +3 -0
- package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
- package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +14 -0
- package/api/resources/capabilities/types/index.js +14 -0
- package/api/resources/charters/client/Client.js +7 -5
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +9 -1
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
- package/api/resources/charters/types/CharterBase.d.ts +9 -4
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
- package/api/resources/charters/types/CharterContent.d.ts +2 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
- package/api/resources/charters/types/CharterReferences.d.ts +2 -0
- package/api/resources/charters/types/CharterResponse.d.ts +5 -1
- package/api/resources/charters/types/CharterSearchFilter.d.ts +9 -1
- package/api/resources/charters/types/CharterStatus.d.ts +4 -0
- package/api/resources/charters/types/CharterStatus.js +4 -0
- package/api/resources/charters/types/CharterSummary.d.ts +5 -1
- package/api/resources/charters/types/index.d.ts +0 -1
- package/api/resources/charters/types/index.js +0 -1
- package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
- package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
- package/api/resources/commons/types/ActionProperties.d.ts +1 -1
- package/api/resources/commons/types/AdditionalDataKey.d.ts +3 -0
- package/api/resources/commons/types/AdditionalDataKey.js +3 -0
- package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
- package/api/resources/commons/types/BotLogicCharterDetail.d.ts +3 -1
- package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
- package/api/resources/commons/types/BotMessage.d.ts +5 -0
- package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
- package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
- package/api/resources/commons/types/Capability.d.ts +4 -0
- package/api/resources/commons/types/Capability.js +4 -0
- package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
- package/api/resources/commons/types/CapabilityStatus.js +2 -2
- package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -2
- package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
- package/api/resources/commons/types/ConversationMetadataValueSource.js +3 -0
- package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
- package/api/resources/commons/types/ConversationValueSource.d.ts +10 -0
- package/api/resources/commons/types/ConversationValueSource.js +3 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -0
- package/api/resources/commons/types/EntityType.js +5 -0
- package/api/resources/commons/types/ErrorReason.d.ts +6 -0
- package/api/resources/commons/types/ErrorReason.js +6 -0
- package/api/resources/commons/types/EventFilter.d.ts +1 -0
- package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
- package/api/resources/commons/types/ExecuteActionResponse.js +3 -0
- package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
- package/api/resources/commons/types/ExecutionMode.js +13 -0
- package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
- package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
- package/api/resources/commons/types/InboxItemStatus.js +1 -1
- package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
- package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
- package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
- package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
- package/api/resources/commons/types/Quality.d.ts +2 -0
- package/api/resources/commons/types/Quality.js +2 -0
- package/api/resources/commons/types/QualityReason.d.ts +4 -0
- package/api/resources/commons/types/QualityReason.js +4 -0
- package/api/resources/commons/types/RelationshipType.d.ts +2 -2
- package/api/resources/commons/types/RelationshipType.js +2 -2
- package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
- package/api/resources/commons/types/ResolutionStatus.js +2 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
- package/api/resources/commons/types/SimulationActionBehavior.d.ts +18 -0
- package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
- package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
- package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
- package/api/resources/commons/types/SimulationActionMock.d.ts +6 -0
- package/api/resources/commons/types/SimulationActionMock.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +19 -0
- package/api/resources/commons/types/SystemEventName.d.ts +5 -2
- package/api/resources/commons/types/SystemEventName.js +5 -2
- package/api/resources/commons/types/UserEvent.d.ts +1 -1
- package/api/resources/commons/types/UserEventName.d.ts +1 -1
- package/api/resources/commons/types/UserEventName.js +1 -1
- package/api/resources/commons/types/index.d.ts +12 -0
- package/api/resources/commons/types/index.js +12 -0
- package/api/resources/conversation/client/Client.d.ts +17 -9
- package/api/resources/conversation/client/Client.js +27 -19
- package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
- package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
- package/api/resources/conversation/types/BillableFilterField.js +3 -3
- package/api/resources/conversation/types/ConversationField.d.ts +8 -0
- package/api/resources/conversation/types/ConversationField.js +8 -0
- package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
- package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
- package/api/resources/customers/client/Client.js +2 -2
- package/api/resources/customers/types/CustomerFilter.d.ts +16 -1
- package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/inbox/client/Client.js +6 -6
- package/api/resources/integrations/client/Client.js +1 -1
- package/api/resources/intelligentFields/client/Client.d.ts +4 -3
- package/api/resources/intelligentFields/client/Client.js +7 -6
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
- package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +5 -4
- package/api/resources/knowledge/client/Client.js +13 -13
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
- package/api/resources/organizations/client/Client.js +4 -4
- package/api/resources/segments/client/Client.d.ts +1 -1
- package/api/resources/segments/client/Client.js +4 -4
- package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
- package/api/resources/segments/types/SegmentStatus.js +4 -0
- package/api/resources/triggers/client/Client.js +3 -3
- package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
- package/api/resources/users/client/Client.d.ts +42 -1
- package/api/resources/users/client/Client.js +116 -4
- package/api/resources/users/types/AgentUser.d.ts +3 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
- package/api/resources/voiceConversations/client/Client.d.ts +1 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
- package/api/resources/voiceConversations/client/Socket.js +16 -17
- package/core/fetcher/Fetcher.js +33 -3
- package/core/fetcher/getErrorResponseBody.js +20 -7
- package/core/fetcher/getResponseBody.d.ts +16 -0
- package/core/fetcher/getResponseBody.js +27 -22
- package/core/fetcher/makePassthroughRequest.js +20 -4
- package/core/fetcher/makeRequest.d.ts +6 -1
- package/core/fetcher/makeRequest.js +38 -5
- package/core/fetcher/requestWithRetries.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +23 -2
- package/core/fetcher/signals.d.ts +1 -0
- package/core/fetcher/signals.js +3 -2
- package/core/stream/Stream.d.ts +3 -0
- package/core/stream/Stream.js +5 -0
- package/core/url/encodePathParam.d.ts +3 -1
- package/core/url/encodePathParam.js +8 -2
- package/core/websocket/ws.d.ts +16 -2
- package/core/websocket/ws.js +110 -20
- package/errors/MavenAGIError.js +16 -2
- package/package.json +1 -1
- package/reference.md +273 -13
- package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
- package/serialization/resources/agents/types/Agent.d.ts +2 -0
- package/serialization/resources/agents/types/Agent.js +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/requests/index.js +3 -1
- package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
- package/serialization/resources/capabilities/types/ActionSimulationInput.js +44 -0
- package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
- package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionStatus.js +39 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +47 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +47 -0
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
- package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
- package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
- package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
- package/serialization/resources/capabilities/types/SimulatedUser.js +44 -0
- package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
- package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
- package/serialization/resources/capabilities/types/index.d.ts +14 -0
- package/serialization/resources/capabilities/types/index.js +14 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
- package/serialization/resources/charters/types/CharterContent.js +1 -1
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
- package/serialization/resources/charters/types/CharterResponse.js +1 -1
- package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
- package/serialization/resources/charters/types/CharterSummary.js +1 -1
- package/serialization/resources/charters/types/index.d.ts +0 -1
- package/serialization/resources/charters/types/index.js +0 -1
- package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
- package/serialization/resources/commons/types/ActionExecutionStatus.js +39 -0
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
- package/serialization/resources/commons/types/AdditionalDataKey.js +1 -0
- package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
- package/serialization/resources/commons/types/AppUserRequest.js +2 -0
- package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
- package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/serialization/resources/commons/types/BotMessage.js +2 -0
- package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
- package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
- package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
- package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
- package/serialization/resources/commons/types/ConversationValueSource.d.ts +11 -0
- package/serialization/resources/commons/types/ConversationValueSource.js +47 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +5 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
- package/serialization/resources/commons/types/ErrorReason.js +2 -0
- package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
- package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
- package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
- package/serialization/resources/commons/types/ExecutionMode.js +39 -0
- package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
- package/serialization/resources/commons/types/FunctionVersionBinding.js +43 -0
- package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
- package/serialization/resources/commons/types/MetadataFilter.js +2 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
- package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
- package/serialization/resources/commons/types/SimulationActionCallApp.js +39 -0
- package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
- package/serialization/resources/commons/types/SimulationActionMock.js +44 -0
- package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
- package/serialization/resources/commons/types/SimulationContext.js +4 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +12 -0
- package/serialization/resources/commons/types/index.js +12 -0
- package/serialization/resources/users/types/AgentUser.d.ts +2 -0
- package/serialization/resources/users/types/AgentUser.js +2 -0
- package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
- package/serialization/resources/users/types/AgentUserFilter.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
|
@@ -28,7 +28,10 @@ export interface CapabilitiesSearchRequest extends MavenAGI.BaseCappedPaginatedR
|
|
|
28
28
|
* The agent variant to read intelligent field versions through. Required on an agent
|
|
29
29
|
* with versioned intelligent fields unless `capabilityTypes` excludes them; a
|
|
30
30
|
* request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
|
|
31
|
-
* if omitted, the agent's only variant is used.
|
|
31
|
+
* if omitted, the agent's only variant is used, as its snapshot has it. When a
|
|
32
|
+
* variant is named, its staged edits are included: each field is listed once, at its
|
|
33
|
+
* staged edit if it has one, and a field deleted in the variant, whether the delete is
|
|
34
|
+
* staged or already in its snapshot, is left out.
|
|
32
35
|
*/
|
|
33
36
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
34
37
|
/** Deprecated, use `variantId`, which wins when both are set. */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* subjectIds: [{
|
|
6
|
+
* referenceId: "conversation-123",
|
|
7
|
+
* appId: "zendesk",
|
|
8
|
+
* organizationId: "acme",
|
|
9
|
+
* agentId: "support",
|
|
10
|
+
* type: "CONVERSATION"
|
|
11
|
+
* }]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface CapabilityExecutionsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Only return executions for these subjects: conversations, inbox items or events.
|
|
17
|
+
* Same shape as the `subjectId` on a returned execution. At most 100 ids.
|
|
18
|
+
*
|
|
19
|
+
* Filtering by feedback is not supported and is rejected with a 400. Feedback
|
|
20
|
+
* subjects come only from deprecated `FEEDBACK_CREATED` triggers; switch those to
|
|
21
|
+
* `EVENT_CREATED` triggers, whose event subjects can be filtered on.
|
|
22
|
+
*/
|
|
23
|
+
subjectIds?: MavenAGI.EntityId[];
|
|
24
|
+
/**
|
|
25
|
+
* Only return executions of these kinds of capability. Event Triggers and
|
|
26
|
+
* Conversation Kickoffs record executions today.
|
|
27
|
+
*/
|
|
28
|
+
capabilityTypes?: MavenAGI.CapabilityType[];
|
|
29
|
+
/**
|
|
30
|
+
* Only return executions of these capabilities. Same shape as the `capabilityId` on
|
|
31
|
+
* a returned execution. At most 100 ids.
|
|
32
|
+
*/
|
|
33
|
+
capabilityIds?: MavenAGI.EntityId[];
|
|
34
|
+
/** Only return executions in these states. */
|
|
35
|
+
statuses?: MavenAGI.CapabilityExecutionStatus[];
|
|
36
|
+
}
|
|
@@ -12,7 +12,10 @@ export interface GetCapabilityByTypeRequest {
|
|
|
12
12
|
* The agent variant to read an intelligent field through, by reference ID.
|
|
13
13
|
* Required for an intelligent field on an agent with versioned intelligent fields; a
|
|
14
14
|
* request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
|
|
15
|
-
* if omitted, the agent's only variant is used.
|
|
15
|
+
* if omitted, the agent's only variant is used, as its snapshot has it. When a variant
|
|
16
|
+
* is named, its staged edits are included: a field with a staged edit is returned at
|
|
17
|
+
* that edit, a field created in the variant is returned, and a field deleted in the
|
|
18
|
+
* variant, whether the delete is staged or already in its snapshot, returns 404.
|
|
16
19
|
* The other capability types aren't versioned and are the same in every variant,
|
|
17
20
|
* though a named variant must still exist.
|
|
18
21
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* body: {
|
|
6
|
+
* capabilityType: "ACTION"
|
|
7
|
+
* }
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SimulateCapabilityByTypeRequest {
|
|
11
|
+
/** The app that owns the capability. Defaults to the calling app. */
|
|
12
|
+
appId?: string;
|
|
13
|
+
body: MavenAGI.CapabilitySimulationInput;
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
|
|
2
|
+
export type { CapabilityExecutionsSearchRequest } from "./CapabilityExecutionsSearchRequest";
|
|
2
3
|
export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
|
|
3
4
|
export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
|
|
4
5
|
export type { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
|
|
6
|
+
export type { SimulateCapabilityByTypeRequest } from "./SimulateCapabilityByTypeRequest";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* One run of one capability for one subject, with its outcome and timing. The fields every
|
|
4
|
+
* kind of execution has are on CapabilityExecutionBase; the rest sit with its `capabilityType`.
|
|
5
|
+
*/
|
|
6
|
+
export type CapabilityExecution = MavenAGI.CapabilityExecution.Trigger | MavenAGI.CapabilityExecution.ConversationKickoff;
|
|
7
|
+
export declare namespace CapabilityExecution {
|
|
8
|
+
interface Trigger extends MavenAGI.TriggerCapabilityExecution {
|
|
9
|
+
capabilityType: "TRIGGER";
|
|
10
|
+
}
|
|
11
|
+
interface ConversationKickoff extends MavenAGI.ConversationKickoffCapabilityExecution {
|
|
12
|
+
capabilityType: "CONVERSATION_KICKOFF";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface CapabilityExecutionBase {
|
|
3
|
+
/** The capability that ran. */
|
|
4
|
+
capabilityId: MavenAGI.EntityId;
|
|
5
|
+
/**
|
|
6
|
+
* What it ran for: a conversation, inbox item or event. The same shape `subjectIds`
|
|
7
|
+
* accepts, so it can be fed straight back in as a filter.
|
|
8
|
+
*
|
|
9
|
+
* A deprecated `FEEDBACK_CREATED` trigger records a feedback here, which `subjectIds`
|
|
10
|
+
* cannot filter on. Switch those triggers to `EVENT_CREATED`.
|
|
11
|
+
*/
|
|
12
|
+
subjectId: MavenAGI.EntityId;
|
|
13
|
+
status: MavenAGI.CapabilityExecutionStatus;
|
|
14
|
+
/** Why the execution ended the way it did. Absent while RUNNING. */
|
|
15
|
+
completionReason?: MavenAGI.CapabilityExecutionCompletionReason;
|
|
16
|
+
/**
|
|
17
|
+
* Detail from the app, truncated. Cleared when the subject conversation is
|
|
18
|
+
* wiped.
|
|
19
|
+
*/
|
|
20
|
+
message?: string;
|
|
21
|
+
/** When the execution began. */
|
|
22
|
+
startedAt: Date;
|
|
23
|
+
/** When it ended. Absent while RUNNING. */
|
|
24
|
+
completedAt?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* End-to-end duration in milliseconds. Includes Maven's own work, so it is not purely the
|
|
27
|
+
* app's response time.
|
|
28
|
+
*/
|
|
29
|
+
durationMs?: number;
|
|
30
|
+
/** When the execution was recorded. Results are ordered by this field. */
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Why an execution ended the way it did. SUCCESS is the only reason whose status is SUCCESS. */
|
|
2
|
+
export declare const CapabilityExecutionCompletionReason: {
|
|
3
|
+
/**
|
|
4
|
+
* The app's handler accepted the call. Not a claim that its work finished. */
|
|
5
|
+
readonly Success: "SUCCESS";
|
|
6
|
+
/**
|
|
7
|
+
* Never reached the app, such as a refused connection or a 502/503. */
|
|
8
|
+
readonly DispatchError: "DISPATCH_ERROR";
|
|
9
|
+
/**
|
|
10
|
+
* Rate limited by Maven or the app's own upstream. */
|
|
11
|
+
readonly RateLimited: "RATE_LIMITED";
|
|
12
|
+
/**
|
|
13
|
+
* Maven stopped waiting. The app may have completed after that. */
|
|
14
|
+
readonly Timeout: "TIMEOUT";
|
|
15
|
+
/**
|
|
16
|
+
* The app's handler failed or returned an error; its side effects may or may not have run. */
|
|
17
|
+
readonly HandlerError: "HANDLER_ERROR";
|
|
18
|
+
/**
|
|
19
|
+
* The app does not implement this hook. */
|
|
20
|
+
readonly NoHandler: "NO_HANDLER";
|
|
21
|
+
/**
|
|
22
|
+
* Authorization for the app or capability version failed. */
|
|
23
|
+
readonly Forbidden: "FORBIDDEN";
|
|
24
|
+
/**
|
|
25
|
+
* Never reported back. The run was still going long after any live one would have
|
|
26
|
+
* finished, so the process running it went away first. The app may or may not have been
|
|
27
|
+
* called. */
|
|
28
|
+
readonly OutcomeUnknown: "OUTCOME_UNKNOWN";
|
|
29
|
+
/**
|
|
30
|
+
* The app reported a failure and said running it again is safe. */
|
|
31
|
+
readonly AppRetryable: "APP_RETRYABLE";
|
|
32
|
+
/**
|
|
33
|
+
* The app reported a failure and did not ask for it to be run again. */
|
|
34
|
+
readonly AppRejected: "APP_REJECTED";
|
|
35
|
+
};
|
|
36
|
+
export type CapabilityExecutionCompletionReason = (typeof CapabilityExecutionCompletionReason)[keyof typeof CapabilityExecutionCompletionReason] | string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilityExecutionCompletionReason = void 0;
|
|
5
|
+
/** Why an execution ended the way it did. SUCCESS is the only reason whose status is SUCCESS. */
|
|
6
|
+
exports.CapabilityExecutionCompletionReason = {
|
|
7
|
+
/**
|
|
8
|
+
* The app's handler accepted the call. Not a claim that its work finished. */
|
|
9
|
+
Success: "SUCCESS",
|
|
10
|
+
/**
|
|
11
|
+
* Never reached the app, such as a refused connection or a 502/503. */
|
|
12
|
+
DispatchError: "DISPATCH_ERROR",
|
|
13
|
+
/**
|
|
14
|
+
* Rate limited by Maven or the app's own upstream. */
|
|
15
|
+
RateLimited: "RATE_LIMITED",
|
|
16
|
+
/**
|
|
17
|
+
* Maven stopped waiting. The app may have completed after that. */
|
|
18
|
+
Timeout: "TIMEOUT",
|
|
19
|
+
/**
|
|
20
|
+
* The app's handler failed or returned an error; its side effects may or may not have run. */
|
|
21
|
+
HandlerError: "HANDLER_ERROR",
|
|
22
|
+
/**
|
|
23
|
+
* The app does not implement this hook. */
|
|
24
|
+
NoHandler: "NO_HANDLER",
|
|
25
|
+
/**
|
|
26
|
+
* Authorization for the app or capability version failed. */
|
|
27
|
+
Forbidden: "FORBIDDEN",
|
|
28
|
+
/**
|
|
29
|
+
* Never reported back. The run was still going long after any live one would have
|
|
30
|
+
* finished, so the process running it went away first. The app may or may not have been
|
|
31
|
+
* called. */
|
|
32
|
+
OutcomeUnknown: "OUTCOME_UNKNOWN",
|
|
33
|
+
/**
|
|
34
|
+
* The app reported a failure and said running it again is safe. */
|
|
35
|
+
AppRetryable: "APP_RETRYABLE",
|
|
36
|
+
/**
|
|
37
|
+
* The app reported a failure and did not ask for it to be run again. */
|
|
38
|
+
AppRejected: "APP_REJECTED",
|
|
39
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether running a failed execution again would be safe and worthwhile: whether the failure is
|
|
3
|
+
* transient, and whether a side effect may already have happened. Only the intersection is safe
|
|
4
|
+
* to retry automatically.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CapabilityExecutionRetryability: {
|
|
7
|
+
/**
|
|
8
|
+
* Transient, and running it again is safe -- the app provably never received the call, or it said so. */
|
|
9
|
+
readonly Retryable: "RETRYABLE";
|
|
10
|
+
/**
|
|
11
|
+
* Possibly transient, but the app may already have applied side effects. */
|
|
12
|
+
readonly Unsafe: "UNSAFE";
|
|
13
|
+
/**
|
|
14
|
+
* Running it again cannot succeed without a change on the app's side. */
|
|
15
|
+
readonly Permanent: "PERMANENT";
|
|
16
|
+
};
|
|
17
|
+
export type CapabilityExecutionRetryability = (typeof CapabilityExecutionRetryability)[keyof typeof CapabilityExecutionRetryability] | string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilityExecutionRetryability = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Whether running a failed execution again would be safe and worthwhile: whether the failure is
|
|
7
|
+
* transient, and whether a side effect may already have happened. Only the intersection is safe
|
|
8
|
+
* to retry automatically.
|
|
9
|
+
*/
|
|
10
|
+
exports.CapabilityExecutionRetryability = {
|
|
11
|
+
/**
|
|
12
|
+
* Transient, and running it again is safe -- the app provably never received the call, or it said so. */
|
|
13
|
+
Retryable: "RETRYABLE",
|
|
14
|
+
/**
|
|
15
|
+
* Possibly transient, but the app may already have applied side effects. */
|
|
16
|
+
Unsafe: "UNSAFE",
|
|
17
|
+
/**
|
|
18
|
+
* Running it again cannot succeed without a change on the app's side. */
|
|
19
|
+
Permanent: "PERMANENT",
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where an execution stands. RUNNING covers both "in flight" and "outcome never recorded", so
|
|
3
|
+
* an execution that stays RUNNING well past its timeout should be read as outcome unknown.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CapabilityExecutionStatus: {
|
|
6
|
+
readonly Running: "RUNNING";
|
|
7
|
+
readonly Success: "SUCCESS";
|
|
8
|
+
readonly Failed: "FAILED";
|
|
9
|
+
};
|
|
10
|
+
export type CapabilityExecutionStatus = (typeof CapabilityExecutionStatus)[keyof typeof CapabilityExecutionStatus] | 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.CapabilityExecutionStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Where an execution stands. RUNNING covers both "in flight" and "outcome never recorded", so
|
|
7
|
+
* an execution that stays RUNNING well past its timeout should be read as outcome unknown.
|
|
8
|
+
*/
|
|
9
|
+
exports.CapabilityExecutionStatus = {
|
|
10
|
+
Running: "RUNNING",
|
|
11
|
+
Success: "SUCCESS",
|
|
12
|
+
Failed: "FAILED",
|
|
13
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* number: 0,
|
|
6
|
+
* size: 2,
|
|
7
|
+
* totalElements: 2,
|
|
8
|
+
* totalPages: 1,
|
|
9
|
+
* executions: [{
|
|
10
|
+
* capabilityType: "TRIGGER",
|
|
11
|
+
* capabilityId: {
|
|
12
|
+
* referenceId: "store-in-snowflake",
|
|
13
|
+
* appId: "snowflake",
|
|
14
|
+
* organizationId: "acme",
|
|
15
|
+
* agentId: "support",
|
|
16
|
+
* type: MavenAGI.EntityType.EventTrigger
|
|
17
|
+
* },
|
|
18
|
+
* subjectId: {
|
|
19
|
+
* referenceId: "conversation-123",
|
|
20
|
+
* appId: "zendesk",
|
|
21
|
+
* organizationId: "acme",
|
|
22
|
+
* agentId: "support",
|
|
23
|
+
* type: MavenAGI.EntityType.Conversation
|
|
24
|
+
* },
|
|
25
|
+
* status: MavenAGI.CapabilityExecutionStatus.Success,
|
|
26
|
+
* completionReason: MavenAGI.CapabilityExecutionCompletionReason.Success,
|
|
27
|
+
* startedAt: new Date("2026-08-31T10:30:05.000Z"),
|
|
28
|
+
* completedAt: new Date("2026-08-31T10:30:06.000Z"),
|
|
29
|
+
* durationMs: 1120,
|
|
30
|
+
* createdAt: new Date("2026-08-31T10:30:05.000Z"),
|
|
31
|
+
* eventType: MavenAGI.EventTriggerType.ConversationCreated,
|
|
32
|
+
* attempt: 1
|
|
33
|
+
* }, {
|
|
34
|
+
* capabilityType: "CONVERSATION_KICKOFF",
|
|
35
|
+
* capabilityId: {
|
|
36
|
+
* referenceId: "greet-returning-customer",
|
|
37
|
+
* appId: "my-billing-system",
|
|
38
|
+
* organizationId: "acme",
|
|
39
|
+
* agentId: "support",
|
|
40
|
+
* type: MavenAGI.EntityType.ConversationKickoff
|
|
41
|
+
* },
|
|
42
|
+
* subjectId: {
|
|
43
|
+
* referenceId: "conversation-123",
|
|
44
|
+
* appId: "zendesk",
|
|
45
|
+
* organizationId: "acme",
|
|
46
|
+
* agentId: "support",
|
|
47
|
+
* type: MavenAGI.EntityType.Conversation
|
|
48
|
+
* },
|
|
49
|
+
* status: MavenAGI.CapabilityExecutionStatus.Failed,
|
|
50
|
+
* completionReason: MavenAGI.CapabilityExecutionCompletionReason.Timeout,
|
|
51
|
+
* message: "Conversation Kickoff timed out",
|
|
52
|
+
* startedAt: new Date("2026-08-31T10:30:00.000Z"),
|
|
53
|
+
* completedAt: new Date("2026-08-31T10:30:04.000Z"),
|
|
54
|
+
* durationMs: 4000,
|
|
55
|
+
* createdAt: new Date("2026-08-31T10:30:00.000Z")
|
|
56
|
+
* }]
|
|
57
|
+
* }
|
|
58
|
+
*/
|
|
59
|
+
export interface CapabilityExecutionsSearchResponse extends MavenAGI.Page {
|
|
60
|
+
/** The executions on this page, ordered by `createdAt`, newest first by default. */
|
|
61
|
+
executions: MavenAGI.CapabilityExecution[];
|
|
62
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What a capability is simulated with, by kind. Only actions can be simulated today; a variant
|
|
4
|
+
* is added for each kind as it becomes simulation-aware.
|
|
5
|
+
*/
|
|
6
|
+
export type CapabilitySimulationInput = MavenAGI.CapabilitySimulationInput.Action;
|
|
7
|
+
export declare namespace CapabilitySimulationInput {
|
|
8
|
+
interface Action extends MavenAGI.ActionSimulationInput {
|
|
9
|
+
capabilityType: "ACTION";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What one simulated run of a capability produced, by kind.
|
|
4
|
+
*/
|
|
5
|
+
export type CapabilitySimulationResult = MavenAGI.CapabilitySimulationResult.Action;
|
|
6
|
+
export declare namespace CapabilitySimulationResult {
|
|
7
|
+
interface Action extends MavenAGI.ExecuteActionResponse {
|
|
8
|
+
capabilityType: "ACTION";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The conversation and user a capability runs in, supplied directly rather than read from an
|
|
4
|
+
* existing conversation or agent user. Shared by every capability that runs inside a
|
|
5
|
+
* conversation. Each field defaults to empty.
|
|
6
|
+
*/
|
|
7
|
+
export interface ConversationContextSimulationInput {
|
|
8
|
+
/** The conversation's metadata, as the capability would read it. */
|
|
9
|
+
conversationMetadata?: Record<string, string>;
|
|
10
|
+
/** The user the capability runs for. Omit it to run for an anonymous user. */
|
|
11
|
+
user?: MavenAGI.SimulatedUser;
|
|
12
|
+
/** Data passed to the capability for this run only and never stored. */
|
|
13
|
+
transientData?: Record<string, string>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A Conversation Kickoff running as its conversation started. Kickoffs run to completion before
|
|
4
|
+
* the conversation's first reply, so they are never RUNNING.
|
|
5
|
+
*/
|
|
6
|
+
export interface ConversationKickoffCapabilityExecution extends MavenAGI.CapabilityExecutionBase {
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A user described in full by the caller, for one run only. Nothing is looked up or stored,
|
|
4
|
+
* so no agent user has to exist first.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimulatedUser {
|
|
7
|
+
/** The user's data, keyed by field name, with that field's value from each app that set it. */
|
|
8
|
+
agentUserData?: Record<string, MavenAGI.SimulatedUserData[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* An Event Trigger notifying its app of an event. `SUCCESS` means the app's handler
|
|
4
|
+
* acknowledged the event, not that the app finished the work it was notified about.
|
|
5
|
+
*/
|
|
6
|
+
export interface TriggerCapabilityExecution extends MavenAGI.CapabilityExecutionBase {
|
|
7
|
+
/** The kind of event that caused this run. */
|
|
8
|
+
eventType: MavenAGI.EventTriggerType;
|
|
9
|
+
/**
|
|
10
|
+
* Which delivery attempt this is, starting at 1. Retries are recorded as further
|
|
11
|
+
* executions, so several executions for one trigger and subject with ascending attempts are
|
|
12
|
+
* one delivery retried, while several all at attempt 1 are separate fires.
|
|
13
|
+
*/
|
|
14
|
+
attempt: number;
|
|
15
|
+
/** How a failure should be treated. Present only on FAILED executions. */
|
|
16
|
+
retryability?: MavenAGI.CapabilityExecutionRetryability;
|
|
17
|
+
/** HTTP status returned by the app, when the failure carried one. */
|
|
18
|
+
httpStatus?: number;
|
|
19
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
export * from "./ActionSimulationInput";
|
|
1
2
|
export * from "./CapabilitiesSearchResponse";
|
|
3
|
+
export * from "./CapabilityExecution";
|
|
4
|
+
export * from "./CapabilityExecutionBase";
|
|
5
|
+
export * from "./CapabilityExecutionCompletionReason";
|
|
6
|
+
export * from "./CapabilityExecutionRetryability";
|
|
7
|
+
export * from "./CapabilityExecutionStatus";
|
|
8
|
+
export * from "./CapabilityExecutionsSearchResponse";
|
|
2
9
|
export * from "./CapabilityResponse";
|
|
10
|
+
export * from "./CapabilitySimulationInput";
|
|
11
|
+
export * from "./CapabilitySimulationResult";
|
|
3
12
|
export * from "./CapabilitySortField";
|
|
4
13
|
export * from "./CapabilitySummary";
|
|
14
|
+
export * from "./ConversationContextSimulationInput";
|
|
15
|
+
export * from "./ConversationKickoffCapabilityExecution";
|
|
16
|
+
export * from "./SimulatedUser";
|
|
17
|
+
export * from "./SimulatedUserData";
|
|
18
|
+
export * from "./TriggerCapabilityExecution";
|
|
@@ -14,7 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActionSimulationInput"), exports);
|
|
17
18
|
__exportStar(require("./CapabilitiesSearchResponse"), exports);
|
|
19
|
+
__exportStar(require("./CapabilityExecution"), exports);
|
|
20
|
+
__exportStar(require("./CapabilityExecutionBase"), exports);
|
|
21
|
+
__exportStar(require("./CapabilityExecutionCompletionReason"), exports);
|
|
22
|
+
__exportStar(require("./CapabilityExecutionRetryability"), exports);
|
|
23
|
+
__exportStar(require("./CapabilityExecutionStatus"), exports);
|
|
24
|
+
__exportStar(require("./CapabilityExecutionsSearchResponse"), exports);
|
|
18
25
|
__exportStar(require("./CapabilityResponse"), exports);
|
|
26
|
+
__exportStar(require("./CapabilitySimulationInput"), exports);
|
|
27
|
+
__exportStar(require("./CapabilitySimulationResult"), exports);
|
|
19
28
|
__exportStar(require("./CapabilitySortField"), exports);
|
|
20
29
|
__exportStar(require("./CapabilitySummary"), exports);
|
|
30
|
+
__exportStar(require("./ConversationContextSimulationInput"), exports);
|
|
31
|
+
__exportStar(require("./ConversationKickoffCapabilityExecution"), exports);
|
|
32
|
+
__exportStar(require("./SimulatedUser"), exports);
|
|
33
|
+
__exportStar(require("./SimulatedUserData"), exports);
|
|
34
|
+
__exportStar(require("./TriggerCapabilityExecution"), exports);
|
|
@@ -226,7 +226,7 @@ class ChartersClient {
|
|
|
226
226
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
227
227
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
228
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
229
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
229
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
230
230
|
method: "GET",
|
|
231
231
|
headers: _headers,
|
|
232
232
|
queryString: core.url
|
|
@@ -353,7 +353,7 @@ class ChartersClient {
|
|
|
353
353
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
354
354
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
355
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
356
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
356
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
357
357
|
method: "PATCH",
|
|
358
358
|
headers: _headers,
|
|
359
359
|
contentType: "application/merge-patch+json",
|
|
@@ -469,7 +469,7 @@ class ChartersClient {
|
|
|
469
469
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
470
470
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
471
471
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
472
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
|
|
472
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
|
|
473
473
|
method: "DELETE",
|
|
474
474
|
headers: _headers,
|
|
475
475
|
queryString: core.url
|
|
@@ -687,9 +687,11 @@ class ChartersClient {
|
|
|
687
687
|
__getAncestors(charterReferenceId_1) {
|
|
688
688
|
return __awaiter(this, arguments, void 0, function* (charterReferenceId, request = {}, requestOptions) {
|
|
689
689
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
690
|
-
const { appId } = request;
|
|
690
|
+
const { appId, variantReferenceId, variantAppId } = request;
|
|
691
691
|
const _queryParams = {
|
|
692
692
|
appId,
|
|
693
|
+
variantReferenceId,
|
|
694
|
+
variantAppId,
|
|
693
695
|
};
|
|
694
696
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
695
697
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -697,7 +699,7 @@ class ChartersClient {
|
|
|
697
699
|
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
698
700
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
699
701
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
700
|
-
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}/ancestors`),
|
|
702
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}/ancestors`),
|
|
701
703
|
method: "GET",
|
|
702
704
|
headers: _headers,
|
|
703
705
|
queryString: core.url
|
|
@@ -6,13 +6,13 @@ export interface CharterDeleteRequest {
|
|
|
6
6
|
/** The App ID of the charter to delete. If not provided, the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
8
|
/**
|
|
9
|
-
* The reference ID of the agent variant this delete is scoped to.
|
|
10
|
-
* deletion is staged in that variant's working set
|
|
11
|
-
* agent's live configuration
|
|
9
|
+
* The reference ID of the agent variant this delete is scoped to. While charters are
|
|
10
|
+
* versioned for the agent, the deletion is staged in that variant's working set
|
|
11
|
+
* instead of being applied to the agent's live configuration, and a delete that names
|
|
12
|
+
* no variant is rejected with `VARIANT_REQUIRED`.
|
|
12
13
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* to the agent.
|
|
14
|
+
* While they aren't, omit this parameter to delete directly from the agent; naming a
|
|
15
|
+
* variant then is rejected.
|
|
16
16
|
*/
|
|
17
17
|
variantReferenceId?: string;
|
|
18
18
|
/** The App ID of the agent variant named by `variantReferenceId`. If not provided, the ID of the calling app will be used. */
|