@oneuptime/common 14.0.105 → 14.0.107
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/Models/AnalyticsModels/AuditLog.js +1 -1
- package/Models/AnalyticsModels/CloudCost.d.mts +2 -0
- package/Models/AnalyticsModels/CloudCost.d.ts +2 -0
- package/Models/AnalyticsModels/CloudCost.js +27 -0
- package/Models/AnalyticsModels/Index.js +11 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.mts +5 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.ts +5 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +300 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.mjs +3 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.mts +14 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.ts +14 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +410 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.mjs +11 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.d.mts +4 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.d.ts +4 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.js +210 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.mjs +2 -0
- package/Models/AnalyticsModels/RumSession.js +66 -12
- package/Models/AnalyticsModels/RumSessionChunk.js +30 -2
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +24 -9
- package/Models/DatabaseModels/AIRun.d.mts +4 -0
- package/Models/DatabaseModels/AIRun.d.ts +4 -0
- package/Models/DatabaseModels/AIRun.js +107 -0
- package/Models/DatabaseModels/Alert.d.mts +2 -0
- package/Models/DatabaseModels/Alert.d.ts +2 -0
- package/Models/DatabaseModels/Alert.js +70 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +85 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/AuditLogExport.d.mts +1 -0
- package/Models/DatabaseModels/AuditLogExport.d.ts +1 -0
- package/Models/DatabaseModels/AuditLogExport.js +32 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +4 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +4 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +109 -0
- package/Models/DatabaseModels/CallLog.d.mts +4 -0
- package/Models/DatabaseModels/CallLog.d.ts +4 -0
- package/Models/DatabaseModels/CallLog.js +85 -0
- package/Models/DatabaseModels/CephCluster.d.mts +1 -0
- package/Models/DatabaseModels/CephCluster.d.ts +1 -0
- package/Models/DatabaseModels/CephCluster.js +36 -0
- package/Models/DatabaseModels/CloudAccount.d.mts +1 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +1 -0
- package/Models/DatabaseModels/CloudAccount.js +27 -0
- package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
- package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
- package/Models/DatabaseModels/CloudConnection.js +27 -6
- package/Models/DatabaseModels/CodeRepository.js +23 -6
- package/Models/DatabaseModels/DataBiConnection.d.mts +3 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +3 -0
- package/Models/DatabaseModels/DataBiConnection.js +47 -1
- package/Models/DatabaseModels/DataDashboard.d.mts +10 -0
- package/Models/DatabaseModels/DataDashboard.d.ts +10 -0
- package/Models/DatabaseModels/DataDashboard.js +129 -2
- package/Models/DatabaseModels/DataStoreFinding.js +8 -2
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -1
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -1
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +21 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +35 -1
- package/Models/DatabaseModels/DatabaseServer.d.mts +1 -0
- package/Models/DatabaseModels/DatabaseServer.d.ts +1 -0
- package/Models/DatabaseModels/DatabaseServer.js +36 -0
- package/Models/DatabaseModels/DockerHost.d.mts +1 -0
- package/Models/DatabaseModels/DockerHost.d.ts +1 -0
- package/Models/DatabaseModels/DockerHost.js +36 -0
- package/Models/DatabaseModels/DockerSwarmCluster.d.mts +1 -0
- package/Models/DatabaseModels/DockerSwarmCluster.d.ts +1 -0
- package/Models/DatabaseModels/DockerSwarmCluster.js +36 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +36 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +36 -1
- package/Models/DatabaseModels/GlobalConfig.js +635 -2
- package/Models/DatabaseModels/Host.d.mts +1 -0
- package/Models/DatabaseModels/Host.d.ts +1 -0
- package/Models/DatabaseModels/Host.js +36 -0
- package/Models/DatabaseModels/Incident.d.mts +2 -0
- package/Models/DatabaseModels/Incident.d.ts +2 -0
- package/Models/DatabaseModels/Incident.js +70 -0
- package/Models/DatabaseModels/IncidentEpisodeFeed.d.mts +2 -1
- package/Models/DatabaseModels/IncidentEpisodeFeed.d.ts +2 -1
- package/Models/DatabaseModels/IncidentEpisodeFeed.js +7 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.d.mts +5 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.d.ts +5 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +185 -0
- package/Models/DatabaseModels/IncidentFeed.d.mts +2 -1
- package/Models/DatabaseModels/IncidentFeed.d.ts +2 -1
- package/Models/DatabaseModels/IncidentFeed.js +7 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +2 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +2 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +85 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentPublicNote.d.mts +5 -0
- package/Models/DatabaseModels/IncidentPublicNote.d.ts +5 -0
- package/Models/DatabaseModels/IncidentPublicNote.js +185 -0
- package/Models/DatabaseModels/Index.js +30 -0
- package/Models/DatabaseModels/KubernetesCluster.d.mts +1 -0
- package/Models/DatabaseModels/KubernetesCluster.d.ts +1 -0
- package/Models/DatabaseModels/KubernetesCluster.js +36 -0
- package/Models/DatabaseModels/LlmProvider.d.mts +1 -0
- package/Models/DatabaseModels/LlmProvider.d.ts +1 -0
- package/Models/DatabaseModels/LlmProvider.js +39 -0
- package/Models/DatabaseModels/Monitor.d.mts +2 -0
- package/Models/DatabaseModels/Monitor.d.ts +2 -0
- package/Models/DatabaseModels/Monitor.js +98 -2
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +55 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryImport.js +11 -6
- package/Models/DatabaseModels/NetworkDeviceNamingRule.d.mts +26 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.d.ts +26 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.js +536 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.mjs +2 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +48 -0
- package/Models/DatabaseModels/NetworkSite.d.mts +1 -0
- package/Models/DatabaseModels/NetworkSite.d.ts +1 -0
- package/Models/DatabaseModels/NetworkSite.js +51 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +54 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +41 -0
- package/Models/DatabaseModels/OpenStackCloud.d.mts +1 -0
- package/Models/DatabaseModels/OpenStackCloud.d.ts +1 -0
- package/Models/DatabaseModels/OpenStackCloud.js +27 -0
- package/Models/DatabaseModels/PacketCapture.js +3 -1
- package/Models/DatabaseModels/PodmanHost.d.mts +1 -0
- package/Models/DatabaseModels/PodmanHost.d.ts +1 -0
- package/Models/DatabaseModels/PodmanHost.js +36 -0
- package/Models/DatabaseModels/Project.d.mts +19 -0
- package/Models/DatabaseModels/Project.d.ts +19 -0
- package/Models/DatabaseModels/Project.js +541 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.d.mts +2 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.d.ts +2 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +80 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.d.mts +10 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.d.ts +10 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.js +335 -1
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +36 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.d.mts +29 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.d.ts +29 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +460 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.mjs +3 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.d.mts +19 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.d.ts +19 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +363 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.mjs +2 -0
- package/Models/DatabaseModels/RumApplication.d.mts +8 -0
- package/Models/DatabaseModels/RumApplication.d.ts +8 -0
- package/Models/DatabaseModels/RumApplication.js +310 -2
- package/Models/DatabaseModels/ScheduledMaintenance.d.mts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenance.d.ts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +63 -0
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.mts +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.ts +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.js +7 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.mts +5 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.ts +5 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +185 -0
- package/Models/DatabaseModels/ServerlessFunction.js +10 -2
- package/Models/DatabaseModels/ServiceLevelObjective.d.mts +5 -0
- package/Models/DatabaseModels/ServiceLevelObjective.d.ts +5 -0
- package/Models/DatabaseModels/ServiceLevelObjective.js +174 -3
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.mts +54 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.ts +54 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +1674 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.mjs +2 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.mts +8 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.ts +8 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.js +14 -0
- package/Models/DatabaseModels/Team.js +10 -2
- package/Models/DatabaseModels/TeamComplianceSetting.js +8 -1
- package/Models/DatabaseModels/TeamCustomRole.js +9 -1
- package/Models/DatabaseModels/TeamMember.js +15 -1
- package/Models/DatabaseModels/TeamOwnerTeam.d.mts +17 -0
- package/Models/DatabaseModels/TeamOwnerTeam.d.ts +17 -0
- package/Models/DatabaseModels/TeamOwnerTeam.js +325 -0
- package/Models/DatabaseModels/TeamOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/TeamOwnerUser.d.mts +17 -0
- package/Models/DatabaseModels/TeamOwnerUser.d.ts +17 -0
- package/Models/DatabaseModels/TeamOwnerUser.js +331 -0
- package/Models/DatabaseModels/TeamOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/TeamPermission.js +12 -1
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +10 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +10 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +199 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.mts +19 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.ts +19 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +297 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.mjs +2 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.d.mts +1 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.d.ts +1 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.js +69 -122
- package/Models/DatabaseModels/User.d.mts +1 -0
- package/Models/DatabaseModels/User.d.ts +1 -0
- package/Models/DatabaseModels/User.js +29 -0
- package/Models/DatabaseModels/UserSession.js +10 -4
- package/Models/DatabaseModels/VMwareVCenter.d.mts +1 -0
- package/Models/DatabaseModels/VMwareVCenter.d.ts +1 -0
- package/Models/DatabaseModels/VMwareVCenter.js +36 -0
- package/Models/DatabaseModels/Workflow.d.mts +1 -0
- package/Models/DatabaseModels/Workflow.d.ts +1 -0
- package/Models/DatabaseModels/Workflow.js +45 -0
- package/Models/DatabaseModels/WorkflowVersion.d.mts +24 -0
- package/Models/DatabaseModels/WorkflowVersion.d.ts +24 -0
- package/Models/DatabaseModels/WorkflowVersion.js +529 -0
- package/Models/DatabaseModels/WorkflowVersion.mjs +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.js +499 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.mts +31 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.ts +31 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +537 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.mjs +2 -0
- package/Server/Services/DatabaseService.d.mts +4 -0
- package/Server/Services/DatabaseService.d.ts +4 -0
- package/Server/Types/Database/UpdateByID.d.mts +1 -0
- package/Server/Types/Database/UpdateByID.d.ts +1 -0
- package/Server/Types/Database/UpdateOneBy.d.mts +1 -0
- package/Server/Types/Database/UpdateOneBy.d.ts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +7 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +7 -1
- package/Types/AI/AIActionWords.d.mts +17 -0
- package/Types/AI/AIActionWords.d.ts +17 -0
- package/Types/AI/AIActionWords.js +116 -1
- package/Types/AI/AIActionWords.mjs +3 -0
- package/Types/AI/AIAgentRunLimits.d.mts +76 -13
- package/Types/AI/AIAgentRunLimits.d.ts +76 -13
- package/Types/AI/AIAgentRunLimits.js +434 -51
- package/Types/AI/AIAgentRunLimits.mjs +10 -2
- package/Types/AI/AIChatRecordSeen.d.mts +52 -0
- package/Types/AI/AIChatRecordSeen.d.ts +52 -0
- package/Types/AI/AIChatRecordSeen.js +362 -0
- package/Types/AI/AIChatRecordSeen.mjs +13 -0
- package/Types/AI/AIChatTypes.d.mts +7 -0
- package/Types/AI/AIChatTypes.d.ts +7 -0
- package/Types/AI/AIChatTypes.js +15 -1
- package/Types/AI/AIChatTypes.mjs +1 -0
- package/Types/AI/AIRunAttempt.d.mts +30 -0
- package/Types/AI/AIRunAttempt.d.ts +30 -0
- package/Types/AI/AIRunAttempt.js +175 -0
- package/Types/AI/AIRunAttempt.mjs +5 -0
- package/Types/AI/AIRunEventType.d.mts +3 -0
- package/Types/AI/AIRunEventType.d.ts +3 -0
- package/Types/AI/AIRunEventType.js +28 -0
- package/Types/AI/AIRunStatus.d.mts +2 -0
- package/Types/AI/AIRunStatus.d.ts +2 -0
- package/Types/AI/AIRunStatus.js +12 -0
- package/Types/AI/AgentLoopDetector.d.mts +29 -0
- package/Types/AI/AgentLoopDetector.d.ts +29 -0
- package/Types/AI/AgentLoopDetector.js +196 -0
- package/Types/AI/AgentLoopDetector.mjs +9 -0
- package/Types/AI/CodeAgentRunLimits.d.mts +28 -0
- package/Types/AI/CodeAgentRunLimits.d.ts +28 -0
- package/Types/AI/CodeAgentRunLimits.js +163 -0
- package/Types/AI/CodeAgentRunLimits.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +2 -0
- package/Types/AI/CodeFixTaskContext.d.ts +2 -0
- package/Types/AI/CodeTask.d.mts +20 -0
- package/Types/AI/CodeTask.d.ts +20 -0
- package/Types/AI/CodeTask.js +23 -1
- package/Types/AI/CodeTask.mjs +4 -0
- package/Types/AI/CodeTaskRetry.d.mts +21 -0
- package/Types/AI/CodeTaskRetry.d.ts +21 -0
- package/Types/AI/CodeTaskRetry.js +61 -0
- package/Types/AI/CodeTaskRetry.mjs +4 -0
- package/Types/AI/CodeTaskStage.d.mts +19 -0
- package/Types/AI/CodeTaskStage.d.ts +19 -0
- package/Types/AI/CodeTaskStage.js +78 -0
- package/Types/AI/CodeTaskStage.mjs +3 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.mts +0 -1
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.ts +0 -1
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.js +6 -4
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.mjs +0 -1
- package/Types/AI/ProjectAiRunLimits.d.mts +24 -0
- package/Types/AI/ProjectAiRunLimits.d.ts +24 -0
- package/Types/AI/ProjectAiRunLimits.js +137 -0
- package/Types/AI/ProjectAiRunLimits.mjs +9 -0
- package/Types/AI/TransientAIFailure.d.mts +16 -0
- package/Types/AI/TransientAIFailure.d.ts +16 -0
- package/Types/AI/TransientAIFailure.js +228 -0
- package/Types/AI/TransientAIFailure.mjs +4 -0
- package/Types/Accounts/AccountsLanguage.js +1 -0
- package/Types/AdminDashboard/AdminDashboardLanguage.js +1 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +4 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +4 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.js +23 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +40 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +40 -0
- package/Types/AuditLog/AuditLogCoverage.js +804 -0
- package/Types/AuditLog/AuditLogCoverage.mjs +17 -0
- package/Types/AuditLog/AuditLogRetention.d.mts +10 -0
- package/Types/AuditLog/AuditLogRetention.d.ts +10 -0
- package/Types/AuditLog/AuditLogRetention.js +91 -0
- package/Types/AuditLog/AuditLogRetention.mjs +8 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +13 -1
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +13 -1
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +92 -8
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.mjs +5 -0
- package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +14 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +14 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.js +86 -29
- package/Types/AuditLog/Export/AuditLogExportRecord.mjs +7 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +16 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +16 -0
- package/Types/AutoRemediation/RemediationApprovals.js +92 -0
- package/Types/AutoRemediation/RemediationApprovals.mjs +7 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +56 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +56 -0
- package/Types/AutoRemediation/RemediationRound.js +242 -0
- package/Types/AutoRemediation/RemediationRound.mjs +22 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
- package/Types/BaseDatabase/EnableAuditLogOn.d.mts +1 -0
- package/Types/BaseDatabase/EnableAuditLogOn.d.ts +1 -0
- package/Types/BaseDatabase/WriteSource.d.mts +6 -0
- package/Types/BaseDatabase/WriteSource.d.ts +6 -0
- package/Types/BaseDatabase/WriteSource.js +25 -0
- package/Types/BaseDatabase/WriteSource.mjs +4 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.d.mts +37 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.d.ts +37 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.js +224 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.mjs +3 -0
- package/Types/Cloud/CloudCommitments.d.mts +74 -0
- package/Types/Cloud/CloudCommitments.d.ts +74 -0
- package/Types/Cloud/CloudCommitments.js +294 -0
- package/Types/Cloud/CloudCommitments.mjs +17 -0
- package/Types/Cloud/CloudConnectionTelemetry.d.mts +3 -0
- package/Types/Cloud/CloudConnectionTelemetry.d.ts +3 -0
- package/Types/Cloud/CloudConnectionTelemetry.js +28 -0
- package/Types/Cloud/CloudConnectionTelemetry.mjs +3 -0
- package/Types/Cloud/CloudCost.d.mts +22 -0
- package/Types/Cloud/CloudCost.d.ts +22 -0
- package/Types/Cloud/CloudCost.js +126 -1
- package/Types/Cloud/CloudCost.mjs +7 -0
- package/Types/Cloud/CloudKeyMetrics.d.mts +13 -0
- package/Types/Cloud/CloudKeyMetrics.d.ts +13 -0
- package/Types/Cloud/CloudKeyMetrics.js +174 -1
- package/Types/Cloud/CloudKeyMetrics.mjs +10 -0
- package/Types/Cloud/CloudLogGroups.d.mts +27 -1
- package/Types/Cloud/CloudLogGroups.d.ts +27 -1
- package/Types/Cloud/CloudLogGroups.js +191 -10
- package/Types/Cloud/CloudLogGroups.mjs +11 -0
- package/Types/Cloud/CloudMonitoredResource.d.mts +1 -0
- package/Types/Cloud/CloudMonitoredResource.d.ts +1 -0
- package/Types/Cloud/CloudMonitoredResource.js +23 -0
- package/Types/Cloud/CloudMonitoredResource.mjs +1 -0
- package/Types/Cloud/CloudPlatformCosts.d.mts +54 -0
- package/Types/Cloud/CloudPlatformCosts.d.ts +54 -0
- package/Types/Cloud/CloudPlatformCosts.js +249 -0
- package/Types/Cloud/CloudPlatformCosts.mjs +7 -0
- package/Types/Cloud/CloudResourceCatalog.js +10 -0
- package/Types/Cloud/CloudResourceHealth.d.mts +1 -0
- package/Types/Cloud/CloudResourceHealth.d.ts +1 -0
- package/Types/Cloud/CloudResourceHealth.js +4 -1
- package/Types/Cloud/CloudResourceMetricAggregation.d.mts +21 -0
- package/Types/Cloud/CloudResourceMetricAggregation.d.ts +21 -0
- package/Types/Cloud/CloudResourceMetricAggregation.js +140 -0
- package/Types/Cloud/CloudResourceMetricAggregation.mjs +4 -0
- package/Types/Cloud/CloudWatchLogSeverity.d.mts +7 -0
- package/Types/Cloud/CloudWatchLogSeverity.d.ts +7 -0
- package/Types/Cloud/CloudWatchLogSeverity.js +182 -0
- package/Types/Cloud/CloudWatchLogSeverity.mjs +4 -0
- package/Types/Cloud/RdsConnectionLimits.d.mts +53 -0
- package/Types/Cloud/RdsConnectionLimits.d.ts +53 -0
- package/Types/Cloud/RdsConnectionLimits.js +404 -0
- package/Types/Cloud/RdsConnectionLimits.mjs +24 -0
- package/Types/CloudConnection/AwsStackSets.d.mts +51 -0
- package/Types/CloudConnection/AwsStackSets.d.ts +51 -0
- package/Types/CloudConnection/AwsStackSets.js +188 -0
- package/Types/CloudConnection/AwsStackSets.mjs +15 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +33 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +33 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +468 -53
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +16 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +3 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +3 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +31 -1
- package/Types/CloudConnection/CloudConnectionCatalog.mjs +2 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +24 -7
- package/Types/CloudConnection/CloudOrganizationAgents.d.mts +45 -0
- package/Types/CloudConnection/CloudOrganizationAgents.d.ts +45 -0
- package/Types/CloudConnection/CloudOrganizationAgents.js +182 -0
- package/Types/CloudConnection/CloudOrganizationAgents.mjs +12 -0
- package/Types/CloudConnection/CloudStream.d.mts +46 -1
- package/Types/CloudConnection/CloudStream.d.ts +46 -1
- package/Types/CloudConnection/CloudStream.js +316 -23
- package/Types/CloudConnection/CloudStream.mjs +31 -0
- package/Types/CloudConnection/CloudStreamAzure.d.mts +60 -0
- package/Types/CloudConnection/CloudStreamAzure.d.ts +60 -0
- package/Types/CloudConnection/CloudStreamAzure.js +418 -0
- package/Types/CloudConnection/CloudStreamAzure.mjs +35 -0
- package/Types/CloudConnection/CloudStreamGcp.d.mts +55 -0
- package/Types/CloudConnection/CloudStreamGcp.d.ts +55 -0
- package/Types/CloudConnection/CloudStreamGcp.js +247 -0
- package/Types/CloudConnection/CloudStreamGcp.mjs +25 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.mts +17 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.ts +17 -0
- package/Types/CloudConnection/CloudStreamOrganization.js +176 -0
- package/Types/CloudConnection/CloudStreamOrganization.mjs +9 -0
- package/Types/CloudConnection/CloudStreamTemplate.d.mts +3 -5
- package/Types/CloudConnection/CloudStreamTemplate.d.ts +3 -5
- package/Types/CloudConnection/CloudStreamTemplate.js +11 -21
- package/Types/CodeRepository/CodeChangeProposedOnKey.d.mts +1 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.d.ts +1 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.js +12 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.mjs +2 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +109 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +109 -0
- package/Types/CodeRepository/CodeFileSeen.js +581 -0
- package/Types/CodeRepository/CodeFileSeen.mjs +17 -0
- package/Types/CodeRepository/CodeFileValuesHidden.d.mts +21 -0
- package/Types/CodeRepository/CodeFileValuesHidden.d.ts +21 -0
- package/Types/CodeRepository/CodeFileValuesHidden.js +135 -0
- package/Types/CodeRepository/CodeFileValuesHidden.mjs +6 -0
- package/Types/CodeRepository/CodeHost.d.mts +15 -0
- package/Types/CodeRepository/CodeHost.d.ts +15 -0
- package/Types/CodeRepository/CodeHost.js +195 -6
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +3 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +24 -1
- package/Types/Dashboard/DashboardComponentType.mjs +2 -0
- package/Types/Dashboard/DashboardLanguage.js +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.d.mts +19 -0
- package/Types/Dashboard/PublicDashboardServedSettings.d.ts +19 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +501 -0
- package/Types/Dashboard/PublicDashboardServedSettings.mjs +12 -0
- package/Types/DataObservability/DataDashboardActivity.d.mts +40 -0
- package/Types/DataObservability/DataDashboardActivity.d.ts +40 -0
- package/Types/DataObservability/DataDashboardActivity.js +119 -0
- package/Types/DataObservability/DataDashboardActivity.mjs +12 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +24 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +24 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +7 -1
- package/Types/DataObservability/DataObservabilityApiTypes.mjs +1 -0
- package/Types/DataObservability/DataObservabilityAttention.d.mts +78 -0
- package/Types/DataObservability/DataObservabilityAttention.d.ts +78 -0
- package/Types/DataObservability/DataObservabilityAttention.js +163 -0
- package/Types/DataObservability/DataObservabilityAttention.mjs +12 -0
- package/Types/DataObservability/DataTableLineage.d.mts +87 -0
- package/Types/DataObservability/DataTableLineage.d.ts +87 -0
- package/Types/DataObservability/DataTableLineage.js +111 -0
- package/Types/DataObservability/DataTableLineage.mjs +19 -0
- package/Types/DataSecurity/DataStoreKind.d.mts +1 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +1 -0
- package/Types/DataSecurity/DataStoreKind.js +3 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +10 -0
- package/Types/Database/EnableAuditLog.js +3 -0
- package/Types/DatabaseServer/DatabaseServerMetricCatalog.js +71 -82
- package/Types/Date.d.mts +13 -0
- package/Types/Date.d.ts +13 -0
- package/Types/Date.js +104 -10
- package/Types/Date.mjs +2 -0
- package/Types/DateLanguage.d.mts +12 -0
- package/Types/DateLanguage.d.ts +12 -0
- package/Types/DateLanguage.js +137 -10
- package/Types/DateLanguage.mjs +7 -0
- package/Types/Email/EmailServer.d.mts +7 -0
- package/Types/Email/EmailServer.d.ts +7 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -0
- package/Types/Email/EmailTemplateType.d.ts +2 -0
- package/Types/Email/EmailTemplateType.js +3 -0
- package/Types/Email/MailTransportType.d.mts +29 -9
- package/Types/Email/MailTransportType.d.ts +29 -9
- package/Types/Email/MailTransportType.js +56 -8
- package/Types/Email/MailTransportType.mjs +4 -0
- package/Types/Email/MailgunDomain.d.mts +2 -0
- package/Types/Email/MailgunDomain.d.ts +2 -0
- package/Types/Email/MailgunDomain.js +57 -0
- package/Types/Email/MailgunDomain.mjs +3 -0
- package/Types/Email/MailgunRegion.d.mts +8 -0
- package/Types/Email/MailgunRegion.d.ts +8 -0
- package/Types/Email/MailgunRegion.js +32 -0
- package/Types/Email/MailgunRegion.mjs +5 -0
- package/Types/Exception/ConflictException.d.mts +6 -0
- package/Types/Exception/ConflictException.d.ts +6 -0
- package/Types/Exception/ConflictException.js +30 -0
- package/Types/Exception/ConflictException.mjs +2 -0
- package/Types/Exception/ExceptionCode.d.mts +1 -0
- package/Types/Exception/ExceptionCode.d.ts +1 -0
- package/Types/Exception/ExceptionCode.js +2 -0
- package/Types/Kubernetes/KubernetesClusterAiAccess.d.mts +0 -1
- package/Types/Kubernetes/KubernetesClusterAiAccess.d.ts +0 -1
- package/Types/Kubernetes/KubernetesClusterAiAccess.js +7 -6
- package/Types/Kubernetes/KubernetesClusterAiAccess.mjs +0 -1
- package/Types/Kubernetes/KubernetesEvent.js +5 -4
- package/Types/LlmObservability/LlmConnectionCatalog.d.mts +5 -0
- package/Types/LlmObservability/LlmConnectionCatalog.d.ts +5 -0
- package/Types/LlmObservability/LlmConnectionCatalog.js +35 -0
- package/Types/LlmObservability/LlmConnectionProvider.d.mts +1 -0
- package/Types/LlmObservability/LlmConnectionProvider.d.ts +1 -0
- package/Types/LlmObservability/LlmConnectionProvider.js +4 -2
- package/Types/LlmObservability/LlmConnectionRecords.d.mts +7 -0
- package/Types/LlmObservability/LlmConnectionRecords.d.ts +7 -0
- package/Types/LlmObservability/LlmConnectionTest.d.mts +1 -0
- package/Types/LlmObservability/LlmConnectionTest.d.ts +1 -0
- package/Types/Log/LogEventName.d.mts +6 -0
- package/Types/Log/LogEventName.d.ts +6 -0
- package/Types/Log/LogEventName.js +59 -0
- package/Types/Log/LogEventName.mjs +4 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.mts +15 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.ts +15 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.js +51 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.mjs +4 -0
- package/Types/MessageQueue/MessageQueueMetricCatalog.d.mts +1 -1
- package/Types/MessageQueue/MessageQueueMetricCatalog.d.ts +1 -1
- package/Types/MessageQueue/MessageQueueMetricCatalog.js +121 -57
- package/Types/MessageQueue/MessageQueueSpanPopulation.d.mts +65 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.d.ts +65 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.js +326 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.mjs +22 -0
- package/Types/MessageQueue/MessageQueueTopology.d.mts +59 -0
- package/Types/MessageQueue/MessageQueueTopology.d.ts +59 -0
- package/Types/MessageQueue/MessageQueueTopology.js +211 -0
- package/Types/MessageQueue/MessageQueueTopology.mjs +8 -0
- package/Types/MessageQueue/MessagingSystem.js +6 -2
- package/Types/Metrics/MetricsQuery.d.mts +1 -0
- package/Types/Metrics/MetricsQuery.d.ts +1 -0
- package/Types/Monitor/CloudAlertTemplates.d.mts +122 -0
- package/Types/Monitor/CloudAlertTemplates.d.ts +122 -0
- package/Types/Monitor/CloudAlertTemplates.js +2003 -0
- package/Types/Monitor/CloudAlertTemplates.mjs +26 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.mts +34 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.ts +34 -0
- package/Types/Monitor/CloudAppAlertTemplates.js +331 -0
- package/Types/Monitor/CloudAppAlertTemplates.mjs +8 -0
- package/Types/Monitor/CriteriaFilterTerms.d.mts +4 -0
- package/Types/Monitor/CriteriaFilterTerms.d.ts +4 -0
- package/Types/Monitor/CriteriaFilterTerms.js +166 -0
- package/Types/Monitor/CriteriaFilterTerms.mjs +4 -0
- package/Types/Monitor/EvaluationSentence.d.mts +37 -0
- package/Types/Monitor/EvaluationSentence.d.ts +37 -0
- package/Types/Monitor/EvaluationSentence.js +298 -0
- package/Types/Monitor/EvaluationSentence.mjs +12 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MessageQueueAlertTemplates.js +3 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +1 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MonitorCriteria.d.mts +2 -0
- package/Types/Monitor/MonitorCriteria.d.ts +2 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.mts +5 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.ts +5 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +243 -194
- package/Types/Monitor/MonitorEvaluationDetails.d.mts +82 -0
- package/Types/Monitor/MonitorEvaluationDetails.d.ts +82 -0
- package/Types/Monitor/MonitorEvaluationDetails.js +41 -0
- package/Types/Monitor/MonitorEvaluationDetails.mjs +3 -0
- package/Types/Monitor/MonitorEvaluationSummary.d.mts +4 -0
- package/Types/Monitor/MonitorEvaluationSummary.d.ts +4 -0
- package/Types/Monitor/MonitorStep.d.mts +2 -0
- package/Types/Monitor/MonitorStep.d.ts +2 -0
- package/Types/Monitor/MonitorStepMetricMonitor.d.mts +2 -0
- package/Types/Monitor/MonitorStepMetricMonitor.d.ts +2 -0
- package/Types/Monitor/MonitorStepMetricMonitor.js +4 -0
- package/Types/Monitor/MonitorSteps.d.mts +2 -0
- package/Types/Monitor/MonitorSteps.d.ts +2 -0
- package/Types/Monitor/MonitorSummarySnapshot.d.mts +1 -0
- package/Types/Monitor/MonitorSummarySnapshot.d.ts +1 -0
- package/Types/Monitor/MonitorType.d.mts +1 -0
- package/Types/Monitor/MonitorType.d.ts +1 -0
- package/Types/Monitor/MonitorType.js +12 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +113 -13
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +16 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +16 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +18 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +10 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +10 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +54 -1
- package/Types/Monitor/TelemetryAlertRule.js +19 -1
- package/Types/Monitor/TelemetryObservation.d.mts +15 -0
- package/Types/Monitor/TelemetryObservation.d.ts +15 -0
- package/Types/Monitor/TelemetryObservation.js +28 -0
- package/Types/Monitor/TelemetryObservation.mjs +2 -0
- package/Types/NetFlow/NetworkTrafficUsage.d.mts +56 -0
- package/Types/NetFlow/NetworkTrafficUsage.d.ts +56 -0
- package/Types/NetFlow/NetworkTrafficUsage.js +171 -1
- package/Types/NetFlow/NetworkTrafficUsage.mjs +11 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.d.mts +43 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.d.ts +43 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.js +107 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.mjs +8 -0
- package/Types/NetworkDevice/DeviceNaming.d.mts +87 -0
- package/Types/NetworkDevice/DeviceNaming.d.ts +87 -0
- package/Types/NetworkDevice/DeviceNaming.js +279 -0
- package/Types/NetworkDevice/DeviceNaming.mjs +24 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +106 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +106 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +411 -0
- package/Types/NetworkDevice/DiscoveredDevice.mjs +23 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.d.mts +10 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.d.ts +10 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.js +93 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.mjs +11 -0
- package/Types/NetworkDevice/DiscoveryImport.d.mts +12 -0
- package/Types/NetworkDevice/DiscoveryImport.d.ts +12 -0
- package/Types/NetworkDevice/DiscoveryImport.js +53 -1
- package/Types/NetworkDevice/DiscoveryImport.mjs +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.mts +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.ts +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.js +19 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.mjs +3 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +8 -0
- package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +7 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +2 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +2 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +9 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -3
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -3
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +98 -11
- package/Types/OnCallDutyPolicy/OnCallObserverPage.d.mts +61 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.d.ts +61 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.js +331 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.mjs +24 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.js +21 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +68 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +68 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.js +351 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.mjs +15 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +59 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +59 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +388 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.mjs +24 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +10 -3
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +10 -3
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +172 -37
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +2 -0
- package/Types/Permission.d.mts +33 -0
- package/Types/Permission.d.ts +33 -0
- package/Types/Permission.js +349 -5
- package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
- package/Types/ProviderLogo/Marks/cursor.d.mts +3 -0
- package/Types/ProviderLogo/Marks/cursor.d.ts +3 -0
- package/Types/ProviderLogo/Marks/cursor.js +12 -0
- package/Types/ProviderLogo/Marks/cursor.mjs +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
- package/Types/ProviderLogo/ProviderLogo.js +2 -0
- package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
- package/Types/PushNotification/PushNotificationCategory.d.mts +4 -0
- package/Types/PushNotification/PushNotificationCategory.d.ts +4 -0
- package/Types/PushNotification/PushNotificationCategory.js +36 -12
- package/Types/PushNotification/PushNotificationCategory.mjs +2 -0
- package/Types/ReadingDirection.js +2 -2
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +4 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +4 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +32 -3
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +4 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +1 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +1 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +13 -6
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +1 -1
- package/Types/Rules/RuleCriteriaFieldRegistry.js +12 -0
- package/Types/Rules/RuleCriteriaSubject.js +1 -0
- package/Types/Rum/ProductAnalytics.d.mts +153 -0
- package/Types/Rum/ProductAnalytics.d.ts +153 -0
- package/Types/Rum/ProductAnalytics.js +204 -0
- package/Types/Rum/ProductAnalytics.mjs +36 -0
- package/Types/Rum/ProductAnalyticsEventReads.d.mts +115 -0
- package/Types/Rum/ProductAnalyticsEventReads.d.ts +115 -0
- package/Types/Rum/ProductAnalyticsEventReads.js +166 -0
- package/Types/Rum/ProductAnalyticsEventReads.mjs +27 -0
- package/Types/Rum/ProductAnalyticsEvents.d.mts +121 -0
- package/Types/Rum/ProductAnalyticsEvents.d.ts +121 -0
- package/Types/Rum/ProductAnalyticsEvents.js +477 -0
- package/Types/Rum/ProductAnalyticsEvents.mjs +40 -0
- package/Types/Rum/RumApplicationStatus.d.mts +30 -0
- package/Types/Rum/RumApplicationStatus.d.ts +30 -0
- package/Types/Rum/RumApplicationStatus.js +147 -0
- package/Types/Rum/RumApplicationStatus.mjs +14 -0
- package/Types/Rum/RumTelemetrySignal.d.mts +7 -0
- package/Types/Rum/RumTelemetrySignal.d.ts +7 -0
- package/Types/Rum/RumTelemetrySignal.js +30 -0
- package/Types/Rum/RumTelemetrySignal.mjs +3 -0
- package/Types/Rum/SessionReplay.d.mts +10 -0
- package/Types/Rum/SessionReplay.d.ts +10 -0
- package/Types/Rum/SessionReplayApi.d.mts +7 -0
- package/Types/Rum/SessionReplayApi.d.ts +7 -0
- package/Types/Rum/SessionReplayCustomEvents.d.mts +11 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +11 -0
- package/Types/Rum/SessionReplayCustomEvents.js +11 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
- package/Types/Rum/SessionReplayFrustrationSignals.d.mts +90 -0
- package/Types/Rum/SessionReplayFrustrationSignals.d.ts +90 -0
- package/Types/Rum/SessionReplayFrustrationSignals.js +349 -0
- package/Types/Rum/SessionReplayFrustrationSignals.mjs +22 -0
- package/Types/Rum/SessionReplayHealth.js +1 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +9 -0
- package/Types/SecurityCase/SecurityConnection.d.ts +9 -0
- package/Types/SecurityEvent/SecurityEventScope.d.mts +12 -0
- package/Types/SecurityEvent/SecurityEventScope.d.ts +12 -0
- package/Types/SecurityEvent/SecurityEventScope.js +109 -0
- package/Types/SecurityEvent/SecurityEventScope.mjs +8 -0
- package/Types/Serverless/ServerlessFunctionStatus.d.mts +30 -0
- package/Types/Serverless/ServerlessFunctionStatus.d.ts +30 -0
- package/Types/Serverless/ServerlessFunctionStatus.js +153 -0
- package/Types/Serverless/ServerlessFunctionStatus.mjs +14 -0
- package/Types/Service/ServiceTelemetryStatus.d.mts +32 -0
- package/Types/Service/ServiceTelemetryStatus.d.ts +32 -0
- package/Types/Service/ServiceTelemetryStatus.js +138 -0
- package/Types/Service/ServiceTelemetryStatus.mjs +15 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.mts +10 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.ts +10 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.js +51 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.mjs +4 -0
- package/Types/StatusPage/PublicNoteApproval.d.mts +146 -0
- package/Types/StatusPage/PublicNoteApproval.d.ts +146 -0
- package/Types/StatusPage/PublicNoteApproval.js +473 -0
- package/Types/StatusPage/PublicNoteApproval.mjs +8 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.d.mts +9 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.d.ts +9 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.js +16 -0
- package/Types/StatusPage/StatusPageLanguage.js +1 -0
- package/Types/StatusPage/StatusPageReport.d.mts +3 -0
- package/Types/StatusPage/StatusPageReport.d.ts +3 -0
- package/Types/StatusPage/SubscriberNotificationResend.d.mts +1 -0
- package/Types/StatusPage/SubscriberNotificationResend.d.ts +1 -0
- package/Types/StatusPage/SubscriberNotificationResend.js +2 -0
- package/Types/Table/DefaultTableColumns.d.mts +22 -0
- package/Types/Table/DefaultTableColumns.d.ts +22 -0
- package/Types/Table/DefaultTableColumns.js +166 -0
- package/Types/Table/DefaultTableColumns.mjs +6 -0
- package/Types/Team/BuiltInTeam.d.mts +1 -0
- package/Types/Team/BuiltInTeam.d.ts +1 -0
- package/Types/Team/BuiltInTeam.js +14 -1
- package/Types/Team/BuiltInTeam.mjs +1 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.mts +15 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.ts +15 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.js +96 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.mjs +2 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.mts +12 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.ts +12 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.js +72 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.mjs +4 -0
- package/Types/Telemetry/LlmConventions.d.mts +5 -0
- package/Types/Telemetry/LlmConventions.d.ts +5 -0
- package/Types/Telemetry/LlmConventions.js +51 -3
- package/Types/Telemetry/LlmConventions.mjs +5 -0
- package/Types/Telemetry/LlmConversationApi.d.mts +7 -0
- package/Types/Telemetry/LlmConversationApi.d.ts +7 -0
- package/Types/Telemetry/LlmConversationApi.js +37 -1
- package/Types/Telemetry/LlmConversationApi.mjs +2 -0
- package/Types/Telemetry/LlmMetricConventions.d.mts +10 -0
- package/Types/Telemetry/LlmMetricConventions.d.ts +10 -0
- package/Types/Telemetry/LlmMetricConventions.js +84 -14
- package/Types/Telemetry/LlmMetricConventions.mjs +3 -0
- package/Types/Telemetry/LlmMetricUsageApi.d.mts +27 -0
- package/Types/Telemetry/LlmMetricUsageApi.d.ts +27 -0
- package/Types/Telemetry/LlmMetricUsageApi.js +73 -0
- package/Types/Telemetry/LlmMetricUsageApi.mjs +7 -0
- package/Types/Telemetry/LlmProviders.d.mts +23 -0
- package/Types/Telemetry/LlmProviders.d.ts +23 -0
- package/Types/Telemetry/LlmProviders.js +288 -0
- package/Types/Telemetry/LlmProviders.mjs +16 -0
- package/Types/Telemetry/LlmSetupCheckApi.d.mts +93 -0
- package/Types/Telemetry/LlmSetupCheckApi.d.ts +93 -0
- package/Types/Telemetry/LlmSetupCheckApi.js +269 -0
- package/Types/Telemetry/LlmSetupCheckApi.mjs +11 -0
- package/Types/Telemetry/LlmUsageApi.d.mts +49 -0
- package/Types/Telemetry/LlmUsageApi.d.ts +49 -0
- package/Types/Telemetry/LlmUsageApi.js +131 -0
- package/Types/Telemetry/LlmUsageApi.mjs +10 -0
- package/Types/Telemetry/ScrubRule.js +2 -1
- package/Types/Telemetry/TelemetryIngestRefusal.d.mts +23 -0
- package/Types/Telemetry/TelemetryIngestRefusal.d.ts +23 -0
- package/Types/Telemetry/TelemetryIngestRefusal.js +81 -0
- package/Types/Telemetry/TelemetryIngestRefusal.mjs +7 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +160 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +160 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +600 -0
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +52 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +7 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +7 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.js +50 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.mjs +2 -0
- package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.mts +2 -0
- package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.ts +2 -0
- package/Types/Telemetry/TelemetryQuery.d.mts +3 -0
- package/Types/Telemetry/TelemetryQuery.d.ts +3 -0
- package/Types/Telemetry/TelemetryUsage.d.mts +84 -0
- package/Types/Telemetry/TelemetryUsage.d.ts +84 -0
- package/Types/Telemetry/TelemetryUsage.js +195 -0
- package/Types/Telemetry/TelemetryUsage.mjs +25 -0
- package/Types/Trace/TraceScrubPatternType.js +2 -1
- package/Types/Translator.d.mts +6 -0
- package/Types/Translator.d.ts +6 -0
- package/Types/Translator.js +113 -12
- package/Types/Translator.mjs +6 -0
- package/Types/UserLanguage.d.mts +7 -0
- package/Types/UserLanguage.d.ts +7 -0
- package/Types/UserLanguage.js +78 -0
- package/Types/UserLanguage.mjs +5 -0
- package/Types/UserNotification/UserNotificationStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationStatus.js +8 -0
- package/Types/Workflow/Components/OnCall.js +28 -1
- package/Types/Workflow/Components/OnCallPageSettings.d.mts +3 -0
- package/Types/Workflow/Components/OnCallPageSettings.d.ts +3 -0
- package/Types/Workflow/Components/OnCallPageSettings.js +25 -0
- package/Types/Workflow/Components/OnCallPageSettings.mjs +1 -0
- package/Types/Workflow/WorkflowDraft.d.mts +2 -0
- package/Types/Workflow/WorkflowDraft.d.ts +2 -0
- package/Types/Workflow/WorkflowDraft.js +32 -23
- package/Types/Workflow/WorkflowDraft.mjs +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.d.mts +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.d.ts +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.js +11 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.mjs +2 -0
- package/Types/Workflow/WorkflowDraftRebase.d.mts +74 -0
- package/Types/Workflow/WorkflowDraftRebase.d.ts +74 -0
- package/Types/Workflow/WorkflowDraftRebase.js +447 -0
- package/Types/Workflow/WorkflowDraftRebase.mjs +9 -0
- package/Types/Workflow/WorkflowDraftSeen.d.mts +39 -0
- package/Types/Workflow/WorkflowDraftSeen.d.ts +39 -0
- package/Types/Workflow/WorkflowDraftSeen.js +161 -0
- package/Types/Workflow/WorkflowDraftSeen.mjs +6 -0
- package/Types/Workflow/WorkflowGraphRevision.d.mts +2 -0
- package/Types/Workflow/WorkflowGraphRevision.d.ts +2 -0
- package/Types/Workflow/WorkflowGraphRevision.js +45 -0
- package/Types/Workflow/WorkflowGraphRevision.mjs +3 -0
- package/Types/Workflow/WorkflowVersion.d.mts +11 -0
- package/Types/Workflow/WorkflowVersion.d.ts +11 -0
- package/Types/Workflow/WorkflowVersion.js +63 -0
- package/Types/Workflow/WorkflowVersion.mjs +7 -0
- package/Types/Workspace/NotificationRules/EventType.d.mts +2 -1
- package/Types/Workspace/NotificationRules/EventType.d.ts +2 -1
- package/Types/Workspace/NotificationRules/EventType.js +8 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +7 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +7 -1
- package/Types/Workspace/NotificationRules/NotificationRuleInvites.js +5 -1
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.mts +4 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.ts +4 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.js +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.mjs +1 -0
- package/Utils/AI/InvestigationImpactNumbers.d.mts +33 -0
- package/Utils/AI/InvestigationImpactNumbers.d.ts +33 -0
- package/Utils/AI/InvestigationImpactNumbers.js +307 -0
- package/Utils/AI/InvestigationImpactNumbers.mjs +9 -0
- package/Utils/AI/InvestigationReport.d.mts +14 -0
- package/Utils/AI/InvestigationReport.d.ts +14 -0
- package/Utils/AI/InvestigationReport.js +229 -24
- package/Utils/AI/InvestigationReport.mjs +4 -0
- package/Utils/AI/InvestigationReportLanguages.d.mts +25 -0
- package/Utils/AI/InvestigationReportLanguages.d.ts +25 -0
- package/Utils/AI/InvestigationReportLanguages.js +603 -0
- package/Utils/AI/InvestigationReportLanguages.mjs +11 -0
- package/Utils/AiRemediation/CloudChangeWords.js +6 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +106 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +106 -0
- package/Utils/AiRemediation/DeclaredCodeChange.js +451 -0
- package/Utils/AiRemediation/DeclaredCodeChange.mjs +16 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +4 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +1 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +1 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +144 -11
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +1 -0
- package/Utils/AuditLog/AuditLogTypedValues.d.mts +23 -0
- package/Utils/AuditLog/AuditLogTypedValues.d.ts +23 -0
- package/Utils/AuditLog/AuditLogTypedValues.js +331 -0
- package/Utils/AuditLog/AuditLogTypedValues.mjs +8 -0
- package/Utils/AuditLog/AuditLogValues.d.mts +25 -0
- package/Utils/AuditLog/AuditLogValues.d.ts +25 -0
- package/Utils/AuditLog/AuditLogValues.js +398 -0
- package/Utils/AuditLog/AuditLogValues.mjs +15 -0
- package/Utils/CronScheduleText.js +2 -2
- package/Utils/Dashboard/DashboardWidgetIds.d.mts +9 -0
- package/Utils/Dashboard/DashboardWidgetIds.d.ts +9 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +136 -0
- package/Utils/Dashboard/DashboardWidgetIds.mjs +4 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +7 -1
- package/Utils/Dashboard/LabelVariable.js +12 -2
- package/Utils/Dashboard/SloWidgetSource.d.mts +2 -2
- package/Utils/Dashboard/SloWidgetSource.d.ts +2 -2
- package/Utils/Dashboard/SloWidgetSource.js +14 -3
- package/Utils/Dashboard/StoredDashboardViewConfig.d.mts +7 -0
- package/Utils/Dashboard/StoredDashboardViewConfig.d.ts +7 -0
- package/Utils/Dashboard/StoredDashboardViewConfig.js +124 -22
- package/Utils/Dashboard/TableThresholds.js +5 -2
- package/Utils/Episode/EpisodeOpeningThreshold.d.mts +9 -0
- package/Utils/Episode/EpisodeOpeningThreshold.d.ts +9 -0
- package/Utils/Episode/EpisodeOpeningThreshold.js +64 -0
- package/Utils/Episode/EpisodeOpeningThreshold.mjs +7 -0
- package/Utils/LLM/LlmProviderResponseTimeout.d.mts +4 -0
- package/Utils/LLM/LlmProviderResponseTimeout.d.ts +4 -0
- package/Utils/LLM/LlmProviderResponseTimeout.js +24 -0
- package/Utils/LLM/LlmProviderResponseTimeout.mjs +4 -0
- package/Utils/LinearRegExp/PatternWork.d.mts +1 -0
- package/Utils/LinearRegExp/PatternWork.d.ts +1 -0
- package/Utils/LinearRegExp/PatternWork.js +10 -4
- package/Utils/LinearRegExp/PatternWork.mjs +1 -0
- package/Utils/Markdown/Base64Data.d.mts +8 -0
- package/Utils/Markdown/Base64Data.d.ts +8 -0
- package/Utils/Markdown/Base64Data.js +130 -0
- package/Utils/Markdown/Base64Data.mjs +4 -0
- package/Utils/Metrics/MetricExplorerUrl.d.mts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.d.ts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.js +14 -3
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +18 -0
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +18 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +112 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.d.mts +62 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.d.ts +62 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +335 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.mjs +2 -0
- package/Utils/Metrics/MetricQueryServices.d.mts +14 -0
- package/Utils/Metrics/MetricQueryServices.d.ts +14 -0
- package/Utils/Metrics/MetricQueryServices.js +121 -0
- package/Utils/Metrics/MetricQueryServices.mjs +2 -0
- package/Utils/Metrics/MetricWholeWindow.d.mts +11 -0
- package/Utils/Metrics/MetricWholeWindow.d.ts +11 -0
- package/Utils/Metrics/MetricWholeWindow.js +50 -0
- package/Utils/Metrics/MetricWholeWindow.mjs +2 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.d.mts +23 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.d.ts +23 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.js +154 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.mjs +2 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.d.mts +13 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.d.ts +13 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.js +59 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.mjs +2 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.mts +8 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.ts +8 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.js +81 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.mjs +2 -0
- package/Utils/Monitor/MonitorGroupMonitoring.d.mts +25 -0
- package/Utils/Monitor/MonitorGroupMonitoring.d.ts +25 -0
- package/Utils/Monitor/MonitorGroupMonitoring.js +78 -0
- package/Utils/Monitor/MonitorGroupMonitoring.mjs +3 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.d.mts +8 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.d.ts +8 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.js +170 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewFamily.js +35 -3
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +17 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +17 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +242 -0
- package/Utils/Monitor/MonitorRootCauseWording.mjs +2 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.mts +61 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.ts +61 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +616 -0
- package/Utils/Monitor/MonitorStepMetricQueries.mjs +6 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.d.mts +62 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.d.ts +62 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.js +415 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.mjs +4 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.d.mts +3 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.d.ts +3 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -2
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +1 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +1 -0
- package/Utils/Monitor/NetworkTopologyUtil.js +27 -7
- package/Utils/Monitor/NetworkTopologyUtil.mjs +1 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +5 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +5 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +37 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.mjs +2 -0
- package/Utils/NameBreaks.js +44 -12
- package/Utils/NetworkDevice/DeviceNameLikeness.d.mts +33 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.d.ts +33 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.js +279 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.mjs +14 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.mts +13 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.ts +13 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.js +104 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.mjs +6 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.mts +75 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.ts +75 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +303 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.mjs +8 -0
- package/Utils/NetworkDevice/Naming/NamePattern.d.mts +122 -0
- package/Utils/NetworkDevice/Naming/NamePattern.d.ts +122 -0
- package/Utils/NetworkDevice/Naming/NamePattern.js +649 -0
- package/Utils/NetworkDevice/Naming/NamePattern.mjs +22 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +77 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +77 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.js +467 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +14 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.mts +26 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.ts +26 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.js +327 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.mjs +7 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +12 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +12 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +92 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.mjs +3 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.js +8 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.d.mts +2 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.d.ts +2 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.js +1 -0
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +27 -3
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.mts +9 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.ts +9 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +337 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.mjs +5 -0
- package/Utils/Rum/UserFlow.js +6 -2
- package/Utils/Runbook/RunbookStepExecutionChanges.d.mts +32 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.d.ts +32 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.js +264 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.mjs +11 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +1 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +1 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.js +33 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.mts +5 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.ts +5 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.js +458 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.mjs +6 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +30 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +9 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +3 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +3 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +223 -33
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +3 -0
- package/Utils/SecurityEvent/SecurityScanWords.d.mts +2 -0
- package/Utils/SecurityEvent/SecurityScanWords.d.ts +2 -0
- package/Utils/SecurityEvent/SecurityScanWords.js +122 -0
- package/Utils/SecurityEvent/SecurityScanWords.mjs +3 -0
- package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.mts +7 -6
- package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.ts +7 -6
- package/Utils/SessionReplay/SessionReplayHealth.js +703 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.mts +42 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.ts +42 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.js +207 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.mjs +10 -0
- package/Utils/Slo/SloBurnRateTemplate.d.mts +23 -3
- package/Utils/Slo/SloBurnRateTemplate.d.ts +23 -3
- package/Utils/Slo/SloBurnRateTemplate.js +96 -17
- package/Utils/Slo/SloBurnRateTemplate.mjs +6 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +106 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +106 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +437 -0
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +26 -0
- package/Utils/Slo/SloEvaluation.d.mts +22 -0
- package/Utils/Slo/SloEvaluation.d.ts +22 -0
- package/Utils/Slo/SloEvaluation.js +43 -1
- package/Utils/Slo/SloEvaluation.mjs +4 -0
- package/Utils/Slo/SloFeedMarkdown.d.mts +42 -0
- package/Utils/Slo/SloFeedMarkdown.d.ts +42 -0
- package/Utils/Slo/SloFeedMarkdown.js +165 -3
- package/Utils/Slo/SloFeedMarkdown.mjs +6 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.d.mts +73 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.d.ts +73 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.js +348 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.mjs +28 -0
- package/Utils/Slo/SloRecordOutputColumns.d.mts +25 -0
- package/Utils/Slo/SloRecordOutputColumns.d.ts +25 -0
- package/Utils/Slo/SloRecordOutputColumns.js +87 -0
- package/Utils/Slo/SloRecordOutputColumns.mjs +9 -0
- package/Utils/Slo/SloStatusColor.d.mts +6 -0
- package/Utils/Slo/SloStatusColor.d.ts +6 -0
- package/Utils/Slo/SloStatusColor.js +23 -1
- package/Utils/Slo/SloStatusColor.mjs +2 -0
- package/Utils/Slo/SloUtil.d.mts +4 -0
- package/Utils/Slo/SloUtil.d.ts +4 -0
- package/Utils/Slo/SloUtil.js +8 -2
- package/Utils/Sms/OnCallPageSms.d.mts +18 -0
- package/Utils/Sms/OnCallPageSms.d.ts +18 -0
- package/Utils/Sms/OnCallPageSms.js +88 -6
- package/Utils/StatusPage/Report.js +2 -0
- package/Utils/StatusPage/ReportPeriod.d.mts +4 -4
- package/Utils/StatusPage/ReportPeriod.d.ts +4 -4
- package/Utils/StatusPage/ReportPeriod.js +23 -47
- package/Utils/StatusPage/ReportText.d.mts +33 -0
- package/Utils/StatusPage/ReportText.d.ts +33 -0
- package/Utils/StatusPage/ReportText.js +266 -0
- package/Utils/StatusPage/ReportText.mjs +3 -0
- package/Utils/StatusPage/ResourceExplorer.js +9 -8
- package/Utils/Telemetry/CloudHealthDescription.d.mts +53 -0
- package/Utils/Telemetry/CloudHealthDescription.d.ts +53 -0
- package/Utils/Telemetry/CloudHealthDescription.js +310 -0
- package/Utils/Telemetry/CloudHealthDescription.mjs +13 -0
- package/Utils/Telemetry/LlmCallCounting.d.mts +30 -0
- package/Utils/Telemetry/LlmCallCounting.d.ts +30 -0
- package/Utils/Telemetry/LlmCallCounting.js +109 -0
- package/Utils/Telemetry/LlmCallCounting.mjs +2 -0
- package/Utils/Telemetry/LlmConversationTranscript.js +12 -6
- package/Utils/Telemetry/LlmLogEvents.d.mts +45 -0
- package/Utils/Telemetry/LlmLogEvents.d.ts +45 -0
- package/Utils/Telemetry/LlmLogEvents.js +613 -0
- package/Utils/Telemetry/LlmLogEvents.mjs +4 -0
- package/Utils/Telemetry/LlmMessageParser.d.mts +1 -0
- package/Utils/Telemetry/LlmMessageParser.d.ts +1 -0
- package/Utils/Telemetry/LlmMessageParser.js +60 -2
- package/Utils/Telemetry/LlmMetricUsage.d.mts +27 -0
- package/Utils/Telemetry/LlmMetricUsage.d.ts +27 -0
- package/Utils/Telemetry/LlmMetricUsage.js +189 -0
- package/Utils/Telemetry/LlmMetricUsage.mjs +2 -0
- package/Utils/Telemetry/LlmUsage.d.mts +51 -0
- package/Utils/Telemetry/LlmUsage.d.ts +51 -0
- package/Utils/Telemetry/LlmUsage.js +266 -0
- package/Utils/Telemetry/LlmUsage.mjs +3 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +14 -0
- package/Utils/Telemetry/ScrubNestedValues.d.ts +14 -0
- package/Utils/Telemetry/ScrubNestedValues.js +302 -0
- package/Utils/Telemetry/ScrubNestedValues.mjs +4 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +18 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +18 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.js +141 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.mjs +9 -0
- package/Utils/TotpSetupKey.d.mts +3 -0
- package/Utils/TotpSetupKey.d.ts +3 -0
- package/Utils/TotpSetupKey.js +72 -0
- package/Utils/TotpSetupKey.mjs +4 -0
- package/Utils/Workflow/WorkflowGraphChanges.d.mts +65 -0
- package/Utils/Workflow/WorkflowGraphChanges.d.ts +65 -0
- package/Utils/Workflow/WorkflowGraphChanges.js +530 -0
- package/Utils/Workflow/WorkflowGraphChanges.mjs +8 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.d.mts +12 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.d.ts +12 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.js +214 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.mjs +6 -0
- package/Utils/Workspace/WorkspaceChannelName.js +5 -1
- package/package.json +1 -1
- package/Utils/Rum/SessionReplayHealth.js +0 -558
- /package/Utils/{Rum → SessionReplay}/SessionReplayHealth.mjs +0 -0
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GCP_CLOUD_AI_AGENT_KEY_READER = exports.GCP_CLOUD_AI_AGENT_VM_REFUSED_MESSAGE = exports.GCP_CLOUD_AI_AGENT_RUN_DIRECTORY = exports.GCP_CLOUD_AI_AGENT_LOG_WRITER_ROLE = exports.GCP_CLOUD_AI_AGENT_STARTUP_FILE = exports.GCP_CLOUD_AI_AGENT_SUBNET_RANGE = exports.GCP_CLOUD_AI_AGENT_IMAGE_PROJECT = exports.GCP_CLOUD_AI_AGENT_IMAGE_FAMILY = exports.GCP_CLOUD_AI_AGENT_BOOT_DISK_TYPE = exports.GCP_CLOUD_AI_AGENT_BOOT_DISK_GB = exports.GCP_CLOUD_AI_AGENT_MACHINE_TYPE = exports.AWS_CLOUD_AI_AGENT_LOG_RETENTION_DAYS = exports.GCP_CLOUD_AI_AGENT_DEPLOY_RETRY_MESSAGE = exports.GCP_CLOUD_AI_AGENT_DEPLOY_RETRY_SECONDS = exports.GCP_CLOUD_AI_AGENT_DEPLOY_ATTEMPTS = exports.GCP_TOKEN_CREATOR_ROLE = exports.GCP_SECRET_ACCESSOR_ROLE = exports.GCP_CLOUD_AI_AGENT_KEY_FILE_END = exports.GCP_CLOUD_AI_AGENT_SECRET_NAME = exports.AZURE_CLOUD_AI_AGENT_SECRET_NAME = exports.GCP_CLOUD_AI_AGENT_KEY_FILE = exports.GCP_CLOUD_AI_AGENT_ENV_FILE = exports.AWS_CLOUD_AI_AGENT_TEMPLATE_FILE = exports.CLOUD_AI_AGENT_HEALTH_HOST_ENV = exports.CLOUD_AI_AGENT_KEY_ENV = exports.CLOUD_AI_AGENT_ONEUPTIME_URL_ENV = exports.CLOUD_AI_AGENT_STARTED_MESSAGE = exports.CLOUD_AI_AGENT_SIZES = exports.CLOUD_AI_AGENT_DEFAULT_REGIONS = exports.CLOUD_AI_AGENT_IMAGE_TAG = exports.CLOUD_AI_AGENT_DEFAULT_FIXES_MODE = exports.CLOUD_AI_AGENT_FIXES_MODES = void 0;
|
|
39
|
+
exports.CLOUD_AI_AGENT_ORGANIZATION_ACCOUNT_FAILED_MESSAGE = exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_ACCOUNTS_FILE = exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_TEMPLATE_FILE = exports.CLOUD_AI_AGENT_ORGANIZATION_MAX_ACCOUNTS = exports.AWS_CLOUD_AI_AGENT_SUBNET_CIDR = exports.AWS_CLOUD_AI_AGENT_VPC_CIDR = exports.GCP_CLOUD_AI_AGENT_KEY_READER = exports.GCP_CLOUD_AI_AGENT_VM_REFUSED_MESSAGE = exports.GCP_CLOUD_AI_AGENT_RUN_DIRECTORY = exports.GCP_CLOUD_AI_AGENT_LOG_WRITER_ROLE = exports.GCP_CLOUD_AI_AGENT_STARTUP_FILE = exports.GCP_CLOUD_AI_AGENT_SUBNET_RANGE = exports.GCP_CLOUD_AI_AGENT_IMAGE_PROJECT = exports.GCP_CLOUD_AI_AGENT_IMAGE_FAMILY = exports.GCP_CLOUD_AI_AGENT_BOOT_DISK_TYPE = exports.GCP_CLOUD_AI_AGENT_BOOT_DISK_GB = exports.GCP_CLOUD_AI_AGENT_MACHINE_TYPE = exports.AWS_CLOUD_AI_AGENT_LOG_RETENTION_DAYS = exports.GCP_CLOUD_AI_AGENT_DEPLOY_RETRY_MESSAGE = exports.GCP_CLOUD_AI_AGENT_DEPLOY_RETRY_SECONDS = exports.GCP_CLOUD_AI_AGENT_DEPLOY_ATTEMPTS = exports.GCP_TOKEN_CREATOR_ROLE = exports.GCP_SECRET_ACCESSOR_ROLE = exports.GCP_CLOUD_AI_AGENT_KEY_FILE_END = exports.GCP_CLOUD_AI_AGENT_SECRET_NAME = exports.AZURE_CLOUD_AI_AGENT_SECRET_NAME = exports.GCP_CLOUD_AI_AGENT_KEY_FILE = exports.GCP_CLOUD_AI_AGENT_ENV_FILE = exports.AWS_CLOUD_AI_AGENT_TEMPLATE_FILE = exports.CLOUD_AI_AGENT_HEALTH_HOST_ENV = exports.CLOUD_AI_AGENT_KEY_ENV = exports.CLOUD_AI_AGENT_ONEUPTIME_URL_ENV = exports.CLOUD_AI_AGENT_STARTED_MESSAGE = exports.CLOUD_AI_AGENT_SIZES = exports.CLOUD_AI_AGENT_DEFAULT_REGIONS = exports.CLOUD_AI_AGENT_IMAGE_TAG = exports.CLOUD_AI_AGENT_DEFAULT_FIXES_MODE = exports.CLOUD_AI_AGENT_FIXES_MODES = void 0;
|
|
40
40
|
exports.getCloudAiAgentChangeOperations = getCloudAiAgentChangeOperations;
|
|
41
41
|
exports.isReadableCloudAiAgentProtectedTarget = isReadableCloudAiAgentProtectedTarget;
|
|
42
42
|
exports.getCloudAiAgentMaxProtectedTargets = getCloudAiAgentMaxProtectedTargets;
|
|
@@ -49,8 +49,18 @@ exports.getCloudAiAgentRolePermissions = getCloudAiAgentRolePermissions;
|
|
|
49
49
|
exports.getGcpCloudAiAgentReaderPermissions = getGcpCloudAiAgentReaderPermissions;
|
|
50
50
|
exports.getAwsCloudAiAgentTemplate = getAwsCloudAiAgentTemplate;
|
|
51
51
|
exports.getAwsCloudAiAgentSetupCommand = getAwsCloudAiAgentSetupCommand;
|
|
52
|
+
exports.describeCloudAiAgentOrganizationSetupProblem = describeCloudAiAgentOrganizationSetupProblem;
|
|
53
|
+
exports.getAwsOrganizationCloudAiAgentTemplate = getAwsOrganizationCloudAiAgentTemplate;
|
|
54
|
+
exports.getCloudAiAgentOrganizationWrongAccountMessage = getCloudAiAgentOrganizationWrongAccountMessage;
|
|
55
|
+
exports.getCloudAiAgentOrganizationStartedMessage = getCloudAiAgentOrganizationStartedMessage;
|
|
56
|
+
exports.getAwsOrganizationCloudAiAgentSetupCommand = getAwsOrganizationCloudAiAgentSetupCommand;
|
|
57
|
+
exports.getAwsOrganizationCloudAiAgentInstancesCommand = getAwsOrganizationCloudAiAgentInstancesCommand;
|
|
58
|
+
exports.getAwsOrganizationCloudAiAgentRemoveCommand = getAwsOrganizationCloudAiAgentRemoveCommand;
|
|
52
59
|
exports.getAzureCloudAiAgentRoleName = getAzureCloudAiAgentRoleName;
|
|
60
|
+
exports.getAzureCloudAiAgentReaderRoleName = getAzureCloudAiAgentReaderRoleName;
|
|
61
|
+
exports.getAzureCloudAiAgentReaderPermissions = getAzureCloudAiAgentReaderPermissions;
|
|
53
62
|
exports.getAzureCloudAiAgentRoleDefinition = getAzureCloudAiAgentRoleDefinition;
|
|
63
|
+
exports.getAzureCloudAiAgentReaderRoleDefinition = getAzureCloudAiAgentReaderRoleDefinition;
|
|
54
64
|
exports.getAzureCloudAiAgentSetupCommand = getAzureCloudAiAgentSetupCommand;
|
|
55
65
|
exports.getGcpCloudAiAgentServices = getGcpCloudAiAgentServices;
|
|
56
66
|
exports.getGcpCloudAiAgentSetupCommand = getGcpCloudAiAgentSetupCommand;
|
|
@@ -64,6 +74,7 @@ const CloudAiAgentNames_1 = require("../ResourceAiAgent/CloudAiAgentNames");
|
|
|
64
74
|
const ResourceAiAccess_1 = require("../ResourceAiAgent/ResourceAiAccess");
|
|
65
75
|
const ShellWord_1 = require("../Runbook/ShellWord");
|
|
66
76
|
const CloudAiAgentKey_1 = require("./CloudAiAgentKey");
|
|
77
|
+
const AwsStackSets_1 = require("./AwsStackSets");
|
|
67
78
|
const CloudOperationCatalog_1 = require("../../Utils/AiRemediation/Resource/CloudOperationCatalog");
|
|
68
79
|
/*
|
|
69
80
|
* "Ask me first" (the default), "Fix safe problems on its own", and under
|
|
@@ -210,6 +221,8 @@ const ROLE_DESCRIPTION = "What the OneUptime Cloud AI agent may change: the oper
|
|
|
210
221
|
// Google Cloud's second role: what the agent's own account reads.
|
|
211
222
|
const READER_ROLE_TITLE = "OneUptime AI Agent (reads)";
|
|
212
223
|
const READER_ROLE_DESCRIPTION = "What the OneUptime Cloud AI agent reads before and without a change; its changes run as its write account";
|
|
224
|
+
// Azure's second role: what the agent's own identity reads.
|
|
225
|
+
const AZURE_READER_ROLE_DESCRIPTION = "What the OneUptime Cloud AI agent reads before and without a change; its changes run as its write identity";
|
|
213
226
|
// The read every agent runs for Test connection.
|
|
214
227
|
const WHOAMI = "whoami";
|
|
215
228
|
// The cloud each CloudProvider is in the catalog, and the agent's resource type.
|
|
@@ -570,10 +583,15 @@ function environmentOf(setup) {
|
|
|
570
583
|
if (setup.provider === CloudPlatform_1.CloudProvider.GCP) {
|
|
571
584
|
environment.push(variable(ResourceAiAccess_1.RESOURCE_AI_GCP_WRITE_SERVICE_ACCOUNT_ENV, getGcpCloudAiAgentWriteServiceAccount(setup.accountId)));
|
|
572
585
|
}
|
|
573
|
-
|
|
586
|
+
/*
|
|
587
|
+
* The one subscription the agent acts in, so it never has to guess among
|
|
588
|
+
* several, and the identity each change runs as, with a token the agent
|
|
589
|
+
* asks for that change: by its resource ID, which names the subscription
|
|
590
|
+
* it belongs to and needs no lookup of an id Azure makes up.
|
|
591
|
+
*/
|
|
574
592
|
if (setup.provider === CloudPlatform_1.CloudProvider.Azure) {
|
|
575
593
|
environment.push(variable(AiResourceType_1.AI_RESOURCE_TYPE_INFO[AiResourceType_1.default.AzureSubscription]
|
|
576
|
-
.identityEnvVars[0], setup.accountId));
|
|
594
|
+
.identityEnvVars[0], setup.accountId), variable(ResourceAiAccess_1.RESOURCE_AI_AZURE_WRITE_IDENTITY_ENV, (0, CloudAiAgentNames_1.getAzureCloudAiAgentWriteIdentityId)(setup.accountId)));
|
|
577
595
|
}
|
|
578
596
|
/*
|
|
579
597
|
* Cloud Run starts an instance only once it accepts connections on its
|
|
@@ -643,6 +661,7 @@ function getCloudAiAgentRolePermissions(provider, enabledOperations) {
|
|
|
643
661
|
const GCP_OPERATION_READS = [
|
|
644
662
|
["compute", ["compute.zoneOperations.get", "compute.regionOperations.get"]],
|
|
645
663
|
["run", ["run.operations.get"]],
|
|
664
|
+
["appengine", ["appengine.operations.get"]],
|
|
646
665
|
];
|
|
647
666
|
// The verbs of a Google Cloud permission (service.resource.verb) that only read.
|
|
648
667
|
const GCP_READ_VERBS = ["get", "list"];
|
|
@@ -665,6 +684,8 @@ function getGcpCloudAiAgentReaderPermissions(enabledOperations) {
|
|
|
665
684
|
const AWS_TAG_READ_ACTIONS = [
|
|
666
685
|
"lambda:ListTags",
|
|
667
686
|
"sqs:ListQueueTags",
|
|
687
|
+
"apprunner:ListTagsForResource",
|
|
688
|
+
"elasticbeanstalk:ListTagsForResource",
|
|
668
689
|
];
|
|
669
690
|
// ---- AWS ------------------------------------------------------------------------
|
|
670
691
|
// CloudFormation's own values, for Fn::Sub.
|
|
@@ -728,12 +749,77 @@ function getAwsWritePolicy(setup) {
|
|
|
728
749
|
});
|
|
729
750
|
return { Version: "2012-10-17", Statement: statements };
|
|
730
751
|
}
|
|
731
|
-
|
|
752
|
+
// The own network: room for the one task, apart from every other range.
|
|
753
|
+
exports.AWS_CLOUD_AI_AGENT_VPC_CIDR = "10.249.0.0/24";
|
|
754
|
+
exports.AWS_CLOUD_AI_AGENT_SUBNET_CIDR = "10.249.0.0/28";
|
|
755
|
+
// The resources of the own network, by their logical ids.
|
|
756
|
+
function getAwsOwnNetworkResources() {
|
|
757
|
+
const tag = (name) => {
|
|
758
|
+
return [{ Key: "Name", Value: `${CloudAiAgentNames_1.CLOUD_AI_AGENT_NAME}-${name}` }];
|
|
759
|
+
};
|
|
760
|
+
return {
|
|
761
|
+
Vpc: {
|
|
762
|
+
Type: "AWS::EC2::VPC",
|
|
763
|
+
Properties: {
|
|
764
|
+
CidrBlock: exports.AWS_CLOUD_AI_AGENT_VPC_CIDR,
|
|
765
|
+
EnableDnsSupport: true,
|
|
766
|
+
EnableDnsHostnames: true,
|
|
767
|
+
Tags: tag("vpc"),
|
|
768
|
+
},
|
|
769
|
+
},
|
|
770
|
+
InternetGateway: {
|
|
771
|
+
Type: "AWS::EC2::InternetGateway",
|
|
772
|
+
Properties: { Tags: tag("igw") },
|
|
773
|
+
},
|
|
774
|
+
GatewayAttachment: {
|
|
775
|
+
Type: "AWS::EC2::VPCGatewayAttachment",
|
|
776
|
+
Properties: {
|
|
777
|
+
VpcId: { Ref: "Vpc" },
|
|
778
|
+
InternetGatewayId: { Ref: "InternetGateway" },
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
Subnet: {
|
|
782
|
+
Type: "AWS::EC2::Subnet",
|
|
783
|
+
Properties: {
|
|
784
|
+
VpcId: { Ref: "Vpc" },
|
|
785
|
+
CidrBlock: exports.AWS_CLOUD_AI_AGENT_SUBNET_CIDR,
|
|
786
|
+
AvailabilityZone: { "Fn::Select": [0, { "Fn::GetAZs": "" }] },
|
|
787
|
+
MapPublicIpOnLaunch: false,
|
|
788
|
+
Tags: tag("subnet"),
|
|
789
|
+
},
|
|
790
|
+
},
|
|
791
|
+
RouteTable: {
|
|
792
|
+
Type: "AWS::EC2::RouteTable",
|
|
793
|
+
Properties: { VpcId: { Ref: "Vpc" }, Tags: tag("routes") },
|
|
794
|
+
},
|
|
795
|
+
// Out to OneUptime, the AWS APIs and the image registry; nothing comes in.
|
|
796
|
+
InternetRoute: {
|
|
797
|
+
Type: "AWS::EC2::Route",
|
|
798
|
+
DependsOn: "GatewayAttachment",
|
|
799
|
+
Properties: {
|
|
800
|
+
RouteTableId: { Ref: "RouteTable" },
|
|
801
|
+
DestinationCidrBlock: "0.0.0.0/0",
|
|
802
|
+
GatewayId: { Ref: "InternetGateway" },
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
SubnetRoutes: {
|
|
806
|
+
Type: "AWS::EC2::SubnetRouteTableAssociation",
|
|
807
|
+
Properties: {
|
|
808
|
+
SubnetId: { Ref: "Subnet" },
|
|
809
|
+
RouteTableId: { Ref: "RouteTable" },
|
|
810
|
+
},
|
|
811
|
+
},
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
function getAwsTemplate(setup, network = "default-vpc") {
|
|
815
|
+
const isOwnNetwork = network === "own-vpc";
|
|
732
816
|
/*
|
|
733
817
|
* The key is a parameter, never in the template, and reaches the task
|
|
734
818
|
* from Secrets Manager (Secrets), never as one of its variables: those
|
|
735
819
|
* are shown to anyone who may describe the task definition. The write
|
|
736
|
-
* role's ARN is the role's own.
|
|
820
|
+
* role's ARN is the role's own. In an organization's template the
|
|
821
|
+
* OneUptime cloud account the agent is for is a parameter too: each
|
|
822
|
+
* account's stack names its own.
|
|
737
823
|
*/
|
|
738
824
|
const containerEnvironment = environmentOf(setup)
|
|
739
825
|
.filter((variable) => {
|
|
@@ -746,6 +832,9 @@ function getAwsTemplate(setup) {
|
|
|
746
832
|
Value: { "Fn::GetAtt": ["WriteRole", "Arn"] },
|
|
747
833
|
};
|
|
748
834
|
}
|
|
835
|
+
if (isOwnNetwork && variable.name === ResourceAiAccess_1.RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV) {
|
|
836
|
+
return { Name: variable.name, Value: { Ref: "CloudAccountId" } };
|
|
837
|
+
}
|
|
749
838
|
return { Name: variable.name, Value: variable.value };
|
|
750
839
|
});
|
|
751
840
|
const containerSecrets = environmentOf(setup)
|
|
@@ -759,38 +848,47 @@ function getAwsTemplate(setup) {
|
|
|
759
848
|
const ecsTasks = { Service: "ecs-tasks.amazonaws.com" };
|
|
760
849
|
return {
|
|
761
850
|
AWSTemplateFormatVersion: "2010-09-09",
|
|
762
|
-
Description:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
851
|
+
Description: isOwnNetwork
|
|
852
|
+
? "OneUptime Cloud AI agent, in every account of an AWS Organization: one ECS Fargate task in a small network of its own that makes the changes OneUptime AI asks for in its account, with a role that holds only the operations turned on for it."
|
|
853
|
+
: "OneUptime Cloud AI agent: one ECS Fargate task that makes the changes OneUptime AI asks for in this account, with a role that holds only the operations turned on for it.",
|
|
854
|
+
Parameters: Object.assign(Object.assign(Object.assign({}, (isOwnNetwork
|
|
855
|
+
? {}
|
|
856
|
+
: {
|
|
857
|
+
VpcId: {
|
|
858
|
+
Type: "AWS::EC2::VPC::Id",
|
|
859
|
+
Description: "The VPC the agent runs in: the Region's default VPC.",
|
|
860
|
+
},
|
|
861
|
+
SubnetIds: {
|
|
862
|
+
Type: "List<AWS::EC2::Subnet::Id>",
|
|
863
|
+
Description: "The default VPC's default subnets.",
|
|
864
|
+
},
|
|
865
|
+
})), { AgentKey: {
|
|
773
866
|
Type: "String",
|
|
774
867
|
NoEcho: true,
|
|
775
868
|
MinLength: 1,
|
|
776
869
|
Description: "The key the agent registers with: this account's own, which connects its agent and nothing else.",
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
870
|
+
} }), (isOwnNetwork
|
|
871
|
+
? {
|
|
872
|
+
CloudAccountId: {
|
|
873
|
+
Type: "String",
|
|
874
|
+
MinLength: 1,
|
|
875
|
+
Description: "The OneUptime cloud account this account's agent is for: the one its key names.",
|
|
876
|
+
},
|
|
877
|
+
}
|
|
878
|
+
: {})),
|
|
879
|
+
Resources: Object.assign(Object.assign({}, (isOwnNetwork ? getAwsOwnNetworkResources() : {})), { Cluster: {
|
|
781
880
|
Type: "AWS::ECS::Cluster",
|
|
782
881
|
Properties: {
|
|
783
882
|
ClusterName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_CLUSTER_NAME,
|
|
784
883
|
ClusterSettings: [{ Name: "containerInsights", Value: "disabled" }],
|
|
785
884
|
},
|
|
786
|
-
},
|
|
787
|
-
LogGroup: {
|
|
885
|
+
}, LogGroup: {
|
|
788
886
|
Type: "AWS::Logs::LogGroup",
|
|
789
887
|
Properties: {
|
|
790
888
|
LogGroupName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME,
|
|
791
889
|
RetentionInDays: exports.AWS_CLOUD_AI_AGENT_LOG_RETENTION_DAYS,
|
|
792
890
|
},
|
|
793
|
-
},
|
|
891
|
+
},
|
|
794
892
|
/*
|
|
795
893
|
* The key the agent registers with, which only ECS reads, as the task
|
|
796
894
|
* starts. A secret of its own name: the one an earlier version of this
|
|
@@ -803,7 +901,7 @@ function getAwsTemplate(setup) {
|
|
|
803
901
|
Description: "The key the OneUptime Cloud AI agent registers with: this account's own.",
|
|
804
902
|
SecretString: { Ref: "AgentKey" },
|
|
805
903
|
},
|
|
806
|
-
},
|
|
904
|
+
},
|
|
807
905
|
// What ECS pulls the image, writes the logs and reads the key with.
|
|
808
906
|
ExecutionRole: {
|
|
809
907
|
Type: "AWS::IAM::Role",
|
|
@@ -839,7 +937,7 @@ function getAwsTemplate(setup) {
|
|
|
839
937
|
},
|
|
840
938
|
],
|
|
841
939
|
},
|
|
842
|
-
},
|
|
940
|
+
},
|
|
843
941
|
// The agent's own credentials: they can only assume the write role.
|
|
844
942
|
TaskRole: {
|
|
845
943
|
Type: "AWS::IAM::Role",
|
|
@@ -884,7 +982,7 @@ function getAwsTemplate(setup) {
|
|
|
884
982
|
},
|
|
885
983
|
],
|
|
886
984
|
},
|
|
887
|
-
},
|
|
985
|
+
},
|
|
888
986
|
// What a change runs as, assumed once per job with that job's session policy.
|
|
889
987
|
WriteRole: {
|
|
890
988
|
Type: "AWS::IAM::Role",
|
|
@@ -907,13 +1005,13 @@ function getAwsTemplate(setup) {
|
|
|
907
1005
|
},
|
|
908
1006
|
],
|
|
909
1007
|
},
|
|
910
|
-
},
|
|
1008
|
+
},
|
|
911
1009
|
// Nothing comes in: the agent asks OneUptime for its work.
|
|
912
1010
|
SecurityGroup: {
|
|
913
1011
|
Type: "AWS::EC2::SecurityGroup",
|
|
914
1012
|
Properties: {
|
|
915
1013
|
GroupDescription: "OneUptime Cloud AI agent: outbound only",
|
|
916
|
-
VpcId: { Ref: "VpcId" },
|
|
1014
|
+
VpcId: { Ref: isOwnNetwork ? "Vpc" : "VpcId" },
|
|
917
1015
|
SecurityGroupEgress: [
|
|
918
1016
|
{
|
|
919
1017
|
IpProtocol: "-1",
|
|
@@ -922,8 +1020,7 @@ function getAwsTemplate(setup) {
|
|
|
922
1020
|
},
|
|
923
1021
|
],
|
|
924
1022
|
},
|
|
925
|
-
},
|
|
926
|
-
TaskDefinition: {
|
|
1023
|
+
}, TaskDefinition: {
|
|
927
1024
|
Type: "AWS::ECS::TaskDefinition",
|
|
928
1025
|
Properties: {
|
|
929
1026
|
Family: CloudAiAgentNames_1.CLOUD_AI_AGENT_NAME,
|
|
@@ -955,10 +1052,9 @@ function getAwsTemplate(setup) {
|
|
|
955
1052
|
},
|
|
956
1053
|
],
|
|
957
1054
|
},
|
|
958
|
-
},
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
Properties: {
|
|
1055
|
+
}, Service: Object.assign(Object.assign({ Type: "AWS::ECS::Service" }, (isOwnNetwork
|
|
1056
|
+
? { DependsOn: ["InternetRoute", "SubnetRoutes"] }
|
|
1057
|
+
: {})), { Properties: {
|
|
962
1058
|
ServiceName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_SERVICE_NAME,
|
|
963
1059
|
Cluster: { Ref: "Cluster" },
|
|
964
1060
|
TaskDefinition: { Ref: "TaskDefinition" },
|
|
@@ -981,13 +1077,13 @@ function getAwsTemplate(setup) {
|
|
|
981
1077
|
* a NAT gateway. The security group still lets nothing in.
|
|
982
1078
|
*/
|
|
983
1079
|
AssignPublicIp: "ENABLED",
|
|
984
|
-
Subnets:
|
|
1080
|
+
Subnets: isOwnNetwork
|
|
1081
|
+
? [{ Ref: "Subnet" }]
|
|
1082
|
+
: { Ref: "SubnetIds" },
|
|
985
1083
|
SecurityGroups: [{ "Fn::GetAtt": ["SecurityGroup", "GroupId"] }],
|
|
986
1084
|
},
|
|
987
1085
|
},
|
|
988
|
-
},
|
|
989
|
-
},
|
|
990
|
-
},
|
|
1086
|
+
} }) }),
|
|
991
1087
|
Outputs: {
|
|
992
1088
|
WriteRoleArn: { Value: { "Fn::GetAtt": ["WriteRole", "Arn"] } },
|
|
993
1089
|
},
|
|
@@ -1032,6 +1128,249 @@ function writeAwsCommand(setup) {
|
|
|
1032
1128
|
"fi",
|
|
1033
1129
|
].join("\n");
|
|
1034
1130
|
}
|
|
1131
|
+
// ---- AWS: every account of an organization -----------------------------------------
|
|
1132
|
+
/*
|
|
1133
|
+
* EVERY ACCOUNT OF AN AWS ORGANIZATION, IN ONE COMMAND.
|
|
1134
|
+
*
|
|
1135
|
+
* An organization read by one cloud connection (its management account's
|
|
1136
|
+
* role, and the same role in each member account) has one OneUptime cloud
|
|
1137
|
+
* account per AWS account. Setting each one's agent up by hand would be one
|
|
1138
|
+
* command per account; this is one command for all of them, run in the
|
|
1139
|
+
* management account's CloudShell:
|
|
1140
|
+
*
|
|
1141
|
+
* - every agent runs the same template as one account's, with the same
|
|
1142
|
+
* least-privilege roles - the task role that may only assume the write
|
|
1143
|
+
* role, the write role holding the changes turned on - in a small
|
|
1144
|
+
* network of its own (AwsCloudAiAgentNetwork "own-vpc"), since a member
|
|
1145
|
+
* account's default VPC cannot be looked up from the management account
|
|
1146
|
+
* and is often gone;
|
|
1147
|
+
* - each account's agent still registers with a key of its own cloud
|
|
1148
|
+
* account's, made for it when the dialog asks for the organization's
|
|
1149
|
+
* keys, exactly as one account's is: a StackSet instance per member
|
|
1150
|
+
* account carries its key (AgentKey, NoEcho) and the OneUptime cloud
|
|
1151
|
+
* account it is for (CloudAccountId) as parameter overrides, so an
|
|
1152
|
+
* agent's key connects that account's agent and nothing else, and the
|
|
1153
|
+
* registration's checks hold it to that account as before - the key
|
|
1154
|
+
* names its cloud account, and the agent's own AWS account must be that
|
|
1155
|
+
* account's;
|
|
1156
|
+
* - the member accounts' stacks come from one StackSet
|
|
1157
|
+
* (AWS_CLOUD_AI_AGENT_STACK_SET_NAME, AwsStackSets), deployed one
|
|
1158
|
+
* account at a time with its own overrides; accounts added to the
|
|
1159
|
+
* organization later are not set up on their own (their keys do not
|
|
1160
|
+
* exist yet): run the command again once OneUptime reads them;
|
|
1161
|
+
* - the management account, which StackSets never deploys to, gets the
|
|
1162
|
+
* same template as a stack of its own, when it is one of the accounts;
|
|
1163
|
+
* - every agent runs in one Region, the StackSet's home: the one chosen,
|
|
1164
|
+
* or US East (N. Virginia) - not CloudShell's, so running the command
|
|
1165
|
+
* again from anywhere finds the StackSet it made.
|
|
1166
|
+
*
|
|
1167
|
+
* Only the accounts the command is given are set up: the dialog names the
|
|
1168
|
+
* ones it could make keys for, and says why it left any out.
|
|
1169
|
+
*/
|
|
1170
|
+
// The most accounts one command sets up: one StackSet operation each.
|
|
1171
|
+
exports.CLOUD_AI_AGENT_ORGANIZATION_MAX_ACCOUNTS = 500;
|
|
1172
|
+
// What the organization's command writes in the shell's directory.
|
|
1173
|
+
exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_TEMPLATE_FILE = `${CloudAiAgentNames_1.CLOUD_AI_AGENT_NAME}-organization.json`;
|
|
1174
|
+
exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_ACCOUNTS_FILE = `${CloudAiAgentNames_1.CLOUD_AI_AGENT_NAME}-accounts.txt`;
|
|
1175
|
+
// The shell variable the agents' Region is in: the StackSet's home too.
|
|
1176
|
+
const AGENT_REGION_VARIABLE = "AGENT_REGION";
|
|
1177
|
+
const AGENT_REGION = `"$${AGENT_REGION_VARIABLE}"`;
|
|
1178
|
+
function readOrganizationSetup(options) {
|
|
1179
|
+
if (!options || typeof options !== "object") {
|
|
1180
|
+
return "Say which accounts of the organization the agents are for.";
|
|
1181
|
+
}
|
|
1182
|
+
const management = typeof options.managementAccountId === "string"
|
|
1183
|
+
? options.managementAccountId.trim()
|
|
1184
|
+
: "";
|
|
1185
|
+
if (!ACCOUNT_ID_PATTERNS[CloudPlatform_1.CloudProvider.AWS].test(management)) {
|
|
1186
|
+
return `${JSON.stringify(management.slice(0, 64))} is not the AWS account id (12 digits) of the organization's management account.`;
|
|
1187
|
+
}
|
|
1188
|
+
const accounts = Array.isArray(options.accounts)
|
|
1189
|
+
? options.accounts
|
|
1190
|
+
: [];
|
|
1191
|
+
if (accounts.length === 0) {
|
|
1192
|
+
return "No account of the organization has a key for its agent yet: open Let AI fix problems again, which makes them.";
|
|
1193
|
+
}
|
|
1194
|
+
if (accounts.length > exports.CLOUD_AI_AGENT_ORGANIZATION_MAX_ACCOUNTS) {
|
|
1195
|
+
return `${accounts.length} accounts are more than one command sets up: at most ${exports.CLOUD_AI_AGENT_ORGANIZATION_MAX_ACCOUNTS}.`;
|
|
1196
|
+
}
|
|
1197
|
+
const setups = [];
|
|
1198
|
+
const seen = new Set();
|
|
1199
|
+
for (const account of accounts) {
|
|
1200
|
+
const setup = readSetup({
|
|
1201
|
+
provider: CloudPlatform_1.CloudProvider.AWS,
|
|
1202
|
+
oneuptimeUrl: options.oneuptimeUrl,
|
|
1203
|
+
agentKey: account && account.agentKey,
|
|
1204
|
+
cloudAccountId: account && account.cloudAccountId,
|
|
1205
|
+
accountId: account && account.accountId,
|
|
1206
|
+
fixesMode: options.fixesMode,
|
|
1207
|
+
enabledOperations: options.enabledOperations,
|
|
1208
|
+
protectedTargets: options.protectedTargets,
|
|
1209
|
+
requiredTag: options.requiredTag,
|
|
1210
|
+
region: options.region,
|
|
1211
|
+
imageTag: options.imageTag,
|
|
1212
|
+
});
|
|
1213
|
+
if (typeof setup === "string") {
|
|
1214
|
+
return setup;
|
|
1215
|
+
}
|
|
1216
|
+
if (seen.has(setup.accountId)) {
|
|
1217
|
+
return `AWS account ${setup.accountId} is named twice: each account gets one agent.`;
|
|
1218
|
+
}
|
|
1219
|
+
seen.add(setup.accountId);
|
|
1220
|
+
setups.push(setup);
|
|
1221
|
+
}
|
|
1222
|
+
return {
|
|
1223
|
+
managementAccountId: management,
|
|
1224
|
+
shared: setups[0],
|
|
1225
|
+
members: setups.filter((setup) => {
|
|
1226
|
+
return setup.accountId !== management;
|
|
1227
|
+
}),
|
|
1228
|
+
management: setups.find((setup) => {
|
|
1229
|
+
return setup.accountId === management;
|
|
1230
|
+
}) || null,
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
/*
|
|
1234
|
+
* What is wrong with the organization's options, in words the dialog can
|
|
1235
|
+
* show, or null when its command can be written.
|
|
1236
|
+
*/
|
|
1237
|
+
function describeCloudAiAgentOrganizationSetupProblem(options) {
|
|
1238
|
+
const setup = readOrganizationSetup(options);
|
|
1239
|
+
return typeof setup === "string" ? setup : null;
|
|
1240
|
+
}
|
|
1241
|
+
function checkedOrganizationSetup(options) {
|
|
1242
|
+
const setup = readOrganizationSetup(options);
|
|
1243
|
+
if (typeof setup === "string") {
|
|
1244
|
+
throw new BadDataException_1.default(setup);
|
|
1245
|
+
}
|
|
1246
|
+
return setup;
|
|
1247
|
+
}
|
|
1248
|
+
/*
|
|
1249
|
+
* The template every account of the organization runs, as JSON: one
|
|
1250
|
+
* account's, in a network of its own, with the agent's key and its
|
|
1251
|
+
* OneUptime cloud account as parameters (AgentKey, CloudAccountId). Also
|
|
1252
|
+
* what a team that keeps its StackSets in code deploys itself.
|
|
1253
|
+
*/
|
|
1254
|
+
function getAwsOrganizationCloudAiAgentTemplate(options) {
|
|
1255
|
+
return JSON.stringify(getAwsTemplate(checkedOrganizationSetup(options).shared, "own-vpc"));
|
|
1256
|
+
}
|
|
1257
|
+
// What the command says when it is pasted into another account's shell.
|
|
1258
|
+
function getCloudAiAgentOrganizationWrongAccountMessage(managementAccountId) {
|
|
1259
|
+
return `This command is for your AWS Organization's management account ${managementAccountId}, and this shell is signed in to another one. Open CloudShell in AWS account ${managementAccountId} and run the command there.`;
|
|
1260
|
+
}
|
|
1261
|
+
// What it prints once every account's stack is on its way.
|
|
1262
|
+
function getCloudAiAgentOrganizationStartedMessage(count) {
|
|
1263
|
+
return `The Cloud AI agents are starting in ${count} ${count === 1 ? "account" : "accounts"}. Each connects to OneUptime on its own, so there is nothing to paste back: the dialog shows which have.`;
|
|
1264
|
+
}
|
|
1265
|
+
// What it says of an account StackSets would not take.
|
|
1266
|
+
exports.CLOUD_AI_AGENT_ORGANIZATION_ACCOUNT_FAILED_MESSAGE = "StackSets did not take the agent's stack for this account; the other accounts go on.";
|
|
1267
|
+
// The line that sets AGENT_REGION: the Region chosen, or the StackSet's default home.
|
|
1268
|
+
function getOrganizationRegionLine(region) {
|
|
1269
|
+
return (0, AwsStackSets_1.getAwsStackSetHomeRegionLine)({
|
|
1270
|
+
variable: AGENT_REGION_VARIABLE,
|
|
1271
|
+
region,
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
/*
|
|
1275
|
+
* A Region the person chose, as the commands write it, or null: one that
|
|
1276
|
+
* is not an AWS Region is left out.
|
|
1277
|
+
*/
|
|
1278
|
+
function readOrganizationRegion(region) {
|
|
1279
|
+
const text = typeof region === "string" ? region.trim() : "";
|
|
1280
|
+
return text && REGION_PATTERNS[CloudPlatform_1.CloudProvider.AWS].test(text) ? text : null;
|
|
1281
|
+
}
|
|
1282
|
+
/*
|
|
1283
|
+
* AWS, in the management account's CloudShell: the template and the
|
|
1284
|
+
* accounts' keys written to files the shell does not expand, then - in the
|
|
1285
|
+
* management account, and only there - StackSets' access to the
|
|
1286
|
+
* organization, the StackSet, one instance per member account with its own
|
|
1287
|
+
* key, and the management account's own stack when it is one of the
|
|
1288
|
+
* accounts. The accounts' file is removed once read.
|
|
1289
|
+
*/
|
|
1290
|
+
function getAwsOrganizationCloudAiAgentSetupCommand(options) {
|
|
1291
|
+
const setup = checkedOrganizationSetup(options);
|
|
1292
|
+
const template = exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_TEMPLATE_FILE;
|
|
1293
|
+
const accountsFile = exports.AWS_CLOUD_AI_AGENT_ORGANIZATION_ACCOUNTS_FILE;
|
|
1294
|
+
const managementStack = `--stack-name ${CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_NAME} --region ${AGENT_REGION}`;
|
|
1295
|
+
const lines = [
|
|
1296
|
+
"ACCOUNT=$(aws sts get-caller-identity --query Account --output text)",
|
|
1297
|
+
`cat > ${template} <<'TEMPLATE'`,
|
|
1298
|
+
JSON.stringify(getAwsTemplate(setup.shared, "own-vpc")),
|
|
1299
|
+
"TEMPLATE",
|
|
1300
|
+
`cat > ${accountsFile} <<'ACCOUNTS'`,
|
|
1301
|
+
...setup.members.map((member) => {
|
|
1302
|
+
return `${member.accountId} ${member.cloudAccountId} ${member.agentKey}`;
|
|
1303
|
+
}),
|
|
1304
|
+
"ACCOUNTS",
|
|
1305
|
+
`if [ "$ACCOUNT" != ${setup.managementAccountId} ]; then`,
|
|
1306
|
+
` echo "${getCloudAiAgentOrganizationWrongAccountMessage(setup.managementAccountId)}"`,
|
|
1307
|
+
"else",
|
|
1308
|
+
` ${getOrganizationRegionLine(setup.shared.region)}`,
|
|
1309
|
+
];
|
|
1310
|
+
if (setup.members.length > 0) {
|
|
1311
|
+
lines.push(...(0, AwsStackSets_1.getAwsOrganizationStartLines)().map((line) => {
|
|
1312
|
+
return ` ${line}`;
|
|
1313
|
+
}), ` ${(0, AwsStackSets_1.getAwsStackSetDeployLine)({
|
|
1314
|
+
stackSetName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_SET_NAME,
|
|
1315
|
+
homeRegion: AGENT_REGION,
|
|
1316
|
+
templateFile: template,
|
|
1317
|
+
stackSetDescription: "OneUptime Cloud AI agent: the agent of each account of the organization, with its own key.",
|
|
1318
|
+
capabilities: "CAPABILITY_NAMED_IAM",
|
|
1319
|
+
parameters: [
|
|
1320
|
+
{ key: "AgentKey", value: null },
|
|
1321
|
+
{ key: "CloudAccountId", value: null },
|
|
1322
|
+
],
|
|
1323
|
+
autoDeployment: false,
|
|
1324
|
+
})}`,
|
|
1325
|
+
// One account a line: its id, its OneUptime cloud account, its key (fd 3, so no call reads them).
|
|
1326
|
+
" while read -r MEMBER CLOUD_ACCOUNT KEY <&3; do", ` ${(0, AwsStackSets_1.getAwsStackSetOneAccountLine)({
|
|
1327
|
+
stackSetName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_SET_NAME,
|
|
1328
|
+
homeRegion: AGENT_REGION,
|
|
1329
|
+
accountVariable: "MEMBER",
|
|
1330
|
+
region: AGENT_REGION,
|
|
1331
|
+
overrides: [
|
|
1332
|
+
{ key: "AgentKey", shellVariable: "KEY" },
|
|
1333
|
+
{ key: "CloudAccountId", shellVariable: "CLOUD_ACCOUNT" },
|
|
1334
|
+
],
|
|
1335
|
+
failedMessage: exports.CLOUD_AI_AGENT_ORGANIZATION_ACCOUNT_FAILED_MESSAGE,
|
|
1336
|
+
})}`, ` done 3< ${accountsFile}`);
|
|
1337
|
+
}
|
|
1338
|
+
// The management account, which StackSets never deploys to: a stack of its own.
|
|
1339
|
+
if (setup.management) {
|
|
1340
|
+
lines.push(` [ "$(aws cloudformation describe-stacks ${managementStack} --query "Stacks[0].StackStatus" --output text 2> /dev/null)" = ROLLBACK_COMPLETE ] && aws cloudformation delete-stack ${managementStack} && aws cloudformation wait stack-delete-complete ${managementStack}`, ` aws cloudformation deploy ${managementStack} --template-file ${template} --capabilities CAPABILITY_NAMED_IAM --no-fail-on-empty-changeset --parameter-overrides AgentKey=${(0, ShellWord_1.shellQuote)(setup.management.agentKey)} CloudAccountId=${setup.management.cloudAccountId} > /dev/null || echo "${setup.managementAccountId}: ${exports.CLOUD_AI_AGENT_ORGANIZATION_ACCOUNT_FAILED_MESSAGE}"`);
|
|
1341
|
+
}
|
|
1342
|
+
lines.push(` echo "${getCloudAiAgentOrganizationStartedMessage(setup.members.length + (setup.management ? 1 : 0))}"`, "fi", `rm -f ${accountsFile}`);
|
|
1343
|
+
return lines.join("\n");
|
|
1344
|
+
}
|
|
1345
|
+
/*
|
|
1346
|
+
* Where each member account's stack stands - its status and, for one that
|
|
1347
|
+
* failed, why - in the management account's CloudShell.
|
|
1348
|
+
*/
|
|
1349
|
+
function getAwsOrganizationCloudAiAgentInstancesCommand(region) {
|
|
1350
|
+
return [
|
|
1351
|
+
getOrganizationRegionLine(readOrganizationRegion(region)),
|
|
1352
|
+
(0, AwsStackSets_1.getAwsStackSetInstancesCommand)({
|
|
1353
|
+
stackSetName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_SET_NAME,
|
|
1354
|
+
homeRegion: AGENT_REGION,
|
|
1355
|
+
}),
|
|
1356
|
+
].join("\n");
|
|
1357
|
+
}
|
|
1358
|
+
/*
|
|
1359
|
+
* Every account's agent removed, in the management account's CloudShell:
|
|
1360
|
+
* each member account's stack and then the StackSet, then the management
|
|
1361
|
+
* account's own stack. Their keys stop working with Reset agent.
|
|
1362
|
+
*/
|
|
1363
|
+
function getAwsOrganizationCloudAiAgentRemoveCommand(region) {
|
|
1364
|
+
return [
|
|
1365
|
+
getOrganizationRegionLine(readOrganizationRegion(region)),
|
|
1366
|
+
...(0, AwsStackSets_1.getAwsStackSetDeleteLines)({
|
|
1367
|
+
stackSetName: CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_SET_NAME,
|
|
1368
|
+
homeRegion: AGENT_REGION,
|
|
1369
|
+
regions: AGENT_REGION,
|
|
1370
|
+
}),
|
|
1371
|
+
`aws cloudformation delete-stack --stack-name ${CloudAiAgentNames_1.AWS_CLOUD_AI_AGENT_STACK_NAME} --region ${AGENT_REGION}`,
|
|
1372
|
+
].join("\n");
|
|
1373
|
+
}
|
|
1035
1374
|
// ---- Azure ----------------------------------------------------------------------
|
|
1036
1375
|
/*
|
|
1037
1376
|
* Custom role names are unique in a whole tenant, so each subscription's
|
|
@@ -1041,11 +1380,29 @@ function writeAwsCommand(setup) {
|
|
|
1041
1380
|
function getAzureCloudAiAgentRoleName(subscriptionId) {
|
|
1042
1381
|
return `${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_ROLE_NAME} (${subscriptionId.trim().toLowerCase()})`;
|
|
1043
1382
|
}
|
|
1383
|
+
// The agent's own identity's role: the same, for the reads alone.
|
|
1384
|
+
function getAzureCloudAiAgentReaderRoleName(subscriptionId) {
|
|
1385
|
+
return `${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_READER_ROLE_NAME} (${subscriptionId.trim().toLowerCase()})`;
|
|
1386
|
+
}
|
|
1387
|
+
// An Azure RBAC action that only reads (Microsoft.Web/sites/read).
|
|
1388
|
+
function isAzureReadAction(action) {
|
|
1389
|
+
return action.toLowerCase().endsWith("/read");
|
|
1390
|
+
}
|
|
1391
|
+
/*
|
|
1392
|
+
* What the Azure agent's own identity holds: the reads of the changes
|
|
1393
|
+
* turned on (what a dry run reads, and Test connection's read of the
|
|
1394
|
+
* subscription), never a change - each change runs as the write identity
|
|
1395
|
+
* (getCloudAiAgentRolePermissions), signed in for that change. Sorted,
|
|
1396
|
+
* each once.
|
|
1397
|
+
*/
|
|
1398
|
+
function getAzureCloudAiAgentReaderPermissions(enabledOperations) {
|
|
1399
|
+
return getCloudAiAgentRolePermissions(CloudPlatform_1.CloudProvider.Azure, enabledOperations).filter(isAzureReadAction);
|
|
1400
|
+
}
|
|
1044
1401
|
/*
|
|
1045
1402
|
* The custom role, as `az role definition create` and `update` take it:
|
|
1046
|
-
* the operations' actions on the one subscription
|
|
1047
|
-
* agent's own resource group out of
|
|
1048
|
-
* protects it (getCloudAiAgentOwnTargets).
|
|
1403
|
+
* the operations' actions on the one subscription - what the write
|
|
1404
|
+
* identity holds. RBAC cannot leave the agent's own resource group out of
|
|
1405
|
+
* a subscription's role; the agent protects it (getCloudAiAgentOwnTargets).
|
|
1049
1406
|
*/
|
|
1050
1407
|
function getAzureCloudAiAgentRoleDefinition(options) {
|
|
1051
1408
|
return azureRoleDefinitionOf(checkedSetup(options, CloudPlatform_1.CloudProvider.Azure));
|
|
@@ -1062,16 +1419,54 @@ function azureRoleDefinitionOf(setup) {
|
|
|
1062
1419
|
AssignableScopes: [`/subscriptions/${setup.accountId}`],
|
|
1063
1420
|
};
|
|
1064
1421
|
}
|
|
1422
|
+
/*
|
|
1423
|
+
* The second custom role, the agent's own identity's: the reads of the
|
|
1424
|
+
* same operations, on the same subscription, and no change.
|
|
1425
|
+
*/
|
|
1426
|
+
function getAzureCloudAiAgentReaderRoleDefinition(options) {
|
|
1427
|
+
return azureReaderRoleDefinitionOf(checkedSetup(options, CloudPlatform_1.CloudProvider.Azure));
|
|
1428
|
+
}
|
|
1429
|
+
function azureReaderRoleDefinitionOf(setup) {
|
|
1430
|
+
return {
|
|
1431
|
+
Name: getAzureCloudAiAgentReaderRoleName(setup.accountId),
|
|
1432
|
+
IsCustom: true,
|
|
1433
|
+
Description: AZURE_READER_ROLE_DESCRIPTION,
|
|
1434
|
+
Actions: getAzureCloudAiAgentReaderPermissions(setup.operations),
|
|
1435
|
+
NotActions: [],
|
|
1436
|
+
DataActions: [],
|
|
1437
|
+
NotDataActions: [],
|
|
1438
|
+
AssignableScopes: [`/subscriptions/${setup.accountId}`],
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1065
1441
|
/*
|
|
1066
1442
|
* Azure, in Cloud Shell, in the subscription the command was written for
|
|
1067
1443
|
* (every call names it, so the shell's default subscription does not
|
|
1068
|
-
* matter):
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1444
|
+
* matter):
|
|
1445
|
+
*
|
|
1446
|
+
* - the two roles, created or updated: the changes', and their reads
|
|
1447
|
+
* alone;
|
|
1448
|
+
* - the resource group, the write identity (a user-assigned managed
|
|
1449
|
+
* identity, made once and the same identity every run after) and the
|
|
1450
|
+
* Container Apps environment, created when they are not there;
|
|
1451
|
+
* - the app, which `az containerapp create` writes whole each time - its
|
|
1452
|
+
* image, secret, variables and size - with its own system-assigned
|
|
1453
|
+
* identity, and the write identity attached to it and to nothing else:
|
|
1454
|
+
* Azure gives a managed identity's token only to code running where the
|
|
1455
|
+
* identity is attached, so this app is the only place a token of the
|
|
1456
|
+
* write identity can come from;
|
|
1457
|
+
* - the reads' role for the app's own identity, and the changes' role
|
|
1458
|
+
* for the write identity, on the subscription (`az role assignment
|
|
1459
|
+
* create` is a no-op when the assignment is there); and the changes'
|
|
1460
|
+
* role taken from the app's own identity, which held it in an agent set
|
|
1461
|
+
* up before.
|
|
1462
|
+
*
|
|
1463
|
+
* The roles are assigned by their ids and the identities by their object
|
|
1464
|
+
* ids, which needs no lookup of a role or an identity made a minute
|
|
1465
|
+
* before. Nothing grants the agent's own identity anything on the write
|
|
1466
|
+
* identity: neither Managed Identity Operator, which would let it attach
|
|
1467
|
+
* the identity to a resource it may write, nor a federated credential,
|
|
1468
|
+
* which Azure lets a user-assigned identity hold only for an issuer outside
|
|
1469
|
+
* Entra ID.
|
|
1075
1470
|
*/
|
|
1076
1471
|
function getAzureCloudAiAgentSetupCommand(options) {
|
|
1077
1472
|
return writeAzureCommand(checkedSetup(options, CloudPlatform_1.CloudProvider.Azure));
|
|
@@ -1081,30 +1476,49 @@ function writeAzureCommand(setup) {
|
|
|
1081
1476
|
const location = setup.region;
|
|
1082
1477
|
const subscription = '--subscription "$SUBSCRIPTION"';
|
|
1083
1478
|
const group = `--resource-group ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP}`;
|
|
1479
|
+
const scope = '--scope "/subscriptions/$SUBSCRIPTION"';
|
|
1480
|
+
const writeIdentity = `--name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_WRITE_IDENTITY_NAME} ${group}`;
|
|
1084
1481
|
const variables = environmentOf(setup).map((variable) => {
|
|
1085
1482
|
return variable.isSecret
|
|
1086
1483
|
? `${variable.name}=secretref:${exports.AZURE_CLOUD_AI_AGENT_SECRET_NAME}`
|
|
1087
1484
|
: `${variable.name}=${(0, ShellWord_1.shellQuote)(variable.value)}`;
|
|
1088
1485
|
});
|
|
1486
|
+
// The same flags whether a role is created or updated.
|
|
1487
|
+
const role = (definition) => {
|
|
1488
|
+
return `${subscription} --role-definition "$${definition}" --query name --output tsv`;
|
|
1489
|
+
};
|
|
1089
1490
|
return [
|
|
1090
1491
|
`SUBSCRIPTION=${setup.accountId}`,
|
|
1091
1492
|
`DEFINITION=${(0, ShellWord_1.shellQuote)(JSON.stringify(azureRoleDefinitionOf(setup)))}`,
|
|
1493
|
+
`READER_DEFINITION=${(0, ShellWord_1.shellQuote)(JSON.stringify(azureReaderRoleDefinitionOf(setup)))}`,
|
|
1092
1494
|
"az extension add --name containerapp --upgrade -y --only-show-errors",
|
|
1093
|
-
`ROLE=$(az role definition create ${
|
|
1495
|
+
`ROLE=$(az role definition create ${role("DEFINITION")} 2> /dev/null || az role definition update ${role("DEFINITION")})`,
|
|
1496
|
+
`READER_ROLE=$(az role definition create ${role("READER_DEFINITION")} 2> /dev/null || az role definition update ${role("READER_DEFINITION")})`,
|
|
1094
1497
|
`az provider register ${subscription} --namespace Microsoft.App --wait`,
|
|
1498
|
+
`az provider register ${subscription} --namespace Microsoft.ManagedIdentity --wait`,
|
|
1095
1499
|
`az group show ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP} > /dev/null 2>&1 || az group create ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP} --location ${location} --output none`,
|
|
1500
|
+
// The identity each change runs as: made the first time, the same one every time after.
|
|
1501
|
+
`WRITE_PRINCIPAL=$(az identity show ${subscription} ${writeIdentity} --query principalId --output tsv 2> /dev/null || az identity create ${subscription} ${writeIdentity} --location ${location} --query principalId --output tsv)`,
|
|
1096
1502
|
`az containerapp env show ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME} ${group} > /dev/null 2>&1 || az containerapp env create ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME} ${group} --location ${location} --logs-destination none --output none`,
|
|
1097
|
-
|
|
1503
|
+
/*
|
|
1504
|
+
* The app with its own identity and the write identity, their roles,
|
|
1505
|
+
* and the line that says so: each only when the one before worked.
|
|
1506
|
+
*/
|
|
1098
1507
|
[
|
|
1099
|
-
`az containerapp create ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_APP_NAME} ${group}`,
|
|
1508
|
+
`[ -n "$WRITE_PRINCIPAL" ] && az containerapp create ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_APP_NAME} ${group}`,
|
|
1100
1509
|
`--environment ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME} --image ${setup.image}`,
|
|
1101
|
-
`--cpu ${size.vcpu} --memory ${size.memoryGiB}Gi --min-replicas 1 --max-replicas 1
|
|
1510
|
+
`--cpu ${size.vcpu} --memory ${size.memoryGiB}Gi --min-replicas 1 --max-replicas 1`,
|
|
1511
|
+
`--system-assigned --user-assigned ${(0, CloudAiAgentNames_1.getAzureCloudAiAgentWriteIdentityId)(setup.accountId)}`,
|
|
1102
1512
|
`--secrets ${exports.AZURE_CLOUD_AI_AGENT_SECRET_NAME}=${(0, ShellWord_1.shellQuote)(setup.agentKey)}`,
|
|
1103
1513
|
`--env-vars ${variables.join(" ")}`,
|
|
1104
1514
|
"--output none &&",
|
|
1105
1515
|
].join(" "),
|
|
1106
1516
|
` PRINCIPAL=$(az containerapp show ${subscription} --name ${CloudAiAgentNames_1.AZURE_CLOUD_AI_AGENT_APP_NAME} ${group} --query identity.principalId --output tsv) &&`,
|
|
1107
|
-
|
|
1517
|
+
// The agent's own identity reads; the write identity holds the changes.
|
|
1518
|
+
` az role assignment create ${subscription} --assignee-object-id "$PRINCIPAL" --assignee-principal-type ServicePrincipal --role "$READER_ROLE" ${scope} --output none &&`,
|
|
1519
|
+
` az role assignment create ${subscription} --assignee-object-id "$WRITE_PRINCIPAL" --assignee-principal-type ServicePrincipal --role "$ROLE" ${scope} --output none &&`,
|
|
1520
|
+
// An agent set up before held the changes' role itself: no longer.
|
|
1521
|
+
` { az role assignment delete ${subscription} --assignee "$PRINCIPAL" --role "$ROLE" ${scope} --output none 2> /dev/null || true; } &&`,
|
|
1108
1522
|
` echo "${exports.CLOUD_AI_AGENT_STARTED_MESSAGE}"`,
|
|
1109
1523
|
].join("\n");
|
|
1110
1524
|
}
|
|
@@ -1114,6 +1528,7 @@ const GCP_PERMISSION_APIS = {
|
|
|
1114
1528
|
run: "run.googleapis.com",
|
|
1115
1529
|
compute: "compute.googleapis.com",
|
|
1116
1530
|
cloudsql: "sqladmin.googleapis.com",
|
|
1531
|
+
appengine: "appengine.googleapis.com",
|
|
1117
1532
|
};
|
|
1118
1533
|
/*
|
|
1119
1534
|
* The APIs the Google Cloud command turns on: what the agent runs on
|