mavenagi 1.2.72 → 1.2.73
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 +3 -0
- package/Client.js +47 -42
- 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 +43 -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 +62 -0
- package/api/resources/agents/client/Client.js +234 -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 +41 -2
- package/api/resources/appDirectory/client/Client.js +49 -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/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/BotLogicKnowledgeItem.d.ts +2 -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/ErrorReason.d.ts +2 -2
- package/api/resources/commons/types/ErrorReason.js +2 -2
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +9 -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/conversation/client/Client.d.ts +19 -0
- package/api/resources/conversation/client/Client.js +19 -0
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -1
- package/api/resources/conversation/types/BillableFilterField.d.ts +1 -1
- package/api/resources/conversation/types/BillableFilterField.js +1 -1
- 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/developersCommons/types/MarketplaceAppDetail.d.ts +3 -2
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +6 -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/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/types/KnowledgeBaseResponse.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/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 +6 -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/EventTriggerResponse.d.ts +12 -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/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 +1525 -12
- 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 +21 -0
- package/serialization/resources/agentVariants/types/AgentVariantResponse.js +53 -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/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/CapabilityBase.d.ts +3 -0
- package/serialization/resources/commons/types/CapabilityBase.js +3 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +2 -0
- package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
- package/serialization/resources/index.d.ts +5 -0
- package/serialization/resources/index.js +6 -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/types/KnowledgeBaseResponse.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +3 -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 +6 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +6 -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/EventTriggerResponse.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.js +2 -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/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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Represents the status of an agent variant. */
|
|
2
|
+
export declare const AgentVariantStatus: {
|
|
3
|
+
readonly Active: "ACTIVE";
|
|
4
|
+
/**
|
|
5
|
+
* Shown in Agent Designer as "Archived". */
|
|
6
|
+
readonly Inactive: "INACTIVE";
|
|
7
|
+
readonly Deleted: "DELETED";
|
|
8
|
+
};
|
|
9
|
+
export type AgentVariantStatus = (typeof AgentVariantStatus)[keyof typeof AgentVariantStatus] | string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AgentVariantStatus = void 0;
|
|
5
|
+
/** Represents the status of an agent variant. */
|
|
6
|
+
exports.AgentVariantStatus = {
|
|
7
|
+
Active: "ACTIVE",
|
|
8
|
+
/**
|
|
9
|
+
* Shown in Agent Designer as "Archived". */
|
|
10
|
+
Inactive: "INACTIVE",
|
|
11
|
+
Deleted: "DELETED",
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface AgentVariantTraffic {
|
|
3
|
+
/** Whether the variant is live -- ACTIVE, with an allocation in the agent's latest traffic configuration revision. */
|
|
4
|
+
hasLiveTraffic: boolean;
|
|
5
|
+
/** The traffic the latest revision routes to the variant. Absent when it routes none, whether the variant has no rule there or a rule at 0. */
|
|
6
|
+
allocation?: MavenAGI.TrafficAllocation;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface AgentVariantsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
|
|
3
|
+
/** The field to sort by. Defaults to UpdatedAt, and `sortDesc` to true. */
|
|
4
|
+
sort?: MavenAGI.AgentVariantSortField;
|
|
5
|
+
filter?: MavenAGI.AgentVariantFilter;
|
|
6
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* number: 0,
|
|
6
|
+
* size: 20,
|
|
7
|
+
* totalElements: 2,
|
|
8
|
+
* totalPages: 1,
|
|
9
|
+
* data: [{
|
|
10
|
+
* variantId: {
|
|
11
|
+
* referenceId: "variant_123",
|
|
12
|
+
* appId: "zendesk",
|
|
13
|
+
* organizationId: "acme",
|
|
14
|
+
* agentId: "support",
|
|
15
|
+
* type: MavenAGI.EntityType.AgentVariant
|
|
16
|
+
* },
|
|
17
|
+
* status: MavenAGI.AgentVariantStatus.Active,
|
|
18
|
+
* title: "Support agent",
|
|
19
|
+
* workingSetRevision: 0,
|
|
20
|
+
* createdAt: new Date("2024-01-01T12:00:00.000Z"),
|
|
21
|
+
* updatedAt: new Date("2024-01-02T12:00:00.000Z"),
|
|
22
|
+
* traffic: {
|
|
23
|
+
* hasLiveTraffic: true,
|
|
24
|
+
* allocation: {
|
|
25
|
+
* type: "fraction",
|
|
26
|
+
* fraction: 0.95
|
|
27
|
+
* }
|
|
28
|
+
* },
|
|
29
|
+
* stagedEditCount: 0
|
|
30
|
+
* }, {
|
|
31
|
+
* variantId: {
|
|
32
|
+
* referenceId: "variant_456",
|
|
33
|
+
* appId: "zendesk",
|
|
34
|
+
* organizationId: "acme",
|
|
35
|
+
* agentId: "support",
|
|
36
|
+
* type: MavenAGI.EntityType.AgentVariant
|
|
37
|
+
* },
|
|
38
|
+
* status: MavenAGI.AgentVariantStatus.Active,
|
|
39
|
+
* title: "Support agent, shorter greeting",
|
|
40
|
+
* baseVariantId: {
|
|
41
|
+
* referenceId: "variant_123",
|
|
42
|
+
* appId: "zendesk",
|
|
43
|
+
* organizationId: "acme",
|
|
44
|
+
* agentId: "support",
|
|
45
|
+
* type: MavenAGI.EntityType.AgentVariant
|
|
46
|
+
* },
|
|
47
|
+
* workingSetRevision: 0,
|
|
48
|
+
* createdAt: new Date("2024-01-03T12:00:00.000Z"),
|
|
49
|
+
* updatedAt: new Date("2024-01-04T12:00:00.000Z"),
|
|
50
|
+
* traffic: {
|
|
51
|
+
* hasLiveTraffic: true,
|
|
52
|
+
* allocation: {
|
|
53
|
+
* type: "fraction",
|
|
54
|
+
* fraction: 0.05
|
|
55
|
+
* }
|
|
56
|
+
* },
|
|
57
|
+
* stagedEditCount: 0
|
|
58
|
+
* }]
|
|
59
|
+
* }
|
|
60
|
+
*/
|
|
61
|
+
export interface AgentVariantsSearchResponse extends MavenAGI.Page {
|
|
62
|
+
data: MavenAGI.AgentVariantSearchResult[];
|
|
63
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A charter that differs between two variants, as each side has it: `before` is the version `fromVariantId` pins (for `diffWorkingSet`, the snapshot) and `after` the version `toVariantId` pins (the staged edit). Each side's `variantId` names the variant it comes from.
|
|
4
|
+
*
|
|
5
|
+
* Each side carries its charter's rule in `precondition`, as `charters.get` does: absent only for a wildcard charter that applies to every conversation.
|
|
6
|
+
*
|
|
7
|
+
* Switch on `type`, and treat a type you don't recognize as a change you can't describe, not as no change.
|
|
8
|
+
*/
|
|
9
|
+
export type CharterDiff =
|
|
10
|
+
/**
|
|
11
|
+
* Only the `after` side has the charter; the `before` side lacks it or has it deleted. */
|
|
12
|
+
MavenAGI.CharterDiff.Added
|
|
13
|
+
/**
|
|
14
|
+
* Only the `before` side has the charter; the `after` side lacks it or has it deleted. */
|
|
15
|
+
| MavenAGI.CharterDiff.Deleted
|
|
16
|
+
/**
|
|
17
|
+
* Both sides have the charter, at different versions. */
|
|
18
|
+
| MavenAGI.CharterDiff.Modified;
|
|
19
|
+
export declare namespace CharterDiff {
|
|
20
|
+
interface Added extends MavenAGI.AddedCharterDiff {
|
|
21
|
+
type: "added";
|
|
22
|
+
}
|
|
23
|
+
interface Deleted extends MavenAGI.DeletedCharterDiff {
|
|
24
|
+
type: "deleted";
|
|
25
|
+
}
|
|
26
|
+
interface Modified extends MavenAGI.ModifiedCharterDiff {
|
|
27
|
+
type: "modified";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export type EntityEdit =
|
|
3
|
+
/**
|
|
4
|
+
* Represents an edit made to an intelligent field. */
|
|
5
|
+
MavenAGI.EntityEdit.IntelligentField
|
|
6
|
+
/**
|
|
7
|
+
* Represents an edit made to a charter. */
|
|
8
|
+
| MavenAGI.EntityEdit.Charter;
|
|
9
|
+
export declare namespace EntityEdit {
|
|
10
|
+
interface IntelligentField extends MavenAGI.IntelligentFieldEntityEdit {
|
|
11
|
+
editType: "intelligentField";
|
|
12
|
+
}
|
|
13
|
+
interface Charter extends MavenAGI.CharterEntityEdit {
|
|
14
|
+
editType: "charter";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface EntityEditResponse {
|
|
3
|
+
/** The unique identifier of the entity with edits associated with the agent variant. */
|
|
4
|
+
entityId: MavenAGI.EntityIdWithoutAgent;
|
|
5
|
+
/** The latest edit associated with the entity. */
|
|
6
|
+
edit: MavenAGI.EntityEdit;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* An intelligent field that differs between two variants, as each side has it: `before` is the version `fromVariantId` pins (for `diffWorkingSet`, the snapshot) and `after` the version `toVariantId` pins (the staged edit). Each side's `variantId` names the variant it comes from.
|
|
4
|
+
*
|
|
5
|
+
* Switch on `type`, and treat a type you don't recognize as a change you can't describe, not as no change.
|
|
6
|
+
*/
|
|
7
|
+
export type IntelligentFieldDiff =
|
|
8
|
+
/**
|
|
9
|
+
* Only the `after` side has the field; the `before` side lacks it or has it deleted. */
|
|
10
|
+
MavenAGI.IntelligentFieldDiff.Added
|
|
11
|
+
/**
|
|
12
|
+
* Only the `before` side has the field; the `after` side lacks it or has it deleted. */
|
|
13
|
+
| MavenAGI.IntelligentFieldDiff.Deleted
|
|
14
|
+
/**
|
|
15
|
+
* Both sides have the field, at different versions. */
|
|
16
|
+
| MavenAGI.IntelligentFieldDiff.Modified;
|
|
17
|
+
export declare namespace IntelligentFieldDiff {
|
|
18
|
+
interface Added extends MavenAGI.AddedIntelligentFieldDiff {
|
|
19
|
+
type: "added";
|
|
20
|
+
}
|
|
21
|
+
interface Deleted extends MavenAGI.DeletedIntelligentFieldDiff {
|
|
22
|
+
type: "deleted";
|
|
23
|
+
}
|
|
24
|
+
interface Modified extends MavenAGI.ModifiedIntelligentFieldDiff {
|
|
25
|
+
type: "modified";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* number: 0,
|
|
6
|
+
* size: 2,
|
|
7
|
+
* totalElements: 2,
|
|
8
|
+
* totalPages: 1,
|
|
9
|
+
* data: [{
|
|
10
|
+
* variantId: {
|
|
11
|
+
* referenceId: "variant_123",
|
|
12
|
+
* appId: "zendesk",
|
|
13
|
+
* organizationId: "acme",
|
|
14
|
+
* agentId: "support",
|
|
15
|
+
* type: MavenAGI.EntityType.AgentVariant
|
|
16
|
+
* },
|
|
17
|
+
* status: MavenAGI.AgentVariantStatus.Active,
|
|
18
|
+
* title: "Support Agent Variant 123",
|
|
19
|
+
* description: "This variant is used for testing.",
|
|
20
|
+
* workingSetRevision: 0,
|
|
21
|
+
* createdAt: new Date("2024-01-01T12:00:00.000Z"),
|
|
22
|
+
* updatedAt: new Date("2024-01-02T12:00:00.000Z")
|
|
23
|
+
* }, {
|
|
24
|
+
* variantId: {
|
|
25
|
+
* referenceId: "variant_456",
|
|
26
|
+
* appId: "zendesk",
|
|
27
|
+
* organizationId: "acme",
|
|
28
|
+
* agentId: "support",
|
|
29
|
+
* type: MavenAGI.EntityType.AgentVariant
|
|
30
|
+
* },
|
|
31
|
+
* status: MavenAGI.AgentVariantStatus.Inactive,
|
|
32
|
+
* title: "Sales Agent Variant 456",
|
|
33
|
+
* description: "This variant is used for sales agents.",
|
|
34
|
+
* workingSetRevision: 0,
|
|
35
|
+
* createdAt: new Date("2024-02-01T12:00:00.000Z"),
|
|
36
|
+
* updatedAt: new Date("2024-02-02T12:00:00.000Z")
|
|
37
|
+
* }]
|
|
38
|
+
* }
|
|
39
|
+
*/
|
|
40
|
+
export interface ListAgentVariantsResponse extends MavenAGI.Page {
|
|
41
|
+
data: MavenAGI.AgentVariantResponse[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface ModifiedIntelligentFieldDiff {
|
|
3
|
+
/** The field as the `before` side has it. */
|
|
4
|
+
before: MavenAGI.IntelligentFieldResponse;
|
|
5
|
+
/** The field as the `after` side has it. */
|
|
6
|
+
after: MavenAGI.IntelligentFieldResponse;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The traffic a rule routes to a variant. Only a fraction of all traffic today; conditional allocations may be added as further members.
|
|
4
|
+
*
|
|
5
|
+
* Switch on `type`, and treat a type you don't recognize as an allocation you can't describe, not as no traffic.
|
|
6
|
+
*/
|
|
7
|
+
export type TrafficAllocation =
|
|
8
|
+
/**
|
|
9
|
+
* A fraction of all of the agent's traffic. */
|
|
10
|
+
MavenAGI.TrafficAllocation.Fraction;
|
|
11
|
+
export declare namespace TrafficAllocation {
|
|
12
|
+
interface Fraction extends MavenAGI.TrafficFraction {
|
|
13
|
+
type: "fraction";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A revision of the agent's traffic configuration -- how its live traffic is split across its variants. Every variant with a share serves; there is no production or default variant.
|
|
4
|
+
*/
|
|
5
|
+
export interface TrafficConfigResponse {
|
|
6
|
+
/** The unique identifier of the traffic configuration. */
|
|
7
|
+
trafficConfigId: MavenAGI.EntityId;
|
|
8
|
+
/** The revision sequence number of the traffic configuration, indicating its version. */
|
|
9
|
+
revisionSequence: number;
|
|
10
|
+
/** The list of traffic rules that define how traffic is routed to the agent variant. */
|
|
11
|
+
rules: MavenAGI.TrafficRule[];
|
|
12
|
+
/** The date and time when this revision was created. */
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
/** Who made this revision. Absent when no one was recorded. An agent's first revision (revisionSequence 0) names whoever made the request that set up its first variant, which for an agent created before versioning is not necessarily the agent's creator. */
|
|
15
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface TrafficRule {
|
|
3
|
+
/** The unique identifier of the agent variant associated with the traffic configuration. */
|
|
4
|
+
variantId: MavenAGI.EntityId;
|
|
5
|
+
/** The percentage of traffic that should be routed according to this rule, from 0 to 100 (5 is 5%). A revision's rules sum to 100. */
|
|
6
|
+
percentage: number;
|
|
7
|
+
/** The condition that determines when this rule applies. Only `all`, which applies the rule to every new conversation, is accepted today; any other value is rejected with a 400. */
|
|
8
|
+
condition: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface UpdateTrafficConfigRequest {
|
|
3
|
+
/** The revision sequence number the caller last observed. Required once a traffic configuration already exists for the agent; acts as a compare-and-swap guard so a stale caller can't blindly overwrite a revision it never observed. */
|
|
4
|
+
expectedRevisionSequence?: number;
|
|
5
|
+
/** The list of traffic rules to define how traffic is routed to the agent variant. */
|
|
6
|
+
rules: MavenAGI.TrafficRule[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What committing an agent variant's working set would change in its snapshot.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkingSetDiffResponse {
|
|
6
|
+
/** The variant whose working set is diffed. */
|
|
7
|
+
variantId: MavenAGI.EntityId;
|
|
8
|
+
/** The variant's `workingSetRevision`, read before the diff. Pass it as `expectedWorkingSetRevision` to discard or commit only if nothing was staged since. */
|
|
9
|
+
workingSetRevision: number;
|
|
10
|
+
/** What the working set changes in the variant's snapshot. */
|
|
11
|
+
differences: MavenAGI.AgentVariantDiff;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from "./AddedCharterDiff";
|
|
2
|
+
export * from "./AddedIntelligentFieldDiff";
|
|
3
|
+
export * from "./AgentSettingEdits";
|
|
4
|
+
export * from "./AgentSettingsDiff";
|
|
5
|
+
export * from "./AgentVariantCompareRequest";
|
|
6
|
+
export * from "./AgentVariantCompareResponse";
|
|
7
|
+
export * from "./AgentVariantDiff";
|
|
8
|
+
export * from "./AgentVariantFilter";
|
|
9
|
+
export * from "./AgentVariantListRequest";
|
|
10
|
+
export * from "./AgentVariantRequest";
|
|
11
|
+
export * from "./AgentVariantResponse";
|
|
12
|
+
export * from "./AgentVariantSearchResult";
|
|
13
|
+
export * from "./AgentVariantSortField";
|
|
14
|
+
export * from "./AgentVariantStatus";
|
|
15
|
+
export * from "./AgentVariantsSearchRequest";
|
|
16
|
+
export * from "./AgentVariantsSearchResponse";
|
|
17
|
+
export * from "./AgentVariantTraffic";
|
|
18
|
+
export * from "./CharterDiff";
|
|
19
|
+
export * from "./CharterEntityEdit";
|
|
20
|
+
export * from "./DeletedCharterDiff";
|
|
21
|
+
export * from "./DeletedIntelligentFieldDiff";
|
|
22
|
+
export * from "./EntityEdit";
|
|
23
|
+
export * from "./EntityEditResponse";
|
|
24
|
+
export * from "./IntelligentFieldDiff";
|
|
25
|
+
export * from "./IntelligentFieldEntityEdit";
|
|
26
|
+
export * from "./ListAgentVariantsResponse";
|
|
27
|
+
export * from "./ListTrafficConfigsResponse";
|
|
28
|
+
export * from "./ModifiedCharterDiff";
|
|
29
|
+
export * from "./ModifiedIntelligentFieldDiff";
|
|
30
|
+
export * from "./TrafficAllocation";
|
|
31
|
+
export * from "./TrafficConfigResponse";
|
|
32
|
+
export * from "./TrafficFraction";
|
|
33
|
+
export * from "./TrafficRule";
|
|
34
|
+
export * from "./UpdateTrafficConfigRequest";
|
|
35
|
+
export * from "./WorkingSetDiffResponse";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AddedCharterDiff"), exports);
|
|
18
|
+
__exportStar(require("./AddedIntelligentFieldDiff"), exports);
|
|
19
|
+
__exportStar(require("./AgentSettingEdits"), exports);
|
|
20
|
+
__exportStar(require("./AgentSettingsDiff"), exports);
|
|
21
|
+
__exportStar(require("./AgentVariantCompareRequest"), exports);
|
|
22
|
+
__exportStar(require("./AgentVariantCompareResponse"), exports);
|
|
23
|
+
__exportStar(require("./AgentVariantDiff"), exports);
|
|
24
|
+
__exportStar(require("./AgentVariantFilter"), exports);
|
|
25
|
+
__exportStar(require("./AgentVariantListRequest"), exports);
|
|
26
|
+
__exportStar(require("./AgentVariantRequest"), exports);
|
|
27
|
+
__exportStar(require("./AgentVariantResponse"), exports);
|
|
28
|
+
__exportStar(require("./AgentVariantSearchResult"), exports);
|
|
29
|
+
__exportStar(require("./AgentVariantSortField"), exports);
|
|
30
|
+
__exportStar(require("./AgentVariantStatus"), exports);
|
|
31
|
+
__exportStar(require("./AgentVariantsSearchRequest"), exports);
|
|
32
|
+
__exportStar(require("./AgentVariantsSearchResponse"), exports);
|
|
33
|
+
__exportStar(require("./AgentVariantTraffic"), exports);
|
|
34
|
+
__exportStar(require("./CharterDiff"), exports);
|
|
35
|
+
__exportStar(require("./CharterEntityEdit"), exports);
|
|
36
|
+
__exportStar(require("./DeletedCharterDiff"), exports);
|
|
37
|
+
__exportStar(require("./DeletedIntelligentFieldDiff"), exports);
|
|
38
|
+
__exportStar(require("./EntityEdit"), exports);
|
|
39
|
+
__exportStar(require("./EntityEditResponse"), exports);
|
|
40
|
+
__exportStar(require("./IntelligentFieldDiff"), exports);
|
|
41
|
+
__exportStar(require("./IntelligentFieldEntityEdit"), exports);
|
|
42
|
+
__exportStar(require("./ListAgentVariantsResponse"), exports);
|
|
43
|
+
__exportStar(require("./ListTrafficConfigsResponse"), exports);
|
|
44
|
+
__exportStar(require("./ModifiedCharterDiff"), exports);
|
|
45
|
+
__exportStar(require("./ModifiedIntelligentFieldDiff"), exports);
|
|
46
|
+
__exportStar(require("./TrafficAllocation"), exports);
|
|
47
|
+
__exportStar(require("./TrafficConfigResponse"), exports);
|
|
48
|
+
__exportStar(require("./TrafficFraction"), exports);
|
|
49
|
+
__exportStar(require("./TrafficRule"), exports);
|
|
50
|
+
__exportStar(require("./UpdateTrafficConfigRequest"), exports);
|
|
51
|
+
__exportStar(require("./WorkingSetDiffResponse"), exports);
|
|
@@ -148,4 +148,66 @@ export declare class AgentsClient {
|
|
|
148
148
|
*/
|
|
149
149
|
delete(organizationReferenceId: string, agentReferenceId: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
150
150
|
private __delete;
|
|
151
|
+
/**
|
|
152
|
+
* @beta This endpoint is in development and may change.
|
|
153
|
+
*
|
|
154
|
+
* Get the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
|
|
155
|
+
*
|
|
156
|
+
* Name a variant exactly when a setting is versioned on the agent (listed in its
|
|
157
|
+
* `migrations.versionedEntityTypes`); otherwise it is a 400, with reason `VARIANT_REQUIRED` when no
|
|
158
|
+
* variant is named. Each versioned setting is returned as the variant sees it, its staged
|
|
159
|
+
* edit over its published snapshot; the rest as the agent holds them.
|
|
160
|
+
*
|
|
161
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
162
|
+
*
|
|
163
|
+
* @param {string} organizationReferenceId - The ID of the organization.
|
|
164
|
+
* @param {string} agentReferenceId - The ID of the agent.
|
|
165
|
+
* @param {MavenAGI.GetVersionedAgentSettingsRequest} request
|
|
166
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
|
+
*
|
|
168
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
169
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
170
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
171
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
172
|
+
* @throws {@link MavenAGI.ServerError}
|
|
173
|
+
* @throws {@link errors.MavenAGIError}
|
|
174
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* await client.agents.getVersionedSettings("organizationReferenceId", "agentReferenceId")
|
|
178
|
+
*/
|
|
179
|
+
getVersionedSettings(organizationReferenceId: string, agentReferenceId: string, request?: MavenAGI.GetVersionedAgentSettingsRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.VersionedAgentSettings>;
|
|
180
|
+
private __getVersionedSettings;
|
|
181
|
+
/**
|
|
182
|
+
* @beta This endpoint is in development and may change.
|
|
183
|
+
*
|
|
184
|
+
* Update the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
|
|
185
|
+
* Only the specified fields change; a null value clears one.
|
|
186
|
+
*
|
|
187
|
+
* A specified setting that is versioned on the agent is staged in the named variant, live once
|
|
188
|
+
* the variant is published; the rest are updated on the agent directly. The variant rule of
|
|
189
|
+
* `getVersionedSettings` applies to the specified settings (to all, when none is specified).
|
|
190
|
+
* The response is what `getVersionedSettings` returns for the same variant; with none named,
|
|
191
|
+
* versioned settings are omitted.
|
|
192
|
+
*
|
|
193
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
194
|
+
*
|
|
195
|
+
* @param {string} organizationReferenceId - The ID of the organization.
|
|
196
|
+
* @param {string} agentReferenceId - The ID of the agent.
|
|
197
|
+
* @param {MavenAGI.VersionedAgentSettingsPatchRequest} request
|
|
198
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
+
*
|
|
200
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
201
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
202
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
203
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
204
|
+
* @throws {@link MavenAGI.ServerError}
|
|
205
|
+
* @throws {@link errors.MavenAGIError}
|
|
206
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* await client.agents.patchVersionedSettings("organizationReferenceId", "agentReferenceId")
|
|
210
|
+
*/
|
|
211
|
+
patchVersionedSettings(organizationReferenceId: string, agentReferenceId: string, request?: MavenAGI.VersionedAgentSettingsPatchRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.VersionedAgentSettings>;
|
|
212
|
+
private __patchVersionedSettings;
|
|
151
213
|
}
|