mavenagi 1.2.72 → 1.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.js +2 -2
- package/Client.d.ts +6 -0
- package/Client.js +52 -42
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -0
- package/api/resources/actions/types/ActionRequest.d.ts +5 -0
- package/api/resources/agentVariants/client/Client.d.ts +484 -0
- package/api/resources/agentVariants/client/Client.js +1888 -0
- package/api/resources/agentVariants/client/index.d.ts +1 -0
- package/api/resources/agentVariants/client/index.js +17 -0
- package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.d.ts +8 -0
- package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +27 -0
- package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.d.ts +8 -0
- package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.d.ts +10 -0
- package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +17 -0
- package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +13 -0
- package/api/resources/agentVariants/client/requests/GetSettingEditRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.d.ts +8 -0
- package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.d.ts +12 -0
- package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +15 -0
- package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +8 -0
- package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +3 -0
- package/api/resources/agentVariants/client/requests/index.d.ts +10 -0
- package/api/resources/agentVariants/client/requests/index.js +2 -0
- package/api/resources/agentVariants/exports.d.ts +2 -0
- package/api/resources/agentVariants/exports.js +21 -0
- package/api/resources/agentVariants/index.d.ts +2 -0
- package/api/resources/agentVariants/index.js +18 -0
- package/api/resources/agentVariants/types/AddedCharterDiff.d.ts +5 -0
- package/api/resources/agentVariants/types/AddedCharterDiff.js +3 -0
- package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +5 -0
- package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.js +3 -0
- package/api/resources/agentVariants/types/AgentSettingEdits.d.ts +16 -0
- package/api/resources/agentVariants/types/AgentSettingEdits.js +3 -0
- package/api/resources/agentVariants/types/AgentSettingsDiff.d.ts +12 -0
- package/api/resources/agentVariants/types/AgentSettingsDiff.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
- package/api/resources/agentVariants/types/AgentVariantCompareRequest.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +78 -0
- package/api/resources/agentVariants/types/AgentVariantCompareResponse.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantDiff.d.ts +9 -0
- package/api/resources/agentVariants/types/AgentVariantDiff.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantFilter.d.ts +9 -0
- package/api/resources/agentVariants/types/AgentVariantFilter.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantListRequest.d.ts +3 -0
- package/api/resources/agentVariants/types/AgentVariantListRequest.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantRequest.d.ts +28 -0
- package/api/resources/agentVariants/types/AgentVariantRequest.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantResponse.d.ts +45 -0
- package/api/resources/agentVariants/types/AgentVariantResponse.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantSearchResult.d.ts +7 -0
- package/api/resources/agentVariants/types/AgentVariantSearchResult.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantSortField.d.ts +6 -0
- package/api/resources/agentVariants/types/AgentVariantSortField.js +9 -0
- package/api/resources/agentVariants/types/AgentVariantStatus.d.ts +9 -0
- package/api/resources/agentVariants/types/AgentVariantStatus.js +12 -0
- package/api/resources/agentVariants/types/AgentVariantTraffic.d.ts +7 -0
- package/api/resources/agentVariants/types/AgentVariantTraffic.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +6 -0
- package/api/resources/agentVariants/types/AgentVariantsSearchRequest.js +3 -0
- package/api/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +63 -0
- package/api/resources/agentVariants/types/AgentVariantsSearchResponse.js +3 -0
- package/api/resources/agentVariants/types/CharterDiff.d.ts +29 -0
- package/api/resources/agentVariants/types/CharterDiff.js +3 -0
- package/api/resources/agentVariants/types/CharterEntityEdit.d.ts +5 -0
- package/api/resources/agentVariants/types/CharterEntityEdit.js +3 -0
- package/api/resources/agentVariants/types/DeletedCharterDiff.d.ts +5 -0
- package/api/resources/agentVariants/types/DeletedCharterDiff.js +3 -0
- package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +5 -0
- package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +3 -0
- package/api/resources/agentVariants/types/EntityEdit.d.ts +16 -0
- package/api/resources/agentVariants/types/EntityEdit.js +3 -0
- package/api/resources/agentVariants/types/EntityEditResponse.d.ts +7 -0
- package/api/resources/agentVariants/types/EntityEditResponse.js +3 -0
- package/api/resources/agentVariants/types/IntelligentFieldDiff.d.ts +27 -0
- package/api/resources/agentVariants/types/IntelligentFieldDiff.js +3 -0
- package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +5 -0
- package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.js +3 -0
- package/api/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +42 -0
- package/api/resources/agentVariants/types/ListAgentVariantsResponse.js +3 -0
- package/api/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +5 -0
- package/api/resources/agentVariants/types/ListTrafficConfigsResponse.js +3 -0
- package/api/resources/agentVariants/types/ModifiedCharterDiff.d.ts +7 -0
- package/api/resources/agentVariants/types/ModifiedCharterDiff.js +3 -0
- package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +7 -0
- package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +3 -0
- package/api/resources/agentVariants/types/TrafficAllocation.d.ts +15 -0
- package/api/resources/agentVariants/types/TrafficAllocation.js +3 -0
- package/api/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
- package/api/resources/agentVariants/types/TrafficConfigResponse.js +3 -0
- package/api/resources/agentVariants/types/TrafficFraction.d.ts +4 -0
- package/api/resources/agentVariants/types/TrafficFraction.js +3 -0
- package/api/resources/agentVariants/types/TrafficRule.d.ts +9 -0
- package/api/resources/agentVariants/types/TrafficRule.js +3 -0
- package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +7 -0
- package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.js +3 -0
- package/api/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +12 -0
- package/api/resources/agentVariants/types/WorkingSetDiffResponse.js +3 -0
- package/api/resources/agentVariants/types/index.d.ts +35 -0
- package/api/resources/agentVariants/types/index.js +51 -0
- package/api/resources/agents/client/Client.d.ts +72 -0
- package/api/resources/agents/client/Client.js +244 -0
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +8 -3
- package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.d.ts +10 -0
- package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.js +3 -0
- package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.d.ts +17 -0
- package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +3 -0
- package/api/resources/agents/client/requests/index.d.ts +2 -0
- package/api/resources/agents/types/Agent.d.ts +9 -1
- package/api/resources/agents/types/AgentMigrations.d.ts +20 -0
- package/api/resources/agents/types/AgentMigrations.js +3 -0
- package/api/resources/agents/types/AgentMigrationsPatch.d.ts +7 -0
- package/api/resources/agents/types/AgentMigrationsPatch.js +3 -0
- package/api/resources/agents/types/AgentPrompting.d.ts +1 -1
- package/api/resources/agents/types/AgentSettingName.d.ts +6 -0
- package/api/resources/agents/types/AgentSettingName.js +9 -0
- package/api/resources/agents/types/VersionedAgentSettings.d.ts +13 -0
- package/api/resources/agents/types/VersionedAgentSettings.js +3 -0
- package/api/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +5 -0
- package/api/resources/agents/types/VersionedEntityTypeOrSetting.js +3 -0
- package/api/resources/agents/types/index.d.ts +5 -0
- package/api/resources/agents/types/index.js +5 -0
- package/api/resources/analytics/client/Client.d.ts +1 -1
- package/api/resources/analytics/client/Client.js +1 -1
- package/api/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
- package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +7 -1
- package/api/resources/analytics/types/ConversationTableRequest.d.ts +7 -1
- package/api/resources/analytics/types/EventTableRequest.d.ts +1 -0
- package/api/resources/analytics/types/GroupByBase.d.ts +1 -1
- package/api/resources/analytics/types/TimeInterval.d.ts +11 -0
- package/api/resources/analytics/types/TimeInterval.js +11 -0
- package/api/resources/appDirectory/client/Client.d.ts +45 -2
- package/api/resources/appDirectory/client/Client.js +53 -2
- package/api/resources/appDirectory/types/InstallDirectoryAppRequest.d.ts +27 -5
- package/api/resources/appSettings/client/Client.d.ts +11 -4
- package/api/resources/appSettings/client/Client.js +11 -4
- package/api/resources/apps/client/Client.d.ts +139 -0
- package/api/resources/apps/client/Client.js +504 -0
- package/api/resources/apps/client/index.d.ts +1 -0
- package/api/resources/apps/client/index.js +2 -0
- package/api/resources/apps/exports.d.ts +2 -0
- package/api/resources/apps/exports.js +21 -0
- package/api/resources/apps/index.d.ts +2 -0
- package/api/resources/apps/index.js +18 -0
- package/api/resources/apps/types/AppPatchRequest.d.ts +26 -0
- package/api/resources/apps/types/AppPatchRequest.js +3 -0
- package/api/resources/apps/types/AppRequest.d.ts +38 -0
- package/api/resources/apps/types/AppRequest.js +3 -0
- package/api/resources/apps/types/AppResponse.d.ts +29 -0
- package/api/resources/apps/types/AppResponse.js +3 -0
- package/api/resources/apps/types/AppsSearchRequest.d.ts +3 -0
- package/api/resources/apps/types/AppsSearchRequest.js +3 -0
- package/api/resources/apps/types/AppsSearchResponse.d.ts +5 -0
- package/api/resources/apps/types/AppsSearchResponse.js +3 -0
- package/api/resources/apps/types/index.d.ts +5 -0
- package/api/resources/apps/types/index.js +21 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +4 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +4 -0
- package/api/resources/charters/client/Client.d.ts +8 -1
- package/api/resources/charters/client/Client.js +8 -1
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +7 -4
- package/api/resources/charters/types/CharterBase.d.ts +5 -3
- package/api/resources/charters/types/CharterEdit.d.ts +18 -0
- package/api/resources/charters/types/CharterEdit.js +3 -0
- package/api/resources/charters/types/CharterPayload.d.ts +10 -0
- package/api/resources/charters/types/CharterPayload.js +3 -0
- package/api/resources/charters/types/CharterResponse.d.ts +17 -2
- package/api/resources/charters/types/CharterSummary.d.ts +17 -2
- package/api/resources/charters/types/index.d.ts +2 -0
- package/api/resources/charters/types/index.js +2 -0
- package/api/resources/commons/types/ActionResponse.d.ts +2 -0
- package/api/resources/commons/types/AttachmentNotSentToModelReason.d.ts +11 -0
- package/api/resources/commons/types/AttachmentNotSentToModelReason.js +14 -0
- package/api/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +10 -0
- package/api/resources/commons/types/AttachmentNotSentToModelWarning.js +3 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -0
- package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +2 -0
- package/api/resources/commons/types/BotMessage.d.ts +9 -0
- package/api/resources/commons/types/BotMessageWarning.d.ts +13 -0
- package/api/resources/commons/types/BotMessageWarning.js +3 -0
- package/api/resources/commons/types/BotResponseMetadata.d.ts +5 -0
- package/api/resources/commons/types/CapabilityBase.d.ts +4 -0
- package/api/resources/commons/types/ChangeAuthor.d.ts +1 -1
- package/api/resources/commons/types/EntityType.d.ts +3 -0
- package/api/resources/commons/types/EntityType.js +3 -0
- package/api/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/api/resources/commons/types/ErrorReason.d.ts +9 -3
- package/api/resources/commons/types/ErrorReason.js +9 -3
- package/api/resources/commons/types/Feedback.d.ts +8 -0
- package/api/resources/commons/types/FieldError.d.ts +6 -0
- package/api/resources/commons/types/FieldError.js +3 -0
- package/api/resources/commons/types/InboxItemBase.d.ts +13 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +9 -1
- package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +13 -1
- package/api/resources/commons/types/ResolutionStatus.d.ts +4 -4
- package/api/resources/commons/types/ResolutionStatus.js +4 -4
- package/api/resources/commons/types/SimulationSetupFields.d.ts +2 -3
- package/api/resources/commons/types/SystemEventName.d.ts +6 -0
- package/api/resources/commons/types/SystemEventName.js +6 -0
- package/api/resources/commons/types/UserEvent.d.ts +8 -0
- package/api/resources/commons/types/UserMessage.d.ts +4 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/conversation/client/Client.d.ts +20 -1
- package/api/resources/conversation/client/Client.js +20 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -1
- package/api/resources/conversation/types/AskRequestFields.d.ts +3 -2
- package/api/resources/conversation/types/BillableFilterField.d.ts +1 -1
- package/api/resources/conversation/types/BillableFilterField.js +1 -1
- package/api/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/api/resources/conversation/types/ConversationRequest.d.ts +2 -1
- package/api/resources/conversation/types/NumericConversationField.d.ts +13 -0
- package/api/resources/conversation/types/NumericConversationField.js +13 -0
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -1
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +5 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
- package/api/resources/developersCommons/types/AppDirectoryDetails.d.ts +23 -0
- package/api/resources/developersCommons/types/AppDirectoryDetails.js +3 -0
- package/api/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
- package/api/resources/developersCommons/types/AppDirectoryListing.js +3 -0
- package/api/resources/developersCommons/types/BaseApp.d.ts +1 -9
- package/api/resources/developersCommons/types/BaseDetailApp.d.ts +1 -18
- package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +8 -4
- package/api/resources/developersCommons/types/index.d.ts +2 -0
- package/api/resources/developersCommons/types/index.js +2 -0
- package/api/resources/events/client/Client.d.ts +1 -1
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/index.d.ts +7 -0
- package/api/resources/index.js +8 -1
- package/api/resources/intelligentFields/client/Client.d.ts +13 -4
- package/api/resources/intelligentFields/client/Client.js +13 -4
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +16 -0
- package/api/resources/intelligentFields/types/IntelligentFieldEdit.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +12 -0
- package/api/resources/intelligentFields/types/IntelligentFieldPayload.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -4
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +4 -1
- package/api/resources/intelligentFields/types/index.d.ts +2 -0
- package/api/resources/intelligentFields/types/index.js +2 -0
- package/api/resources/knowledge/client/Client.d.ts +19 -2
- package/api/resources/knowledge/client/Client.js +19 -2
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
- package/api/resources/organizations/types/Organization.d.ts +8 -0
- package/api/resources/triggers/client/Client.d.ts +6 -1
- package/api/resources/triggers/client/Client.js +6 -1
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +11 -0
- package/api/resources/triggers/types/DebounceWait.d.ts +14 -0
- package/api/resources/triggers/types/DebounceWait.js +3 -0
- package/api/resources/triggers/types/DelayWait.d.ts +13 -0
- package/api/resources/triggers/types/DelayWait.js +3 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +21 -0
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +5 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
- package/api/resources/triggers/types/IntervalSchedule.d.ts +17 -0
- package/api/resources/triggers/types/IntervalSchedule.js +3 -0
- package/api/resources/triggers/types/ScheduleInterval.d.ts +9 -0
- package/api/resources/triggers/types/ScheduleInterval.js +12 -0
- package/api/resources/triggers/types/ScheduleSpec.d.ts +11 -0
- package/api/resources/triggers/types/ScheduleSpec.js +3 -0
- package/api/resources/triggers/types/TimeSpan.d.ts +10 -0
- package/api/resources/triggers/types/TimeSpan.js +3 -0
- package/api/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
- package/api/resources/triggers/types/TimeSpanUnit.js +10 -0
- package/api/resources/triggers/types/TriggerRateLimit.d.ts +20 -0
- package/api/resources/triggers/types/TriggerRateLimit.js +3 -0
- package/api/resources/triggers/types/TriggerSchedule.d.ts +30 -0
- package/api/resources/triggers/types/TriggerSchedule.js +3 -0
- package/api/resources/triggers/types/TriggerWait.d.ts +16 -0
- package/api/resources/triggers/types/TriggerWait.js +3 -0
- package/api/resources/triggers/types/TriggerWaitBase.d.ts +9 -0
- package/api/resources/triggers/types/TriggerWaitBase.js +3 -0
- package/api/resources/triggers/types/index.d.ts +11 -0
- package/api/resources/triggers/types/index.js +11 -0
- package/api/resources/users/client/Client.d.ts +1 -3
- package/api/resources/users/client/Client.js +1 -3
- package/api/resources/users/types/AgentUser.d.ts +13 -0
- package/api/resources/workingSet/index.d.ts +1 -0
- package/api/resources/workingSet/index.js +17 -0
- package/api/resources/workingSet/types/VariantDebugInfo.d.ts +15 -0
- package/api/resources/workingSet/types/VariantDebugInfo.js +3 -0
- package/api/resources/workingSet/types/index.d.ts +1 -0
- package/api/resources/workingSet/types/index.js +17 -0
- package/package.json +1 -1
- package/reference.md +2138 -301
- package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +4 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.js +4 -0
- package/serialization/resources/actions/types/ActionRequest.d.ts +2 -0
- package/serialization/resources/actions/types/ActionRequest.js +2 -0
- package/serialization/resources/agentVariants/client/index.d.ts +1 -0
- package/serialization/resources/agentVariants/client/index.js +17 -0
- package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +15 -0
- package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +47 -0
- package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +11 -0
- package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +43 -0
- package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +11 -0
- package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.js +43 -0
- package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +13 -0
- package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +45 -0
- package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +9 -0
- package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +41 -0
- package/serialization/resources/agentVariants/client/requests/index.d.ts +5 -0
- package/serialization/resources/agentVariants/client/requests/index.js +13 -0
- package/serialization/resources/agentVariants/index.d.ts +2 -0
- package/serialization/resources/agentVariants/index.js +18 -0
- package/serialization/resources/agentVariants/types/AddedCharterDiff.d.ts +10 -0
- package/serialization/resources/agentVariants/types/AddedCharterDiff.js +42 -0
- package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +10 -0
- package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.js +42 -0
- package/serialization/resources/agentVariants/types/AgentSettingEdits.d.ts +17 -0
- package/serialization/resources/agentVariants/types/AgentSettingEdits.js +49 -0
- package/serialization/resources/agentVariants/types/AgentSettingsDiff.d.ts +13 -0
- package/serialization/resources/agentVariants/types/AgentSettingsDiff.js +45 -0
- package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
- package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.js +46 -0
- package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +13 -0
- package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.js +45 -0
- package/serialization/resources/agentVariants/types/AgentVariantDiff.d.ts +14 -0
- package/serialization/resources/agentVariants/types/AgentVariantDiff.js +46 -0
- package/serialization/resources/agentVariants/types/AgentVariantFilter.d.ts +13 -0
- package/serialization/resources/agentVariants/types/AgentVariantFilter.js +45 -0
- package/serialization/resources/agentVariants/types/AgentVariantListRequest.d.ts +9 -0
- package/serialization/resources/agentVariants/types/AgentVariantListRequest.js +40 -0
- package/serialization/resources/agentVariants/types/AgentVariantRequest.d.ts +14 -0
- package/serialization/resources/agentVariants/types/AgentVariantRequest.js +46 -0
- package/serialization/resources/agentVariants/types/AgentVariantResponse.d.ts +22 -0
- package/serialization/resources/agentVariants/types/AgentVariantResponse.js +54 -0
- package/serialization/resources/agentVariants/types/AgentVariantSearchResult.d.ts +12 -0
- package/serialization/resources/agentVariants/types/AgentVariantSearchResult.js +46 -0
- package/serialization/resources/agentVariants/types/AgentVariantSortField.d.ts +7 -0
- package/serialization/resources/agentVariants/types/AgentVariantSortField.js +39 -0
- package/serialization/resources/agentVariants/types/AgentVariantStatus.d.ts +7 -0
- package/serialization/resources/agentVariants/types/AgentVariantStatus.js +39 -0
- package/serialization/resources/agentVariants/types/AgentVariantTraffic.d.ts +11 -0
- package/serialization/resources/agentVariants/types/AgentVariantTraffic.js +43 -0
- package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +13 -0
- package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.js +47 -0
- package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +11 -0
- package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.js +45 -0
- package/serialization/resources/agentVariants/types/CharterDiff.d.ts +19 -0
- package/serialization/resources/agentVariants/types/CharterDiff.js +51 -0
- package/serialization/resources/agentVariants/types/CharterEntityEdit.d.ts +10 -0
- package/serialization/resources/agentVariants/types/CharterEntityEdit.js +42 -0
- package/serialization/resources/agentVariants/types/DeletedCharterDiff.d.ts +10 -0
- package/serialization/resources/agentVariants/types/DeletedCharterDiff.js +42 -0
- package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +10 -0
- package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +42 -0
- package/serialization/resources/agentVariants/types/EntityEdit.d.ts +15 -0
- package/serialization/resources/agentVariants/types/EntityEdit.js +49 -0
- package/serialization/resources/agentVariants/types/EntityEditResponse.d.ts +12 -0
- package/serialization/resources/agentVariants/types/EntityEditResponse.js +44 -0
- package/serialization/resources/agentVariants/types/IntelligentFieldDiff.d.ts +19 -0
- package/serialization/resources/agentVariants/types/IntelligentFieldDiff.js +51 -0
- package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +10 -0
- package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.js +42 -0
- package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +11 -0
- package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.js +45 -0
- package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +11 -0
- package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.js +45 -0
- package/serialization/resources/agentVariants/types/ModifiedCharterDiff.d.ts +11 -0
- package/serialization/resources/agentVariants/types/ModifiedCharterDiff.js +43 -0
- package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +11 -0
- package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +43 -0
- package/serialization/resources/agentVariants/types/TrafficAllocation.d.ts +11 -0
- package/serialization/resources/agentVariants/types/TrafficAllocation.js +47 -0
- package/serialization/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
- package/serialization/resources/agentVariants/types/TrafficConfigResponse.js +48 -0
- package/serialization/resources/agentVariants/types/TrafficFraction.d.ts +9 -0
- package/serialization/resources/agentVariants/types/TrafficFraction.js +41 -0
- package/serialization/resources/agentVariants/types/TrafficRule.d.ts +12 -0
- package/serialization/resources/agentVariants/types/TrafficRule.js +44 -0
- package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +11 -0
- package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.js +43 -0
- package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +13 -0
- package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.js +45 -0
- package/serialization/resources/agentVariants/types/index.d.ts +35 -0
- package/serialization/resources/agentVariants/types/index.js +51 -0
- 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/client/requests/VersionedAgentSettingsPatchRequest.d.ts +12 -0
- package/serialization/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +44 -0
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +3 -1
- package/serialization/resources/agents/types/Agent.d.ts +6 -0
- package/serialization/resources/agents/types/Agent.js +6 -0
- package/serialization/resources/agents/types/AgentMigrations.d.ts +11 -0
- package/serialization/resources/agents/types/AgentMigrations.js +43 -0
- package/serialization/resources/agents/types/AgentMigrationsPatch.d.ts +9 -0
- package/serialization/resources/agents/types/AgentMigrationsPatch.js +41 -0
- package/serialization/resources/agents/types/AgentSettingName.d.ts +7 -0
- package/serialization/resources/agents/types/AgentSettingName.js +42 -0
- package/serialization/resources/agents/types/VersionedAgentSettings.d.ts +10 -0
- package/serialization/resources/agents/types/VersionedAgentSettings.js +42 -0
- package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +9 -0
- package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +5 -0
- package/serialization/resources/agents/types/index.js +5 -0
- package/serialization/resources/apps/index.d.ts +1 -0
- package/serialization/resources/apps/index.js +17 -0
- package/serialization/resources/apps/types/AppPatchRequest.d.ts +21 -0
- package/serialization/resources/apps/types/AppPatchRequest.js +54 -0
- package/serialization/resources/apps/types/AppRequest.d.ts +13 -0
- package/serialization/resources/apps/types/AppRequest.js +48 -0
- package/serialization/resources/apps/types/AppResponse.d.ts +11 -0
- package/serialization/resources/apps/types/AppResponse.js +45 -0
- package/serialization/resources/apps/types/AppsSearchRequest.d.ts +9 -0
- package/serialization/resources/apps/types/AppsSearchRequest.js +40 -0
- package/serialization/resources/apps/types/AppsSearchResponse.d.ts +11 -0
- package/serialization/resources/apps/types/AppsSearchResponse.js +45 -0
- package/serialization/resources/apps/types/index.d.ts +5 -0
- package/serialization/resources/apps/types/index.js +21 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +1 -1
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +1 -0
- package/serialization/resources/charters/types/CharterEdit.d.ts +17 -0
- package/serialization/resources/charters/types/CharterEdit.js +49 -0
- package/serialization/resources/charters/types/CharterPayload.d.ts +11 -0
- package/serialization/resources/charters/types/CharterPayload.js +45 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +3 -0
- package/serialization/resources/charters/types/CharterResponse.js +3 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +3 -0
- package/serialization/resources/charters/types/CharterSummary.js +3 -0
- package/serialization/resources/charters/types/index.d.ts +2 -0
- package/serialization/resources/charters/types/index.js +2 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +2 -0
- package/serialization/resources/commons/types/ActionResponse.js +2 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelReason.d.ts +7 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelReason.js +39 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +13 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.js +45 -0
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +3 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +3 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +5 -0
- package/serialization/resources/commons/types/BotMessage.js +5 -0
- package/serialization/resources/commons/types/BotMessageWarning.d.ts +11 -0
- package/serialization/resources/commons/types/BotMessageWarning.js +47 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +3 -0
- package/serialization/resources/commons/types/CapabilityBase.js +3 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -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/Feedback.d.ts +2 -0
- package/serialization/resources/commons/types/Feedback.js +2 -0
- package/serialization/resources/commons/types/FieldError.d.ts +10 -0
- package/serialization/resources/commons/types/FieldError.js +42 -0
- package/serialization/resources/commons/types/InboxItemBase.d.ts +3 -0
- package/serialization/resources/commons/types/InboxItemBase.js +3 -0
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +2 -0
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +2 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +2 -0
- package/serialization/resources/commons/types/UserEvent.d.ts +2 -0
- package/serialization/resources/commons/types/UserEvent.js +2 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +3 -0
- package/serialization/resources/commons/types/UserMessage.js +3 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +2 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +2 -0
- package/serialization/resources/developersCommons/types/AppDirectoryDetails.d.ts +13 -0
- package/serialization/resources/developersCommons/types/AppDirectoryDetails.js +46 -0
- package/serialization/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
- package/serialization/resources/developersCommons/types/AppDirectoryListing.js +46 -0
- package/serialization/resources/developersCommons/types/BaseApp.d.ts +2 -7
- package/serialization/resources/developersCommons/types/BaseApp.js +5 -8
- package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +3 -7
- package/serialization/resources/developersCommons/types/BaseDetailApp.js +3 -7
- package/serialization/resources/developersCommons/types/index.d.ts +2 -0
- package/serialization/resources/developersCommons/types/index.js +2 -0
- package/serialization/resources/index.d.ts +7 -0
- package/serialization/resources/index.js +8 -1
- package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +17 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.js +49 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +13 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.js +47 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +0 -3
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +0 -3
- package/serialization/resources/intelligentFields/types/index.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/index.js +2 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +2 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +3 -0
- package/serialization/resources/organizations/types/Organization.d.ts +5 -0
- package/serialization/resources/organizations/types/Organization.js +5 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +8 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +8 -0
- package/serialization/resources/triggers/types/DebounceWait.d.ts +11 -0
- package/serialization/resources/triggers/types/DebounceWait.js +45 -0
- package/serialization/resources/triggers/types/DelayWait.d.ts +11 -0
- package/serialization/resources/triggers/types/DelayWait.js +45 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +6 -0
- package/serialization/resources/triggers/types/EventTriggerBase.js +6 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +4 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.js +4 -0
- package/serialization/resources/triggers/types/IntervalSchedule.d.ts +14 -0
- package/serialization/resources/triggers/types/IntervalSchedule.js +46 -0
- package/serialization/resources/triggers/types/ScheduleInterval.d.ts +7 -0
- package/serialization/resources/triggers/types/ScheduleInterval.js +39 -0
- package/serialization/resources/triggers/types/ScheduleSpec.d.ts +11 -0
- package/serialization/resources/triggers/types/ScheduleSpec.js +47 -0
- package/serialization/resources/triggers/types/TimeSpan.d.ts +11 -0
- package/serialization/resources/triggers/types/TimeSpan.js +43 -0
- package/serialization/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
- package/serialization/resources/triggers/types/TimeSpanUnit.js +39 -0
- package/serialization/resources/triggers/types/TriggerRateLimit.d.ts +13 -0
- package/serialization/resources/triggers/types/TriggerRateLimit.js +45 -0
- package/serialization/resources/triggers/types/TriggerSchedule.d.ts +12 -0
- package/serialization/resources/triggers/types/TriggerSchedule.js +44 -0
- package/serialization/resources/triggers/types/TriggerWait.d.ts +15 -0
- package/serialization/resources/triggers/types/TriggerWait.js +49 -0
- package/serialization/resources/triggers/types/TriggerWaitBase.d.ts +10 -0
- package/serialization/resources/triggers/types/TriggerWaitBase.js +42 -0
- package/serialization/resources/triggers/types/index.d.ts +11 -0
- package/serialization/resources/triggers/types/index.js +11 -0
- package/serialization/resources/users/types/AgentUser.d.ts +3 -0
- package/serialization/resources/users/types/AgentUser.js +3 -0
- package/serialization/resources/workingSet/index.d.ts +1 -0
- package/serialization/resources/workingSet/index.js +17 -0
- package/serialization/resources/workingSet/types/VariantDebugInfo.d.ts +10 -0
- package/serialization/resources/workingSet/types/VariantDebugInfo.js +42 -0
- package/serialization/resources/workingSet/types/index.d.ts +1 -0
- package/serialization/resources/workingSet/types/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/reference.md
CHANGED
|
@@ -386,8 +386,8 @@ await client.actions.delete("get-balance");
|
|
|
386
386
|
</dl>
|
|
387
387
|
</details>
|
|
388
388
|
|
|
389
|
-
##
|
|
390
|
-
<details><summary><code>client.
|
|
389
|
+
## AgentVariants
|
|
390
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
391
391
|
<dl>
|
|
392
392
|
<dd>
|
|
393
393
|
|
|
@@ -399,11 +399,17 @@ await client.actions.delete("get-balance");
|
|
|
399
399
|
<dl>
|
|
400
400
|
<dd>
|
|
401
401
|
|
|
402
|
-
|
|
402
|
+
Creates a new agent variant, optionally based on an existing variant, or updates it if it already exists.
|
|
403
403
|
|
|
404
|
-
|
|
404
|
+
If a baseVariantId is provided, the new variant is forked from the specified base variant: it shares the base's configuration and starts with an empty working set. A variant's base is fixed when it is created: an update must pass the same baseVariantId (or omit it, if the variant has no base), and is otherwise rejected.
|
|
405
405
|
|
|
406
|
-
|
|
406
|
+
Updating an existing agent variant sets its title and description, clearing the description if the request omits it, and leaves its status unchanged. Updating a deleted one resurrects it in place as an ACTIVE variant, keeping its original ID, creation metadata, and configuration. Creating or resurrecting a variant needs an ACTIVE base (reason `VARIANT_NOT_ACTIVE` otherwise), so resurrect a deleted base variant before its children. Updating an existing variant doesn't, so a retried create still succeeds after its base is archived.
|
|
407
|
+
|
|
408
|
+
Creating or resurrecting a variant is rejected with reason `VARIANT_LIMIT_REACHED` while the agent is at its limit of ACTIVE variants (25 by default; the error message gives the agent's limit). Archived and deleted variants don't count, so archive one to make room. Updating an existing ACTIVE variant isn't limited.
|
|
409
|
+
|
|
410
|
+
The response includes the details of the created or updated agent variant.
|
|
411
|
+
|
|
412
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
407
413
|
</dd>
|
|
408
414
|
</dl>
|
|
409
415
|
</dd>
|
|
@@ -418,7 +424,18 @@ Only Maven staff hold this permission.
|
|
|
418
424
|
<dd>
|
|
419
425
|
|
|
420
426
|
```typescript
|
|
421
|
-
await client.
|
|
427
|
+
await client.agentVariants.createOrUpdate({
|
|
428
|
+
baseVariantId: {
|
|
429
|
+
referenceId: "variant_456",
|
|
430
|
+
appId: "zendesk",
|
|
431
|
+
type: "AGENT_VARIANT"
|
|
432
|
+
},
|
|
433
|
+
variantId: {
|
|
434
|
+
referenceId: "variant_789"
|
|
435
|
+
},
|
|
436
|
+
title: "Support agent Working 2",
|
|
437
|
+
description: ""
|
|
438
|
+
});
|
|
422
439
|
|
|
423
440
|
```
|
|
424
441
|
</dd>
|
|
@@ -434,7 +451,7 @@ await client.agents.search({});
|
|
|
434
451
|
<dl>
|
|
435
452
|
<dd>
|
|
436
453
|
|
|
437
|
-
**request:** `MavenAGI.
|
|
454
|
+
**request:** `MavenAGI.AgentVariantRequest`
|
|
438
455
|
|
|
439
456
|
</dd>
|
|
440
457
|
</dl>
|
|
@@ -442,7 +459,7 @@ await client.agents.search({});
|
|
|
442
459
|
<dl>
|
|
443
460
|
<dd>
|
|
444
461
|
|
|
445
|
-
**requestOptions:** `
|
|
462
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
446
463
|
|
|
447
464
|
</dd>
|
|
448
465
|
</dl>
|
|
@@ -454,7 +471,7 @@ await client.agents.search({});
|
|
|
454
471
|
</dl>
|
|
455
472
|
</details>
|
|
456
473
|
|
|
457
|
-
<details><summary><code>client.
|
|
474
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">list</a>({ ...params }) -> MavenAGI.ListAgentVariantsResponse</code></summary>
|
|
458
475
|
<dl>
|
|
459
476
|
<dd>
|
|
460
477
|
|
|
@@ -466,7 +483,7 @@ await client.agents.search({});
|
|
|
466
483
|
<dl>
|
|
467
484
|
<dd>
|
|
468
485
|
|
|
469
|
-
|
|
486
|
+
List all agent variants for an agent
|
|
470
487
|
|
|
471
488
|
<Note>**Required permission:** `read:agents`</Note>
|
|
472
489
|
</dd>
|
|
@@ -483,7 +500,11 @@ Lists all agents for an organization
|
|
|
483
500
|
<dd>
|
|
484
501
|
|
|
485
502
|
```typescript
|
|
486
|
-
await client.
|
|
503
|
+
await client.agentVariants.list({
|
|
504
|
+
page: 0,
|
|
505
|
+
size: 20,
|
|
506
|
+
sortDesc: true
|
|
507
|
+
});
|
|
487
508
|
|
|
488
509
|
```
|
|
489
510
|
</dd>
|
|
@@ -499,7 +520,7 @@ await client.agents.list("organizationReferenceId");
|
|
|
499
520
|
<dl>
|
|
500
521
|
<dd>
|
|
501
522
|
|
|
502
|
-
**
|
|
523
|
+
**request:** `MavenAGI.AgentVariantListRequest`
|
|
503
524
|
|
|
504
525
|
</dd>
|
|
505
526
|
</dl>
|
|
@@ -507,7 +528,7 @@ await client.agents.list("organizationReferenceId");
|
|
|
507
528
|
<dl>
|
|
508
529
|
<dd>
|
|
509
530
|
|
|
510
|
-
**requestOptions:** `
|
|
531
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
511
532
|
|
|
512
533
|
</dd>
|
|
513
534
|
</dl>
|
|
@@ -519,7 +540,7 @@ await client.agents.list("organizationReferenceId");
|
|
|
519
540
|
</dl>
|
|
520
541
|
</details>
|
|
521
542
|
|
|
522
|
-
<details><summary><code>client.
|
|
543
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AgentVariantsSearchResponse</code></summary>
|
|
523
544
|
<dl>
|
|
524
545
|
<dd>
|
|
525
546
|
|
|
@@ -531,9 +552,11 @@ await client.agents.list("organizationReferenceId");
|
|
|
531
552
|
<dl>
|
|
532
553
|
<dd>
|
|
533
554
|
|
|
534
|
-
|
|
555
|
+
Search an agent's variants, most recently updated first by default. A variant must match every filter given; omitting `filter` returns every ACTIVE variant.
|
|
535
556
|
|
|
536
|
-
|
|
557
|
+
Each result carries the variant's traffic in the agent's latest traffic configuration revision and the number of edits staged in its working set.
|
|
558
|
+
|
|
559
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
537
560
|
</dd>
|
|
538
561
|
</dl>
|
|
539
562
|
</dd>
|
|
@@ -548,9 +571,10 @@ Create a new agent
|
|
|
548
571
|
<dd>
|
|
549
572
|
|
|
550
573
|
```typescript
|
|
551
|
-
await client.
|
|
552
|
-
|
|
553
|
-
|
|
574
|
+
await client.agentVariants.search({
|
|
575
|
+
filter: {
|
|
576
|
+
live: true
|
|
577
|
+
}
|
|
554
578
|
});
|
|
555
579
|
|
|
556
580
|
```
|
|
@@ -567,23 +591,7 @@ await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
|
567
591
|
<dl>
|
|
568
592
|
<dd>
|
|
569
593
|
|
|
570
|
-
**
|
|
571
|
-
|
|
572
|
-
</dd>
|
|
573
|
-
</dl>
|
|
574
|
-
|
|
575
|
-
<dl>
|
|
576
|
-
<dd>
|
|
577
|
-
|
|
578
|
-
**agentReferenceId:** `string` — The ID of the agent.
|
|
579
|
-
|
|
580
|
-
</dd>
|
|
581
|
-
</dl>
|
|
582
|
-
|
|
583
|
-
<dl>
|
|
584
|
-
<dd>
|
|
585
|
-
|
|
586
|
-
**request:** `MavenAGI.CreateAgentRequest`
|
|
594
|
+
**request:** `MavenAGI.AgentVariantsSearchRequest`
|
|
587
595
|
|
|
588
596
|
</dd>
|
|
589
597
|
</dl>
|
|
@@ -591,7 +599,7 @@ await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
|
591
599
|
<dl>
|
|
592
600
|
<dd>
|
|
593
601
|
|
|
594
|
-
**requestOptions:** `
|
|
602
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
595
603
|
|
|
596
604
|
</dd>
|
|
597
605
|
</dl>
|
|
@@ -603,7 +611,7 @@ await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
|
603
611
|
</dl>
|
|
604
612
|
</details>
|
|
605
613
|
|
|
606
|
-
<details><summary><code>client.
|
|
614
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">get</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
607
615
|
<dl>
|
|
608
616
|
<dd>
|
|
609
617
|
|
|
@@ -615,7 +623,7 @@ await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
|
615
623
|
<dl>
|
|
616
624
|
<dd>
|
|
617
625
|
|
|
618
|
-
|
|
626
|
+
Retrieve the details of a specific agent variant by its ID
|
|
619
627
|
|
|
620
628
|
<Note>**Required permission:** `read:agents`</Note>
|
|
621
629
|
</dd>
|
|
@@ -632,7 +640,7 @@ Get an agent
|
|
|
632
640
|
<dd>
|
|
633
641
|
|
|
634
642
|
```typescript
|
|
635
|
-
await client.
|
|
643
|
+
await client.agentVariants.get("variantReferenceId_123");
|
|
636
644
|
|
|
637
645
|
```
|
|
638
646
|
</dd>
|
|
@@ -648,7 +656,7 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
|
648
656
|
<dl>
|
|
649
657
|
<dd>
|
|
650
658
|
|
|
651
|
-
**
|
|
659
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant to retrieve.
|
|
652
660
|
|
|
653
661
|
</dd>
|
|
654
662
|
</dl>
|
|
@@ -656,7 +664,7 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
|
656
664
|
<dl>
|
|
657
665
|
<dd>
|
|
658
666
|
|
|
659
|
-
**
|
|
667
|
+
**request:** `MavenAGI.AgentVariantBaseGetRequest`
|
|
660
668
|
|
|
661
669
|
</dd>
|
|
662
670
|
</dl>
|
|
@@ -664,7 +672,7 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
|
664
672
|
<dl>
|
|
665
673
|
<dd>
|
|
666
674
|
|
|
667
|
-
**requestOptions:** `
|
|
675
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
668
676
|
|
|
669
677
|
</dd>
|
|
670
678
|
</dl>
|
|
@@ -676,7 +684,7 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
|
676
684
|
</dl>
|
|
677
685
|
</details>
|
|
678
686
|
|
|
679
|
-
<details><summary><code>client.
|
|
687
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">patch</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
680
688
|
<dl>
|
|
681
689
|
<dd>
|
|
682
690
|
|
|
@@ -688,8 +696,11 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
|
688
696
|
<dl>
|
|
689
697
|
<dd>
|
|
690
698
|
|
|
691
|
-
Update
|
|
692
|
-
|
|
699
|
+
Update a specific agent variant's metadata, such as description or status. The request body can include any of the updatable fields.
|
|
700
|
+
|
|
701
|
+
A deleted variant can't be patched (reason `VARIANT_NOT_ACTIVE`). Bring it back with createOrUpdate instead, which resurrects it (its base, if it has one, must be ACTIVE).
|
|
702
|
+
|
|
703
|
+
Setting an archived variant's status back to ACTIVE is rejected with reason `VARIANT_LIMIT_REACHED` while the agent is at its limit of ACTIVE variants.
|
|
693
704
|
|
|
694
705
|
<Note>**Required permission:** `edit:agents`</Note>
|
|
695
706
|
</dd>
|
|
@@ -706,7 +717,7 @@ All fields will overwrite the existing value on the agent only if provided.
|
|
|
706
717
|
<dd>
|
|
707
718
|
|
|
708
719
|
```typescript
|
|
709
|
-
await client.
|
|
720
|
+
await client.agentVariants.patch("variantReferenceId");
|
|
710
721
|
|
|
711
722
|
```
|
|
712
723
|
</dd>
|
|
@@ -722,7 +733,7 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
|
722
733
|
<dl>
|
|
723
734
|
<dd>
|
|
724
735
|
|
|
725
|
-
**
|
|
736
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant to patch.
|
|
726
737
|
|
|
727
738
|
</dd>
|
|
728
739
|
</dl>
|
|
@@ -730,7 +741,7 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
|
730
741
|
<dl>
|
|
731
742
|
<dd>
|
|
732
743
|
|
|
733
|
-
**
|
|
744
|
+
**request:** `MavenAGI.PatchAgentVariantRequest`
|
|
734
745
|
|
|
735
746
|
</dd>
|
|
736
747
|
</dl>
|
|
@@ -738,15 +749,104 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
|
738
749
|
<dl>
|
|
739
750
|
<dd>
|
|
740
751
|
|
|
741
|
-
**
|
|
752
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
742
753
|
|
|
743
754
|
</dd>
|
|
744
755
|
</dl>
|
|
756
|
+
</dd>
|
|
757
|
+
</dl>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
</dd>
|
|
761
|
+
</dl>
|
|
762
|
+
</details>
|
|
745
763
|
|
|
764
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">updateTrafficConfig</a>({ ...params }) -> MavenAGI.TrafficConfigResponse</code></summary>
|
|
746
765
|
<dl>
|
|
747
766
|
<dd>
|
|
748
767
|
|
|
749
|
-
|
|
768
|
+
#### 📝 Description
|
|
769
|
+
|
|
770
|
+
<dl>
|
|
771
|
+
<dd>
|
|
772
|
+
|
|
773
|
+
<dl>
|
|
774
|
+
<dd>
|
|
775
|
+
|
|
776
|
+
Adds a new traffic configuration revision for the agent in the request context. Traffic
|
|
777
|
+
configuration is agent-wide: each rule names the variant it routes to, and the rules
|
|
778
|
+
together define how the agent's live traffic is split across its variants.
|
|
779
|
+
|
|
780
|
+
Revisions are never overwritten in place: each call inserts a new revision as the successor to the agent's current one. `expectedRevisionSequence` is required once a revision already exists and acts as a compare-and-swap guard -- it must match the agent's current revision sequence or the call is rejected, ensuring only one caller's update is accepted as the successor to the revision it actually observed.
|
|
781
|
+
|
|
782
|
+
Every rule's variant must be ACTIVE and have no staged edits in its working set (`VARIANT_HAS_STAGED_EDITS`), even at 0%. The rules must route all of the agent's traffic: their percentages sum to 100, so an empty list is rejected. A revision holds only the split; there is no production or default variant, and a read or write that names no variant is rejected while its entity type is versioned (`VARIANT_REQUIRED`).
|
|
783
|
+
|
|
784
|
+
Traffic can be changed only while at least one entity type is versioned for the agent (see the agent's `migrations.versionedEntityTypes`). Otherwise the call is rejected with 501.
|
|
785
|
+
|
|
786
|
+
Shown in Agent Designer as "Traffic Control".
|
|
787
|
+
|
|
788
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
789
|
+
</dd>
|
|
790
|
+
</dl>
|
|
791
|
+
</dd>
|
|
792
|
+
</dl>
|
|
793
|
+
|
|
794
|
+
#### 🔌 Usage
|
|
795
|
+
|
|
796
|
+
<dl>
|
|
797
|
+
<dd>
|
|
798
|
+
|
|
799
|
+
<dl>
|
|
800
|
+
<dd>
|
|
801
|
+
|
|
802
|
+
```typescript
|
|
803
|
+
await client.agentVariants.updateTrafficConfig({
|
|
804
|
+
rules: [{
|
|
805
|
+
variantId: {
|
|
806
|
+
organizationId: "organizationId",
|
|
807
|
+
agentId: "agentId",
|
|
808
|
+
type: "AGENT",
|
|
809
|
+
appId: "appId",
|
|
810
|
+
referenceId: "x"
|
|
811
|
+
},
|
|
812
|
+
percentage: 1.1,
|
|
813
|
+
condition: "condition"
|
|
814
|
+
}, {
|
|
815
|
+
variantId: {
|
|
816
|
+
organizationId: "organizationId",
|
|
817
|
+
agentId: "agentId",
|
|
818
|
+
type: "AGENT",
|
|
819
|
+
appId: "appId",
|
|
820
|
+
referenceId: "x"
|
|
821
|
+
},
|
|
822
|
+
percentage: 1.1,
|
|
823
|
+
condition: "condition"
|
|
824
|
+
}]
|
|
825
|
+
});
|
|
826
|
+
|
|
827
|
+
```
|
|
828
|
+
</dd>
|
|
829
|
+
</dl>
|
|
830
|
+
</dd>
|
|
831
|
+
</dl>
|
|
832
|
+
|
|
833
|
+
#### ⚙️ Parameters
|
|
834
|
+
|
|
835
|
+
<dl>
|
|
836
|
+
<dd>
|
|
837
|
+
|
|
838
|
+
<dl>
|
|
839
|
+
<dd>
|
|
840
|
+
|
|
841
|
+
**request:** `MavenAGI.UpdateTrafficConfigRequest`
|
|
842
|
+
|
|
843
|
+
</dd>
|
|
844
|
+
</dl>
|
|
845
|
+
|
|
846
|
+
<dl>
|
|
847
|
+
<dd>
|
|
848
|
+
|
|
849
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
750
850
|
|
|
751
851
|
</dd>
|
|
752
852
|
</dl>
|
|
@@ -758,7 +858,7 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
|
758
858
|
</dl>
|
|
759
859
|
</details>
|
|
760
860
|
|
|
761
|
-
<details><summary><code>client.
|
|
861
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">getTrafficConfig</a>(trafficConfigReferenceId, { ...params }) -> MavenAGI.TrafficConfigResponse</code></summary>
|
|
762
862
|
<dl>
|
|
763
863
|
<dd>
|
|
764
864
|
|
|
@@ -770,9 +870,9 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
|
770
870
|
<dl>
|
|
771
871
|
<dd>
|
|
772
872
|
|
|
773
|
-
|
|
873
|
+
Get a specific traffic configuration revision of the agent in the request context.
|
|
774
874
|
|
|
775
|
-
<Note>**Required permission:** `
|
|
875
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
776
876
|
</dd>
|
|
777
877
|
</dl>
|
|
778
878
|
</dd>
|
|
@@ -787,7 +887,7 @@ Delete an agent.
|
|
|
787
887
|
<dd>
|
|
788
888
|
|
|
789
889
|
```typescript
|
|
790
|
-
await client.
|
|
890
|
+
await client.agentVariants.getTrafficConfig("trafficConfigReferenceId");
|
|
791
891
|
|
|
792
892
|
```
|
|
793
893
|
</dd>
|
|
@@ -803,7 +903,7 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
|
803
903
|
<dl>
|
|
804
904
|
<dd>
|
|
805
905
|
|
|
806
|
-
**
|
|
906
|
+
**trafficConfigReferenceId:** `string` — The unique identifier of the traffic configuration to retrieve.
|
|
807
907
|
|
|
808
908
|
</dd>
|
|
809
909
|
</dl>
|
|
@@ -811,7 +911,7 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
|
811
911
|
<dl>
|
|
812
912
|
<dd>
|
|
813
913
|
|
|
814
|
-
**
|
|
914
|
+
**request:** `MavenAGI.GetTrafficConfigRequest`
|
|
815
915
|
|
|
816
916
|
</dd>
|
|
817
917
|
</dl>
|
|
@@ -819,7 +919,7 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
|
819
919
|
<dl>
|
|
820
920
|
<dd>
|
|
821
921
|
|
|
822
|
-
**requestOptions:** `
|
|
922
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
823
923
|
|
|
824
924
|
</dd>
|
|
825
925
|
</dl>
|
|
@@ -831,8 +931,7 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
|
831
931
|
</dl>
|
|
832
932
|
</details>
|
|
833
933
|
|
|
834
|
-
|
|
835
|
-
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getConversationTable</a>({ ...params }) -> MavenAGI.ConversationTableResponse</code></summary>
|
|
934
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">getActiveTrafficConfig</a>() -> MavenAGI.TrafficConfigResponse</code></summary>
|
|
836
935
|
<dl>
|
|
837
936
|
<dd>
|
|
838
937
|
|
|
@@ -844,9 +943,9 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
|
844
943
|
<dl>
|
|
845
944
|
<dd>
|
|
846
945
|
|
|
847
|
-
|
|
946
|
+
Get the traffic configuration currently routing live traffic for the agent in the request context.
|
|
848
947
|
|
|
849
|
-
<Note>**Required permission:** `read:
|
|
948
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
850
949
|
</dd>
|
|
851
950
|
</dl>
|
|
852
951
|
</dd>
|
|
@@ -861,34 +960,7 @@ Retrieves structured conversation data formatted as a table, allowing users to g
|
|
|
861
960
|
<dd>
|
|
862
961
|
|
|
863
962
|
```typescript
|
|
864
|
-
await client.
|
|
865
|
-
conversationFilter: {
|
|
866
|
-
languages: ["en", "es"]
|
|
867
|
-
},
|
|
868
|
-
timeGrouping: "DAY",
|
|
869
|
-
fieldGroupings: [{
|
|
870
|
-
field: "Category"
|
|
871
|
-
}],
|
|
872
|
-
columnDefinitions: [{
|
|
873
|
-
header: "count",
|
|
874
|
-
metric: {
|
|
875
|
-
type: "count"
|
|
876
|
-
}
|
|
877
|
-
}, {
|
|
878
|
-
header: "avg_first_response_time",
|
|
879
|
-
metric: {
|
|
880
|
-
type: "average",
|
|
881
|
-
targetField: "FirstResponseTime"
|
|
882
|
-
}
|
|
883
|
-
}, {
|
|
884
|
-
header: "percentile_handle_time",
|
|
885
|
-
metric: {
|
|
886
|
-
type: "percentile",
|
|
887
|
-
targetField: "HandleTime",
|
|
888
|
-
percentile: 25
|
|
889
|
-
}
|
|
890
|
-
}]
|
|
891
|
-
});
|
|
963
|
+
await client.agentVariants.getActiveTrafficConfig();
|
|
892
964
|
|
|
893
965
|
```
|
|
894
966
|
</dd>
|
|
@@ -904,15 +976,7 @@ await client.analytics.getConversationTable({
|
|
|
904
976
|
<dl>
|
|
905
977
|
<dd>
|
|
906
978
|
|
|
907
|
-
**
|
|
908
|
-
|
|
909
|
-
</dd>
|
|
910
|
-
</dl>
|
|
911
|
-
|
|
912
|
-
<dl>
|
|
913
|
-
<dd>
|
|
914
|
-
|
|
915
|
-
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
979
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
916
980
|
|
|
917
981
|
</dd>
|
|
918
982
|
</dl>
|
|
@@ -924,7 +988,7 @@ await client.analytics.getConversationTable({
|
|
|
924
988
|
</dl>
|
|
925
989
|
</details>
|
|
926
990
|
|
|
927
|
-
<details><summary><code>client.
|
|
991
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">listTrafficConfigs</a>({ ...params }) -> MavenAGI.ListTrafficConfigsResponse</code></summary>
|
|
928
992
|
<dl>
|
|
929
993
|
<dd>
|
|
930
994
|
|
|
@@ -936,9 +1000,9 @@ await client.analytics.getConversationTable({
|
|
|
936
1000
|
<dl>
|
|
937
1001
|
<dd>
|
|
938
1002
|
|
|
939
|
-
|
|
1003
|
+
List the traffic configuration revisions of the agent in the request context, newest first by default.
|
|
940
1004
|
|
|
941
|
-
<Note>**Required permission:** `read:
|
|
1005
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
942
1006
|
</dd>
|
|
943
1007
|
</dl>
|
|
944
1008
|
</dd>
|
|
@@ -953,18 +1017,7 @@ Fetches conversation data visualized in a chart format. Supported chart types in
|
|
|
953
1017
|
<dd>
|
|
954
1018
|
|
|
955
1019
|
```typescript
|
|
956
|
-
await client.
|
|
957
|
-
type: "pieChart",
|
|
958
|
-
conversationFilter: {
|
|
959
|
-
languages: ["en", "es"]
|
|
960
|
-
},
|
|
961
|
-
groupBy: {
|
|
962
|
-
field: "Category"
|
|
963
|
-
},
|
|
964
|
-
metric: {
|
|
965
|
-
type: "count"
|
|
966
|
-
}
|
|
967
|
-
});
|
|
1020
|
+
await client.agentVariants.listTrafficConfigs();
|
|
968
1021
|
|
|
969
1022
|
```
|
|
970
1023
|
</dd>
|
|
@@ -980,7 +1033,7 @@ await client.analytics.getConversationChart({
|
|
|
980
1033
|
<dl>
|
|
981
1034
|
<dd>
|
|
982
1035
|
|
|
983
|
-
**request:** `MavenAGI.
|
|
1036
|
+
**request:** `MavenAGI.ListTrafficConfigsRequest`
|
|
984
1037
|
|
|
985
1038
|
</dd>
|
|
986
1039
|
</dl>
|
|
@@ -988,7 +1041,7 @@ await client.analytics.getConversationChart({
|
|
|
988
1041
|
<dl>
|
|
989
1042
|
<dd>
|
|
990
1043
|
|
|
991
|
-
**requestOptions:** `
|
|
1044
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
992
1045
|
|
|
993
1046
|
</dd>
|
|
994
1047
|
</dl>
|
|
@@ -1000,7 +1053,7 @@ await client.analytics.getConversationChart({
|
|
|
1000
1053
|
</dl>
|
|
1001
1054
|
</details>
|
|
1002
1055
|
|
|
1003
|
-
<details><summary><code>client.
|
|
1056
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">getEntityEdit</a>(variantReferenceId, { ...params }) -> MavenAGI.EntityEditResponse</code></summary>
|
|
1004
1057
|
<dl>
|
|
1005
1058
|
<dd>
|
|
1006
1059
|
|
|
@@ -1012,11 +1065,9 @@ await client.analytics.getConversationChart({
|
|
|
1012
1065
|
<dl>
|
|
1013
1066
|
<dd>
|
|
1014
1067
|
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
|
|
1068
|
+
Get the edit staged for one entity in an agent variant's working set. A 404 means nothing is staged for it. `entityId.type` must be `INTELLIGENT_FIELD` or `CHARTER`; any other type is rejected with a 400. A versioned agent setting's staged edit is read with `getSettingEdit`.
|
|
1018
1069
|
|
|
1019
|
-
<Note>**Required permission:** `read:
|
|
1070
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
1020
1071
|
</dd>
|
|
1021
1072
|
</dl>
|
|
1022
1073
|
</dd>
|
|
@@ -1031,23 +1082,12 @@ This outputs the current table view defined by the request. For most programmati
|
|
|
1031
1082
|
<dd>
|
|
1032
1083
|
|
|
1033
1084
|
```typescript
|
|
1034
|
-
await client.
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
columnDefinitions: [{
|
|
1041
|
-
metric: {
|
|
1042
|
-
type: "count"
|
|
1043
|
-
},
|
|
1044
|
-
header: "header"
|
|
1045
|
-
}, {
|
|
1046
|
-
metric: {
|
|
1047
|
-
type: "count"
|
|
1048
|
-
},
|
|
1049
|
-
header: "header"
|
|
1050
|
-
}]
|
|
1085
|
+
await client.agentVariants.getEntityEdit("variantReferenceId", {
|
|
1086
|
+
entityId: {
|
|
1087
|
+
type: "AGENT",
|
|
1088
|
+
appId: "appId",
|
|
1089
|
+
referenceId: "x"
|
|
1090
|
+
}
|
|
1051
1091
|
});
|
|
1052
1092
|
|
|
1053
1093
|
```
|
|
@@ -1064,7 +1104,7 @@ await client.analytics.exportConversationTable({
|
|
|
1064
1104
|
<dl>
|
|
1065
1105
|
<dd>
|
|
1066
1106
|
|
|
1067
|
-
**
|
|
1107
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant.
|
|
1068
1108
|
|
|
1069
1109
|
</dd>
|
|
1070
1110
|
</dl>
|
|
@@ -1072,7 +1112,15 @@ await client.analytics.exportConversationTable({
|
|
|
1072
1112
|
<dl>
|
|
1073
1113
|
<dd>
|
|
1074
1114
|
|
|
1075
|
-
**
|
|
1115
|
+
**request:** `MavenAGI.GetEntityEditByIdRequest`
|
|
1116
|
+
|
|
1117
|
+
</dd>
|
|
1118
|
+
</dl>
|
|
1119
|
+
|
|
1120
|
+
<dl>
|
|
1121
|
+
<dd>
|
|
1122
|
+
|
|
1123
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1076
1124
|
|
|
1077
1125
|
</dd>
|
|
1078
1126
|
</dl>
|
|
@@ -1084,7 +1132,7 @@ await client.analytics.exportConversationTable({
|
|
|
1084
1132
|
</dl>
|
|
1085
1133
|
</details>
|
|
1086
1134
|
|
|
1087
|
-
<details><summary><code>client.
|
|
1135
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">getSettingEdit</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentSettingEdits</code></summary>
|
|
1088
1136
|
<dl>
|
|
1089
1137
|
<dd>
|
|
1090
1138
|
|
|
@@ -1096,7 +1144,8 @@ await client.analytics.exportConversationTable({
|
|
|
1096
1144
|
<dl>
|
|
1097
1145
|
<dd>
|
|
1098
1146
|
|
|
1099
|
-
|
|
1147
|
+
Get the edit staged for one versioned agent setting in an agent variant's working set, the `getEntityEdit` counterpart for settings. A 404 means nothing is staged for it.
|
|
1148
|
+
|
|
1100
1149
|
<Note>**Required permission:** `read:agents`</Note>
|
|
1101
1150
|
</dd>
|
|
1102
1151
|
</dl>
|
|
@@ -1112,16 +1161,8 @@ Retrieves structured agent user data formatted as a table, allowing users to gro
|
|
|
1112
1161
|
<dd>
|
|
1113
1162
|
|
|
1114
1163
|
```typescript
|
|
1115
|
-
await client.
|
|
1116
|
-
|
|
1117
|
-
search: "john"
|
|
1118
|
-
},
|
|
1119
|
-
columnDefinitions: [{
|
|
1120
|
-
header: "user_count",
|
|
1121
|
-
metric: {
|
|
1122
|
-
type: "count"
|
|
1123
|
-
}
|
|
1124
|
-
}]
|
|
1164
|
+
await client.agentVariants.getSettingEdit("variantReferenceId", {
|
|
1165
|
+
setting: "SYSTEM_FALLBACK_MESSAGE"
|
|
1125
1166
|
});
|
|
1126
1167
|
|
|
1127
1168
|
```
|
|
@@ -1138,7 +1179,7 @@ await client.analytics.getAgentUserTable({
|
|
|
1138
1179
|
<dl>
|
|
1139
1180
|
<dd>
|
|
1140
1181
|
|
|
1141
|
-
**
|
|
1182
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant.
|
|
1142
1183
|
|
|
1143
1184
|
</dd>
|
|
1144
1185
|
</dl>
|
|
@@ -1146,7 +1187,1687 @@ await client.analytics.getAgentUserTable({
|
|
|
1146
1187
|
<dl>
|
|
1147
1188
|
<dd>
|
|
1148
1189
|
|
|
1149
|
-
**
|
|
1190
|
+
**request:** `MavenAGI.GetSettingEditRequest`
|
|
1191
|
+
|
|
1192
|
+
</dd>
|
|
1193
|
+
</dl>
|
|
1194
|
+
|
|
1195
|
+
<dl>
|
|
1196
|
+
<dd>
|
|
1197
|
+
|
|
1198
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1199
|
+
|
|
1200
|
+
</dd>
|
|
1201
|
+
</dl>
|
|
1202
|
+
</dd>
|
|
1203
|
+
</dl>
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
</dd>
|
|
1207
|
+
</dl>
|
|
1208
|
+
</details>
|
|
1209
|
+
|
|
1210
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">diffWorkingSet</a>(variantReferenceId, { ...params }) -> MavenAGI.WorkingSetDiffResponse</code></summary>
|
|
1211
|
+
<dl>
|
|
1212
|
+
<dd>
|
|
1213
|
+
|
|
1214
|
+
#### 📝 Description
|
|
1215
|
+
|
|
1216
|
+
<dl>
|
|
1217
|
+
<dd>
|
|
1218
|
+
|
|
1219
|
+
<dl>
|
|
1220
|
+
<dd>
|
|
1221
|
+
|
|
1222
|
+
Shows what committing an agent variant's working set would change. For each intelligent field that would change, returns one `IntelligentFieldDiff`, and for each charter one `CharterDiff`: `before` is it as the variant's snapshot has it, and `after` is it once the staged edits are applied. Each list is ordered as `compare` orders it. `agentSettings` holds the versioned agent settings the same way, and is absent when the working set changes none.
|
|
1223
|
+
|
|
1224
|
+
A field or charter the working set deletes is `deleted`. One created and deleted within the same working set doesn't appear.
|
|
1225
|
+
|
|
1226
|
+
To read one entity's staged edit, use `getEntityEdit`, or `getSettingEdit` for a versioned agent setting.
|
|
1227
|
+
|
|
1228
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
1229
|
+
</dd>
|
|
1230
|
+
</dl>
|
|
1231
|
+
</dd>
|
|
1232
|
+
</dl>
|
|
1233
|
+
|
|
1234
|
+
#### 🔌 Usage
|
|
1235
|
+
|
|
1236
|
+
<dl>
|
|
1237
|
+
<dd>
|
|
1238
|
+
|
|
1239
|
+
<dl>
|
|
1240
|
+
<dd>
|
|
1241
|
+
|
|
1242
|
+
```typescript
|
|
1243
|
+
await client.agentVariants.diffWorkingSet("variantReferenceId");
|
|
1244
|
+
|
|
1245
|
+
```
|
|
1246
|
+
</dd>
|
|
1247
|
+
</dl>
|
|
1248
|
+
</dd>
|
|
1249
|
+
</dl>
|
|
1250
|
+
|
|
1251
|
+
#### ⚙️ Parameters
|
|
1252
|
+
|
|
1253
|
+
<dl>
|
|
1254
|
+
<dd>
|
|
1255
|
+
|
|
1256
|
+
<dl>
|
|
1257
|
+
<dd>
|
|
1258
|
+
|
|
1259
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant whose working set to diff.
|
|
1260
|
+
|
|
1261
|
+
</dd>
|
|
1262
|
+
</dl>
|
|
1263
|
+
|
|
1264
|
+
<dl>
|
|
1265
|
+
<dd>
|
|
1266
|
+
|
|
1267
|
+
**request:** `MavenAGI.WorkingSetDiffRequest`
|
|
1268
|
+
|
|
1269
|
+
</dd>
|
|
1270
|
+
</dl>
|
|
1271
|
+
|
|
1272
|
+
<dl>
|
|
1273
|
+
<dd>
|
|
1274
|
+
|
|
1275
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1276
|
+
|
|
1277
|
+
</dd>
|
|
1278
|
+
</dl>
|
|
1279
|
+
</dd>
|
|
1280
|
+
</dl>
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
</dd>
|
|
1284
|
+
</dl>
|
|
1285
|
+
</details>
|
|
1286
|
+
|
|
1287
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">discardEdits</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
1288
|
+
<dl>
|
|
1289
|
+
<dd>
|
|
1290
|
+
|
|
1291
|
+
#### 📝 Description
|
|
1292
|
+
|
|
1293
|
+
<dl>
|
|
1294
|
+
<dd>
|
|
1295
|
+
|
|
1296
|
+
<dl>
|
|
1297
|
+
<dd>
|
|
1298
|
+
|
|
1299
|
+
Discards every edit staged in an agent variant's working set, returning the variant to its
|
|
1300
|
+
committed configuration. Unrecoverable: the discarded edits are gone.
|
|
1301
|
+
|
|
1302
|
+
Succeeds with the variant unchanged when the working set is already empty. Published
|
|
1303
|
+
versions of the affected entities are untouched -- only the staged edits are removed.
|
|
1304
|
+
|
|
1305
|
+
Pass `expectedWorkingSetRevision` to discard only what you last read: if an edit was staged
|
|
1306
|
+
since, the request fails with reason `STALE_WORKING_SET` and nothing is discarded. An
|
|
1307
|
+
empty working set succeeds whatever revision is passed, so resending a discard is safe.
|
|
1308
|
+
|
|
1309
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
1310
|
+
</dd>
|
|
1311
|
+
</dl>
|
|
1312
|
+
</dd>
|
|
1313
|
+
</dl>
|
|
1314
|
+
|
|
1315
|
+
#### 🔌 Usage
|
|
1316
|
+
|
|
1317
|
+
<dl>
|
|
1318
|
+
<dd>
|
|
1319
|
+
|
|
1320
|
+
<dl>
|
|
1321
|
+
<dd>
|
|
1322
|
+
|
|
1323
|
+
```typescript
|
|
1324
|
+
await client.agentVariants.discardEdits("variantReferenceId_123");
|
|
1325
|
+
|
|
1326
|
+
```
|
|
1327
|
+
</dd>
|
|
1328
|
+
</dl>
|
|
1329
|
+
</dd>
|
|
1330
|
+
</dl>
|
|
1331
|
+
|
|
1332
|
+
#### ⚙️ Parameters
|
|
1333
|
+
|
|
1334
|
+
<dl>
|
|
1335
|
+
<dd>
|
|
1336
|
+
|
|
1337
|
+
<dl>
|
|
1338
|
+
<dd>
|
|
1339
|
+
|
|
1340
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant whose working set should be discarded.
|
|
1341
|
+
|
|
1342
|
+
</dd>
|
|
1343
|
+
</dl>
|
|
1344
|
+
|
|
1345
|
+
<dl>
|
|
1346
|
+
<dd>
|
|
1347
|
+
|
|
1348
|
+
**request:** `MavenAGI.DiscardWorkingSetEditsRequest`
|
|
1349
|
+
|
|
1350
|
+
</dd>
|
|
1351
|
+
</dl>
|
|
1352
|
+
|
|
1353
|
+
<dl>
|
|
1354
|
+
<dd>
|
|
1355
|
+
|
|
1356
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1357
|
+
|
|
1358
|
+
</dd>
|
|
1359
|
+
</dl>
|
|
1360
|
+
</dd>
|
|
1361
|
+
</dl>
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
</dd>
|
|
1365
|
+
</dl>
|
|
1366
|
+
</details>
|
|
1367
|
+
|
|
1368
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">delete</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
1369
|
+
<dl>
|
|
1370
|
+
<dd>
|
|
1371
|
+
|
|
1372
|
+
#### 📝 Description
|
|
1373
|
+
|
|
1374
|
+
<dl>
|
|
1375
|
+
<dd>
|
|
1376
|
+
|
|
1377
|
+
<dl>
|
|
1378
|
+
<dd>
|
|
1379
|
+
|
|
1380
|
+
Delete an agent variant, and every variant forked from it. A deleted variant is marked DELETED, not erased: `createOrUpdate` with the same ID resurrects it with its configuration. Rejected while the variant has live traffic (reason `CANNOT_ARCHIVE_LIVE_VARIANT`) or while any variant forked from it is ACTIVE.
|
|
1381
|
+
|
|
1382
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
1383
|
+
</dd>
|
|
1384
|
+
</dl>
|
|
1385
|
+
</dd>
|
|
1386
|
+
</dl>
|
|
1387
|
+
|
|
1388
|
+
#### 🔌 Usage
|
|
1389
|
+
|
|
1390
|
+
<dl>
|
|
1391
|
+
<dd>
|
|
1392
|
+
|
|
1393
|
+
<dl>
|
|
1394
|
+
<dd>
|
|
1395
|
+
|
|
1396
|
+
```typescript
|
|
1397
|
+
await client.agentVariants.delete("variantReferenceId_123");
|
|
1398
|
+
|
|
1399
|
+
```
|
|
1400
|
+
</dd>
|
|
1401
|
+
</dl>
|
|
1402
|
+
</dd>
|
|
1403
|
+
</dl>
|
|
1404
|
+
|
|
1405
|
+
#### ⚙️ Parameters
|
|
1406
|
+
|
|
1407
|
+
<dl>
|
|
1408
|
+
<dd>
|
|
1409
|
+
|
|
1410
|
+
<dl>
|
|
1411
|
+
<dd>
|
|
1412
|
+
|
|
1413
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant to delete.
|
|
1414
|
+
|
|
1415
|
+
</dd>
|
|
1416
|
+
</dl>
|
|
1417
|
+
|
|
1418
|
+
<dl>
|
|
1419
|
+
<dd>
|
|
1420
|
+
|
|
1421
|
+
**request:** `MavenAGI.AgentVariantDeleteRequest`
|
|
1422
|
+
|
|
1423
|
+
</dd>
|
|
1424
|
+
</dl>
|
|
1425
|
+
|
|
1426
|
+
<dl>
|
|
1427
|
+
<dd>
|
|
1428
|
+
|
|
1429
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1430
|
+
|
|
1431
|
+
</dd>
|
|
1432
|
+
</dl>
|
|
1433
|
+
</dd>
|
|
1434
|
+
</dl>
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
</dd>
|
|
1438
|
+
</dl>
|
|
1439
|
+
</details>
|
|
1440
|
+
|
|
1441
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">commit</a>(variantReferenceId, { ...params }) -> MavenAGI.AgentVariantResponse</code></summary>
|
|
1442
|
+
<dl>
|
|
1443
|
+
<dd>
|
|
1444
|
+
|
|
1445
|
+
#### 📝 Description
|
|
1446
|
+
|
|
1447
|
+
<dl>
|
|
1448
|
+
<dd>
|
|
1449
|
+
|
|
1450
|
+
<dl>
|
|
1451
|
+
<dd>
|
|
1452
|
+
|
|
1453
|
+
Commits the source variant's staged edits: creates a new agent variant, named by `newVariantId`, whose configuration is the source's plus the edits staged in its working set. The source keeps its own configuration. The response describes the new variant.
|
|
1454
|
+
|
|
1455
|
+
The new variant's base is the source's base, even if that base has since been archived, so it takes the source's place next to the same variants. Its `committedFromVariantId` names the source. It's created in the calling app. By default the source's working set is cleared; pass `clearWorkingSet: false` to keep it.
|
|
1456
|
+
|
|
1457
|
+
Pass `archiveSource: true` to replace the source: the source is archived in the same transaction that creates the new variant, so either both happen or neither does. The source then no longer counts toward the agent's limit of ACTIVE variants, so a replace succeeds at the limit.
|
|
1458
|
+
|
|
1459
|
+
Mint a new `newVariantId` for each commit. A request naming a variant that already exists, deleted ones included, is rejected, so a resend after a lost response fails with `VARIANT_ALREADY_EXISTS`: read the variant by `newVariantId` to see what the first attempt committed.
|
|
1460
|
+
|
|
1461
|
+
Rejections:
|
|
1462
|
+
- `VARIANT_NOT_ACTIVE`: the source is archived or deleted.
|
|
1463
|
+
- `STALE_WORKING_SET`: `expectedWorkingSetRevision` isn't the source's current `workingSetRevision`. Re-read the working set and retry.
|
|
1464
|
+
- `WORKING_SET_HAS_UNVERSIONED_EDITS`: the working set holds edits of an entity type or agent setting that isn't versioned for the agent now. This can only happen after Maven turns versioning off for the agent; contact Maven support.
|
|
1465
|
+
- `NOTHING_TO_COMMIT`: the staged edits don't change the source's configuration.
|
|
1466
|
+
- `VARIANT_ALREADY_EXISTS`: a variant named `newVariantId` already exists.
|
|
1467
|
+
- `CANNOT_ARCHIVE_LIVE_VARIANT`: `archiveSource` is true and the source has live traffic, so it can't be archived. Move its traffic elsewhere, or commit without `archiveSource`.
|
|
1468
|
+
- `VARIANT_LIMIT_REACHED`: the agent is at its limit of ACTIVE variants (25 by default; the error message gives the agent's limit), and the new variant would exceed it. A commit with `archiveSource: true` doesn't add one, so it isn't refused at the limit. Otherwise, archive or delete a variant, then retry.
|
|
1469
|
+
|
|
1470
|
+
`archiveSource: true` can't be combined with `clearWorkingSet: false` (a 400 with no reason), since the kept edits would be left on an archived variant.
|
|
1471
|
+
|
|
1472
|
+
Shown in Agent Designer as "Publish".
|
|
1473
|
+
|
|
1474
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
1475
|
+
</dd>
|
|
1476
|
+
</dl>
|
|
1477
|
+
</dd>
|
|
1478
|
+
</dl>
|
|
1479
|
+
|
|
1480
|
+
#### 🔌 Usage
|
|
1481
|
+
|
|
1482
|
+
<dl>
|
|
1483
|
+
<dd>
|
|
1484
|
+
|
|
1485
|
+
<dl>
|
|
1486
|
+
<dd>
|
|
1487
|
+
|
|
1488
|
+
```typescript
|
|
1489
|
+
await client.agentVariants.commit("variantReferenceId", {
|
|
1490
|
+
newVariantId: {
|
|
1491
|
+
referenceId: "x"
|
|
1492
|
+
},
|
|
1493
|
+
expectedWorkingSetRevision: 1000000,
|
|
1494
|
+
title: "title"
|
|
1495
|
+
});
|
|
1496
|
+
|
|
1497
|
+
```
|
|
1498
|
+
</dd>
|
|
1499
|
+
</dl>
|
|
1500
|
+
</dd>
|
|
1501
|
+
</dl>
|
|
1502
|
+
|
|
1503
|
+
#### ⚙️ Parameters
|
|
1504
|
+
|
|
1505
|
+
<dl>
|
|
1506
|
+
<dd>
|
|
1507
|
+
|
|
1508
|
+
<dl>
|
|
1509
|
+
<dd>
|
|
1510
|
+
|
|
1511
|
+
**variantReferenceId:** `string` — The referenceId of the agent variant whose staged edits to commit.
|
|
1512
|
+
|
|
1513
|
+
</dd>
|
|
1514
|
+
</dl>
|
|
1515
|
+
|
|
1516
|
+
<dl>
|
|
1517
|
+
<dd>
|
|
1518
|
+
|
|
1519
|
+
**request:** `MavenAGI.AgentVariantCommitRequest`
|
|
1520
|
+
|
|
1521
|
+
</dd>
|
|
1522
|
+
</dl>
|
|
1523
|
+
|
|
1524
|
+
<dl>
|
|
1525
|
+
<dd>
|
|
1526
|
+
|
|
1527
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1528
|
+
|
|
1529
|
+
</dd>
|
|
1530
|
+
</dl>
|
|
1531
|
+
</dd>
|
|
1532
|
+
</dl>
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
</dd>
|
|
1536
|
+
</dl>
|
|
1537
|
+
</details>
|
|
1538
|
+
|
|
1539
|
+
<details><summary><code>client.agentVariants.<a href="/src/api/resources/agentVariants/client/Client.ts">compare</a>({ ...params }) -> MavenAGI.AgentVariantCompareResponse</code></summary>
|
|
1540
|
+
<dl>
|
|
1541
|
+
<dd>
|
|
1542
|
+
|
|
1543
|
+
#### 📝 Description
|
|
1544
|
+
|
|
1545
|
+
<dl>
|
|
1546
|
+
<dd>
|
|
1547
|
+
|
|
1548
|
+
<dl>
|
|
1549
|
+
<dd>
|
|
1550
|
+
|
|
1551
|
+
Compares the intelligent fields, charters and versioned agent settings in two variants' snapshots: what changed going from `fromVariantId`, the baseline, to `toVariantId`, as `git diff <from> <to>` reads. So comparing from a variant's `baseVariantId` to the variant shows what the variant changed. Staged edits aren't included; diff those with `diffWorkingSet`.
|
|
1552
|
+
|
|
1553
|
+
Each field that differs is one `IntelligentFieldDiff`, and each charter one `CharterDiff`, oldest change first: `before` is it as `fromVariantId` has it and `after` as `toVariantId` has it. `agentSettings` holds every versioned agent setting on each side when any differs, and is absent when none does. A field or charter at a DELETED version counts as absent, so one deleted in `toVariantId` is `deleted`.
|
|
1554
|
+
|
|
1555
|
+
`entityId` narrows the differences to one intelligent field or charter, and `setting` to one versioned agent setting; naming both is rejected with a 400.
|
|
1556
|
+
|
|
1557
|
+
Either variant can be archived or deleted. Comparing a variant with itself returns no differences.
|
|
1558
|
+
|
|
1559
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
1560
|
+
</dd>
|
|
1561
|
+
</dl>
|
|
1562
|
+
</dd>
|
|
1563
|
+
</dl>
|
|
1564
|
+
|
|
1565
|
+
#### 🔌 Usage
|
|
1566
|
+
|
|
1567
|
+
<dl>
|
|
1568
|
+
<dd>
|
|
1569
|
+
|
|
1570
|
+
<dl>
|
|
1571
|
+
<dd>
|
|
1572
|
+
|
|
1573
|
+
```typescript
|
|
1574
|
+
await client.agentVariants.compare({
|
|
1575
|
+
fromVariantId: {
|
|
1576
|
+
referenceId: "variant_123",
|
|
1577
|
+
appId: "zendesk",
|
|
1578
|
+
type: "AGENT_VARIANT"
|
|
1579
|
+
},
|
|
1580
|
+
toVariantId: {
|
|
1581
|
+
referenceId: "variant_456",
|
|
1582
|
+
appId: "zendesk",
|
|
1583
|
+
type: "AGENT_VARIANT"
|
|
1584
|
+
}
|
|
1585
|
+
});
|
|
1586
|
+
|
|
1587
|
+
```
|
|
1588
|
+
</dd>
|
|
1589
|
+
</dl>
|
|
1590
|
+
</dd>
|
|
1591
|
+
</dl>
|
|
1592
|
+
|
|
1593
|
+
#### ⚙️ Parameters
|
|
1594
|
+
|
|
1595
|
+
<dl>
|
|
1596
|
+
<dd>
|
|
1597
|
+
|
|
1598
|
+
<dl>
|
|
1599
|
+
<dd>
|
|
1600
|
+
|
|
1601
|
+
**request:** `MavenAGI.AgentVariantCompareRequest`
|
|
1602
|
+
|
|
1603
|
+
</dd>
|
|
1604
|
+
</dl>
|
|
1605
|
+
|
|
1606
|
+
<dl>
|
|
1607
|
+
<dd>
|
|
1608
|
+
|
|
1609
|
+
**requestOptions:** `AgentVariantsClient.RequestOptions`
|
|
1610
|
+
|
|
1611
|
+
</dd>
|
|
1612
|
+
</dl>
|
|
1613
|
+
</dd>
|
|
1614
|
+
</dl>
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
</dd>
|
|
1618
|
+
</dl>
|
|
1619
|
+
</details>
|
|
1620
|
+
|
|
1621
|
+
## Agents
|
|
1622
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AgentsSearchResponse</code></summary>
|
|
1623
|
+
<dl>
|
|
1624
|
+
<dd>
|
|
1625
|
+
|
|
1626
|
+
#### 📝 Description
|
|
1627
|
+
|
|
1628
|
+
<dl>
|
|
1629
|
+
<dd>
|
|
1630
|
+
|
|
1631
|
+
<dl>
|
|
1632
|
+
<dd>
|
|
1633
|
+
|
|
1634
|
+
Search for agents across all organizations.
|
|
1635
|
+
|
|
1636
|
+
Only Maven staff hold this permission.
|
|
1637
|
+
|
|
1638
|
+
<Note>**Required permission:** `read:all-organizations`</Note>
|
|
1639
|
+
</dd>
|
|
1640
|
+
</dl>
|
|
1641
|
+
</dd>
|
|
1642
|
+
</dl>
|
|
1643
|
+
|
|
1644
|
+
#### 🔌 Usage
|
|
1645
|
+
|
|
1646
|
+
<dl>
|
|
1647
|
+
<dd>
|
|
1648
|
+
|
|
1649
|
+
<dl>
|
|
1650
|
+
<dd>
|
|
1651
|
+
|
|
1652
|
+
```typescript
|
|
1653
|
+
await client.agents.search({});
|
|
1654
|
+
|
|
1655
|
+
```
|
|
1656
|
+
</dd>
|
|
1657
|
+
</dl>
|
|
1658
|
+
</dd>
|
|
1659
|
+
</dl>
|
|
1660
|
+
|
|
1661
|
+
#### ⚙️ Parameters
|
|
1662
|
+
|
|
1663
|
+
<dl>
|
|
1664
|
+
<dd>
|
|
1665
|
+
|
|
1666
|
+
<dl>
|
|
1667
|
+
<dd>
|
|
1668
|
+
|
|
1669
|
+
**request:** `MavenAGI.AgentsSearchRequest`
|
|
1670
|
+
|
|
1671
|
+
</dd>
|
|
1672
|
+
</dl>
|
|
1673
|
+
|
|
1674
|
+
<dl>
|
|
1675
|
+
<dd>
|
|
1676
|
+
|
|
1677
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1678
|
+
|
|
1679
|
+
</dd>
|
|
1680
|
+
</dl>
|
|
1681
|
+
</dd>
|
|
1682
|
+
</dl>
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
</dd>
|
|
1686
|
+
</dl>
|
|
1687
|
+
</details>
|
|
1688
|
+
|
|
1689
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">list</a>(organizationReferenceId) -> MavenAGI.Agent[]</code></summary>
|
|
1690
|
+
<dl>
|
|
1691
|
+
<dd>
|
|
1692
|
+
|
|
1693
|
+
#### 📝 Description
|
|
1694
|
+
|
|
1695
|
+
<dl>
|
|
1696
|
+
<dd>
|
|
1697
|
+
|
|
1698
|
+
<dl>
|
|
1699
|
+
<dd>
|
|
1700
|
+
|
|
1701
|
+
Lists all agents for an organization
|
|
1702
|
+
|
|
1703
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
1704
|
+
</dd>
|
|
1705
|
+
</dl>
|
|
1706
|
+
</dd>
|
|
1707
|
+
</dl>
|
|
1708
|
+
|
|
1709
|
+
#### 🔌 Usage
|
|
1710
|
+
|
|
1711
|
+
<dl>
|
|
1712
|
+
<dd>
|
|
1713
|
+
|
|
1714
|
+
<dl>
|
|
1715
|
+
<dd>
|
|
1716
|
+
|
|
1717
|
+
```typescript
|
|
1718
|
+
await client.agents.list("organizationReferenceId");
|
|
1719
|
+
|
|
1720
|
+
```
|
|
1721
|
+
</dd>
|
|
1722
|
+
</dl>
|
|
1723
|
+
</dd>
|
|
1724
|
+
</dl>
|
|
1725
|
+
|
|
1726
|
+
#### ⚙️ Parameters
|
|
1727
|
+
|
|
1728
|
+
<dl>
|
|
1729
|
+
<dd>
|
|
1730
|
+
|
|
1731
|
+
<dl>
|
|
1732
|
+
<dd>
|
|
1733
|
+
|
|
1734
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
1735
|
+
|
|
1736
|
+
</dd>
|
|
1737
|
+
</dl>
|
|
1738
|
+
|
|
1739
|
+
<dl>
|
|
1740
|
+
<dd>
|
|
1741
|
+
|
|
1742
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1743
|
+
|
|
1744
|
+
</dd>
|
|
1745
|
+
</dl>
|
|
1746
|
+
</dd>
|
|
1747
|
+
</dl>
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
</dd>
|
|
1751
|
+
</dl>
|
|
1752
|
+
</details>
|
|
1753
|
+
|
|
1754
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">create</a>(organizationReferenceId, agentReferenceId, { ...params }) -> MavenAGI.Agent</code></summary>
|
|
1755
|
+
<dl>
|
|
1756
|
+
<dd>
|
|
1757
|
+
|
|
1758
|
+
#### 📝 Description
|
|
1759
|
+
|
|
1760
|
+
<dl>
|
|
1761
|
+
<dd>
|
|
1762
|
+
|
|
1763
|
+
<dl>
|
|
1764
|
+
<dd>
|
|
1765
|
+
|
|
1766
|
+
Create a new agent
|
|
1767
|
+
|
|
1768
|
+
<Note>**Required permission:** `create:agents`</Note>
|
|
1769
|
+
</dd>
|
|
1770
|
+
</dl>
|
|
1771
|
+
</dd>
|
|
1772
|
+
</dl>
|
|
1773
|
+
|
|
1774
|
+
#### 🔌 Usage
|
|
1775
|
+
|
|
1776
|
+
<dl>
|
|
1777
|
+
<dd>
|
|
1778
|
+
|
|
1779
|
+
<dl>
|
|
1780
|
+
<dd>
|
|
1781
|
+
|
|
1782
|
+
```typescript
|
|
1783
|
+
await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
1784
|
+
name: "name",
|
|
1785
|
+
environment: "DEMO"
|
|
1786
|
+
});
|
|
1787
|
+
|
|
1788
|
+
```
|
|
1789
|
+
</dd>
|
|
1790
|
+
</dl>
|
|
1791
|
+
</dd>
|
|
1792
|
+
</dl>
|
|
1793
|
+
|
|
1794
|
+
#### ⚙️ Parameters
|
|
1795
|
+
|
|
1796
|
+
<dl>
|
|
1797
|
+
<dd>
|
|
1798
|
+
|
|
1799
|
+
<dl>
|
|
1800
|
+
<dd>
|
|
1801
|
+
|
|
1802
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
1803
|
+
|
|
1804
|
+
</dd>
|
|
1805
|
+
</dl>
|
|
1806
|
+
|
|
1807
|
+
<dl>
|
|
1808
|
+
<dd>
|
|
1809
|
+
|
|
1810
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
1811
|
+
|
|
1812
|
+
</dd>
|
|
1813
|
+
</dl>
|
|
1814
|
+
|
|
1815
|
+
<dl>
|
|
1816
|
+
<dd>
|
|
1817
|
+
|
|
1818
|
+
**request:** `MavenAGI.CreateAgentRequest`
|
|
1819
|
+
|
|
1820
|
+
</dd>
|
|
1821
|
+
</dl>
|
|
1822
|
+
|
|
1823
|
+
<dl>
|
|
1824
|
+
<dd>
|
|
1825
|
+
|
|
1826
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1827
|
+
|
|
1828
|
+
</dd>
|
|
1829
|
+
</dl>
|
|
1830
|
+
</dd>
|
|
1831
|
+
</dl>
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
</dd>
|
|
1835
|
+
</dl>
|
|
1836
|
+
</details>
|
|
1837
|
+
|
|
1838
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">get</a>(organizationReferenceId, agentReferenceId) -> MavenAGI.Agent</code></summary>
|
|
1839
|
+
<dl>
|
|
1840
|
+
<dd>
|
|
1841
|
+
|
|
1842
|
+
#### 📝 Description
|
|
1843
|
+
|
|
1844
|
+
<dl>
|
|
1845
|
+
<dd>
|
|
1846
|
+
|
|
1847
|
+
<dl>
|
|
1848
|
+
<dd>
|
|
1849
|
+
|
|
1850
|
+
Get an agent
|
|
1851
|
+
|
|
1852
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
1853
|
+
</dd>
|
|
1854
|
+
</dl>
|
|
1855
|
+
</dd>
|
|
1856
|
+
</dl>
|
|
1857
|
+
|
|
1858
|
+
#### 🔌 Usage
|
|
1859
|
+
|
|
1860
|
+
<dl>
|
|
1861
|
+
<dd>
|
|
1862
|
+
|
|
1863
|
+
<dl>
|
|
1864
|
+
<dd>
|
|
1865
|
+
|
|
1866
|
+
```typescript
|
|
1867
|
+
await client.agents.get("organizationReferenceId", "agentReferenceId");
|
|
1868
|
+
|
|
1869
|
+
```
|
|
1870
|
+
</dd>
|
|
1871
|
+
</dl>
|
|
1872
|
+
</dd>
|
|
1873
|
+
</dl>
|
|
1874
|
+
|
|
1875
|
+
#### ⚙️ Parameters
|
|
1876
|
+
|
|
1877
|
+
<dl>
|
|
1878
|
+
<dd>
|
|
1879
|
+
|
|
1880
|
+
<dl>
|
|
1881
|
+
<dd>
|
|
1882
|
+
|
|
1883
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
1884
|
+
|
|
1885
|
+
</dd>
|
|
1886
|
+
</dl>
|
|
1887
|
+
|
|
1888
|
+
<dl>
|
|
1889
|
+
<dd>
|
|
1890
|
+
|
|
1891
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
1892
|
+
|
|
1893
|
+
</dd>
|
|
1894
|
+
</dl>
|
|
1895
|
+
|
|
1896
|
+
<dl>
|
|
1897
|
+
<dd>
|
|
1898
|
+
|
|
1899
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1900
|
+
|
|
1901
|
+
</dd>
|
|
1902
|
+
</dl>
|
|
1903
|
+
</dd>
|
|
1904
|
+
</dl>
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
</dd>
|
|
1908
|
+
</dl>
|
|
1909
|
+
</details>
|
|
1910
|
+
|
|
1911
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">patch</a>(organizationReferenceId, agentReferenceId, { ...params }) -> MavenAGI.Agent</code></summary>
|
|
1912
|
+
<dl>
|
|
1913
|
+
<dd>
|
|
1914
|
+
|
|
1915
|
+
#### 📝 Description
|
|
1916
|
+
|
|
1917
|
+
<dl>
|
|
1918
|
+
<dd>
|
|
1919
|
+
|
|
1920
|
+
<dl>
|
|
1921
|
+
<dd>
|
|
1922
|
+
|
|
1923
|
+
Update mutable agent fields
|
|
1924
|
+
All fields will overwrite the existing value on the agent only if provided.
|
|
1925
|
+
|
|
1926
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
1927
|
+
</dd>
|
|
1928
|
+
</dl>
|
|
1929
|
+
</dd>
|
|
1930
|
+
</dl>
|
|
1931
|
+
|
|
1932
|
+
#### 🔌 Usage
|
|
1933
|
+
|
|
1934
|
+
<dl>
|
|
1935
|
+
<dd>
|
|
1936
|
+
|
|
1937
|
+
<dl>
|
|
1938
|
+
<dd>
|
|
1939
|
+
|
|
1940
|
+
```typescript
|
|
1941
|
+
await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
1942
|
+
|
|
1943
|
+
```
|
|
1944
|
+
</dd>
|
|
1945
|
+
</dl>
|
|
1946
|
+
</dd>
|
|
1947
|
+
</dl>
|
|
1948
|
+
|
|
1949
|
+
#### ⚙️ Parameters
|
|
1950
|
+
|
|
1951
|
+
<dl>
|
|
1952
|
+
<dd>
|
|
1953
|
+
|
|
1954
|
+
<dl>
|
|
1955
|
+
<dd>
|
|
1956
|
+
|
|
1957
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
1958
|
+
|
|
1959
|
+
</dd>
|
|
1960
|
+
</dl>
|
|
1961
|
+
|
|
1962
|
+
<dl>
|
|
1963
|
+
<dd>
|
|
1964
|
+
|
|
1965
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
1966
|
+
|
|
1967
|
+
</dd>
|
|
1968
|
+
</dl>
|
|
1969
|
+
|
|
1970
|
+
<dl>
|
|
1971
|
+
<dd>
|
|
1972
|
+
|
|
1973
|
+
**request:** `MavenAGI.AgentPatchRequest`
|
|
1974
|
+
|
|
1975
|
+
</dd>
|
|
1976
|
+
</dl>
|
|
1977
|
+
|
|
1978
|
+
<dl>
|
|
1979
|
+
<dd>
|
|
1980
|
+
|
|
1981
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1982
|
+
|
|
1983
|
+
</dd>
|
|
1984
|
+
</dl>
|
|
1985
|
+
</dd>
|
|
1986
|
+
</dl>
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
</dd>
|
|
1990
|
+
</dl>
|
|
1991
|
+
</details>
|
|
1992
|
+
|
|
1993
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">delete</a>(organizationReferenceId, agentReferenceId) -> void</code></summary>
|
|
1994
|
+
<dl>
|
|
1995
|
+
<dd>
|
|
1996
|
+
|
|
1997
|
+
#### 📝 Description
|
|
1998
|
+
|
|
1999
|
+
<dl>
|
|
2000
|
+
<dd>
|
|
2001
|
+
|
|
2002
|
+
<dl>
|
|
2003
|
+
<dd>
|
|
2004
|
+
|
|
2005
|
+
Delete an agent.
|
|
2006
|
+
|
|
2007
|
+
<Note>**Required permission:** `delete:agents`</Note>
|
|
2008
|
+
</dd>
|
|
2009
|
+
</dl>
|
|
2010
|
+
</dd>
|
|
2011
|
+
</dl>
|
|
2012
|
+
|
|
2013
|
+
#### 🔌 Usage
|
|
2014
|
+
|
|
2015
|
+
<dl>
|
|
2016
|
+
<dd>
|
|
2017
|
+
|
|
2018
|
+
<dl>
|
|
2019
|
+
<dd>
|
|
2020
|
+
|
|
2021
|
+
```typescript
|
|
2022
|
+
await client.agents.delete("organizationReferenceId", "agentReferenceId");
|
|
2023
|
+
|
|
2024
|
+
```
|
|
2025
|
+
</dd>
|
|
2026
|
+
</dl>
|
|
2027
|
+
</dd>
|
|
2028
|
+
</dl>
|
|
2029
|
+
|
|
2030
|
+
#### ⚙️ Parameters
|
|
2031
|
+
|
|
2032
|
+
<dl>
|
|
2033
|
+
<dd>
|
|
2034
|
+
|
|
2035
|
+
<dl>
|
|
2036
|
+
<dd>
|
|
2037
|
+
|
|
2038
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
2039
|
+
|
|
2040
|
+
</dd>
|
|
2041
|
+
</dl>
|
|
2042
|
+
|
|
2043
|
+
<dl>
|
|
2044
|
+
<dd>
|
|
2045
|
+
|
|
2046
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
2047
|
+
|
|
2048
|
+
</dd>
|
|
2049
|
+
</dl>
|
|
2050
|
+
|
|
2051
|
+
<dl>
|
|
2052
|
+
<dd>
|
|
2053
|
+
|
|
2054
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
2055
|
+
|
|
2056
|
+
</dd>
|
|
2057
|
+
</dl>
|
|
2058
|
+
</dd>
|
|
2059
|
+
</dl>
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
</dd>
|
|
2063
|
+
</dl>
|
|
2064
|
+
</details>
|
|
2065
|
+
|
|
2066
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">getVersionedSettings</a>(organizationReferenceId, agentReferenceId, { ...params }) -> MavenAGI.VersionedAgentSettings</code></summary>
|
|
2067
|
+
<dl>
|
|
2068
|
+
<dd>
|
|
2069
|
+
|
|
2070
|
+
#### 📝 Description
|
|
2071
|
+
|
|
2072
|
+
<dl>
|
|
2073
|
+
<dd>
|
|
2074
|
+
|
|
2075
|
+
<dl>
|
|
2076
|
+
<dd>
|
|
2077
|
+
|
|
2078
|
+
Get the agent's system fallback message and content-safety reply instructions.
|
|
2079
|
+
|
|
2080
|
+
Maven can turn on versioning for either setting. A versioned setting is listed in the
|
|
2081
|
+
agent's `migrations.versionedEntityTypes`, and its changes go through agent variants
|
|
2082
|
+
instead of applying to the agent directly.
|
|
2083
|
+
|
|
2084
|
+
- If either setting is versioned, name a variant. Each versioned setting comes back as
|
|
2085
|
+
that variant has it: its staged edit if there is one, otherwise what was last
|
|
2086
|
+
published; a setting that isn't versioned comes back as the agent has it. Without a
|
|
2087
|
+
variant, the request is rejected with reason `VARIANT_REQUIRED`.
|
|
2088
|
+
- If neither setting is versioned, don't name a variant. Both come back as the agent has
|
|
2089
|
+
them. Naming a variant is a 400.
|
|
2090
|
+
|
|
2091
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
2092
|
+
</dd>
|
|
2093
|
+
</dl>
|
|
2094
|
+
</dd>
|
|
2095
|
+
</dl>
|
|
2096
|
+
|
|
2097
|
+
#### 🔌 Usage
|
|
2098
|
+
|
|
2099
|
+
<dl>
|
|
2100
|
+
<dd>
|
|
2101
|
+
|
|
2102
|
+
<dl>
|
|
2103
|
+
<dd>
|
|
2104
|
+
|
|
2105
|
+
```typescript
|
|
2106
|
+
await client.agents.getVersionedSettings("organizationReferenceId", "agentReferenceId");
|
|
2107
|
+
|
|
2108
|
+
```
|
|
2109
|
+
</dd>
|
|
2110
|
+
</dl>
|
|
2111
|
+
</dd>
|
|
2112
|
+
</dl>
|
|
2113
|
+
|
|
2114
|
+
#### ⚙️ Parameters
|
|
2115
|
+
|
|
2116
|
+
<dl>
|
|
2117
|
+
<dd>
|
|
2118
|
+
|
|
2119
|
+
<dl>
|
|
2120
|
+
<dd>
|
|
2121
|
+
|
|
2122
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
2123
|
+
|
|
2124
|
+
</dd>
|
|
2125
|
+
</dl>
|
|
2126
|
+
|
|
2127
|
+
<dl>
|
|
2128
|
+
<dd>
|
|
2129
|
+
|
|
2130
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
2131
|
+
|
|
2132
|
+
</dd>
|
|
2133
|
+
</dl>
|
|
2134
|
+
|
|
2135
|
+
<dl>
|
|
2136
|
+
<dd>
|
|
2137
|
+
|
|
2138
|
+
**request:** `MavenAGI.GetVersionedAgentSettingsRequest`
|
|
2139
|
+
|
|
2140
|
+
</dd>
|
|
2141
|
+
</dl>
|
|
2142
|
+
|
|
2143
|
+
<dl>
|
|
2144
|
+
<dd>
|
|
2145
|
+
|
|
2146
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
2147
|
+
|
|
2148
|
+
</dd>
|
|
2149
|
+
</dl>
|
|
2150
|
+
</dd>
|
|
2151
|
+
</dl>
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
</dd>
|
|
2155
|
+
</dl>
|
|
2156
|
+
</details>
|
|
2157
|
+
|
|
2158
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">patchVersionedSettings</a>(organizationReferenceId, agentReferenceId, { ...params }) -> MavenAGI.VersionedAgentSettings</code></summary>
|
|
2159
|
+
<dl>
|
|
2160
|
+
<dd>
|
|
2161
|
+
|
|
2162
|
+
#### 📝 Description
|
|
2163
|
+
|
|
2164
|
+
<dl>
|
|
2165
|
+
<dd>
|
|
2166
|
+
|
|
2167
|
+
<dl>
|
|
2168
|
+
<dd>
|
|
2169
|
+
|
|
2170
|
+
Update the agent's system fallback message and content-safety reply instructions. Only the
|
|
2171
|
+
fields you send change; send null to clear one.
|
|
2172
|
+
|
|
2173
|
+
- A versioned setting (listed in `migrations.versionedEntityTypes`) is staged in the
|
|
2174
|
+
variant you name, and goes live when that variant is published.
|
|
2175
|
+
- A setting that isn't versioned is updated on the agent right away.
|
|
2176
|
+
|
|
2177
|
+
Name a variant if any setting you send is versioned (or, when you send none, if either
|
|
2178
|
+
is versioned), and don't name one otherwise, as for `getVersionedSettings`.
|
|
2179
|
+
|
|
2180
|
+
Returns what `getVersionedSettings` returns for the same variant. Without a variant,
|
|
2181
|
+
versioned settings are left out of the response.
|
|
2182
|
+
|
|
2183
|
+
<Note>**Required permission:** `edit:agents`</Note>
|
|
2184
|
+
</dd>
|
|
2185
|
+
</dl>
|
|
2186
|
+
</dd>
|
|
2187
|
+
</dl>
|
|
2188
|
+
|
|
2189
|
+
#### 🔌 Usage
|
|
2190
|
+
|
|
2191
|
+
<dl>
|
|
2192
|
+
<dd>
|
|
2193
|
+
|
|
2194
|
+
<dl>
|
|
2195
|
+
<dd>
|
|
2196
|
+
|
|
2197
|
+
```typescript
|
|
2198
|
+
await client.agents.patchVersionedSettings("organizationReferenceId", "agentReferenceId");
|
|
2199
|
+
|
|
2200
|
+
```
|
|
2201
|
+
</dd>
|
|
2202
|
+
</dl>
|
|
2203
|
+
</dd>
|
|
2204
|
+
</dl>
|
|
2205
|
+
|
|
2206
|
+
#### ⚙️ Parameters
|
|
2207
|
+
|
|
2208
|
+
<dl>
|
|
2209
|
+
<dd>
|
|
2210
|
+
|
|
2211
|
+
<dl>
|
|
2212
|
+
<dd>
|
|
2213
|
+
|
|
2214
|
+
**organizationReferenceId:** `string` — The ID of the organization.
|
|
2215
|
+
|
|
2216
|
+
</dd>
|
|
2217
|
+
</dl>
|
|
2218
|
+
|
|
2219
|
+
<dl>
|
|
2220
|
+
<dd>
|
|
2221
|
+
|
|
2222
|
+
**agentReferenceId:** `string` — The ID of the agent.
|
|
2223
|
+
|
|
2224
|
+
</dd>
|
|
2225
|
+
</dl>
|
|
2226
|
+
|
|
2227
|
+
<dl>
|
|
2228
|
+
<dd>
|
|
2229
|
+
|
|
2230
|
+
**request:** `MavenAGI.VersionedAgentSettingsPatchRequest`
|
|
2231
|
+
|
|
2232
|
+
</dd>
|
|
2233
|
+
</dl>
|
|
2234
|
+
|
|
2235
|
+
<dl>
|
|
2236
|
+
<dd>
|
|
2237
|
+
|
|
2238
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
2239
|
+
|
|
2240
|
+
</dd>
|
|
2241
|
+
</dl>
|
|
2242
|
+
</dd>
|
|
2243
|
+
</dl>
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
</dd>
|
|
2247
|
+
</dl>
|
|
2248
|
+
</details>
|
|
2249
|
+
|
|
2250
|
+
## Analytics
|
|
2251
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getConversationTable</a>({ ...params }) -> MavenAGI.ConversationTableResponse</code></summary>
|
|
2252
|
+
<dl>
|
|
2253
|
+
<dd>
|
|
2254
|
+
|
|
2255
|
+
#### 📝 Description
|
|
2256
|
+
|
|
2257
|
+
<dl>
|
|
2258
|
+
<dd>
|
|
2259
|
+
|
|
2260
|
+
<dl>
|
|
2261
|
+
<dd>
|
|
2262
|
+
|
|
2263
|
+
Retrieves structured conversation data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
|
|
2264
|
+
|
|
2265
|
+
<Note>**Required permission:** `read:conversations`</Note>
|
|
2266
|
+
</dd>
|
|
2267
|
+
</dl>
|
|
2268
|
+
</dd>
|
|
2269
|
+
</dl>
|
|
2270
|
+
|
|
2271
|
+
#### 🔌 Usage
|
|
2272
|
+
|
|
2273
|
+
<dl>
|
|
2274
|
+
<dd>
|
|
2275
|
+
|
|
2276
|
+
<dl>
|
|
2277
|
+
<dd>
|
|
2278
|
+
|
|
2279
|
+
```typescript
|
|
2280
|
+
await client.analytics.getConversationTable({
|
|
2281
|
+
conversationFilter: {
|
|
2282
|
+
languages: ["en", "es"]
|
|
2283
|
+
},
|
|
2284
|
+
timeGrouping: "DAY",
|
|
2285
|
+
fieldGroupings: [{
|
|
2286
|
+
field: "Category"
|
|
2287
|
+
}],
|
|
2288
|
+
columnDefinitions: [{
|
|
2289
|
+
header: "count",
|
|
2290
|
+
metric: {
|
|
2291
|
+
type: "count"
|
|
2292
|
+
}
|
|
2293
|
+
}, {
|
|
2294
|
+
header: "avg_first_response_time",
|
|
2295
|
+
metric: {
|
|
2296
|
+
type: "average",
|
|
2297
|
+
targetField: "FirstResponseTime"
|
|
2298
|
+
}
|
|
2299
|
+
}, {
|
|
2300
|
+
header: "percentile_handle_time",
|
|
2301
|
+
metric: {
|
|
2302
|
+
type: "percentile",
|
|
2303
|
+
targetField: "HandleTime",
|
|
2304
|
+
percentile: 25
|
|
2305
|
+
}
|
|
2306
|
+
}]
|
|
2307
|
+
});
|
|
2308
|
+
|
|
2309
|
+
```
|
|
2310
|
+
</dd>
|
|
2311
|
+
</dl>
|
|
2312
|
+
</dd>
|
|
2313
|
+
</dl>
|
|
2314
|
+
|
|
2315
|
+
#### ⚙️ Parameters
|
|
2316
|
+
|
|
2317
|
+
<dl>
|
|
2318
|
+
<dd>
|
|
2319
|
+
|
|
2320
|
+
<dl>
|
|
2321
|
+
<dd>
|
|
2322
|
+
|
|
2323
|
+
**request:** `MavenAGI.ConversationTableRequest`
|
|
2324
|
+
|
|
2325
|
+
</dd>
|
|
2326
|
+
</dl>
|
|
2327
|
+
|
|
2328
|
+
<dl>
|
|
2329
|
+
<dd>
|
|
2330
|
+
|
|
2331
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2332
|
+
|
|
2333
|
+
</dd>
|
|
2334
|
+
</dl>
|
|
2335
|
+
</dd>
|
|
2336
|
+
</dl>
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
</dd>
|
|
2340
|
+
</dl>
|
|
2341
|
+
</details>
|
|
2342
|
+
|
|
2343
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getConversationChart</a>({ ...params }) -> MavenAGI.ChartResponse</code></summary>
|
|
2344
|
+
<dl>
|
|
2345
|
+
<dd>
|
|
2346
|
+
|
|
2347
|
+
#### 📝 Description
|
|
2348
|
+
|
|
2349
|
+
<dl>
|
|
2350
|
+
<dd>
|
|
2351
|
+
|
|
2352
|
+
<dl>
|
|
2353
|
+
<dd>
|
|
2354
|
+
|
|
2355
|
+
Fetches conversation data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
|
|
2356
|
+
|
|
2357
|
+
<Note>**Required permission:** `read:conversations`</Note>
|
|
2358
|
+
</dd>
|
|
2359
|
+
</dl>
|
|
2360
|
+
</dd>
|
|
2361
|
+
</dl>
|
|
2362
|
+
|
|
2363
|
+
#### 🔌 Usage
|
|
2364
|
+
|
|
2365
|
+
<dl>
|
|
2366
|
+
<dd>
|
|
2367
|
+
|
|
2368
|
+
<dl>
|
|
2369
|
+
<dd>
|
|
2370
|
+
|
|
2371
|
+
```typescript
|
|
2372
|
+
await client.analytics.getConversationChart({
|
|
2373
|
+
type: "pieChart",
|
|
2374
|
+
conversationFilter: {
|
|
2375
|
+
languages: ["en", "es"]
|
|
2376
|
+
},
|
|
2377
|
+
groupBy: {
|
|
2378
|
+
field: "Category"
|
|
2379
|
+
},
|
|
2380
|
+
metric: {
|
|
2381
|
+
type: "count"
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
```
|
|
2386
|
+
</dd>
|
|
2387
|
+
</dl>
|
|
2388
|
+
</dd>
|
|
2389
|
+
</dl>
|
|
2390
|
+
|
|
2391
|
+
#### ⚙️ Parameters
|
|
2392
|
+
|
|
2393
|
+
<dl>
|
|
2394
|
+
<dd>
|
|
2395
|
+
|
|
2396
|
+
<dl>
|
|
2397
|
+
<dd>
|
|
2398
|
+
|
|
2399
|
+
**request:** `MavenAGI.ConversationChartRequest`
|
|
2400
|
+
|
|
2401
|
+
</dd>
|
|
2402
|
+
</dl>
|
|
2403
|
+
|
|
2404
|
+
<dl>
|
|
2405
|
+
<dd>
|
|
2406
|
+
|
|
2407
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2408
|
+
|
|
2409
|
+
</dd>
|
|
2410
|
+
</dl>
|
|
2411
|
+
</dd>
|
|
2412
|
+
</dl>
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
</dd>
|
|
2416
|
+
</dl>
|
|
2417
|
+
</details>
|
|
2418
|
+
|
|
2419
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">exportConversationTable</a>({ ...params }) -> core.BinaryResponse</code></summary>
|
|
2420
|
+
<dl>
|
|
2421
|
+
<dd>
|
|
2422
|
+
|
|
2423
|
+
#### 📝 Description
|
|
2424
|
+
|
|
2425
|
+
<dl>
|
|
2426
|
+
<dd>
|
|
2427
|
+
|
|
2428
|
+
<dl>
|
|
2429
|
+
<dd>
|
|
2430
|
+
|
|
2431
|
+
Export the conversation analytics table to a CSV file.
|
|
2432
|
+
|
|
2433
|
+
This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers.
|
|
2434
|
+
|
|
2435
|
+
<Note>**Required permission:** `read:conversations`</Note>
|
|
2436
|
+
</dd>
|
|
2437
|
+
</dl>
|
|
2438
|
+
</dd>
|
|
2439
|
+
</dl>
|
|
2440
|
+
|
|
2441
|
+
#### 🔌 Usage
|
|
2442
|
+
|
|
2443
|
+
<dl>
|
|
2444
|
+
<dd>
|
|
2445
|
+
|
|
2446
|
+
<dl>
|
|
2447
|
+
<dd>
|
|
2448
|
+
|
|
2449
|
+
```typescript
|
|
2450
|
+
await client.analytics.exportConversationTable({
|
|
2451
|
+
fieldGroupings: [{
|
|
2452
|
+
field: "Category"
|
|
2453
|
+
}, {
|
|
2454
|
+
field: "Category"
|
|
2455
|
+
}],
|
|
2456
|
+
columnDefinitions: [{
|
|
2457
|
+
metric: {
|
|
2458
|
+
type: "count"
|
|
2459
|
+
},
|
|
2460
|
+
header: "header"
|
|
2461
|
+
}, {
|
|
2462
|
+
metric: {
|
|
2463
|
+
type: "count"
|
|
2464
|
+
},
|
|
2465
|
+
header: "header"
|
|
2466
|
+
}]
|
|
2467
|
+
});
|
|
2468
|
+
|
|
2469
|
+
```
|
|
2470
|
+
</dd>
|
|
2471
|
+
</dl>
|
|
2472
|
+
</dd>
|
|
2473
|
+
</dl>
|
|
2474
|
+
|
|
2475
|
+
#### ⚙️ Parameters
|
|
2476
|
+
|
|
2477
|
+
<dl>
|
|
2478
|
+
<dd>
|
|
2479
|
+
|
|
2480
|
+
<dl>
|
|
2481
|
+
<dd>
|
|
2482
|
+
|
|
2483
|
+
**request:** `MavenAGI.ConversationTableRequest`
|
|
2484
|
+
|
|
2485
|
+
</dd>
|
|
2486
|
+
</dl>
|
|
2487
|
+
|
|
2488
|
+
<dl>
|
|
2489
|
+
<dd>
|
|
2490
|
+
|
|
2491
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2492
|
+
|
|
2493
|
+
</dd>
|
|
2494
|
+
</dl>
|
|
2495
|
+
</dd>
|
|
2496
|
+
</dl>
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
</dd>
|
|
2500
|
+
</dl>
|
|
2501
|
+
</details>
|
|
2502
|
+
|
|
2503
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getAgentUserTable</a>({ ...params }) -> MavenAGI.AgentUserTableResponse</code></summary>
|
|
2504
|
+
<dl>
|
|
2505
|
+
<dd>
|
|
2506
|
+
|
|
2507
|
+
#### 📝 Description
|
|
2508
|
+
|
|
2509
|
+
<dl>
|
|
2510
|
+
<dd>
|
|
2511
|
+
|
|
2512
|
+
<dl>
|
|
2513
|
+
<dd>
|
|
2514
|
+
|
|
2515
|
+
Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
|
|
2516
|
+
<Note>**Required permission:** `read:agents`</Note>
|
|
2517
|
+
</dd>
|
|
2518
|
+
</dl>
|
|
2519
|
+
</dd>
|
|
2520
|
+
</dl>
|
|
2521
|
+
|
|
2522
|
+
#### 🔌 Usage
|
|
2523
|
+
|
|
2524
|
+
<dl>
|
|
2525
|
+
<dd>
|
|
2526
|
+
|
|
2527
|
+
<dl>
|
|
2528
|
+
<dd>
|
|
2529
|
+
|
|
2530
|
+
```typescript
|
|
2531
|
+
await client.analytics.getAgentUserTable({
|
|
2532
|
+
agentUserFilter: {
|
|
2533
|
+
search: "john"
|
|
2534
|
+
},
|
|
2535
|
+
columnDefinitions: [{
|
|
2536
|
+
header: "user_count",
|
|
2537
|
+
metric: {
|
|
2538
|
+
type: "count"
|
|
2539
|
+
}
|
|
2540
|
+
}]
|
|
2541
|
+
});
|
|
2542
|
+
|
|
2543
|
+
```
|
|
2544
|
+
</dd>
|
|
2545
|
+
</dl>
|
|
2546
|
+
</dd>
|
|
2547
|
+
</dl>
|
|
2548
|
+
|
|
2549
|
+
#### ⚙️ Parameters
|
|
2550
|
+
|
|
2551
|
+
<dl>
|
|
2552
|
+
<dd>
|
|
2553
|
+
|
|
2554
|
+
<dl>
|
|
2555
|
+
<dd>
|
|
2556
|
+
|
|
2557
|
+
**request:** `MavenAGI.AgentUserTableRequest`
|
|
2558
|
+
|
|
2559
|
+
</dd>
|
|
2560
|
+
</dl>
|
|
2561
|
+
|
|
2562
|
+
<dl>
|
|
2563
|
+
<dd>
|
|
2564
|
+
|
|
2565
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2566
|
+
|
|
2567
|
+
</dd>
|
|
2568
|
+
</dl>
|
|
2569
|
+
</dd>
|
|
2570
|
+
</dl>
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
</dd>
|
|
2574
|
+
</dl>
|
|
2575
|
+
</details>
|
|
2576
|
+
|
|
2577
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getEventTable</a>({ ...params }) -> MavenAGI.EventTableResponse</code></summary>
|
|
2578
|
+
<dl>
|
|
2579
|
+
<dd>
|
|
2580
|
+
|
|
2581
|
+
#### 📝 Description
|
|
2582
|
+
|
|
2583
|
+
<dl>
|
|
2584
|
+
<dd>
|
|
2585
|
+
|
|
2586
|
+
<dl>
|
|
2587
|
+
<dd>
|
|
2588
|
+
|
|
2589
|
+
Retrieves structured event data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
|
|
2590
|
+
<Note>**Required permission:** `read:events`</Note>
|
|
2591
|
+
</dd>
|
|
2592
|
+
</dl>
|
|
2593
|
+
</dd>
|
|
2594
|
+
</dl>
|
|
2595
|
+
|
|
2596
|
+
#### 🔌 Usage
|
|
2597
|
+
|
|
2598
|
+
<dl>
|
|
2599
|
+
<dd>
|
|
2600
|
+
|
|
2601
|
+
<dl>
|
|
2602
|
+
<dd>
|
|
2603
|
+
|
|
2604
|
+
```typescript
|
|
2605
|
+
await client.analytics.getEventTable({
|
|
2606
|
+
eventFilter: {
|
|
2607
|
+
eventTypes: ["USER"]
|
|
2608
|
+
},
|
|
2609
|
+
fieldGroupings: [{
|
|
2610
|
+
field: "EVENT_NAME"
|
|
2611
|
+
}],
|
|
2612
|
+
columnDefinitions: [{
|
|
2613
|
+
header: "event_count",
|
|
2614
|
+
metric: {
|
|
2615
|
+
type: "count"
|
|
2616
|
+
}
|
|
2617
|
+
}]
|
|
2618
|
+
});
|
|
2619
|
+
|
|
2620
|
+
```
|
|
2621
|
+
</dd>
|
|
2622
|
+
</dl>
|
|
2623
|
+
</dd>
|
|
2624
|
+
</dl>
|
|
2625
|
+
|
|
2626
|
+
#### ⚙️ Parameters
|
|
2627
|
+
|
|
2628
|
+
<dl>
|
|
2629
|
+
<dd>
|
|
2630
|
+
|
|
2631
|
+
<dl>
|
|
2632
|
+
<dd>
|
|
2633
|
+
|
|
2634
|
+
**request:** `MavenAGI.EventTableRequest`
|
|
2635
|
+
|
|
2636
|
+
</dd>
|
|
2637
|
+
</dl>
|
|
2638
|
+
|
|
2639
|
+
<dl>
|
|
2640
|
+
<dd>
|
|
2641
|
+
|
|
2642
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2643
|
+
|
|
2644
|
+
</dd>
|
|
2645
|
+
</dl>
|
|
2646
|
+
</dd>
|
|
2647
|
+
</dl>
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
</dd>
|
|
2651
|
+
</dl>
|
|
2652
|
+
</details>
|
|
2653
|
+
|
|
2654
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getEventChart</a>({ ...params }) -> MavenAGI.ChartResponse</code></summary>
|
|
2655
|
+
<dl>
|
|
2656
|
+
<dd>
|
|
2657
|
+
|
|
2658
|
+
#### 📝 Description
|
|
2659
|
+
|
|
2660
|
+
<dl>
|
|
2661
|
+
<dd>
|
|
2662
|
+
|
|
2663
|
+
<dl>
|
|
2664
|
+
<dd>
|
|
2665
|
+
|
|
2666
|
+
Fetches event data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
|
|
2667
|
+
|
|
2668
|
+
<Note>**Required permission:** `read:events`</Note>
|
|
2669
|
+
</dd>
|
|
2670
|
+
</dl>
|
|
2671
|
+
</dd>
|
|
2672
|
+
</dl>
|
|
2673
|
+
|
|
2674
|
+
#### 🔌 Usage
|
|
2675
|
+
|
|
2676
|
+
<dl>
|
|
2677
|
+
<dd>
|
|
2678
|
+
|
|
2679
|
+
<dl>
|
|
2680
|
+
<dd>
|
|
2681
|
+
|
|
2682
|
+
```typescript
|
|
2683
|
+
await client.analytics.getEventChart({
|
|
2684
|
+
type: "pieChart",
|
|
2685
|
+
eventFilter: {
|
|
2686
|
+
eventTypes: ["USER"]
|
|
2687
|
+
},
|
|
2688
|
+
groupBy: {
|
|
2689
|
+
field: "EVENT_NAME"
|
|
2690
|
+
},
|
|
2691
|
+
metric: {
|
|
2692
|
+
type: "count"
|
|
2693
|
+
}
|
|
2694
|
+
});
|
|
2695
|
+
|
|
2696
|
+
```
|
|
2697
|
+
</dd>
|
|
2698
|
+
</dl>
|
|
2699
|
+
</dd>
|
|
2700
|
+
</dl>
|
|
2701
|
+
|
|
2702
|
+
#### ⚙️ Parameters
|
|
2703
|
+
|
|
2704
|
+
<dl>
|
|
2705
|
+
<dd>
|
|
2706
|
+
|
|
2707
|
+
<dl>
|
|
2708
|
+
<dd>
|
|
2709
|
+
|
|
2710
|
+
**request:** `MavenAGI.EventChartRequest`
|
|
2711
|
+
|
|
2712
|
+
</dd>
|
|
2713
|
+
</dl>
|
|
2714
|
+
|
|
2715
|
+
<dl>
|
|
2716
|
+
<dd>
|
|
2717
|
+
|
|
2718
|
+
**requestOptions:** `AnalyticsClient.RequestOptions`
|
|
2719
|
+
|
|
2720
|
+
</dd>
|
|
2721
|
+
</dl>
|
|
2722
|
+
</dd>
|
|
2723
|
+
</dl>
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
</dd>
|
|
2727
|
+
</dl>
|
|
2728
|
+
</details>
|
|
2729
|
+
|
|
2730
|
+
## AppDirectory
|
|
2731
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AppsResponse</code></summary>
|
|
2732
|
+
<dl>
|
|
2733
|
+
<dd>
|
|
2734
|
+
|
|
2735
|
+
#### 📝 Description
|
|
2736
|
+
|
|
2737
|
+
<dl>
|
|
2738
|
+
<dd>
|
|
2739
|
+
|
|
2740
|
+
<dl>
|
|
2741
|
+
<dd>
|
|
2742
|
+
|
|
2743
|
+
Lists apps available to install on the agent, with filtering and pagination.
|
|
2744
|
+
</dd>
|
|
2745
|
+
</dl>
|
|
2746
|
+
</dd>
|
|
2747
|
+
</dl>
|
|
2748
|
+
|
|
2749
|
+
#### 🔌 Usage
|
|
2750
|
+
|
|
2751
|
+
<dl>
|
|
2752
|
+
<dd>
|
|
2753
|
+
|
|
2754
|
+
<dl>
|
|
2755
|
+
<dd>
|
|
2756
|
+
|
|
2757
|
+
```typescript
|
|
2758
|
+
await client.appDirectory.search({});
|
|
2759
|
+
|
|
2760
|
+
```
|
|
2761
|
+
</dd>
|
|
2762
|
+
</dl>
|
|
2763
|
+
</dd>
|
|
2764
|
+
</dl>
|
|
2765
|
+
|
|
2766
|
+
#### ⚙️ Parameters
|
|
2767
|
+
|
|
2768
|
+
<dl>
|
|
2769
|
+
<dd>
|
|
2770
|
+
|
|
2771
|
+
<dl>
|
|
2772
|
+
<dd>
|
|
2773
|
+
|
|
2774
|
+
**request:** `MavenAGI.DirectoryAppsSearchRequest`
|
|
2775
|
+
|
|
2776
|
+
</dd>
|
|
2777
|
+
</dl>
|
|
2778
|
+
|
|
2779
|
+
<dl>
|
|
2780
|
+
<dd>
|
|
2781
|
+
|
|
2782
|
+
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
2783
|
+
|
|
2784
|
+
</dd>
|
|
2785
|
+
</dl>
|
|
2786
|
+
</dd>
|
|
2787
|
+
</dl>
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
</dd>
|
|
2791
|
+
</dl>
|
|
2792
|
+
</details>
|
|
2793
|
+
|
|
2794
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">get</a>(appId) -> MavenAGI.MarketplaceAppDetail</code></summary>
|
|
2795
|
+
<dl>
|
|
2796
|
+
<dd>
|
|
2797
|
+
|
|
2798
|
+
#### 📝 Description
|
|
2799
|
+
|
|
2800
|
+
<dl>
|
|
2801
|
+
<dd>
|
|
2802
|
+
|
|
2803
|
+
<dl>
|
|
2804
|
+
<dd>
|
|
2805
|
+
|
|
2806
|
+
Gets an app and its installation status for the agent.
|
|
2807
|
+
|
|
2808
|
+
Before installing, read `installationInstructions` for what to gather and set up first, and
|
|
2809
|
+
`settingsSchema` for the settings `install` takes.
|
|
2810
|
+
|
|
2811
|
+
Installing is often not the last step. Once the app is installed:
|
|
2812
|
+
|
|
2813
|
+
1. Follow `instructions`, the app's post-install steps, filled in for this agent. They can
|
|
2814
|
+
name changes to make in the other system, such as a webhook to add.
|
|
2815
|
+
2. Each `settingsSchema` entry of type `oauth`, including one nested in a `section`, needs a
|
|
2816
|
+
person to sign in to the other system, which the API cannot do. Ask someone with access to
|
|
2817
|
+
it to open the agent in Agent Designer, go to **Apps**, open this app and click
|
|
2818
|
+
**Connect**. Its value sits at the same path in `settings` as the entry in the schema:
|
|
2819
|
+
`settings.<key>`, or `settings.<section key>.<key>` inside a section. It is connected once
|
|
2820
|
+
that value has an `accessToken` (returned redacted). `status.ok: false` means the
|
|
2821
|
+
connection failed and needs **Reconnect**; a missing value means it was never connected.
|
|
2822
|
+
Connecting re-runs the app's postInstall hook.
|
|
2823
|
+
3. An app that imports knowledge creates knowledge bases under its own `appId`, often only
|
|
2824
|
+
once its connection works. Find them with `knowledge.searchKnowledgeBases`, request body
|
|
2825
|
+
`{"filter": {"appIds": [appId]}}`. Check each import with
|
|
2826
|
+
`knowledge.listKnowledgeBaseVersions`: pass the returned `knowledgeBaseId.referenceId` as
|
|
2827
|
+
`knowledgeBaseReferenceId` and the same `appId`. `IN_PROGRESS` is still running,
|
|
2828
|
+
`SUCCEEDED` is done, `FAILED` needs a look, and `CANCELED` was stopped by a cancel request.
|
|
2829
|
+
Both calls need `read:agents`, which a caller holding only app permissions lacks.
|
|
2830
|
+
|
|
2831
|
+
<Note>**Required permission:** `read:apps`</Note>
|
|
2832
|
+
</dd>
|
|
2833
|
+
</dl>
|
|
2834
|
+
</dd>
|
|
2835
|
+
</dl>
|
|
2836
|
+
|
|
2837
|
+
#### 🔌 Usage
|
|
2838
|
+
|
|
2839
|
+
<dl>
|
|
2840
|
+
<dd>
|
|
2841
|
+
|
|
2842
|
+
<dl>
|
|
2843
|
+
<dd>
|
|
2844
|
+
|
|
2845
|
+
```typescript
|
|
2846
|
+
await client.appDirectory.get("appId");
|
|
2847
|
+
|
|
2848
|
+
```
|
|
2849
|
+
</dd>
|
|
2850
|
+
</dl>
|
|
2851
|
+
</dd>
|
|
2852
|
+
</dl>
|
|
2853
|
+
|
|
2854
|
+
#### ⚙️ Parameters
|
|
2855
|
+
|
|
2856
|
+
<dl>
|
|
2857
|
+
<dd>
|
|
2858
|
+
|
|
2859
|
+
<dl>
|
|
2860
|
+
<dd>
|
|
2861
|
+
|
|
2862
|
+
**appId:** `string`
|
|
2863
|
+
|
|
2864
|
+
</dd>
|
|
2865
|
+
</dl>
|
|
2866
|
+
|
|
2867
|
+
<dl>
|
|
2868
|
+
<dd>
|
|
2869
|
+
|
|
2870
|
+
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
1150
2871
|
|
|
1151
2872
|
</dd>
|
|
1152
2873
|
</dl>
|
|
@@ -1158,7 +2879,7 @@ await client.analytics.getAgentUserTable({
|
|
|
1158
2879
|
</dl>
|
|
1159
2880
|
</details>
|
|
1160
2881
|
|
|
1161
|
-
<details><summary><code>client.
|
|
2882
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">install</a>(appId, { ...params }) -> MavenAGI.MarketplaceAppDetail</code></summary>
|
|
1162
2883
|
<dl>
|
|
1163
2884
|
<dd>
|
|
1164
2885
|
|
|
@@ -1170,8 +2891,19 @@ await client.analytics.getAgentUserTable({
|
|
|
1170
2891
|
<dl>
|
|
1171
2892
|
<dd>
|
|
1172
2893
|
|
|
1173
|
-
|
|
1174
|
-
|
|
2894
|
+
Installs the app on the agent, or updates settings for an existing installation. Runs the
|
|
2895
|
+
app's preInstall hook first: the app may store different settings than the ones sent, or
|
|
2896
|
+
reject them with a 400. When the app names the rejected settings, the 400's `reason` is
|
|
2897
|
+
`INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
|
|
2898
|
+
the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
|
|
2899
|
+
each call. Returns the app as `get` does once the install is
|
|
2900
|
+
done, with its settings and post-install `instructions` filled in for the agent.
|
|
2901
|
+
|
|
2902
|
+
The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
|
|
2903
|
+
each `oauth` setting to a person to connect in Agent Designer, and check any knowledge
|
|
2904
|
+
import.
|
|
2905
|
+
|
|
2906
|
+
<Note>**Required permission:** `install:apps`</Note>
|
|
1175
2907
|
</dd>
|
|
1176
2908
|
</dl>
|
|
1177
2909
|
</dd>
|
|
@@ -1186,19 +2918,10 @@ Retrieves structured event data formatted as a table, allowing users to group, f
|
|
|
1186
2918
|
<dd>
|
|
1187
2919
|
|
|
1188
2920
|
```typescript
|
|
1189
|
-
await client.
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}
|
|
1193
|
-
fieldGroupings: [{
|
|
1194
|
-
field: "EVENT_NAME"
|
|
1195
|
-
}],
|
|
1196
|
-
columnDefinitions: [{
|
|
1197
|
-
header: "event_count",
|
|
1198
|
-
metric: {
|
|
1199
|
-
type: "count"
|
|
1200
|
-
}
|
|
1201
|
-
}]
|
|
2921
|
+
await client.appDirectory.install("appId", {
|
|
2922
|
+
settings: {
|
|
2923
|
+
"key": "value"
|
|
2924
|
+
}
|
|
1202
2925
|
});
|
|
1203
2926
|
|
|
1204
2927
|
```
|
|
@@ -1215,7 +2938,7 @@ await client.analytics.getEventTable({
|
|
|
1215
2938
|
<dl>
|
|
1216
2939
|
<dd>
|
|
1217
2940
|
|
|
1218
|
-
**
|
|
2941
|
+
**appId:** `string`
|
|
1219
2942
|
|
|
1220
2943
|
</dd>
|
|
1221
2944
|
</dl>
|
|
@@ -1223,7 +2946,15 @@ await client.analytics.getEventTable({
|
|
|
1223
2946
|
<dl>
|
|
1224
2947
|
<dd>
|
|
1225
2948
|
|
|
1226
|
-
**
|
|
2949
|
+
**request:** `MavenAGI.InstallDirectoryAppRequest`
|
|
2950
|
+
|
|
2951
|
+
</dd>
|
|
2952
|
+
</dl>
|
|
2953
|
+
|
|
2954
|
+
<dl>
|
|
2955
|
+
<dd>
|
|
2956
|
+
|
|
2957
|
+
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
1227
2958
|
|
|
1228
2959
|
</dd>
|
|
1229
2960
|
</dl>
|
|
@@ -1235,7 +2966,7 @@ await client.analytics.getEventTable({
|
|
|
1235
2966
|
</dl>
|
|
1236
2967
|
</details>
|
|
1237
2968
|
|
|
1238
|
-
<details><summary><code>client.
|
|
2969
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">uninstall</a>(appId) -> void</code></summary>
|
|
1239
2970
|
<dl>
|
|
1240
2971
|
<dd>
|
|
1241
2972
|
|
|
@@ -1247,9 +2978,9 @@ await client.analytics.getEventTable({
|
|
|
1247
2978
|
<dl>
|
|
1248
2979
|
<dd>
|
|
1249
2980
|
|
|
1250
|
-
|
|
2981
|
+
Uninstalls the app from the agent, and deletes the actions and triggers it created.
|
|
1251
2982
|
|
|
1252
|
-
<Note>**Required permission:** `
|
|
2983
|
+
<Note>**Required permission:** `install:apps`</Note>
|
|
1253
2984
|
</dd>
|
|
1254
2985
|
</dl>
|
|
1255
2986
|
</dd>
|
|
@@ -1264,18 +2995,7 @@ Fetches event data visualized in a chart format. Supported chart types include p
|
|
|
1264
2995
|
<dd>
|
|
1265
2996
|
|
|
1266
2997
|
```typescript
|
|
1267
|
-
await client.
|
|
1268
|
-
type: "pieChart",
|
|
1269
|
-
eventFilter: {
|
|
1270
|
-
eventTypes: ["USER"]
|
|
1271
|
-
},
|
|
1272
|
-
groupBy: {
|
|
1273
|
-
field: "EVENT_NAME"
|
|
1274
|
-
},
|
|
1275
|
-
metric: {
|
|
1276
|
-
type: "count"
|
|
1277
|
-
}
|
|
1278
|
-
});
|
|
2998
|
+
await client.appDirectory.uninstall("appId");
|
|
1279
2999
|
|
|
1280
3000
|
```
|
|
1281
3001
|
</dd>
|
|
@@ -1291,7 +3011,7 @@ await client.analytics.getEventChart({
|
|
|
1291
3011
|
<dl>
|
|
1292
3012
|
<dd>
|
|
1293
3013
|
|
|
1294
|
-
**
|
|
3014
|
+
**appId:** `string`
|
|
1295
3015
|
|
|
1296
3016
|
</dd>
|
|
1297
3017
|
</dl>
|
|
@@ -1299,7 +3019,7 @@ await client.analytics.getEventChart({
|
|
|
1299
3019
|
<dl>
|
|
1300
3020
|
<dd>
|
|
1301
3021
|
|
|
1302
|
-
**requestOptions:** `
|
|
3022
|
+
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
1303
3023
|
|
|
1304
3024
|
</dd>
|
|
1305
3025
|
</dl>
|
|
@@ -1311,8 +3031,7 @@ await client.analytics.getEventChart({
|
|
|
1311
3031
|
</dl>
|
|
1312
3032
|
</details>
|
|
1313
3033
|
|
|
1314
|
-
|
|
1315
|
-
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AppsResponse</code></summary>
|
|
3034
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">getSettingDownloadUrl</a>(appId, settingsKey) -> MavenAGI.GetDirectoryAppSettingDownloadUrlResponse</code></summary>
|
|
1316
3035
|
<dl>
|
|
1317
3036
|
<dd>
|
|
1318
3037
|
|
|
@@ -1324,7 +3043,7 @@ await client.analytics.getEventChart({
|
|
|
1324
3043
|
<dl>
|
|
1325
3044
|
<dd>
|
|
1326
3045
|
|
|
1327
|
-
|
|
3046
|
+
Gets a url for downloading a file app setting.
|
|
1328
3047
|
</dd>
|
|
1329
3048
|
</dl>
|
|
1330
3049
|
</dd>
|
|
@@ -1339,7 +3058,7 @@ Lists apps available to install on the agent, with filtering and pagination.
|
|
|
1339
3058
|
<dd>
|
|
1340
3059
|
|
|
1341
3060
|
```typescript
|
|
1342
|
-
await client.appDirectory.
|
|
3061
|
+
await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey");
|
|
1343
3062
|
|
|
1344
3063
|
```
|
|
1345
3064
|
</dd>
|
|
@@ -1355,7 +3074,15 @@ await client.appDirectory.search({});
|
|
|
1355
3074
|
<dl>
|
|
1356
3075
|
<dd>
|
|
1357
3076
|
|
|
1358
|
-
**
|
|
3077
|
+
**appId:** `string`
|
|
3078
|
+
|
|
3079
|
+
</dd>
|
|
3080
|
+
</dl>
|
|
3081
|
+
|
|
3082
|
+
<dl>
|
|
3083
|
+
<dd>
|
|
3084
|
+
|
|
3085
|
+
**settingsKey:** `string`
|
|
1359
3086
|
|
|
1360
3087
|
</dd>
|
|
1361
3088
|
</dl>
|
|
@@ -1375,7 +3102,7 @@ await client.appDirectory.search({});
|
|
|
1375
3102
|
</dl>
|
|
1376
3103
|
</details>
|
|
1377
3104
|
|
|
1378
|
-
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">
|
|
3105
|
+
<details><summary><code>client.appDirectory.<a href="/src/api/resources/appDirectory/client/Client.ts">getSettingUploadUrl</a>(appId, settingsKey, { ...params }) -> MavenAGI.GetDirectoryAppSettingUploadUrlResponse</code></summary>
|
|
1379
3106
|
<dl>
|
|
1380
3107
|
<dd>
|
|
1381
3108
|
|
|
@@ -1387,7 +3114,13 @@ await client.appDirectory.search({});
|
|
|
1387
3114
|
<dl>
|
|
1388
3115
|
<dd>
|
|
1389
3116
|
|
|
1390
|
-
Gets
|
|
3117
|
+
Gets a presigned url for uploading a file app setting before installation.
|
|
3118
|
+
Upload the file by sending its bytes in an HTTP PUT to the returned url.
|
|
3119
|
+
The file must be a PNG, JPEG or web font of at most 2 MB. Once uploaded, it is read back
|
|
3120
|
+
as the key's value, including for a key that was cleared.
|
|
3121
|
+
|
|
3122
|
+
`settingsKey` is the setting's full path in the app's settings schema. For an image inside a
|
|
3123
|
+
`section`, join the section's key and the image's key with a dot, such as `branding.logo`.
|
|
1391
3124
|
</dd>
|
|
1392
3125
|
</dl>
|
|
1393
3126
|
</dd>
|
|
@@ -1402,7 +3135,10 @@ Gets an app and its installation status for the agent.
|
|
|
1402
3135
|
<dd>
|
|
1403
3136
|
|
|
1404
3137
|
```typescript
|
|
1405
|
-
await client.appDirectory.
|
|
3138
|
+
await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
|
|
3139
|
+
contentLength: 1,
|
|
3140
|
+
contentType: "contentType"
|
|
3141
|
+
});
|
|
1406
3142
|
|
|
1407
3143
|
```
|
|
1408
3144
|
</dd>
|
|
@@ -1426,6 +3162,22 @@ await client.appDirectory.get("appId");
|
|
|
1426
3162
|
<dl>
|
|
1427
3163
|
<dd>
|
|
1428
3164
|
|
|
3165
|
+
**settingsKey:** `string`
|
|
3166
|
+
|
|
3167
|
+
</dd>
|
|
3168
|
+
</dl>
|
|
3169
|
+
|
|
3170
|
+
<dl>
|
|
3171
|
+
<dd>
|
|
3172
|
+
|
|
3173
|
+
**request:** `MavenAGI.GetAppSettingUploadUrlRequest`
|
|
3174
|
+
|
|
3175
|
+
</dd>
|
|
3176
|
+
</dl>
|
|
3177
|
+
|
|
3178
|
+
<dl>
|
|
3179
|
+
<dd>
|
|
3180
|
+
|
|
1429
3181
|
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
1430
3182
|
|
|
1431
3183
|
</dd>
|
|
@@ -1438,7 +3190,8 @@ await client.appDirectory.get("appId");
|
|
|
1438
3190
|
</dl>
|
|
1439
3191
|
</details>
|
|
1440
3192
|
|
|
1441
|
-
|
|
3193
|
+
## AppSettings
|
|
3194
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">search</a>({ ...params }) -> MavenAGI.SearchAppSettingsResponse</code></summary>
|
|
1442
3195
|
<dl>
|
|
1443
3196
|
<dd>
|
|
1444
3197
|
|
|
@@ -1450,7 +3203,13 @@ await client.appDirectory.get("appId");
|
|
|
1450
3203
|
<dl>
|
|
1451
3204
|
<dd>
|
|
1452
3205
|
|
|
1453
|
-
|
|
3206
|
+
Search for app settings which have the `$index` key set to the provided value.
|
|
3207
|
+
|
|
3208
|
+
Searches only the installations of the calling app, the app whose credentials make the request.
|
|
3209
|
+
|
|
3210
|
+
You can set the `$index` key using the Update app settings API.
|
|
3211
|
+
|
|
3212
|
+
<Warning>This API currently requires an organization ID and agent ID for any agent which is installed on the app. This requirement will be removed in a future update.</Warning>
|
|
1454
3213
|
</dd>
|
|
1455
3214
|
</dl>
|
|
1456
3215
|
</dd>
|
|
@@ -1465,10 +3224,8 @@ Installs the app on the agent, or updates settings for an existing installation.
|
|
|
1465
3224
|
<dd>
|
|
1466
3225
|
|
|
1467
3226
|
```typescript
|
|
1468
|
-
await client.
|
|
1469
|
-
|
|
1470
|
-
"key": "value"
|
|
1471
|
-
}
|
|
3227
|
+
await client.appSettings.search({
|
|
3228
|
+
index: "index"
|
|
1472
3229
|
});
|
|
1473
3230
|
|
|
1474
3231
|
```
|
|
@@ -1485,15 +3242,7 @@ await client.appDirectory.install("appId", {
|
|
|
1485
3242
|
<dl>
|
|
1486
3243
|
<dd>
|
|
1487
3244
|
|
|
1488
|
-
**
|
|
1489
|
-
|
|
1490
|
-
</dd>
|
|
1491
|
-
</dl>
|
|
1492
|
-
|
|
1493
|
-
<dl>
|
|
1494
|
-
<dd>
|
|
1495
|
-
|
|
1496
|
-
**request:** `MavenAGI.InstallDirectoryAppRequest`
|
|
3245
|
+
**request:** `MavenAGI.SearchAppSettingsRequest`
|
|
1497
3246
|
|
|
1498
3247
|
</dd>
|
|
1499
3248
|
</dl>
|
|
@@ -1501,7 +3250,7 @@ await client.appDirectory.install("appId", {
|
|
|
1501
3250
|
<dl>
|
|
1502
3251
|
<dd>
|
|
1503
3252
|
|
|
1504
|
-
**requestOptions:** `
|
|
3253
|
+
**requestOptions:** `AppSettingsClient.RequestOptions`
|
|
1505
3254
|
|
|
1506
3255
|
</dd>
|
|
1507
3256
|
</dl>
|
|
@@ -1513,7 +3262,7 @@ await client.appDirectory.install("appId", {
|
|
|
1513
3262
|
</dl>
|
|
1514
3263
|
</details>
|
|
1515
3264
|
|
|
1516
|
-
<details><summary><code>client.
|
|
3265
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record<string, unknown></code></summary>
|
|
1517
3266
|
<dl>
|
|
1518
3267
|
<dd>
|
|
1519
3268
|
|
|
@@ -1525,9 +3274,10 @@ await client.appDirectory.install("appId", {
|
|
|
1525
3274
|
<dl>
|
|
1526
3275
|
<dd>
|
|
1527
3276
|
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
3277
|
+
Get the settings of the calling app's installation on the agent. The calling app is the app
|
|
3278
|
+
whose credentials make the request, so this cannot read another app's settings. Returns 404
|
|
3279
|
+
when the calling app is not installed on the agent. To read another app's settings, use the
|
|
3280
|
+
app directory `get` endpoint with that app's ID.
|
|
1531
3281
|
</dd>
|
|
1532
3282
|
</dl>
|
|
1533
3283
|
</dd>
|
|
@@ -1542,7 +3292,7 @@ Uninstalls the app from the agent, and deletes the actions and triggers it creat
|
|
|
1542
3292
|
<dd>
|
|
1543
3293
|
|
|
1544
3294
|
```typescript
|
|
1545
|
-
await client.
|
|
3295
|
+
await client.appSettings.get();
|
|
1546
3296
|
|
|
1547
3297
|
```
|
|
1548
3298
|
</dd>
|
|
@@ -1558,15 +3308,7 @@ await client.appDirectory.uninstall("appId");
|
|
|
1558
3308
|
<dl>
|
|
1559
3309
|
<dd>
|
|
1560
3310
|
|
|
1561
|
-
**
|
|
1562
|
-
|
|
1563
|
-
</dd>
|
|
1564
|
-
</dl>
|
|
1565
|
-
|
|
1566
|
-
<dl>
|
|
1567
|
-
<dd>
|
|
1568
|
-
|
|
1569
|
-
**requestOptions:** `AppDirectoryClient.RequestOptions`
|
|
3311
|
+
**requestOptions:** `AppSettingsClient.RequestOptions`
|
|
1570
3312
|
|
|
1571
3313
|
</dd>
|
|
1572
3314
|
</dl>
|
|
@@ -1578,7 +3320,7 @@ await client.appDirectory.uninstall("appId");
|
|
|
1578
3320
|
</dl>
|
|
1579
3321
|
</details>
|
|
1580
3322
|
|
|
1581
|
-
<details><summary><code>client.
|
|
3323
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
1582
3324
|
<dl>
|
|
1583
3325
|
<dd>
|
|
1584
3326
|
|
|
@@ -1590,7 +3332,19 @@ await client.appDirectory.uninstall("appId");
|
|
|
1590
3332
|
<dl>
|
|
1591
3333
|
<dd>
|
|
1592
3334
|
|
|
1593
|
-
|
|
3335
|
+
Update the settings of the calling app's installation on the agent. The calling app is the
|
|
3336
|
+
app whose credentials make the request, so this cannot change another app's settings. To
|
|
3337
|
+
change another app's settings, use the app directory `install` endpoint with that app's ID.
|
|
3338
|
+
|
|
3339
|
+
Performs a merge of the provided settings with the existing app settings.
|
|
3340
|
+
|
|
3341
|
+
- If a new key is provided, it will be added to the app settings.
|
|
3342
|
+
- If an existing key is provided, it will be updated.
|
|
3343
|
+
- No keys will be removed.
|
|
3344
|
+
|
|
3345
|
+
Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
3346
|
+
|
|
3347
|
+
Returns the full app settings after the merge, including keys that were not in the request. This is the same object that Get app settings returns.
|
|
1594
3348
|
</dd>
|
|
1595
3349
|
</dl>
|
|
1596
3350
|
</dd>
|
|
@@ -1605,7 +3359,11 @@ Gets a url for downloading a file app setting.
|
|
|
1605
3359
|
<dd>
|
|
1606
3360
|
|
|
1607
3361
|
```typescript
|
|
1608
|
-
await client.
|
|
3362
|
+
await client.appSettings.update({
|
|
3363
|
+
"string": {
|
|
3364
|
+
"key": "value"
|
|
3365
|
+
}
|
|
3366
|
+
});
|
|
1609
3367
|
|
|
1610
3368
|
```
|
|
1611
3369
|
</dd>
|
|
@@ -1621,15 +3379,7 @@ await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey");
|
|
|
1621
3379
|
<dl>
|
|
1622
3380
|
<dd>
|
|
1623
3381
|
|
|
1624
|
-
**
|
|
1625
|
-
|
|
1626
|
-
</dd>
|
|
1627
|
-
</dl>
|
|
1628
|
-
|
|
1629
|
-
<dl>
|
|
1630
|
-
<dd>
|
|
1631
|
-
|
|
1632
|
-
**settingsKey:** `string`
|
|
3382
|
+
**request:** `Record<string, unknown>`
|
|
1633
3383
|
|
|
1634
3384
|
</dd>
|
|
1635
3385
|
</dl>
|
|
@@ -1637,7 +3387,7 @@ await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey");
|
|
|
1637
3387
|
<dl>
|
|
1638
3388
|
<dd>
|
|
1639
3389
|
|
|
1640
|
-
**requestOptions:** `
|
|
3390
|
+
**requestOptions:** `AppSettingsClient.RequestOptions`
|
|
1641
3391
|
|
|
1642
3392
|
</dd>
|
|
1643
3393
|
</dl>
|
|
@@ -1649,7 +3399,8 @@ await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey");
|
|
|
1649
3399
|
</dl>
|
|
1650
3400
|
</details>
|
|
1651
3401
|
|
|
1652
|
-
|
|
3402
|
+
## Apps
|
|
3403
|
+
<details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.AppResponse</code></summary>
|
|
1653
3404
|
<dl>
|
|
1654
3405
|
<dd>
|
|
1655
3406
|
|
|
@@ -1661,7 +3412,23 @@ await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey");
|
|
|
1661
3412
|
<dl>
|
|
1662
3413
|
<dd>
|
|
1663
3414
|
|
|
1664
|
-
|
|
3415
|
+
Create an app your organization owns, or replace one it already owns: every field the request
|
|
3416
|
+
leaves out is cleared. To change only some fields, use `patch`. Send `categories`,
|
|
3417
|
+
`capabilities`, `links` and `settingsSchema` every time, as `[]` when the app has none.
|
|
3418
|
+
|
|
3419
|
+
App IDs are unique across Maven, so an ID another organization uses, or a deleted app used, is a
|
|
3420
|
+
409. Requesting a permission you don't hold is a 403.
|
|
3421
|
+
|
|
3422
|
+
A new app is in development: only your organization can see it in the app directory, and install
|
|
3423
|
+
it on its agents with the app directory's install (`POST /v1/directory/{appId}/install`). Its code
|
|
3424
|
+
runs as Functions, which you add with the Functions API. Making the app public, sharing it with
|
|
3425
|
+
other organizations, and setting its logo can't be done through this API.
|
|
3426
|
+
|
|
3427
|
+
It can't change an app with a hosted deployment, made in App Studio, or an agent's own app (409),
|
|
3428
|
+
and it can't change the permissions of an app other organizations can install, because the change
|
|
3429
|
+
would reach them with no consent (409).
|
|
3430
|
+
|
|
3431
|
+
<Note>**Required permission:** `edit:apps`</Note>
|
|
1665
3432
|
</dd>
|
|
1666
3433
|
</dl>
|
|
1667
3434
|
</dd>
|
|
@@ -1676,9 +3443,19 @@ Gets a presigned url for uploading a file app setting before installation.
|
|
|
1676
3443
|
<dd>
|
|
1677
3444
|
|
|
1678
3445
|
```typescript
|
|
1679
|
-
await client.
|
|
1680
|
-
|
|
1681
|
-
|
|
3446
|
+
await client.apps.createOrUpdate({
|
|
3447
|
+
id: "order-lookup",
|
|
3448
|
+
name: "Order lookup",
|
|
3449
|
+
shortDescription: "Looks up an order's status.",
|
|
3450
|
+
categories: ["CUSTOMER_SUPPORT"],
|
|
3451
|
+
capabilities: ["ACTIONS"],
|
|
3452
|
+
links: [],
|
|
3453
|
+
settingsSchema: [{
|
|
3454
|
+
type: "text",
|
|
3455
|
+
key: "apiKey",
|
|
3456
|
+
displayName: "API key"
|
|
3457
|
+
}],
|
|
3458
|
+
requestedPermissions: ["read:conversations"]
|
|
1682
3459
|
});
|
|
1683
3460
|
|
|
1684
3461
|
```
|
|
@@ -1695,23 +3472,7 @@ await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
|
|
|
1695
3472
|
<dl>
|
|
1696
3473
|
<dd>
|
|
1697
3474
|
|
|
1698
|
-
**
|
|
1699
|
-
|
|
1700
|
-
</dd>
|
|
1701
|
-
</dl>
|
|
1702
|
-
|
|
1703
|
-
<dl>
|
|
1704
|
-
<dd>
|
|
1705
|
-
|
|
1706
|
-
**settingsKey:** `string`
|
|
1707
|
-
|
|
1708
|
-
</dd>
|
|
1709
|
-
</dl>
|
|
1710
|
-
|
|
1711
|
-
<dl>
|
|
1712
|
-
<dd>
|
|
1713
|
-
|
|
1714
|
-
**request:** `MavenAGI.GetAppSettingUploadUrlRequest`
|
|
3475
|
+
**request:** `MavenAGI.AppRequest`
|
|
1715
3476
|
|
|
1716
3477
|
</dd>
|
|
1717
3478
|
</dl>
|
|
@@ -1719,7 +3480,7 @@ await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
|
|
|
1719
3480
|
<dl>
|
|
1720
3481
|
<dd>
|
|
1721
3482
|
|
|
1722
|
-
**requestOptions:** `
|
|
3483
|
+
**requestOptions:** `AppsClient.RequestOptions`
|
|
1723
3484
|
|
|
1724
3485
|
</dd>
|
|
1725
3486
|
</dl>
|
|
@@ -1731,8 +3492,7 @@ await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
|
|
|
1731
3492
|
</dl>
|
|
1732
3493
|
</details>
|
|
1733
3494
|
|
|
1734
|
-
|
|
1735
|
-
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">search</a>({ ...params }) -> MavenAGI.SearchAppSettingsResponse</code></summary>
|
|
3495
|
+
<details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">patch</a>(appId, { ...params }) -> MavenAGI.AppResponse</code></summary>
|
|
1736
3496
|
<dl>
|
|
1737
3497
|
<dd>
|
|
1738
3498
|
|
|
@@ -1744,11 +3504,15 @@ await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
|
|
|
1744
3504
|
<dl>
|
|
1745
3505
|
<dd>
|
|
1746
3506
|
|
|
1747
|
-
|
|
3507
|
+
Change some fields of an app your organization owns. Fields the request leaves out keep their
|
|
3508
|
+
values. Set a text field to null to clear it; send `[]` to empty a list.
|
|
1748
3509
|
|
|
1749
|
-
|
|
3510
|
+
An app your organization doesn't own, or that doesn't exist, is a 403. Requesting a permission
|
|
3511
|
+
you don't hold is a 403. It can't change an app with a hosted deployment, made in App Studio, or
|
|
3512
|
+
an agent's own app (409), and it can't change the permissions of an app other organizations can
|
|
3513
|
+
install, because the change would reach them with no consent (409).
|
|
1750
3514
|
|
|
1751
|
-
<
|
|
3515
|
+
<Note>**Required permission:** `edit:apps`</Note>
|
|
1752
3516
|
</dd>
|
|
1753
3517
|
</dl>
|
|
1754
3518
|
</dd>
|
|
@@ -1763,9 +3527,7 @@ You can set the `$index` key using the Update app settings API.
|
|
|
1763
3527
|
<dd>
|
|
1764
3528
|
|
|
1765
3529
|
```typescript
|
|
1766
|
-
await client.
|
|
1767
|
-
index: "index"
|
|
1768
|
-
});
|
|
3530
|
+
await client.apps.patch("appId", {});
|
|
1769
3531
|
|
|
1770
3532
|
```
|
|
1771
3533
|
</dd>
|
|
@@ -1781,7 +3543,7 @@ await client.appSettings.search({
|
|
|
1781
3543
|
<dl>
|
|
1782
3544
|
<dd>
|
|
1783
3545
|
|
|
1784
|
-
**
|
|
3546
|
+
**appId:** `string` — The ID of the app to change.
|
|
1785
3547
|
|
|
1786
3548
|
</dd>
|
|
1787
3549
|
</dl>
|
|
@@ -1789,7 +3551,15 @@ await client.appSettings.search({
|
|
|
1789
3551
|
<dl>
|
|
1790
3552
|
<dd>
|
|
1791
3553
|
|
|
1792
|
-
**
|
|
3554
|
+
**request:** `MavenAGI.AppPatchRequest`
|
|
3555
|
+
|
|
3556
|
+
</dd>
|
|
3557
|
+
</dl>
|
|
3558
|
+
|
|
3559
|
+
<dl>
|
|
3560
|
+
<dd>
|
|
3561
|
+
|
|
3562
|
+
**requestOptions:** `AppsClient.RequestOptions`
|
|
1793
3563
|
|
|
1794
3564
|
</dd>
|
|
1795
3565
|
</dl>
|
|
@@ -1801,7 +3571,7 @@ await client.appSettings.search({
|
|
|
1801
3571
|
</dl>
|
|
1802
3572
|
</details>
|
|
1803
3573
|
|
|
1804
|
-
<details><summary><code>client.
|
|
3574
|
+
<details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AppsSearchResponse</code></summary>
|
|
1805
3575
|
<dl>
|
|
1806
3576
|
<dd>
|
|
1807
3577
|
|
|
@@ -1813,7 +3583,10 @@ await client.appSettings.search({
|
|
|
1813
3583
|
<dl>
|
|
1814
3584
|
<dd>
|
|
1815
3585
|
|
|
1816
|
-
|
|
3586
|
+
Search the apps your organization owns, newest first unless `sortDesc` is false, with how many
|
|
3587
|
+
agents each is installed on. Leaves out each agent's own app.
|
|
3588
|
+
|
|
3589
|
+
<Note>**Required permission:** `read:apps`</Note>
|
|
1817
3590
|
</dd>
|
|
1818
3591
|
</dl>
|
|
1819
3592
|
</dd>
|
|
@@ -1828,7 +3601,7 @@ Get app settings set during installation
|
|
|
1828
3601
|
<dd>
|
|
1829
3602
|
|
|
1830
3603
|
```typescript
|
|
1831
|
-
await client.
|
|
3604
|
+
await client.apps.search({});
|
|
1832
3605
|
|
|
1833
3606
|
```
|
|
1834
3607
|
</dd>
|
|
@@ -1844,7 +3617,15 @@ await client.appSettings.get();
|
|
|
1844
3617
|
<dl>
|
|
1845
3618
|
<dd>
|
|
1846
3619
|
|
|
1847
|
-
**
|
|
3620
|
+
**request:** `MavenAGI.AppsSearchRequest`
|
|
3621
|
+
|
|
3622
|
+
</dd>
|
|
3623
|
+
</dl>
|
|
3624
|
+
|
|
3625
|
+
<dl>
|
|
3626
|
+
<dd>
|
|
3627
|
+
|
|
3628
|
+
**requestOptions:** `AppsClient.RequestOptions`
|
|
1848
3629
|
|
|
1849
3630
|
</dd>
|
|
1850
3631
|
</dl>
|
|
@@ -1856,7 +3637,7 @@ await client.appSettings.get();
|
|
|
1856
3637
|
</dl>
|
|
1857
3638
|
</details>
|
|
1858
3639
|
|
|
1859
|
-
<details><summary><code>client.
|
|
3640
|
+
<details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">delete</a>(appId) -> void</code></summary>
|
|
1860
3641
|
<dl>
|
|
1861
3642
|
<dd>
|
|
1862
3643
|
|
|
@@ -1868,15 +3649,16 @@ await client.appSettings.get();
|
|
|
1868
3649
|
<dl>
|
|
1869
3650
|
<dd>
|
|
1870
3651
|
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
- If a new key is provided, it will be added to the app settings.
|
|
1874
|
-
- If an existing key is provided, it will be updated.
|
|
1875
|
-
- No keys will be removed.
|
|
3652
|
+
Delete an app your organization owns. An app your organization doesn't own, or that doesn't exist,
|
|
3653
|
+
is a 403.
|
|
1876
3654
|
|
|
1877
|
-
|
|
3655
|
+
An app that is still installed on any agent can't be deleted: uninstall it everywhere first, or
|
|
3656
|
+
the request fails with a 409. Its `installCount` says how many agents have it, and the app
|
|
3657
|
+
directory shows whether a given agent does; uninstall it from each with the app directory's
|
|
3658
|
+
uninstall (`DELETE /v1/directory/{appId}/install`). That includes agents in other organizations
|
|
3659
|
+
an app is public or shared with, which only those organizations can uninstall.
|
|
1878
3660
|
|
|
1879
|
-
|
|
3661
|
+
<Note>**Required permission:** `edit:apps`</Note>
|
|
1880
3662
|
</dd>
|
|
1881
3663
|
</dl>
|
|
1882
3664
|
</dd>
|
|
@@ -1891,11 +3673,7 @@ Returns the full app settings after the merge, including keys that were not in t
|
|
|
1891
3673
|
<dd>
|
|
1892
3674
|
|
|
1893
3675
|
```typescript
|
|
1894
|
-
await client.
|
|
1895
|
-
"string": {
|
|
1896
|
-
"key": "value"
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
3676
|
+
await client.apps.delete("appId");
|
|
1899
3677
|
|
|
1900
3678
|
```
|
|
1901
3679
|
</dd>
|
|
@@ -1911,7 +3689,7 @@ await client.appSettings.update({
|
|
|
1911
3689
|
<dl>
|
|
1912
3690
|
<dd>
|
|
1913
3691
|
|
|
1914
|
-
**
|
|
3692
|
+
**appId:** `string` — The ID of the app to delete.
|
|
1915
3693
|
|
|
1916
3694
|
</dd>
|
|
1917
3695
|
</dl>
|
|
@@ -1919,7 +3697,7 @@ await client.appSettings.update({
|
|
|
1919
3697
|
<dl>
|
|
1920
3698
|
<dd>
|
|
1921
3699
|
|
|
1922
|
-
**requestOptions:** `
|
|
3700
|
+
**requestOptions:** `AppsClient.RequestOptions`
|
|
1923
3701
|
|
|
1924
3702
|
</dd>
|
|
1925
3703
|
</dl>
|
|
@@ -2625,6 +4403,12 @@ for leaf charters as we enforce mutual exclusion among the leafs and
|
|
|
2625
4403
|
pick only the highest ranked (lowest numerical value) leaf to include in
|
|
2626
4404
|
the round. userRank may have gaps.
|
|
2627
4405
|
|
|
4406
|
+
A charter saved as `ACTIVE` applies to the agent's conversations from its next reply. Create a new
|
|
4407
|
+
charter `INACTIVE` and activate it with `patch` once its manual, precondition and references are
|
|
4408
|
+
complete. An agent has a limit on how many charters can be `ACTIVE` at once. A change into `ACTIVE`
|
|
4409
|
+
past that limit is rejected with a 400 whose message gives the limit; charters that are already
|
|
4410
|
+
`ACTIVE` stay editable. `childrenExclusionPolicy` is not part of this request; set it with `patch`.
|
|
4411
|
+
|
|
2628
4412
|
<Note>**Required permission:** `edit:agents`</Note>
|
|
2629
4413
|
</dd>
|
|
2630
4414
|
</dl>
|
|
@@ -2962,7 +4746,8 @@ Search for charters matching the provided filters. Supports filtering by
|
|
|
2962
4746
|
referenced action IDs and knowledge base IDs to find charters that make
|
|
2963
4747
|
specific context items available.
|
|
2964
4748
|
|
|
2965
|
-
Returns both ACTIVE and INACTIVE charters (DELETED charters are excluded).
|
|
4749
|
+
Returns both ACTIVE and INACTIVE charters (DELETED charters are excluded). Each result is a
|
|
4750
|
+
summary without `description`, `manual`, `references` or `userRank`; read those with `get`.
|
|
2966
4751
|
|
|
2967
4752
|
Results are ordered by the `sort` field (defaults to CreatedAt). Use `sortDesc`
|
|
2968
4753
|
to control direction (defaults to descending). An empty filter list is
|
|
@@ -3281,6 +5066,9 @@ Only required if the ask request wishes to supply conversation level data or whe
|
|
|
3281
5066
|
|
|
3282
5067
|
Conversations can not be modified using this API. If the conversation already exists then the existing conversation will be returned.
|
|
3283
5068
|
|
|
5069
|
+
The conversation belongs to the calling app. Whether it is a simulation is fixed here, when it is created: pass
|
|
5070
|
+
`simulationContext` to make it one.
|
|
5071
|
+
|
|
3284
5072
|
After initialization,
|
|
3285
5073
|
- metadata can be changed using the `updateConversationMetadata` API.
|
|
3286
5074
|
- messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
|
|
@@ -3517,7 +5305,7 @@ Non-simulation conversations remain visible; they cannot be fully removed from t
|
|
|
3517
5305
|
|
|
3518
5306
|
<Warning>This is a destructive operation and cannot be undone. <br/><br/>
|
|
3519
5307
|
What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
|
|
3520
|
-
Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
5308
|
+
Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments and attachment warnings, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
3521
5309
|
Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
|
|
3522
5310
|
What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
|
|
3523
5311
|
|
|
@@ -3690,6 +5478,16 @@ await client.conversation.appendNewMessages("conversationId", [{
|
|
|
3690
5478
|
Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
3691
5479
|
they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
3692
5480
|
|
|
5481
|
+
If no conversation with this ID exists for the calling app, `ask` creates one, and it is live, not a simulation:
|
|
5482
|
+
its actions run against real systems. To test without acting on real systems, call `initialize` first with a
|
|
5483
|
+
`simulationContext` whose `defaultActionBehavior` is a `fixedResponse`. The lookup uses the calling app only, so
|
|
5484
|
+
the ID of a conversation another app created starts a new conversation under the calling app rather than
|
|
5485
|
+
continuing that one.
|
|
5486
|
+
|
|
5487
|
+
The response leaves out each message's `logic`. Its `summary` and `analysis` are calculated on a delay, so they
|
|
5488
|
+
may not reflect this answer yet (for example `summary.matchedCharterIds` or `analysis.intelligentFieldValues`);
|
|
5489
|
+
read them later with `get`.
|
|
5490
|
+
|
|
3693
5491
|
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3694
5492
|
|
|
3695
5493
|
Concurrency Behavior:
|
|
@@ -3791,6 +5589,12 @@ Get an answer from Maven for a given user question with a streaming response. Th
|
|
|
3791
5589
|
The text portions of stream responses should be concatenated to form the full response text.
|
|
3792
5590
|
Action and metadata events should overwrite past data and do not need concatenation.
|
|
3793
5591
|
|
|
5592
|
+
If no conversation with this ID exists for the calling app, `askStream` creates one, and it is live, not a
|
|
5593
|
+
simulation: its actions run against real systems. To test without acting on real systems, call `initialize`
|
|
5594
|
+
first with a `simulationContext` whose `defaultActionBehavior` is a `fixedResponse`. The lookup uses the calling
|
|
5595
|
+
app only, so the ID of a conversation another app created starts a new conversation under the calling app rather
|
|
5596
|
+
than continuing that one.
|
|
5597
|
+
|
|
3794
5598
|
If the user question or its answer already exists, they will be reused and will not be updated.
|
|
3795
5599
|
Messages do not allow modification once generated.
|
|
3796
5600
|
|
|
@@ -5133,7 +6937,7 @@ await client.events.get("eventId", {
|
|
|
5133
6937
|
|
|
5134
6938
|
Export events to a CSV file.
|
|
5135
6939
|
|
|
5136
|
-
This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
|
|
6940
|
+
This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers. The CSV's `createdBy` column is the display name of the user the event is about, not the event's `createdBy`, which names who recorded it.
|
|
5137
6941
|
|
|
5138
6942
|
<Note>**Required permission:** `read:events`</Note>
|
|
5139
6943
|
</dd>
|
|
@@ -5903,16 +7707,21 @@ Create a new intelligent field, or replace it if one already exists with the sam
|
|
|
5903
7707
|
`fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
5904
7708
|
entities such as conversations.
|
|
5905
7709
|
|
|
7710
|
+
To list an agent's fields, or read one, use the capabilities `searchCapabilities` and
|
|
7711
|
+
`getCapability` endpoints with capability type `INTELLIGENT_FIELD`.
|
|
7712
|
+
|
|
5906
7713
|
New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
5907
7714
|
with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
|
|
5908
7715
|
since it is evaluated only once that variant is published and given traffic; it starts
|
|
5909
7716
|
`INACTIVE` while the agent is at its limit of active fields. `definition` is limited
|
|
5910
7717
|
to 5,000 characters.
|
|
5911
7718
|
|
|
5912
|
-
A replace
|
|
5913
|
-
|
|
5914
|
-
a different type, create a new field. A
|
|
5915
|
-
with any type
|
|
7719
|
+
A replace must keep the field's `validationType`, or it is rejected with reason
|
|
7720
|
+
`INTELLIGENT_FIELD_TYPE_CHANGED`; one that names a `variantId` keeps the type as that
|
|
7721
|
+
variant has it. To use a different type, create a new field. A deleted field may be
|
|
7722
|
+
recreated with any type (for a variant write, one deleted in that variant), but the
|
|
7723
|
+
values it computed before the delete keep their old type and drop out of analytics for
|
|
7724
|
+
the new one. A replace may change the field's `name`.
|
|
5916
7725
|
|
|
5917
7726
|
<Note>**Required permission:** `edit:agents`</Note>
|
|
5918
7727
|
</dd>
|
|
@@ -6244,6 +8053,10 @@ value was computed.
|
|
|
6244
8053
|
Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
6245
8054
|
newly activated field returns nothing until evaluation has run.
|
|
6246
8055
|
|
|
8056
|
+
A field can be evaluated again as a conversation goes on, and every successful evaluation is
|
|
8057
|
+
returned here, not only the latest. A conversation's `analysis.intelligentFieldValues` shows only the latest
|
|
8058
|
+
value for each field; use `createdAfter` and `createdBefore` to see how it changed.
|
|
8059
|
+
|
|
6247
8060
|
<Note>**Required permission:** `read:agents`</Note>
|
|
6248
8061
|
</dd>
|
|
6249
8062
|
</dl>
|
|
@@ -6402,6 +8215,13 @@ await client.knowledge.searchKnowledgeBases({});
|
|
|
6402
8215
|
|
|
6403
8216
|
Update a knowledge base or create it if it doesn't exist.
|
|
6404
8217
|
|
|
8218
|
+
Every knowledge base this endpoint creates has type `API`. The request has no type field.
|
|
8219
|
+
|
|
8220
|
+
Creating a knowledge base also opens its first version. To load it, add documents with
|
|
8221
|
+
`createKnowledgeDocument` and then call `finalizeKnowledgeBaseVersion`. Do not call
|
|
8222
|
+
`createKnowledgeBaseVersion` right after creating the knowledge base: it fails that first
|
|
8223
|
+
version and opens a second one. Updating an existing knowledge base does not open a version.
|
|
8224
|
+
|
|
6405
8225
|
<Note>**Required permission:** `edit:agents`</Note>
|
|
6406
8226
|
</dd>
|
|
6407
8227
|
</dl>
|
|
@@ -6702,6 +8522,10 @@ await client.knowledge.cancelKnowledgeBaseVersion("knowledgeBaseReferenceId", {}
|
|
|
6702
8522
|
|
|
6703
8523
|
Rolls the knowledge base back to its previous published version.
|
|
6704
8524
|
|
|
8525
|
+
<Warning>This endpoint is in development and is not supported on every agent yet. Where it
|
|
8526
|
+
isn't, it returns 404. It also returns 404 when the knowledge base has no earlier published
|
|
8527
|
+
version to roll back to.</Warning>
|
|
8528
|
+
|
|
6705
8529
|
<Note>**Required permission:** `edit:agents`</Note>
|
|
6706
8530
|
</dd>
|
|
6707
8531
|
</dl>
|
|
@@ -6852,9 +8676,14 @@ await client.knowledge.patchKnowledgeBase("help-center", {
|
|
|
6852
8676
|
<dd>
|
|
6853
8677
|
|
|
6854
8678
|
Create a new knowledge base version.
|
|
8679
|
+
The knowledge base is looked up under the calling app, so these calls can't reach a knowledge base another app created.
|
|
6855
8680
|
|
|
6856
8681
|
If an existing version is in progress, then that version will be finalized in an error state.
|
|
6857
8682
|
|
|
8683
|
+
A new knowledge base already has an open first version from `createOrUpdateKnowledgeBase`.
|
|
8684
|
+
Add the first documents to that version and finalize it. Call this endpoint for later
|
|
8685
|
+
refreshes. Calling it right after creating the knowledge base leaves the first version `FAILED`.
|
|
8686
|
+
|
|
6858
8687
|
If another version create for the same knowledge base is still in progress, this request may
|
|
6859
8688
|
return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
6860
8689
|
|
|
@@ -6932,6 +8761,7 @@ await client.knowledge.createKnowledgeBaseVersion("help-center", {
|
|
|
6932
8761
|
<dd>
|
|
6933
8762
|
|
|
6934
8763
|
Finalize the latest knowledge base version. Required to indicate the version is complete. Will throw an exception if the latest version is not in progress.
|
|
8764
|
+
The knowledge base is looked up under the calling app, so these calls can't reach a knowledge base another app created.
|
|
6935
8765
|
|
|
6936
8766
|
A `FULL` version starts empty and replaces the live documents. Finalizing a `FULL` version
|
|
6937
8767
|
with status `SUCCEEDED` (the default when `status` is omitted) succeeds even if no
|
|
@@ -7249,6 +9079,7 @@ await client.knowledge.searchKnowledgeDocuments({});
|
|
|
7249
9079
|
|
|
7250
9080
|
Create or update a knowledge document. Requires an existing knowledge base with an in progress version.
|
|
7251
9081
|
Will throw an exception if the latest version is not in progress.
|
|
9082
|
+
The knowledge base is looked up under the calling app, so these calls can't reach a knowledge base another app created.
|
|
7252
9083
|
|
|
7253
9084
|
<Tip>
|
|
7254
9085
|
This API maintains document version history. If for the same reference ID none of the `title`, `text`, `sourceUrl`, `metadata` fields
|
|
@@ -7343,6 +9174,7 @@ await client.knowledge.createKnowledgeDocument("help-center", {
|
|
|
7343
9174
|
|
|
7344
9175
|
Delete knowledge document from a specific version.
|
|
7345
9176
|
Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
|
|
9177
|
+
The knowledge base is looked up under the calling app, so these calls can't reach a knowledge base another app created.
|
|
7346
9178
|
|
|
7347
9179
|
<Note>**Required permission:** `delete:documents`</Note>
|
|
7348
9180
|
</dd>
|
|
@@ -8786,7 +10618,12 @@ await client.triggers.delete("store-in-snowflake");
|
|
|
8786
10618
|
<dl>
|
|
8787
10619
|
<dd>
|
|
8788
10620
|
|
|
8789
|
-
Updates an event trigger. `enabled` and `
|
|
10621
|
+
Updates an event trigger. `enabled`, `condition`, `schedule`, `wait` and `rateLimit` are
|
|
10622
|
+
the editable fields.
|
|
10623
|
+
|
|
10624
|
+
While timing is not available for the agent, setting `schedule`, `wait` or `rateLimit`
|
|
10625
|
+
answers 400. Clearing one with an explicit null still succeeds; a trigger whose
|
|
10626
|
+
`timingActive` is false is delivered again once none of the three is left.
|
|
8790
10627
|
|
|
8791
10628
|
`PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
8792
10629
|
off, the same way it publishes and unpublishes any kind of capability.
|
|
@@ -9087,7 +10924,7 @@ Update an app user or create it if it doesn't exist.
|
|
|
9087
10924
|
|
|
9088
10925
|
When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
|
|
9089
10926
|
|
|
9090
|
-
<Note>**Required permission:** `
|
|
10927
|
+
<Note>**Required permission:** `ask:agent`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
9091
10928
|
</dd>
|
|
9092
10929
|
</dl>
|
|
9093
10930
|
</dd>
|