mavenagi 1.2.64 → 1.2.66
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.d.ts +4 -2
- package/BaseClient.js +8 -3
- package/README.md +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 +10 -2
- package/api/resources/agents/types/Agent.d.ts +3 -1
- package/api/resources/agents/types/AgentPrompting.d.ts +12 -2
- package/api/resources/analytics/client/Client.d.ts +0 -38
- package/api/resources/analytics/client/Client.js +0 -120
- package/api/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
- package/api/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
- package/api/resources/analytics/types/AgentUserTableRequest.d.ts +7 -0
- package/api/resources/analytics/types/AgentUserTableResponse.d.ts +4 -1
- package/api/resources/analytics/types/index.d.ts +1 -10
- package/api/resources/analytics/types/index.js +1 -10
- 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 +33 -0
- package/api/resources/capabilities/client/Client.js +126 -3
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -4
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +5 -0
- package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
- package/api/resources/capabilities/client/requests/index.d.ts +1 -0
- package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +5 -0
- package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +3 -1
- package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
- package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
- package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
- package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
- package/api/resources/capabilities/types/index.d.ts +6 -0
- package/api/resources/capabilities/types/index.js +6 -0
- package/api/resources/charters/client/Client.js +4 -4
- package/api/resources/charters/types/CharterBase.d.ts +5 -1
- 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/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/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 +84 -3
- package/api/resources/commons/types/AdditionalDataKey.js +84 -3
- package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
- package/api/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
- package/api/resources/commons/types/BotMessage.d.ts +6 -1
- 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 +1 -1
- package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
- package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
- package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
- package/api/resources/commons/types/ConversationValueSource.d.ts +13 -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 +5 -2
- package/api/resources/commons/types/ErrorReason.js +5 -2
- package/api/resources/commons/types/EventBaseNoId.d.ts +6 -0
- package/api/resources/commons/types/EventFilter.d.ts +3 -0
- package/api/resources/commons/types/EventTriggerType.d.ts +7 -0
- package/api/resources/commons/types/EventTriggerType.js +7 -0
- package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -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/InitializeConversationResponse.d.ts +40 -0
- 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 +19 -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 +7 -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/UserDataValueSource.d.ts +8 -0
- package/api/resources/commons/types/UserDataValueSource.js +3 -0
- package/api/resources/commons/types/UserEvent.d.ts +1 -1
- package/api/resources/commons/types/UserEventName.d.ts +80 -5
- package/api/resources/commons/types/UserEventName.js +80 -5
- package/api/resources/commons/types/index.d.ts +14 -0
- package/api/resources/commons/types/index.js +14 -0
- package/api/resources/conversation/client/Client.d.ts +53 -29
- package/api/resources/conversation/client/Client.js +65 -40
- package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +2 -0
- 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/conversation/types/ConversationRequest.d.ts +45 -0
- package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -1
- package/api/resources/conversation/types/index.d.ts +0 -3
- package/api/resources/conversation/types/index.js +0 -3
- package/api/resources/customers/client/Client.js +2 -2
- package/api/resources/customers/types/CustomerFilter.d.ts +2 -0
- package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
- package/api/resources/developersCommons/types/BaseDetailApp.d.ts +13 -4
- package/api/resources/developersCommons/types/Link.d.ts +1 -1
- package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +2 -1
- 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 +3 -2
- package/api/resources/intelligentFields/client/Client.js +6 -5
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -2
- 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/knowledge/client/Client.js +13 -13
- package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
- package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +3 -0
- 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/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/api/resources/organizations/client/Client.d.ts +13 -15
- package/api/resources/organizations/client/Client.js +17 -19
- 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/AgentUserField.d.ts +8 -0
- package/api/resources/users/types/AgentUserField.js +8 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
- package/api/resources/users/types/AgentUserSearchRequest.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/auth/AnyAuthProvider.d.ts +23 -0
- package/auth/AnyAuthProvider.js +46 -0
- package/auth/BearerAuthProvider.d.ts +20 -0
- package/auth/BearerAuthProvider.js +82 -0
- package/auth/index.d.ts +2 -0
- package/auth/index.js +5 -1
- 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 +207 -128
- package/serialization/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
- package/serialization/resources/analytics/types/{FeedbackTableResponse.js → AgentUserGroupBy.js} +10 -6
- package/serialization/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
- package/serialization/resources/analytics/types/AgentUserRowIdentifier.js +2 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.js +2 -0
- package/serialization/resources/analytics/types/index.d.ts +1 -10
- package/serialization/resources/analytics/types/index.js +1 -10
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -2
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +0 -2
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
- package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
- package/serialization/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/ActionSimulationInput.js} +5 -6
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
- package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
- package/serialization/resources/{analytics/types/FeedbackMetric.js → capabilities/types/CapabilitySimulationInput.js} +5 -7
- package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
- package/serialization/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +9 -7
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
- package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
- package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
- package/serialization/resources/{analytics/types/FeedbackAnalyticsRequest.js → capabilities/types/SimulatedUser.js} +6 -5
- package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
- package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
- package/serialization/resources/capabilities/types/index.d.ts +6 -0
- package/serialization/resources/capabilities/types/index.js +6 -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/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/{conversation/types/FeedbackField.js → commons/types/ActionExecutionStatus.js} +2 -2
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
- package/serialization/resources/commons/types/AdditionalDataKey.js +27 -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/BaseConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/BaseConversationResponse.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 +15 -0
- package/serialization/resources/commons/types/ConversationValueSource.js +49 -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 +1 -0
- package/serialization/resources/commons/types/EventBaseNoId.d.ts +2 -0
- package/serialization/resources/commons/types/EventBaseNoId.js +2 -0
- package/serialization/resources/commons/types/EventFilter.d.ts +2 -0
- package/serialization/resources/commons/types/EventFilter.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/{analytics/types/FeedbackDistinctCount.js → commons/types/FunctionVersionBinding.js} +5 -4
- 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/{analytics/types/FeedbackCount.js → commons/types/SimulationActionCallApp.js} +2 -2
- package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
- package/serialization/resources/{analytics/types/FeedbackColumnDefinition.js → commons/types/SimulationActionMock.js} +7 -8
- 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/UserDataValueSource.d.ts +9 -0
- package/serialization/resources/commons/types/UserDataValueSource.js +41 -0
- package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/serialization/resources/commons/types/UserEventName.js +25 -0
- package/serialization/resources/commons/types/index.d.ts +14 -0
- package/serialization/resources/commons/types/index.js +14 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationFilter.js +1 -1
- package/serialization/resources/conversation/types/index.d.ts +0 -3
- package/serialization/resources/conversation/types/index.js +0 -3
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +0 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +44 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -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/AgentUserField.d.ts +1 -1
- package/serialization/resources/users/types/AgentUserField.js +1 -1
- 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/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
- package/api/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -5
- package/api/resources/analytics/types/FeedbackCount.d.ts +0 -4
- package/api/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -9
- package/api/resources/analytics/types/FeedbackGroupBy.d.ts +0 -5
- package/api/resources/analytics/types/FeedbackMetric.d.ts +0 -13
- package/api/resources/analytics/types/FeedbackRow.d.ts +0 -11
- package/api/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -5
- package/api/resources/analytics/types/FeedbackTableRequest.d.ts +0 -38
- package/api/resources/analytics/types/FeedbackTableResponse.d.ts +0 -56
- package/api/resources/conversation/types/FeedbackField.d.ts +0 -7
- package/api/resources/conversation/types/FeedbackField.js +0 -10
- package/api/resources/conversation/types/FeedbackFilter.d.ts +0 -9
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
- package/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -11
- package/serialization/resources/analytics/types/FeedbackCount.d.ts +0 -7
- package/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -10
- package/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +0 -11
- package/serialization/resources/analytics/types/FeedbackMetric.d.ts +0 -15
- package/serialization/resources/analytics/types/FeedbackRow.d.ts +0 -14
- package/serialization/resources/analytics/types/FeedbackRow.js +0 -48
- package/serialization/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -11
- package/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +0 -15
- package/serialization/resources/analytics/types/FeedbackTableRequest.js +0 -49
- package/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +0 -11
- package/serialization/resources/conversation/types/FeedbackField.d.ts +0 -7
- package/serialization/resources/conversation/types/FeedbackFilter.d.ts +0 -15
- package/serialization/resources/conversation/types/FeedbackFilter.js +0 -47
- /package/api/resources/analytics/types/{FeedbackAnalyticsRequest.js → AgentUserGroupBy.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackColumnDefinition.js → capabilities/client/requests/SimulateCapabilityByTypeRequest.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackCount.js → capabilities/types/ActionSimulationInput.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackDistinctCount.js → capabilities/types/CapabilitySimulationInput.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackMetric.js → capabilities/types/ConversationContextSimulationInput.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackRow.js → capabilities/types/SimulatedUser.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/SimulatedUserData.js} +0 -0
- /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
- /package/api/resources/{analytics/types/FeedbackTableRequest.js → commons/types/ConversationMetadataValueSource.js} +0 -0
- /package/api/resources/{analytics/types/FeedbackTableResponse.js → commons/types/ConversationValueSource.js} +0 -0
- /package/api/resources/{conversation/types/FeedbackFilter.js → commons/types/ExecuteActionResponse.js} +0 -0
- /package/api/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
- /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
package/BaseClient.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { AnyAuthProvider } from "./auth/AnyAuthProvider";
|
|
1
2
|
import { BasicAuthProvider } from "./auth/BasicAuthProvider";
|
|
3
|
+
import { BearerAuthProvider } from "./auth/BearerAuthProvider";
|
|
2
4
|
import * as core from "./core";
|
|
3
5
|
import type * as environments from "./environments";
|
|
4
|
-
export type AuthOption = false | core.AuthProvider["getAuthRequest"] | core.AuthProvider | BasicAuthProvider.AuthOptions
|
|
6
|
+
export type AuthOption = false | core.AuthProvider["getAuthRequest"] | core.AuthProvider | AnyAuthProvider.AuthOptions<[BearerAuthProvider.AuthOptions, BasicAuthProvider.AuthOptions]>;
|
|
5
7
|
export type BaseClientOptions = {
|
|
6
8
|
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
7
9
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -28,7 +30,7 @@ export type BaseClientOptions = {
|
|
|
28
30
|
};
|
|
29
31
|
/** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
|
|
30
32
|
auth?: AuthOption;
|
|
31
|
-
} & BasicAuthProvider.AuthOptions
|
|
33
|
+
} & AnyAuthProvider.AuthOptions<[BearerAuthProvider.AuthOptions, BasicAuthProvider.AuthOptions]>;
|
|
32
34
|
export interface BaseRequestOptions {
|
|
33
35
|
/** The maximum time to wait for a response in seconds. */
|
|
34
36
|
timeoutInSeconds?: number;
|
package/BaseClient.js
CHANGED
|
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.normalizeClientOptions = normalizeClientOptions;
|
|
38
38
|
exports.normalizeClientOptionsWithAuth = normalizeClientOptionsWithAuth;
|
|
39
|
+
const AnyAuthProvider_1 = require("./auth/AnyAuthProvider");
|
|
39
40
|
const BasicAuthProvider_1 = require("./auth/BasicAuthProvider");
|
|
41
|
+
const BearerAuthProvider_1 = require("./auth/BearerAuthProvider");
|
|
40
42
|
const core = __importStar(require("./core"));
|
|
41
43
|
const headers_1 = require("./core/headers");
|
|
42
44
|
function normalizeClientOptions(options) {
|
|
@@ -44,8 +46,8 @@ function normalizeClientOptions(options) {
|
|
|
44
46
|
const headers = (0, headers_1.mergeHeaders)({
|
|
45
47
|
"X-Fern-Language": "JavaScript",
|
|
46
48
|
"X-Fern-SDK-Name": "mavenagi",
|
|
47
|
-
"X-Fern-SDK-Version": "1.2.
|
|
48
|
-
"User-Agent": "mavenagi/1.2.
|
|
49
|
+
"X-Fern-SDK-Version": "1.2.66",
|
|
50
|
+
"User-Agent": "mavenagi/1.2.66",
|
|
49
51
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
52
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
53
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
|
@@ -73,7 +75,10 @@ function normalizeClientOptionsWithAuth(options) {
|
|
|
73
75
|
Object.assign(normalized, options.auth);
|
|
74
76
|
}
|
|
75
77
|
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
76
|
-
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider =
|
|
78
|
+
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = AnyAuthProvider_1.AnyAuthProvider.createInstance(normalizedWithNoOpAuthProvider, [
|
|
79
|
+
BearerAuthProvider_1.BearerAuthProvider,
|
|
80
|
+
BasicAuthProvider_1.BasicAuthProvider,
|
|
81
|
+
]));
|
|
77
82
|
return normalized;
|
|
78
83
|
}
|
|
79
84
|
function withNoOpAuthProvider(options) {
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Instantiate and use the client with the following:
|
|
|
48
48
|
```typescript
|
|
49
49
|
import { MavenAGI, MavenAGIClient } from "mavenagi";
|
|
50
50
|
|
|
51
|
-
const client = new MavenAGIClient({ appId: "YOUR_APP_ID", appSecret: "YOUR_APP_SECRET", organizationId: "YOUR_ORGANIZATION_ID", agentId: "YOUR_AGENT_ID" });
|
|
51
|
+
const client = new MavenAGIClient({ token: "YOUR_TOKEN", appId: "YOUR_APP_ID", appSecret: "YOUR_APP_SECRET", organizationId: "YOUR_ORGANIZATION_ID", agentId: "YOUR_AGENT_ID" });
|
|
52
52
|
await client.actions.search({});
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -143,7 +143,7 @@ The SDK uses async iterators, so you can consume the responses using a `for awai
|
|
|
143
143
|
```typescript
|
|
144
144
|
import { MavenAGIClient } from "mavenagi";
|
|
145
145
|
|
|
146
|
-
const client = new MavenAGIClient({ appId: "YOUR_APP_ID", appSecret: "YOUR_APP_SECRET", organizationId: "YOUR_ORGANIZATION_ID", agentId: "YOUR_AGENT_ID" });
|
|
146
|
+
const client = new MavenAGIClient({ token: "YOUR_TOKEN", appId: "YOUR_APP_ID", appSecret: "YOUR_APP_SECRET", organizationId: "YOUR_ORGANIZATION_ID", agentId: "YOUR_AGENT_ID" });
|
|
147
147
|
const response = await client.conversation.askStream("conversation-0", {
|
|
148
148
|
conversationMessageId: {
|
|
149
149
|
referenceId: "message-0"
|
|
@@ -322,7 +322,7 @@ class ActionsClient {
|
|
|
322
322
|
"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,
|
|
323
323
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
324
324
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
325
|
-
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/actions/${core.url.encodePathParam(actionReferenceId)}`),
|
|
325
|
+
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/actions/${core.url.encodePathParam(actionReferenceId, errors.MavenAGIError)}`),
|
|
326
326
|
method: "GET",
|
|
327
327
|
headers: _headers,
|
|
328
328
|
queryString: core.url
|
|
@@ -438,7 +438,7 @@ class ActionsClient {
|
|
|
438
438
|
"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,
|
|
439
439
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
440
440
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
441
|
-
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/actions/${core.url.encodePathParam(actionReferenceId)}`),
|
|
441
|
+
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/actions/${core.url.encodePathParam(actionReferenceId, errors.MavenAGIError)}`),
|
|
442
442
|
method: "PATCH",
|
|
443
443
|
headers: _headers,
|
|
444
444
|
contentType: "application/merge-patch+json",
|
|
@@ -544,7 +544,7 @@ class ActionsClient {
|
|
|
544
544
|
"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,
|
|
545
545
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
546
546
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
547
|
-
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/actions/${core.url.encodePathParam(actionReferenceId)}`),
|
|
547
|
+
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/actions/${core.url.encodePathParam(actionReferenceId, errors.MavenAGIError)}`),
|
|
548
548
|
method: "DELETE",
|
|
549
549
|
headers: _headers,
|
|
550
550
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -191,7 +191,7 @@ class AgentsClient {
|
|
|
191
191
|
"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,
|
|
192
192
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
193
193
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
194
|
-
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/organizations/${core.url.encodePathParam(organizationReferenceId)}/agents`),
|
|
194
|
+
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/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents`),
|
|
195
195
|
method: "GET",
|
|
196
196
|
headers: _headers,
|
|
197
197
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -298,7 +298,7 @@ class AgentsClient {
|
|
|
298
298
|
"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,
|
|
299
299
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
300
300
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
301
|
-
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/organizations/${core.url.encodePathParam(organizationReferenceId)}/agents/${core.url.encodePathParam(agentReferenceId)}`),
|
|
301
|
+
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/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}`),
|
|
302
302
|
method: "POST",
|
|
303
303
|
headers: _headers,
|
|
304
304
|
contentType: "application/json",
|
|
@@ -400,7 +400,7 @@ class AgentsClient {
|
|
|
400
400
|
"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,
|
|
401
401
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
402
402
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
403
|
-
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/organizations/${core.url.encodePathParam(organizationReferenceId)}/agents/${core.url.encodePathParam(agentReferenceId)}`),
|
|
403
|
+
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/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}`),
|
|
404
404
|
method: "GET",
|
|
405
405
|
headers: _headers,
|
|
406
406
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -505,7 +505,7 @@ class AgentsClient {
|
|
|
505
505
|
"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,
|
|
506
506
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
507
507
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
508
|
-
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/organizations/${core.url.encodePathParam(organizationReferenceId)}/agents/${core.url.encodePathParam(agentReferenceId)}`),
|
|
508
|
+
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/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}`),
|
|
509
509
|
method: "PATCH",
|
|
510
510
|
headers: _headers,
|
|
511
511
|
contentType: "application/merge-patch+json",
|
|
@@ -611,7 +611,7 @@ class AgentsClient {
|
|
|
611
611
|
"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,
|
|
612
612
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
613
613
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
614
|
-
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/organizations/${core.url.encodePathParam(organizationReferenceId)}/agents/${core.url.encodePathParam(agentReferenceId)}`),
|
|
614
|
+
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/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}`),
|
|
615
615
|
method: "DELETE",
|
|
616
616
|
headers: _headers,
|
|
617
617
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -12,7 +12,11 @@ export interface AgentPatchRequest {
|
|
|
12
12
|
defaultTimezone?: string;
|
|
13
13
|
/** The PII categories that are enabled for the agent. */
|
|
14
14
|
enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The system fallback message.
|
|
17
|
+
*
|
|
18
|
+
* Rejected with reason `VARIANT_REQUIRED` while `SYSTEM_FALLBACK_MESSAGE` is in `getVersionedEntityTypes`; set it through `patchVersionedSettings`.
|
|
19
|
+
*/
|
|
16
20
|
systemFallbackMessage?: string | null;
|
|
17
21
|
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
18
22
|
persona?: MavenAGI.LlmPersona;
|
|
@@ -32,7 +36,11 @@ export interface AgentPatchRequest {
|
|
|
32
36
|
* The field must be `ACTIVE` to produce values. While it is inactive, conversations get no category. With agent variants, a conversation gets a category only if the field is active in its variant. Categories are capped at 280 characters.
|
|
33
37
|
*/
|
|
34
38
|
categoryIntelligentFieldId?: MavenAGI.EntityIdWithoutAgent | null;
|
|
35
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* LLM prompt for generating a response when the user's question has been detected as unsafe.
|
|
41
|
+
*
|
|
42
|
+
* Rejected with reason `VARIANT_REQUIRED` while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; set it through `patchVersionedSettings`.
|
|
43
|
+
*/
|
|
36
44
|
contentSafetyViolationResponsePromptText?: string | null;
|
|
37
45
|
/**
|
|
38
46
|
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
@@ -18,12 +18,14 @@ export interface Agent {
|
|
|
18
18
|
* Defaults to `AbaRoutingNumber`, `CreditCardNumber`, `IpAddress`, `PhoneNumber`, `SwiftCode`,
|
|
19
19
|
* `UsBankAccountNumber`, `UsDriversLicenseNumber`, `UsIndividualTaxpayerIdentification`,
|
|
20
20
|
* `UsUkPassportNumber`, `UsSocialSecurityNumber`.
|
|
21
|
+
*
|
|
22
|
+
* Shown in Agent Designer as "PII Redaction".
|
|
21
23
|
*/
|
|
22
24
|
enabledPiiCategories: Set<MavenAGI.PiiCategory>;
|
|
23
25
|
/**
|
|
24
26
|
* Text shown to end users when the system encounters an error while generating a bot response message.
|
|
25
27
|
*
|
|
26
|
-
*
|
|
28
|
+
* Omitted while `SYSTEM_FALLBACK_MESSAGE` is in `getVersionedEntityTypes`; read it through `getVersionedSettings`.
|
|
27
29
|
*/
|
|
28
30
|
systemFallbackMessage?: string;
|
|
29
31
|
/** Agent prompting settings. */
|
|
@@ -2,7 +2,11 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface AgentPrompting {
|
|
3
3
|
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
4
4
|
persona: MavenAGI.LlmPersona;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
7
|
+
*
|
|
8
|
+
* Shown in Agent Designer as "Additional persona instructions".
|
|
9
|
+
*/
|
|
6
10
|
additionalPromptText?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Deprecated. Use `categoryIntelligentFieldId` instead. Not supported on new agents, and ignored while `categoryIntelligentFieldId` is set.
|
|
@@ -11,19 +15,25 @@ export interface AgentPrompting {
|
|
|
11
15
|
*
|
|
12
16
|
* Use this to specify a fixed set of categories that an LLM should choose from when analyzing a conversation.
|
|
13
17
|
* When not set uses a default prompt which gives the LLM flexibility to determine appropriate categories on its own.
|
|
18
|
+
*
|
|
19
|
+
* Shown in Agent Designer as "Category prompt override".
|
|
14
20
|
*/
|
|
15
21
|
categoryGenerationPromptText?: string;
|
|
16
22
|
/**
|
|
17
23
|
* LLM prompt for generating a response when the user's question has been detected as unsafe.
|
|
18
24
|
*
|
|
19
25
|
* Use this to provide custom LLM generated replies when dealing with content safety violations.
|
|
20
|
-
* When not set,
|
|
26
|
+
* When not set, a default response is sent and replies will not be personalized by the LLM as it will not be involved.
|
|
27
|
+
*
|
|
28
|
+
* Omitted while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; read it through `getVersionedSettings`.
|
|
21
29
|
*/
|
|
22
30
|
contentSafetyViolationResponsePromptText?: string;
|
|
23
31
|
/**
|
|
24
32
|
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
25
33
|
*
|
|
26
34
|
* Return the system fallback message on all questions that have no relevant knowledge bases or actions.
|
|
35
|
+
*
|
|
36
|
+
* Shown in Agent Designer as "Only return answers for existing knowledge".
|
|
27
37
|
*/
|
|
28
38
|
rejectQuestionsWithoutKnowledge: boolean;
|
|
29
39
|
}
|
|
@@ -133,44 +133,6 @@ export declare class AnalyticsClient {
|
|
|
133
133
|
*/
|
|
134
134
|
exportConversationTable(request: MavenAGI.ConversationTableRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
135
135
|
private __exportConversationTable;
|
|
136
|
-
/**
|
|
137
|
-
* @deprecated
|
|
138
|
-
*
|
|
139
|
-
* Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
|
|
140
|
-
* activity as user events.
|
|
141
|
-
*
|
|
142
|
-
* Retrieves structured feedback data formatted as a table, allowing users to group, filter,
|
|
143
|
-
* and define specific metrics to display as columns.
|
|
144
|
-
*
|
|
145
|
-
* @param {MavenAGI.FeedbackTableRequest} request
|
|
146
|
-
* @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
-
*
|
|
148
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
149
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
150
|
-
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
151
|
-
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
152
|
-
* @throws {@link MavenAGI.ServerError}
|
|
153
|
-
* @throws {@link errors.MavenAGIError}
|
|
154
|
-
* @throws {@link errors.MavenAGITimeoutError}
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* await client.analytics.getFeedbackTable({
|
|
158
|
-
* feedbackFilter: {
|
|
159
|
-
* types: ["THUMBS_UP", "INSERT"]
|
|
160
|
-
* },
|
|
161
|
-
* fieldGroupings: [{
|
|
162
|
-
* field: "CreatedBy"
|
|
163
|
-
* }],
|
|
164
|
-
* columnDefinitions: [{
|
|
165
|
-
* header: "feedback_count",
|
|
166
|
-
* metric: {
|
|
167
|
-
* type: "count"
|
|
168
|
-
* }
|
|
169
|
-
* }]
|
|
170
|
-
* })
|
|
171
|
-
*/
|
|
172
|
-
getFeedbackTable(request: MavenAGI.FeedbackTableRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.FeedbackTableResponse>;
|
|
173
|
-
private __getFeedbackTable;
|
|
174
136
|
/**
|
|
175
137
|
* Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
|
|
176
138
|
*
|
|
@@ -419,126 +419,6 @@ class AnalyticsClient {
|
|
|
419
419
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/tables/conversations/export");
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
/**
|
|
423
|
-
* @deprecated
|
|
424
|
-
*
|
|
425
|
-
* Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
|
|
426
|
-
* activity as user events.
|
|
427
|
-
*
|
|
428
|
-
* Retrieves structured feedback data formatted as a table, allowing users to group, filter,
|
|
429
|
-
* and define specific metrics to display as columns.
|
|
430
|
-
*
|
|
431
|
-
* @param {MavenAGI.FeedbackTableRequest} request
|
|
432
|
-
* @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
|
-
*
|
|
434
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
435
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
436
|
-
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
437
|
-
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
438
|
-
* @throws {@link MavenAGI.ServerError}
|
|
439
|
-
* @throws {@link errors.MavenAGIError}
|
|
440
|
-
* @throws {@link errors.MavenAGITimeoutError}
|
|
441
|
-
*
|
|
442
|
-
* @example
|
|
443
|
-
* await client.analytics.getFeedbackTable({
|
|
444
|
-
* feedbackFilter: {
|
|
445
|
-
* types: ["THUMBS_UP", "INSERT"]
|
|
446
|
-
* },
|
|
447
|
-
* fieldGroupings: [{
|
|
448
|
-
* field: "CreatedBy"
|
|
449
|
-
* }],
|
|
450
|
-
* columnDefinitions: [{
|
|
451
|
-
* header: "feedback_count",
|
|
452
|
-
* metric: {
|
|
453
|
-
* type: "count"
|
|
454
|
-
* }
|
|
455
|
-
* }]
|
|
456
|
-
* })
|
|
457
|
-
*/
|
|
458
|
-
getFeedbackTable(request, requestOptions) {
|
|
459
|
-
return core.HttpResponsePromise.fromPromise(this.__getFeedbackTable(request, requestOptions));
|
|
460
|
-
}
|
|
461
|
-
__getFeedbackTable(request, requestOptions) {
|
|
462
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
464
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
465
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
466
|
-
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
467
|
-
"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,
|
|
468
|
-
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
469
|
-
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
470
|
-
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/tables/feedback"),
|
|
471
|
-
method: "POST",
|
|
472
|
-
headers: _headers,
|
|
473
|
-
contentType: "application/json",
|
|
474
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
475
|
-
requestType: "json",
|
|
476
|
-
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.FeedbackTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
477
|
-
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
478
|
-
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
479
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
480
|
-
fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
|
|
481
|
-
logging: this._options.logging,
|
|
482
|
-
});
|
|
483
|
-
if (_response.ok) {
|
|
484
|
-
return {
|
|
485
|
-
data: serializers.FeedbackTableResponse.parseOrThrow(_response.body, {
|
|
486
|
-
unrecognizedObjectKeys: "passthrough",
|
|
487
|
-
allowUnrecognizedUnionMembers: true,
|
|
488
|
-
allowUnrecognizedEnumValues: true,
|
|
489
|
-
breadcrumbsPrefix: ["response"],
|
|
490
|
-
}),
|
|
491
|
-
rawResponse: _response.rawResponse,
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
if (_response.error.reason === "status-code") {
|
|
495
|
-
switch (_response.error.statusCode) {
|
|
496
|
-
case 404:
|
|
497
|
-
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
498
|
-
unrecognizedObjectKeys: "passthrough",
|
|
499
|
-
allowUnrecognizedUnionMembers: true,
|
|
500
|
-
allowUnrecognizedEnumValues: true,
|
|
501
|
-
breadcrumbsPrefix: ["response"],
|
|
502
|
-
}), _response.rawResponse);
|
|
503
|
-
case 400:
|
|
504
|
-
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
505
|
-
unrecognizedObjectKeys: "passthrough",
|
|
506
|
-
allowUnrecognizedUnionMembers: true,
|
|
507
|
-
allowUnrecognizedEnumValues: true,
|
|
508
|
-
breadcrumbsPrefix: ["response"],
|
|
509
|
-
}), _response.rawResponse);
|
|
510
|
-
case 413:
|
|
511
|
-
throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
512
|
-
unrecognizedObjectKeys: "passthrough",
|
|
513
|
-
allowUnrecognizedUnionMembers: true,
|
|
514
|
-
allowUnrecognizedEnumValues: true,
|
|
515
|
-
breadcrumbsPrefix: ["response"],
|
|
516
|
-
}), _response.rawResponse);
|
|
517
|
-
case 429:
|
|
518
|
-
throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
519
|
-
unrecognizedObjectKeys: "passthrough",
|
|
520
|
-
allowUnrecognizedUnionMembers: true,
|
|
521
|
-
allowUnrecognizedEnumValues: true,
|
|
522
|
-
breadcrumbsPrefix: ["response"],
|
|
523
|
-
}), _response.rawResponse);
|
|
524
|
-
case 500:
|
|
525
|
-
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
526
|
-
unrecognizedObjectKeys: "passthrough",
|
|
527
|
-
allowUnrecognizedUnionMembers: true,
|
|
528
|
-
allowUnrecognizedEnumValues: true,
|
|
529
|
-
breadcrumbsPrefix: ["response"],
|
|
530
|
-
}), _response.rawResponse);
|
|
531
|
-
default:
|
|
532
|
-
throw new errors.MavenAGIError({
|
|
533
|
-
statusCode: _response.error.statusCode,
|
|
534
|
-
body: _response.error.body,
|
|
535
|
-
rawResponse: _response.rawResponse,
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/tables/feedback");
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
422
|
/**
|
|
543
423
|
* Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
|
|
544
424
|
*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface AgentUserGroupBy extends MavenAGI.GroupByBase {
|
|
3
|
+
/** Field used for data grouping. */
|
|
4
|
+
field: MavenAGI.AgentUserField;
|
|
5
|
+
/**
|
|
6
|
+
* Fully specified ID of a user-level intelligent field. Required when `field` is
|
|
7
|
+
* `IntelligentField`, and ignored otherwise.
|
|
8
|
+
*/
|
|
9
|
+
intelligentFieldId?: MavenAGI.EntityId;
|
|
10
|
+
/**
|
|
11
|
+
* Numeric ranges for grouping data into predefined buckets.
|
|
12
|
+
* Applies only to NUMBER-validated intelligent fields.
|
|
13
|
+
*/
|
|
14
|
+
ranges?: MavenAGI.Range[];
|
|
15
|
+
}
|
|
@@ -2,4 +2,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface AgentUserRowIdentifier extends MavenAGI.RowIdentifierBase {
|
|
3
3
|
/** Field this grouping was on. */
|
|
4
4
|
field: MavenAGI.AgentUserField;
|
|
5
|
+
/** Which intelligent field this grouping was on, set when `field` is `IntelligentField`. */
|
|
6
|
+
intelligentFieldId?: MavenAGI.EntityId;
|
|
5
7
|
}
|
|
@@ -19,6 +19,13 @@ export interface AgentUserTableRequest extends MavenAGI.AgentUserAnalyticsReques
|
|
|
19
19
|
* Example: If set to "DAY," data will be aggregated by day.
|
|
20
20
|
*/
|
|
21
21
|
timeGrouping?: MavenAGI.TimeInterval;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the fields by which data should be grouped. Each unique combination forms a row.
|
|
24
|
+
* If multiple fields are provided, the result is grouped by their unique value combinations.
|
|
25
|
+
* If omitted or empty, all data is aggregated into a single row.
|
|
26
|
+
* `CreatedAt` and `UpdatedAt` are rejected here; group by time with `timeGrouping`.
|
|
27
|
+
*/
|
|
28
|
+
fieldGroupings?: MavenAGI.AgentUserGroupBy[];
|
|
22
29
|
/**
|
|
23
30
|
* Specifies the metrics to be displayed as columns.
|
|
24
31
|
* Only the `count` metric is supported for agent user tables, so each table will have a single column definition using `count`.
|
|
@@ -27,6 +27,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
27
27
|
* }
|
|
28
28
|
*/
|
|
29
29
|
export interface AgentUserTableResponse extends MavenAGI.TableResponseBase {
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* One row per combination of time bucket and field grouping values, each holding the user
|
|
32
|
+
* count for the given filter.
|
|
33
|
+
*/
|
|
31
34
|
rows: MavenAGI.AgentUserRow[];
|
|
32
35
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AgentUserAnalyticsRequest";
|
|
2
2
|
export * from "./AgentUserColumnDefinition";
|
|
3
3
|
export * from "./AgentUserCount";
|
|
4
|
+
export * from "./AgentUserGroupBy";
|
|
4
5
|
export * from "./AgentUserMetric";
|
|
5
6
|
export * from "./AgentUserRow";
|
|
6
7
|
export * from "./AgentUserRowIdentifier";
|
|
@@ -47,16 +48,6 @@ export * from "./EventRow";
|
|
|
47
48
|
export * from "./EventRowIdentifier";
|
|
48
49
|
export * from "./EventTableRequest";
|
|
49
50
|
export * from "./EventTableResponse";
|
|
50
|
-
export * from "./FeedbackAnalyticsRequest";
|
|
51
|
-
export * from "./FeedbackColumnDefinition";
|
|
52
|
-
export * from "./FeedbackCount";
|
|
53
|
-
export * from "./FeedbackDistinctCount";
|
|
54
|
-
export * from "./FeedbackGroupBy";
|
|
55
|
-
export * from "./FeedbackMetric";
|
|
56
|
-
export * from "./FeedbackRow";
|
|
57
|
-
export * from "./FeedbackRowIdentifier";
|
|
58
|
-
export * from "./FeedbackTableRequest";
|
|
59
|
-
export * from "./FeedbackTableResponse";
|
|
60
51
|
export * from "./FieldValue";
|
|
61
52
|
export * from "./GroupByBase";
|
|
62
53
|
export * from "./LabeledPoint";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AgentUserAnalyticsRequest"), exports);
|
|
18
18
|
__exportStar(require("./AgentUserColumnDefinition"), exports);
|
|
19
19
|
__exportStar(require("./AgentUserCount"), exports);
|
|
20
|
+
__exportStar(require("./AgentUserGroupBy"), exports);
|
|
20
21
|
__exportStar(require("./AgentUserMetric"), exports);
|
|
21
22
|
__exportStar(require("./AgentUserRow"), exports);
|
|
22
23
|
__exportStar(require("./AgentUserRowIdentifier"), exports);
|
|
@@ -63,16 +64,6 @@ __exportStar(require("./EventRow"), exports);
|
|
|
63
64
|
__exportStar(require("./EventRowIdentifier"), exports);
|
|
64
65
|
__exportStar(require("./EventTableRequest"), exports);
|
|
65
66
|
__exportStar(require("./EventTableResponse"), exports);
|
|
66
|
-
__exportStar(require("./FeedbackAnalyticsRequest"), exports);
|
|
67
|
-
__exportStar(require("./FeedbackColumnDefinition"), exports);
|
|
68
|
-
__exportStar(require("./FeedbackCount"), exports);
|
|
69
|
-
__exportStar(require("./FeedbackDistinctCount"), exports);
|
|
70
|
-
__exportStar(require("./FeedbackGroupBy"), exports);
|
|
71
|
-
__exportStar(require("./FeedbackMetric"), exports);
|
|
72
|
-
__exportStar(require("./FeedbackRow"), exports);
|
|
73
|
-
__exportStar(require("./FeedbackRowIdentifier"), exports);
|
|
74
|
-
__exportStar(require("./FeedbackTableRequest"), exports);
|
|
75
|
-
__exportStar(require("./FeedbackTableResponse"), exports);
|
|
76
67
|
__exportStar(require("./FieldValue"), exports);
|
|
77
68
|
__exportStar(require("./GroupByBase"), exports);
|
|
78
69
|
__exportStar(require("./LabeledPoint"), exports);
|
|
@@ -187,7 +187,7 @@ class AppDirectoryClient {
|
|
|
187
187
|
"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,
|
|
188
188
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
189
189
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
190
|
-
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/directory/${core.url.encodePathParam(appId)}`),
|
|
190
|
+
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/directory/${core.url.encodePathParam(appId, errors.MavenAGIError)}`),
|
|
191
191
|
method: "GET",
|
|
192
192
|
headers: _headers,
|
|
193
193
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -290,7 +290,7 @@ class AppDirectoryClient {
|
|
|
290
290
|
"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,
|
|
291
291
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
292
292
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
293
|
-
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/directory/${core.url.encodePathParam(appId)}/install`),
|
|
293
|
+
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/directory/${core.url.encodePathParam(appId, errors.MavenAGIError)}/install`),
|
|
294
294
|
method: "POST",
|
|
295
295
|
headers: _headers,
|
|
296
296
|
contentType: "application/json",
|
|
@@ -383,7 +383,7 @@ class AppDirectoryClient {
|
|
|
383
383
|
"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,
|
|
384
384
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
385
385
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
386
|
-
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/directory/${core.url.encodePathParam(appId)}/install`),
|
|
386
|
+
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/directory/${core.url.encodePathParam(appId, errors.MavenAGIError)}/install`),
|
|
387
387
|
method: "DELETE",
|
|
388
388
|
headers: _headers,
|
|
389
389
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -474,7 +474,7 @@ class AppDirectoryClient {
|
|
|
474
474
|
"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,
|
|
475
475
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
476
476
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
477
|
-
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/directory/${core.url.encodePathParam(appId)}/settings/${core.url.encodePathParam(settingsKey)}`),
|
|
477
|
+
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/directory/${core.url.encodePathParam(appId, errors.MavenAGIError)}/settings/${core.url.encodePathParam(settingsKey, errors.MavenAGIError)}`),
|
|
478
478
|
method: "GET",
|
|
479
479
|
headers: _headers,
|
|
480
480
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -577,7 +577,7 @@ class AppDirectoryClient {
|
|
|
577
577
|
"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,
|
|
578
578
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
579
579
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
580
|
-
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/directory/${core.url.encodePathParam(appId)}/settings/${core.url.encodePathParam(settingsKey)}/upload-url`),
|
|
580
|
+
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/directory/${core.url.encodePathParam(appId, errors.MavenAGIError)}/settings/${core.url.encodePathParam(settingsKey, errors.MavenAGIError)}/upload-url`),
|
|
581
581
|
method: "POST",
|
|
582
582
|
headers: _headers,
|
|
583
583
|
contentType: "application/json",
|
|
@@ -192,7 +192,7 @@ class AssetsClient {
|
|
|
192
192
|
"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,
|
|
193
193
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
194
194
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
195
|
-
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/assets/${core.url.encodePathParam(assetReferenceId)}/commit`),
|
|
195
|
+
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/assets/${core.url.encodePathParam(assetReferenceId, errors.MavenAGIError)}/commit`),
|
|
196
196
|
method: "POST",
|
|
197
197
|
headers: _headers,
|
|
198
198
|
contentType: "application/json",
|
|
@@ -88,6 +88,39 @@ export declare class CapabilitiesClient {
|
|
|
88
88
|
*/
|
|
89
89
|
deleteCapability(capabilityType: MavenAGI.CapabilityType, referenceId: string, request?: MavenAGI.DeleteCapabilityByTypeRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
90
90
|
private __deleteCapability;
|
|
91
|
+
/**
|
|
92
|
+
* Run one of an agent's capabilities once, as a simulation, and return what it produced.
|
|
93
|
+
*
|
|
94
|
+
* The caller supplies everything the capability reads, so it runs in isolation: no
|
|
95
|
+
* conversation or agent user has to exist first. The capability is told its mode is
|
|
96
|
+
* `SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
|
|
97
|
+
* effects in real systems. Nothing here runs a capability live.
|
|
98
|
+
*
|
|
99
|
+
* Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
|
|
100
|
+
* 400 until they can run as simulations. Intelligent fields cannot be simulated.
|
|
101
|
+
*
|
|
102
|
+
* @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to simulate. Must match the body's `capabilityType`.
|
|
103
|
+
* @param {string} referenceId - The capability's reference ID, unique within its type and app.
|
|
104
|
+
* @param {MavenAGI.SimulateCapabilityByTypeRequest} request
|
|
105
|
+
* @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
108
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
109
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
110
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
111
|
+
* @throws {@link MavenAGI.ServerError}
|
|
112
|
+
* @throws {@link errors.MavenAGIError}
|
|
113
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.capabilities.simulateCapability("ACTION", "referenceId", {
|
|
117
|
+
* body: {
|
|
118
|
+
* capabilityType: "ACTION"
|
|
119
|
+
* }
|
|
120
|
+
* })
|
|
121
|
+
*/
|
|
122
|
+
simulateCapability(capabilityType: MavenAGI.CapabilityType, referenceId: string, request: MavenAGI.SimulateCapabilityByTypeRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CapabilitySimulationResult>;
|
|
123
|
+
private __simulateCapability;
|
|
91
124
|
/**
|
|
92
125
|
* Search an agent's capabilities of every kind at once, newest first by default.
|
|
93
126
|
*
|