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
|
@@ -32,6 +32,31 @@ export declare class AppDirectoryClient {
|
|
|
32
32
|
/**
|
|
33
33
|
* Gets an app and its installation status for the agent.
|
|
34
34
|
*
|
|
35
|
+
* Before installing, read `installationInstructions` for what to gather and set up first, and
|
|
36
|
+
* `settingsSchema` for the settings `install` takes.
|
|
37
|
+
*
|
|
38
|
+
* Installing is often not the last step. Once the app is installed:
|
|
39
|
+
*
|
|
40
|
+
* 1. Follow `instructions`, the app's post-install steps, filled in for this agent. They can
|
|
41
|
+
* name changes to make in the other system, such as a webhook to add.
|
|
42
|
+
* 2. Each `settingsSchema` entry of type `oauth`, including one nested in a `section`, needs a
|
|
43
|
+
* person to sign in to the other system, which the API cannot do. Ask someone with access to
|
|
44
|
+
* it to open the agent in Agent Designer, go to **Apps**, open this app and click
|
|
45
|
+
* **Connect**. Its value sits at the same path in `settings` as the entry in the schema:
|
|
46
|
+
* `settings.<key>`, or `settings.<section key>.<key>` inside a section. It is connected once
|
|
47
|
+
* that value has an `accessToken` (returned redacted). `status.ok: false` means the
|
|
48
|
+
* connection failed and needs **Reconnect**; a missing value means it was never connected.
|
|
49
|
+
* Connecting re-runs the app's postInstall hook.
|
|
50
|
+
* 3. An app that imports knowledge creates knowledge bases under its own `appId`, often only
|
|
51
|
+
* once its connection works. Find them with `knowledge.searchKnowledgeBases`, request body
|
|
52
|
+
* `{"filter": {"appIds": [appId]}}`. Check each import with
|
|
53
|
+
* `knowledge.listKnowledgeBaseVersions`: pass the returned `knowledgeBaseId.referenceId` as
|
|
54
|
+
* `knowledgeBaseReferenceId` and the same `appId`. `IN_PROGRESS` is still running,
|
|
55
|
+
* `SUCCEEDED` is done, `FAILED` needs a look, and `CANCELED` was stopped by a cancel request.
|
|
56
|
+
* Both calls need `read:agents`, which a caller holding only app permissions lacks.
|
|
57
|
+
*
|
|
58
|
+
* <Note>**Required permission:** `read:apps`</Note>
|
|
59
|
+
*
|
|
35
60
|
* @param {string} appId
|
|
36
61
|
* @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
62
|
*
|
|
@@ -49,7 +74,19 @@ export declare class AppDirectoryClient {
|
|
|
49
74
|
get(appId: string, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<MavenAGI.MarketplaceAppDetail>;
|
|
50
75
|
private __get;
|
|
51
76
|
/**
|
|
52
|
-
* Installs the app on the agent, or updates settings for an existing installation.
|
|
77
|
+
* Installs the app on the agent, or updates settings for an existing installation. Runs the
|
|
78
|
+
* app's preInstall hook first: the app may store different settings than the ones sent, or
|
|
79
|
+
* reject them with a 400. When the app names the rejected settings, the 400's `reason` is
|
|
80
|
+
* `INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
|
|
81
|
+
* the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
|
|
82
|
+
* each call. Returns the app as `get` does once the install is
|
|
83
|
+
* done, with its settings and post-install `instructions` filled in for the agent.
|
|
84
|
+
*
|
|
85
|
+
* The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
|
|
86
|
+
* each `oauth` setting to a person to connect in Agent Designer, and check any knowledge
|
|
87
|
+
* import.
|
|
88
|
+
*
|
|
89
|
+
* <Note>**Required permission:** `install:apps`</Note>
|
|
53
90
|
*
|
|
54
91
|
* @param {string} appId
|
|
55
92
|
* @param {MavenAGI.InstallDirectoryAppRequest} request
|
|
@@ -70,7 +107,7 @@ export declare class AppDirectoryClient {
|
|
|
70
107
|
* }
|
|
71
108
|
* })
|
|
72
109
|
*/
|
|
73
|
-
install(appId: string, request: MavenAGI.InstallDirectoryAppRequest, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<
|
|
110
|
+
install(appId: string, request: MavenAGI.InstallDirectoryAppRequest, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<MavenAGI.MarketplaceAppDetail>;
|
|
74
111
|
private __install;
|
|
75
112
|
/**
|
|
76
113
|
* Uninstalls the app from the agent, and deletes the actions and triggers it created.
|
|
@@ -115,6 +152,12 @@ export declare class AppDirectoryClient {
|
|
|
115
152
|
private __getSettingDownloadUrl;
|
|
116
153
|
/**
|
|
117
154
|
* Gets a presigned url for uploading a file app setting before installation.
|
|
155
|
+
* Upload the file by sending its bytes in an HTTP PUT to the returned url.
|
|
156
|
+
* The file must be a PNG, JPEG or web font of at most 2 MB. Once uploaded, it is read back
|
|
157
|
+
* as the key's value, including for a key that was cleared.
|
|
158
|
+
*
|
|
159
|
+
* `settingsKey` is the setting's full path in the app's settings schema. For an image inside a
|
|
160
|
+
* `section`, join the section's key and the image's key with a dot, such as `branding.logo`.
|
|
118
161
|
*
|
|
119
162
|
* @param {string} appId
|
|
120
163
|
* @param {string} settingsKey
|
|
@@ -161,6 +161,31 @@ class AppDirectoryClient {
|
|
|
161
161
|
/**
|
|
162
162
|
* Gets an app and its installation status for the agent.
|
|
163
163
|
*
|
|
164
|
+
* Before installing, read `installationInstructions` for what to gather and set up first, and
|
|
165
|
+
* `settingsSchema` for the settings `install` takes.
|
|
166
|
+
*
|
|
167
|
+
* Installing is often not the last step. Once the app is installed:
|
|
168
|
+
*
|
|
169
|
+
* 1. Follow `instructions`, the app's post-install steps, filled in for this agent. They can
|
|
170
|
+
* name changes to make in the other system, such as a webhook to add.
|
|
171
|
+
* 2. Each `settingsSchema` entry of type `oauth`, including one nested in a `section`, needs a
|
|
172
|
+
* person to sign in to the other system, which the API cannot do. Ask someone with access to
|
|
173
|
+
* it to open the agent in Agent Designer, go to **Apps**, open this app and click
|
|
174
|
+
* **Connect**. Its value sits at the same path in `settings` as the entry in the schema:
|
|
175
|
+
* `settings.<key>`, or `settings.<section key>.<key>` inside a section. It is connected once
|
|
176
|
+
* that value has an `accessToken` (returned redacted). `status.ok: false` means the
|
|
177
|
+
* connection failed and needs **Reconnect**; a missing value means it was never connected.
|
|
178
|
+
* Connecting re-runs the app's postInstall hook.
|
|
179
|
+
* 3. An app that imports knowledge creates knowledge bases under its own `appId`, often only
|
|
180
|
+
* once its connection works. Find them with `knowledge.searchKnowledgeBases`, request body
|
|
181
|
+
* `{"filter": {"appIds": [appId]}}`. Check each import with
|
|
182
|
+
* `knowledge.listKnowledgeBaseVersions`: pass the returned `knowledgeBaseId.referenceId` as
|
|
183
|
+
* `knowledgeBaseReferenceId` and the same `appId`. `IN_PROGRESS` is still running,
|
|
184
|
+
* `SUCCEEDED` is done, `FAILED` needs a look, and `CANCELED` was stopped by a cancel request.
|
|
185
|
+
* Both calls need `read:agents`, which a caller holding only app permissions lacks.
|
|
186
|
+
*
|
|
187
|
+
* <Note>**Required permission:** `read:apps`</Note>
|
|
188
|
+
*
|
|
164
189
|
* @param {string} appId
|
|
165
190
|
* @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
191
|
*
|
|
@@ -257,7 +282,19 @@ class AppDirectoryClient {
|
|
|
257
282
|
});
|
|
258
283
|
}
|
|
259
284
|
/**
|
|
260
|
-
* Installs the app on the agent, or updates settings for an existing installation.
|
|
285
|
+
* Installs the app on the agent, or updates settings for an existing installation. Runs the
|
|
286
|
+
* app's preInstall hook first: the app may store different settings than the ones sent, or
|
|
287
|
+
* reject them with a 400. When the app names the rejected settings, the 400's `reason` is
|
|
288
|
+
* `INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
|
|
289
|
+
* the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
|
|
290
|
+
* each call. Returns the app as `get` does once the install is
|
|
291
|
+
* done, with its settings and post-install `instructions` filled in for the agent.
|
|
292
|
+
*
|
|
293
|
+
* The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
|
|
294
|
+
* each `oauth` setting to a person to connect in Agent Designer, and check any knowledge
|
|
295
|
+
* import.
|
|
296
|
+
*
|
|
297
|
+
* <Note>**Required permission:** `install:apps`</Note>
|
|
261
298
|
*
|
|
262
299
|
* @param {string} appId
|
|
263
300
|
* @param {MavenAGI.InstallDirectoryAppRequest} request
|
|
@@ -304,7 +341,15 @@ class AppDirectoryClient {
|
|
|
304
341
|
logging: this._options.logging,
|
|
305
342
|
});
|
|
306
343
|
if (_response.ok) {
|
|
307
|
-
return {
|
|
344
|
+
return {
|
|
345
|
+
data: serializers.MarketplaceAppDetail.parseOrThrow(_response.body, {
|
|
346
|
+
unrecognizedObjectKeys: "passthrough",
|
|
347
|
+
allowUnrecognizedUnionMembers: true,
|
|
348
|
+
allowUnrecognizedEnumValues: true,
|
|
349
|
+
breadcrumbsPrefix: ["response"],
|
|
350
|
+
}),
|
|
351
|
+
rawResponse: _response.rawResponse,
|
|
352
|
+
};
|
|
308
353
|
}
|
|
309
354
|
if (_response.error.reason === "status-code") {
|
|
310
355
|
switch (_response.error.statusCode) {
|
|
@@ -547,6 +592,12 @@ class AppDirectoryClient {
|
|
|
547
592
|
}
|
|
548
593
|
/**
|
|
549
594
|
* Gets a presigned url for uploading a file app setting before installation.
|
|
595
|
+
* Upload the file by sending its bytes in an HTTP PUT to the returned url.
|
|
596
|
+
* The file must be a PNG, JPEG or web font of at most 2 MB. Once uploaded, it is read back
|
|
597
|
+
* as the key's value, including for a key that was cleared.
|
|
598
|
+
*
|
|
599
|
+
* `settingsKey` is the setting's full path in the app's settings schema. For an image inside a
|
|
600
|
+
* `section`, join the section's key and the image's key with a dot, such as `branding.logo`.
|
|
550
601
|
*
|
|
551
602
|
* @param {string} appId
|
|
552
603
|
* @param {string} settingsKey
|
|
@@ -5,9 +5,28 @@ export interface InstallDirectoryAppRequest {
|
|
|
5
5
|
* The keys and accepted values are defined by the app itself: fetch the app with
|
|
6
6
|
* `get` and read its `settingsSchema`, where every entry carries a `key`, a `type`, and
|
|
7
7
|
* whether it is `required`. Values are merged into the installation's existing settings:
|
|
8
|
-
* keys you omit keep their stored value
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* keys you omit keep their stored value. The server does not currently reject an unknown key.
|
|
9
|
+
*
|
|
10
|
+
* After the merge, the settings must satisfy the schema, or the request fails with a 400 and
|
|
11
|
+
* nothing is saved. The error lists every problem as `<path>: <message>` (for example
|
|
12
|
+
* `Invalid settings: apiKey: required; auth.region: Must be us or eu`), with each entry
|
|
13
|
+
* named by its path (`apiKey`, `auth.region`, `rules[0].team`), so one corrected request
|
|
14
|
+
* can fix them all. The checks are:
|
|
15
|
+
*
|
|
16
|
+
* - Every entry marked `required` has a value. `null`, `""` and `[]` count as missing. An
|
|
17
|
+
* entry you leave out that has a `defaultValue` counts as set, but sending it empty does
|
|
18
|
+
* not. `oauth` and `image` entries are never required here, because they are set up
|
|
19
|
+
* apart from this request.
|
|
20
|
+
* - Every value matches each of its entry's `validations` patterns. The message is the
|
|
21
|
+
* pattern's `errorMessage`. For an `array`, each item is checked. Patterns run with RE2
|
|
22
|
+
* syntax, so one that uses a lookaround or a backreference is not checked here.
|
|
23
|
+
* - A `jsonSchema` entry's value is valid against the entry's `jsonSchema`. A schema that
|
|
24
|
+
* uses `pattern` or `patternProperties` anywhere is not checked here.
|
|
25
|
+
* - A `oneOf` value's `type` names one of the entry's options. The message lists them.
|
|
26
|
+
*
|
|
27
|
+
* Inside a `oneOf`, only the fields of the option its `type` selects are checked, and inside
|
|
28
|
+
* a `complexarray` each item's fields are. Sending an empty object installs an app with no
|
|
29
|
+
* required settings.
|
|
11
30
|
*
|
|
12
31
|
* Sensitive entries are returned redacted by `get`, and sending one back unchanged here is a
|
|
13
32
|
* no-op that keeps the stored value, so a settings object can be read, edited and written
|
|
@@ -23,11 +42,14 @@ export interface InstallDirectoryAppRequest {
|
|
|
23
42
|
* | `array` | list of strings |
|
|
24
43
|
* | `complexarray` | list of objects |
|
|
25
44
|
* | `oneOf`, `jsonSchema` | object matching the entry's schema |
|
|
26
|
-
* | `
|
|
45
|
+
* | `section` | object keyed by the section's field keys |
|
|
46
|
+
* | `oauth`, `image` | omitted (see below) |
|
|
27
47
|
*
|
|
28
48
|
* `image` entries are file settings. Do not send their bytes here: upload them first with
|
|
29
49
|
* `getSettingUploadUrl` using the same setting key, and the stored file is picked up
|
|
30
|
-
* automatically.
|
|
50
|
+
* automatically. To remove an image, send an empty string for its key. A URL string sent for
|
|
51
|
+
* an `image` key is stored, but the next read replaces it with a link to a file that was never
|
|
52
|
+
* uploaded, so the image appears broken. A person connects `oauth` entries after install.
|
|
31
53
|
*
|
|
32
54
|
* ```json
|
|
33
55
|
* {
|
|
@@ -11,10 +11,10 @@ export declare class AppSettingsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AppSettingsClient.Options>;
|
|
12
12
|
constructor(options: AppSettingsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @beta This endpoint is in development and may change.
|
|
15
|
-
*
|
|
16
14
|
* Search for app settings which have the `$index` key set to the provided value.
|
|
17
15
|
*
|
|
16
|
+
* Searches only the installations of the calling app, the app whose credentials make the request.
|
|
17
|
+
*
|
|
18
18
|
* You can set the `$index` key using the Update app settings API.
|
|
19
19
|
*
|
|
20
20
|
* <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>
|
|
@@ -38,7 +38,10 @@ export declare class AppSettingsClient {
|
|
|
38
38
|
search(request: MavenAGI.SearchAppSettingsRequest, requestOptions?: AppSettingsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SearchAppSettingsResponse>;
|
|
39
39
|
private __search;
|
|
40
40
|
/**
|
|
41
|
-
* Get
|
|
41
|
+
* Get the settings of the calling app's installation on the agent. The calling app is the app
|
|
42
|
+
* whose credentials make the request, so this cannot read another app's settings. Returns 404
|
|
43
|
+
* when the calling app is not installed on the agent. To read another app's settings, use the
|
|
44
|
+
* app directory `get` endpoint with that app's ID.
|
|
42
45
|
*
|
|
43
46
|
* @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
47
|
*
|
|
@@ -56,7 +59,11 @@ export declare class AppSettingsClient {
|
|
|
56
59
|
get(requestOptions?: AppSettingsClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
57
60
|
private __get;
|
|
58
61
|
/**
|
|
59
|
-
* Update
|
|
62
|
+
* Update the settings of the calling app's installation on the agent. The calling app is the
|
|
63
|
+
* app whose credentials make the request, so this cannot change another app's settings. To
|
|
64
|
+
* change another app's settings, use the app directory `install` endpoint with that app's ID.
|
|
65
|
+
*
|
|
66
|
+
* Performs a merge of the provided settings with the existing app settings.
|
|
60
67
|
*
|
|
61
68
|
* - If a new key is provided, it will be added to the app settings.
|
|
62
69
|
* - If an existing key is provided, it will be updated.
|
|
@@ -58,10 +58,10 @@ class AppSettingsClient {
|
|
|
58
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* @beta This endpoint is in development and may change.
|
|
62
|
-
*
|
|
63
61
|
* Search for app settings which have the `$index` key set to the provided value.
|
|
64
62
|
*
|
|
63
|
+
* Searches only the installations of the calling app, the app whose credentials make the request.
|
|
64
|
+
*
|
|
65
65
|
* You can set the `$index` key using the Update app settings API.
|
|
66
66
|
*
|
|
67
67
|
* <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>
|
|
@@ -172,7 +172,10 @@ class AppSettingsClient {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
* Get
|
|
175
|
+
* Get the settings of the calling app's installation on the agent. The calling app is the app
|
|
176
|
+
* whose credentials make the request, so this cannot read another app's settings. Returns 404
|
|
177
|
+
* when the calling app is not installed on the agent. To read another app's settings, use the
|
|
178
|
+
* app directory `get` endpoint with that app's ID.
|
|
176
179
|
*
|
|
177
180
|
* @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
181
|
*
|
|
@@ -269,7 +272,11 @@ class AppSettingsClient {
|
|
|
269
272
|
});
|
|
270
273
|
}
|
|
271
274
|
/**
|
|
272
|
-
* Update
|
|
275
|
+
* Update the settings of the calling app's installation on the agent. The calling app is the
|
|
276
|
+
* app whose credentials make the request, so this cannot change another app's settings. To
|
|
277
|
+
* change another app's settings, use the app directory `install` endpoint with that app's ID.
|
|
278
|
+
*
|
|
279
|
+
* Performs a merge of the provided settings with the existing app settings.
|
|
273
280
|
*
|
|
274
281
|
* - If a new key is provided, it will be added to the app settings.
|
|
275
282
|
* - If an existing key is provided, it will be updated.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export declare namespace AppsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AppsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AppsClient.Options>;
|
|
12
|
+
constructor(options: AppsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Create an app your organization owns, or replace one it already owns: every field the request
|
|
15
|
+
* leaves out is cleared. To change only some fields, use `patch`. Send `categories`,
|
|
16
|
+
* `capabilities`, `links` and `settingsSchema` every time, as `[]` when the app has none.
|
|
17
|
+
*
|
|
18
|
+
* App IDs are unique across Maven, so an ID another organization uses, or a deleted app used, is a
|
|
19
|
+
* 409. Requesting a permission you don't hold is a 403.
|
|
20
|
+
*
|
|
21
|
+
* A new app is in development: only your organization can see it in the app directory, and install
|
|
22
|
+
* it on its agents with the app directory's install (`POST /v1/directory/{appId}/install`). Its code
|
|
23
|
+
* runs as Functions, which you add with the Functions API. Making the app public, sharing it with
|
|
24
|
+
* other organizations, and setting its logo can't be done through this API.
|
|
25
|
+
*
|
|
26
|
+
* It can't change an app with a hosted deployment, made in App Studio, or an agent's own app (409),
|
|
27
|
+
* and it can't change the permissions of an app other organizations can install, because the change
|
|
28
|
+
* would reach them with no consent (409).
|
|
29
|
+
*
|
|
30
|
+
* <Note>**Required permission:** `edit:apps`</Note>
|
|
31
|
+
*
|
|
32
|
+
* @param {MavenAGI.AppRequest} request
|
|
33
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
36
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
37
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
38
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
39
|
+
* @throws {@link MavenAGI.ServerError}
|
|
40
|
+
* @throws {@link errors.MavenAGIError}
|
|
41
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.apps.createOrUpdate({
|
|
45
|
+
* id: "order-lookup",
|
|
46
|
+
* name: "Order lookup",
|
|
47
|
+
* shortDescription: "Looks up an order's status.",
|
|
48
|
+
* categories: ["CUSTOMER_SUPPORT"],
|
|
49
|
+
* capabilities: ["ACTIONS"],
|
|
50
|
+
* links: [],
|
|
51
|
+
* settingsSchema: [{
|
|
52
|
+
* type: "text",
|
|
53
|
+
* key: "apiKey",
|
|
54
|
+
* displayName: "API key"
|
|
55
|
+
* }],
|
|
56
|
+
* requestedPermissions: ["read:conversations"]
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
createOrUpdate(request: MavenAGI.AppRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppResponse>;
|
|
60
|
+
private __createOrUpdate;
|
|
61
|
+
/**
|
|
62
|
+
* Change some fields of an app your organization owns. Fields the request leaves out keep their
|
|
63
|
+
* values. Set a text field to null to clear it; send `[]` to empty a list.
|
|
64
|
+
*
|
|
65
|
+
* An app your organization doesn't own, or that doesn't exist, is a 403. Requesting a permission
|
|
66
|
+
* you don't hold is a 403. It can't change an app with a hosted deployment, made in App Studio, or
|
|
67
|
+
* an agent's own app (409), and it can't change the permissions of an app other organizations can
|
|
68
|
+
* install, because the change would reach them with no consent (409).
|
|
69
|
+
*
|
|
70
|
+
* <Note>**Required permission:** `edit:apps`</Note>
|
|
71
|
+
*
|
|
72
|
+
* @param {string} appId - The ID of the app to change.
|
|
73
|
+
* @param {MavenAGI.AppPatchRequest} request
|
|
74
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
77
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
78
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
79
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
80
|
+
* @throws {@link MavenAGI.ServerError}
|
|
81
|
+
* @throws {@link errors.MavenAGIError}
|
|
82
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.apps.patch("appId", {})
|
|
86
|
+
*/
|
|
87
|
+
patch(appId: string, request: MavenAGI.AppPatchRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppResponse>;
|
|
88
|
+
private __patch;
|
|
89
|
+
/**
|
|
90
|
+
* Search the apps your organization owns, newest first unless `sortDesc` is false, with how many
|
|
91
|
+
* agents each is installed on. Leaves out each agent's own app.
|
|
92
|
+
*
|
|
93
|
+
* <Note>**Required permission:** `read:apps`</Note>
|
|
94
|
+
*
|
|
95
|
+
* @param {MavenAGI.AppsSearchRequest} request
|
|
96
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
99
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
100
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
101
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
102
|
+
* @throws {@link MavenAGI.ServerError}
|
|
103
|
+
* @throws {@link errors.MavenAGIError}
|
|
104
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.apps.search({})
|
|
108
|
+
*/
|
|
109
|
+
search(request: MavenAGI.AppsSearchRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppsSearchResponse>;
|
|
110
|
+
private __search;
|
|
111
|
+
/**
|
|
112
|
+
* Delete an app your organization owns. An app your organization doesn't own, or that doesn't exist,
|
|
113
|
+
* is a 403.
|
|
114
|
+
*
|
|
115
|
+
* An app that is still installed on any agent can't be deleted: uninstall it everywhere first, or
|
|
116
|
+
* the request fails with a 409. Its `installCount` says how many agents have it, and the app
|
|
117
|
+
* directory shows whether a given agent does; uninstall it from each with the app directory's
|
|
118
|
+
* uninstall (`DELETE /v1/directory/{appId}/install`). That includes agents in other organizations
|
|
119
|
+
* an app is public or shared with, which only those organizations can uninstall.
|
|
120
|
+
*
|
|
121
|
+
* <Note>**Required permission:** `edit:apps`</Note>
|
|
122
|
+
*
|
|
123
|
+
* @param {string} appId - The ID of the app to delete.
|
|
124
|
+
* @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
127
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
128
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
129
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
130
|
+
* @throws {@link MavenAGI.ServerError}
|
|
131
|
+
* @throws {@link errors.MavenAGIError}
|
|
132
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* await client.apps.delete("appId")
|
|
136
|
+
*/
|
|
137
|
+
delete(appId: string, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
138
|
+
private __delete;
|
|
139
|
+
}
|