@oneuptime/common 14.0.104 → 14.0.106
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/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 +8 -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/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 +2 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +2 -0
- package/Models/DatabaseModels/CloudAccount.js +48 -0
- package/Models/DatabaseModels/CloudBudget.d.mts +1 -0
- package/Models/DatabaseModels/CloudBudget.d.ts +1 -0
- package/Models/DatabaseModels/CloudBudget.js +38 -3
- 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/CloudCostRecommendation.d.mts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.d.ts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.js +30 -2
- package/Models/DatabaseModels/CodeRepository.js +23 -6
- 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/DetectionRule.js +8 -7
- 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 +24 -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/NetworkDeviceDiscoveryImport.js +11 -6
- 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/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +54 -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/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 +6 -0
- package/Models/DatabaseModels/RumApplication.d.ts +6 -0
- package/Models/DatabaseModels/RumApplication.js +202 -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/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.js +35 -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 +16 -0
- package/Types/AI/AIActionWords.d.ts +16 -0
- package/Types/AI/AIActionWords.js +105 -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 +49 -0
- package/Types/AI/AIChatRecordSeen.d.ts +49 -0
- package/Types/AI/AIChatRecordSeen.js +337 -0
- package/Types/AI/AIChatRecordSeen.mjs +12 -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/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessApi.js +6 -1
- package/Types/AI/ResourceAiAccessApi.mjs +1 -0
- package/Types/AI/ResourceAiAccessPermissions.d.mts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.d.ts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.js +13 -0
- package/Types/AI/ResourceAiAccessPermissions.mjs +2 -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 +3 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +3 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.js +16 -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/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/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 +30 -0
- package/Types/Cloud/CloudCost.d.ts +30 -0
- package/Types/Cloud/CloudCost.js +163 -1
- package/Types/Cloud/CloudCost.mjs +8 -0
- package/Types/Cloud/CloudCostAnomaly.d.mts +34 -0
- package/Types/Cloud/CloudCostAnomaly.d.ts +34 -0
- package/Types/Cloud/CloudCostAnomaly.js +236 -0
- package/Types/Cloud/CloudCostAnomaly.mjs +18 -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 +33 -2
- package/Types/Cloud/CloudLogGroups.d.ts +33 -2
- package/Types/Cloud/CloudLogGroups.js +245 -8
- package/Types/Cloud/CloudLogGroups.mjs +12 -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/CloudPlatform.js +9 -8
- 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/CloudRightSizing.d.mts +140 -0
- package/Types/Cloud/CloudRightSizing.d.ts +140 -0
- package/Types/Cloud/CloudRightSizing.js +867 -0
- package/Types/Cloud/CloudRightSizing.mjs +53 -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/CloudAiAgentKey.d.mts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.d.ts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.js +289 -0
- package/Types/CloudConnection/CloudAiAgentKey.mjs +18 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +38 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +38 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +580 -94
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +20 -1
- 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 +50 -1
- package/Types/CloudConnection/CloudStream.d.ts +50 -1
- package/Types/CloudConnection/CloudStream.js +333 -23
- package/Types/CloudConnection/CloudStream.mjs +35 -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 +5 -5
- package/Types/CloudConnection/CloudStreamTemplate.d.ts +5 -5
- package/Types/CloudConnection/CloudStreamTemplate.js +99 -26
- package/Types/CloudConnection/CloudStreamTemplate.mjs +2 -0
- 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 +106 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +106 -0
- package/Types/CodeRepository/CodeFileSeen.js +523 -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/DataObservabilityApiTypes.d.mts +17 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +17 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +5 -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/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Database/EnableAuditLog.js +3 -0
- package/Types/Date.d.mts +9 -0
- package/Types/Date.d.ts +9 -0
- package/Types/Date.js +57 -8
- package/Types/DateLanguage.d.mts +3 -0
- package/Types/DateLanguage.d.ts +3 -0
- package/Types/DateLanguage.js +59 -10
- package/Types/DateLanguage.mjs +3 -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/InstallScripts/InstallScripts.js +1 -1
- 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 +64 -0
- 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/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/MonitorEvaluationDetails.d.mts +80 -0
- package/Types/Monitor/MonitorEvaluationDetails.d.ts +80 -0
- package/Types/Monitor/MonitorEvaluationDetails.js +41 -0
- package/Types/Monitor/MonitorEvaluationDetails.mjs +3 -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/MonitorSummarySnapshot.d.mts +1 -0
- package/Types/Monitor/MonitorSummarySnapshot.d.ts +1 -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/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/DiscoveredDevice.d.mts +105 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +105 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +407 -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/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 +28 -0
- package/Types/Permission.d.ts +28 -0
- package/Types/Permission.js +288 -0
- 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 +10 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +10 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +42 -3
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +7 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +4 -2
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +4 -2
- package/Types/ResourceAiAgent/ResourceAiAccess.js +25 -7
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +3 -1
- 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/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 +6 -0
- package/Types/Rum/SessionReplay.d.ts +6 -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/SecurityCase/SecurityCaseContext.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseContext.d.ts +2 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +11 -1
- package/Types/SecurityCase/SecurityConnection.d.ts +11 -1
- package/Types/SecurityEvent/RealTimeDetection.d.mts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.d.ts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.js +75 -25
- package/Types/SecurityEvent/RealTimeDetection.mjs +3 -3
- 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/SecurityPlaybook/SecurityPlaybookAction.d.mts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +22 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +96 -39
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +174 -33
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +7 -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/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/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 +79 -0
- package/Types/Telemetry/TelemetryUsage.d.ts +79 -0
- package/Types/Telemetry/TelemetryUsage.js +176 -0
- package/Types/Telemetry/TelemetryUsage.mjs +22 -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/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/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 +136 -3
- package/Utils/AI/InvestigationReport.mjs +4 -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/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/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/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/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/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/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/SecurityCaseMarkdown.d.mts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +10 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +1 -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/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 +99 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +99 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +398 -0
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +25 -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 +27 -0
- package/Utils/Slo/SloFeedMarkdown.d.ts +27 -0
- package/Utils/Slo/SloFeedMarkdown.js +118 -3
- package/Utils/Slo/SloFeedMarkdown.mjs +2 -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/Telemetry/CloudChangeTitle.d.mts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.d.ts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.js +315 -3
- package/Utils/Telemetry/CloudChangeTitle.mjs +13 -0
- 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/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/package.json +1 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ONE TEMPLATE IN EVERY ACCOUNT OF AN AWS ORGANIZATION, IN ONE COMMAND.
|
|
4
|
+
*
|
|
5
|
+
* What OneUptime sets up in a single AWS account with one stack - the
|
|
6
|
+
* Cloud AI agent (CloudAiAgentSetupCommands), a CloudWatch stream
|
|
7
|
+
* (CloudStreamTemplate) - it sets up in every account of an AWS
|
|
8
|
+
* Organization with a CloudFormation StackSet, from the organization's
|
|
9
|
+
* management account in AWS CloudShell. These are the shell lines both
|
|
10
|
+
* write, so the two StackSets paths are one:
|
|
11
|
+
*
|
|
12
|
+
* - StackSets' trusted access to the organization turned on (nothing
|
|
13
|
+
* happens when it is on already), and the organization's root, which
|
|
14
|
+
* every account is under;
|
|
15
|
+
* - the StackSet, created or - run again - updated with the template as
|
|
16
|
+
* it stands now, SERVICE_MANAGED (StackSets makes the roles it deploys
|
|
17
|
+
* with in every member account), with managed execution, so the
|
|
18
|
+
* operations the command starts queue rather than fail on each other;
|
|
19
|
+
* - stack instances: in every account under the organization's root, in
|
|
20
|
+
* the Regions given - or, for a template whose parameters differ by
|
|
21
|
+
* account (each Cloud AI agent's key is its own account's), one account
|
|
22
|
+
* at a time with its own parameter overrides. An instance that is there
|
|
23
|
+
* already is updated with its new values, one that is not is created.
|
|
24
|
+
*
|
|
25
|
+
* A StackSet lives in one Region, its home: every call names it (--region),
|
|
26
|
+
* so the command finds the same StackSet whichever Region CloudShell runs
|
|
27
|
+
* in. A value a command takes - a parameter's - is written in single quotes
|
|
28
|
+
* the shell never reads inside (quoteForShell), or names a shell variable
|
|
29
|
+
* the command set (expanded inside double quotes), and every name is a
|
|
30
|
+
* constant of OneUptime's own. Nothing here runs anything: these are lines
|
|
31
|
+
* of text the commands join. StackSets deploys to the management account's
|
|
32
|
+
* members only, never to the management account itself: a command that
|
|
33
|
+
* needs it there deploys a stack of its own beside the StackSet.
|
|
34
|
+
*/
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AWS_STACK_SET_OPERATION_UNFINISHED = exports.AWS_STACK_SET_OPERATION_PREFERENCES = exports.AWS_STACK_SET_PLACEHOLDER = exports.AWS_STACK_SET_DEFAULT_HOME_REGION = exports.AWS_ORGANIZATION_ROOT_VARIABLE = void 0;
|
|
37
|
+
exports.quoteForShell = quoteForShell;
|
|
38
|
+
exports.formatAwsStackSetParameters = formatAwsStackSetParameters;
|
|
39
|
+
exports.getAwsStackSetHomeRegionLine = getAwsStackSetHomeRegionLine;
|
|
40
|
+
exports.getAwsOrganizationStartLines = getAwsOrganizationStartLines;
|
|
41
|
+
exports.getAwsStackSetDeployLine = getAwsStackSetDeployLine;
|
|
42
|
+
exports.getAwsStackSetEveryAccountLine = getAwsStackSetEveryAccountLine;
|
|
43
|
+
exports.getAwsStackSetOneAccountLine = getAwsStackSetOneAccountLine;
|
|
44
|
+
exports.getAwsStackSetInstancesCommand = getAwsStackSetInstancesCommand;
|
|
45
|
+
exports.getAwsStackSetDeleteLines = getAwsStackSetDeleteLines;
|
|
46
|
+
// A value in single quotes for the shell: what it holds is never read by it.
|
|
47
|
+
function quoteForShell(value) {
|
|
48
|
+
return `'${value.split("'").join("'\\''")}'`;
|
|
49
|
+
}
|
|
50
|
+
/*
|
|
51
|
+
* ParameterKey=K,ParameterValue=V (or UsePreviousValue=true), each one
|
|
52
|
+
* word for the shell.
|
|
53
|
+
*/
|
|
54
|
+
function formatAwsStackSetParameters(parameters) {
|
|
55
|
+
return parameters
|
|
56
|
+
.map((parameter) => {
|
|
57
|
+
if (parameter.shellVariable) {
|
|
58
|
+
return `"ParameterKey=${parameter.key},ParameterValue=$${parameter.shellVariable}"`;
|
|
59
|
+
}
|
|
60
|
+
return parameter.value === null
|
|
61
|
+
? `ParameterKey=${parameter.key},UsePreviousValue=true`
|
|
62
|
+
: quoteForShell(`ParameterKey=${parameter.key},ParameterValue=${parameter.value}`);
|
|
63
|
+
})
|
|
64
|
+
.join(" ");
|
|
65
|
+
}
|
|
66
|
+
// The shell variable the organization's root id is read into.
|
|
67
|
+
exports.AWS_ORGANIZATION_ROOT_VARIABLE = "ORGANIZATION_ROOT";
|
|
68
|
+
/*
|
|
69
|
+
* The Region a StackSet lives in when none is given: US East (N.
|
|
70
|
+
* Virginia), the same whichever Region CloudShell runs in, so running the
|
|
71
|
+
* command again finds the StackSet it made - CloudShell's own only in a
|
|
72
|
+
* partition without that Region (AWS GovCloud, China).
|
|
73
|
+
*/
|
|
74
|
+
exports.AWS_STACK_SET_DEFAULT_HOME_REGION = "us-east-1";
|
|
75
|
+
// The line that sets `variable` to the StackSet's home Region.
|
|
76
|
+
function getAwsStackSetHomeRegionLine(data) {
|
|
77
|
+
if (data.region) {
|
|
78
|
+
return `${data.variable}=${data.region}`;
|
|
79
|
+
}
|
|
80
|
+
return `${data.variable}=${exports.AWS_STACK_SET_DEFAULT_HOME_REGION}; case "\${AWS_REGION:-}" in us-gov-*|cn-*) ${data.variable}="$AWS_REGION" ;; esac`;
|
|
81
|
+
}
|
|
82
|
+
/*
|
|
83
|
+
* Trusted access for StackSets, then the organization's root: every
|
|
84
|
+
* account of the organization is under it.
|
|
85
|
+
*/
|
|
86
|
+
function getAwsOrganizationStartLines() {
|
|
87
|
+
return [
|
|
88
|
+
"aws cloudformation activate-organizations-access > /dev/null 2>&1 || true",
|
|
89
|
+
getAwsOrganizationRootLine(),
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
function getAwsOrganizationRootLine() {
|
|
93
|
+
return `${exports.AWS_ORGANIZATION_ROOT_VARIABLE}=$(aws organizations list-roots --query "Roots[0].Id" --output text)`;
|
|
94
|
+
}
|
|
95
|
+
/*
|
|
96
|
+
* The value a per-account parameter has in the StackSet itself: what no
|
|
97
|
+
* instance keeps, since each has its own override. A Cloud AI agent that
|
|
98
|
+
* starts with it registers nothing (no key reads like it).
|
|
99
|
+
*/
|
|
100
|
+
exports.AWS_STACK_SET_PLACEHOLDER = "set-per-account";
|
|
101
|
+
/*
|
|
102
|
+
* Every account at once, and an account that fails does not stop the
|
|
103
|
+
* others: StackSets' own default stops an operation at its first failure.
|
|
104
|
+
*/
|
|
105
|
+
exports.AWS_STACK_SET_OPERATION_PREFERENCES = "FailureTolerancePercentage=100,MaxConcurrentPercentage=100,RegionConcurrencyType=PARALLEL";
|
|
106
|
+
/*
|
|
107
|
+
* The StackSet, created with this template or - when it is there already -
|
|
108
|
+
* updated to it. autoDeployment: accounts added to the organization later
|
|
109
|
+
* get a stack instance of their own, with the StackSet's own parameters
|
|
110
|
+
* (only for a template whose parameters are the same in every account).
|
|
111
|
+
*/
|
|
112
|
+
function getAwsStackSetDeployLine(data) {
|
|
113
|
+
const stackSet = `--stack-set-name ${data.stackSetName} --region ${data.homeRegion} --template-body file://${data.templateFile} --description ${quoteForShell(data.stackSetDescription)} --capabilities ${data.capabilities}`;
|
|
114
|
+
const createParameters = formatAwsStackSetParameters(data.parameters.map((parameter) => {
|
|
115
|
+
// A StackSet made now has no value to keep: the placeholder.
|
|
116
|
+
return parameter.value === null && !parameter.shellVariable
|
|
117
|
+
? { key: parameter.key, value: exports.AWS_STACK_SET_PLACEHOLDER }
|
|
118
|
+
: parameter;
|
|
119
|
+
}));
|
|
120
|
+
const updateParameters = formatAwsStackSetParameters(data.parameters);
|
|
121
|
+
const autoDeployment = data.autoDeployment
|
|
122
|
+
? "Enabled=true,RetainStacksOnAccountRemoval=false"
|
|
123
|
+
: "Enabled=false";
|
|
124
|
+
return [
|
|
125
|
+
`aws cloudformation create-stack-set ${stackSet} --permission-model SERVICE_MANAGED --auto-deployment ${autoDeployment} --managed-execution Active=true${createParameters ? ` --parameters ${createParameters}` : ""} > /dev/null 2>&1`,
|
|
126
|
+
`aws cloudformation update-stack-set ${stackSet} --auto-deployment ${autoDeployment} --managed-execution Active=true --operation-preferences ${exports.AWS_STACK_SET_OPERATION_PREFERENCES}${updateParameters ? ` --parameters ${updateParameters}` : ""} > /dev/null`,
|
|
127
|
+
].join(" || ");
|
|
128
|
+
}
|
|
129
|
+
/*
|
|
130
|
+
* Instances in every account under the organization's root, in these
|
|
131
|
+
* Regions (a shell word list, such as us-east-1 eu-west-1): created, or
|
|
132
|
+
* updated where they are there already.
|
|
133
|
+
*/
|
|
134
|
+
function getAwsStackSetEveryAccountLine(data) {
|
|
135
|
+
const targets = `--stack-set-name ${data.stackSetName} --region ${data.homeRegion} --deployment-targets OrganizationalUnitIds="$${exports.AWS_ORGANIZATION_ROOT_VARIABLE}" --regions ${data.regions} --operation-preferences ${exports.AWS_STACK_SET_OPERATION_PREFERENCES}`;
|
|
136
|
+
return [
|
|
137
|
+
`aws cloudformation create-stack-instances ${targets} > /dev/null 2>&1`,
|
|
138
|
+
`aws cloudformation update-stack-instances ${targets} > /dev/null`,
|
|
139
|
+
].join(" || ");
|
|
140
|
+
}
|
|
141
|
+
/*
|
|
142
|
+
* The instance of one account - the shell variable `accountVariable` holds
|
|
143
|
+
* its id - in one Region, with that account's own parameter overrides
|
|
144
|
+
* (values name shell variables, which are expanded inside double quotes):
|
|
145
|
+
* updated where it is there already, created where it is not. StackSets
|
|
146
|
+
* reaches a single account of the organization as the intersection of the
|
|
147
|
+
* root and that account. A call StackSets refuses is said with the
|
|
148
|
+
* account's id, and the next account goes on.
|
|
149
|
+
*/
|
|
150
|
+
function getAwsStackSetOneAccountLine(data) {
|
|
151
|
+
const targets = `--stack-set-name ${data.stackSetName} --region ${data.homeRegion} --deployment-targets OrganizationalUnitIds="$${exports.AWS_ORGANIZATION_ROOT_VARIABLE}",Accounts="$${data.accountVariable}",AccountFilterType=INTERSECTION --regions ${data.region}`;
|
|
152
|
+
const overrides = formatAwsStackSetParameters(data.overrides.map((override) => {
|
|
153
|
+
return {
|
|
154
|
+
key: override.key,
|
|
155
|
+
value: null,
|
|
156
|
+
shellVariable: override.shellVariable,
|
|
157
|
+
};
|
|
158
|
+
}));
|
|
159
|
+
return `aws cloudformation update-stack-instances ${targets} --parameter-overrides ${overrides} > /dev/null 2>&1 || aws cloudformation create-stack-instances ${targets} --parameter-overrides ${overrides} > /dev/null || echo "$${data.accountVariable}: ${data.failedMessage}"`;
|
|
160
|
+
}
|
|
161
|
+
/*
|
|
162
|
+
* Where each account's stack stands - its Region, its status and, for one
|
|
163
|
+
* that failed, why - for one who wants to see.
|
|
164
|
+
*/
|
|
165
|
+
function getAwsStackSetInstancesCommand(data) {
|
|
166
|
+
return `aws cloudformation list-stack-instances --stack-set-name ${data.stackSetName} --region ${data.homeRegion} --query "Summaries[].[Account,Region,StackInstanceStatus.DetailedStatus,StatusReason]" --output table`;
|
|
167
|
+
}
|
|
168
|
+
// The statuses of a StackSet operation that is not over yet.
|
|
169
|
+
exports.AWS_STACK_SET_OPERATION_UNFINISHED = [
|
|
170
|
+
"QUEUED",
|
|
171
|
+
"RUNNING",
|
|
172
|
+
"STOPPING",
|
|
173
|
+
];
|
|
174
|
+
/*
|
|
175
|
+
* Stopping for good: every instance under the root removed (their stacks
|
|
176
|
+
* deleted), then the StackSet. Removing instances is an operation StackSets
|
|
177
|
+
* runs in the background: the StackSet can only go once they are gone, so
|
|
178
|
+
* the command waits for the operation first.
|
|
179
|
+
*/
|
|
180
|
+
function getAwsStackSetDeleteLines(data) {
|
|
181
|
+
const stackSet = `--stack-set-name ${data.stackSetName} --region ${data.homeRegion}`;
|
|
182
|
+
return [
|
|
183
|
+
getAwsOrganizationRootLine(),
|
|
184
|
+
`OPERATION=$(aws cloudformation delete-stack-instances ${stackSet} --deployment-targets OrganizationalUnitIds="$${exports.AWS_ORGANIZATION_ROOT_VARIABLE}" --regions ${data.regions} --no-retain-stacks --operation-preferences ${exports.AWS_STACK_SET_OPERATION_PREFERENCES} --query OperationId --output text)`,
|
|
185
|
+
`while [ -n "$OPERATION" ]; do case "$(aws cloudformation describe-stack-set-operation ${stackSet} --operation-id "$OPERATION" --query StackSetOperation.Status --output text)" in ${exports.AWS_STACK_SET_OPERATION_UNFINISHED.join("|")}) sleep 10 ;; *) break ;; esac; done`,
|
|
186
|
+
`aws cloudformation delete-stack-set ${stackSet}`,
|
|
187
|
+
];
|
|
188
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import commonJsModule from "./AwsStackSets.js";
|
|
2
|
+
export const AWS_ORGANIZATION_ROOT_VARIABLE = commonJsModule.AWS_ORGANIZATION_ROOT_VARIABLE;
|
|
3
|
+
export const AWS_STACK_SET_DEFAULT_HOME_REGION = commonJsModule.AWS_STACK_SET_DEFAULT_HOME_REGION;
|
|
4
|
+
export const AWS_STACK_SET_OPERATION_PREFERENCES = commonJsModule.AWS_STACK_SET_OPERATION_PREFERENCES;
|
|
5
|
+
export const AWS_STACK_SET_OPERATION_UNFINISHED = commonJsModule.AWS_STACK_SET_OPERATION_UNFINISHED;
|
|
6
|
+
export const AWS_STACK_SET_PLACEHOLDER = commonJsModule.AWS_STACK_SET_PLACEHOLDER;
|
|
7
|
+
export const formatAwsStackSetParameters = commonJsModule.formatAwsStackSetParameters;
|
|
8
|
+
export const getAwsOrganizationStartLines = commonJsModule.getAwsOrganizationStartLines;
|
|
9
|
+
export const getAwsStackSetDeleteLines = commonJsModule.getAwsStackSetDeleteLines;
|
|
10
|
+
export const getAwsStackSetDeployLine = commonJsModule.getAwsStackSetDeployLine;
|
|
11
|
+
export const getAwsStackSetEveryAccountLine = commonJsModule.getAwsStackSetEveryAccountLine;
|
|
12
|
+
export const getAwsStackSetHomeRegionLine = commonJsModule.getAwsStackSetHomeRegionLine;
|
|
13
|
+
export const getAwsStackSetInstancesCommand = commonJsModule.getAwsStackSetInstancesCommand;
|
|
14
|
+
export const getAwsStackSetOneAccountLine = commonJsModule.getAwsStackSetOneAccountLine;
|
|
15
|
+
export const quoteForShell = commonJsModule.quoteForShell;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const CLOUD_AI_AGENT_KEY_PREFIX: string;
|
|
2
|
+
export declare const CLOUD_AI_AGENT_KEY_SECRET_LENGTH: number;
|
|
3
|
+
export declare const CLOUD_AI_AGENT_KEY_MAX_LENGTH: number;
|
|
4
|
+
export declare const CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS: number;
|
|
5
|
+
export declare const CLOUD_AI_AGENT_MAX_PENDING_KEYS: number;
|
|
6
|
+
export declare function buildCloudAiAgentKey(data: {
|
|
7
|
+
cloudAccountId: string;
|
|
8
|
+
secret: string;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function parseCloudAiAgentKey(value: unknown): {
|
|
11
|
+
cloudAccountId: string;
|
|
12
|
+
secret: string;
|
|
13
|
+
} | null;
|
|
14
|
+
export declare function isCloudAiAgentKey(value: unknown): boolean;
|
|
15
|
+
export interface CloudAiAgentKeyRecord {
|
|
16
|
+
hash: string;
|
|
17
|
+
madeAt: string;
|
|
18
|
+
madeByUserId?: string | undefined;
|
|
19
|
+
firstUsedAt?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface CloudAiAgentKeys {
|
|
22
|
+
current: CloudAiAgentKeyRecord | null;
|
|
23
|
+
pending: Array<CloudAiAgentKeyRecord>;
|
|
24
|
+
isOwnKeyRequired: boolean;
|
|
25
|
+
revokedAt?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export type CloudAiAgentKeyMatch = "current" | "pending";
|
|
28
|
+
export declare function readCloudAiAgentKeys(value: unknown): CloudAiAgentKeys | null;
|
|
29
|
+
export declare function isPendingCloudAiAgentKeyUsable(data: {
|
|
30
|
+
record: CloudAiAgentKeyRecord;
|
|
31
|
+
now: Date;
|
|
32
|
+
}): boolean;
|
|
33
|
+
export declare function getLiveCloudAiAgentKeyHashes(data: {
|
|
34
|
+
keys: CloudAiAgentKeys | null;
|
|
35
|
+
now: Date;
|
|
36
|
+
}): Array<{
|
|
37
|
+
hash: string;
|
|
38
|
+
match: CloudAiAgentKeyMatch;
|
|
39
|
+
}>;
|
|
40
|
+
export declare function addCloudAiAgentKey(data: {
|
|
41
|
+
keys: CloudAiAgentKeys | null;
|
|
42
|
+
record: CloudAiAgentKeyRecord;
|
|
43
|
+
now: Date;
|
|
44
|
+
}): CloudAiAgentKeys;
|
|
45
|
+
export declare function useCloudAiAgentKey(data: {
|
|
46
|
+
keys: CloudAiAgentKeys | null;
|
|
47
|
+
hash: string;
|
|
48
|
+
now: Date;
|
|
49
|
+
}): CloudAiAgentKeys | null;
|
|
50
|
+
export declare function revokeCloudAiAgentKeys(data: {
|
|
51
|
+
now: Date;
|
|
52
|
+
}): CloudAiAgentKeys;
|
|
53
|
+
export interface CloudAiAgentKeyTaken {
|
|
54
|
+
isUsable: boolean;
|
|
55
|
+
isNewKey: boolean;
|
|
56
|
+
replacedAgentKey: boolean;
|
|
57
|
+
madeByUserId?: string | undefined;
|
|
58
|
+
}
|
|
59
|
+
export declare function isOwnCloudAiAgentKeyRequired(keys: CloudAiAgentKeys | null): boolean;
|
|
60
|
+
export interface CloudAiAgentKeyResponse {
|
|
61
|
+
agentKey: string;
|
|
62
|
+
worksUntilConnectedBy: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE: string;
|
|
65
|
+
export declare const CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE: string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const CLOUD_AI_AGENT_KEY_PREFIX: string;
|
|
2
|
+
export declare const CLOUD_AI_AGENT_KEY_SECRET_LENGTH: number;
|
|
3
|
+
export declare const CLOUD_AI_AGENT_KEY_MAX_LENGTH: number;
|
|
4
|
+
export declare const CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS: number;
|
|
5
|
+
export declare const CLOUD_AI_AGENT_MAX_PENDING_KEYS: number;
|
|
6
|
+
export declare function buildCloudAiAgentKey(data: {
|
|
7
|
+
cloudAccountId: string;
|
|
8
|
+
secret: string;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function parseCloudAiAgentKey(value: unknown): {
|
|
11
|
+
cloudAccountId: string;
|
|
12
|
+
secret: string;
|
|
13
|
+
} | null;
|
|
14
|
+
export declare function isCloudAiAgentKey(value: unknown): boolean;
|
|
15
|
+
export interface CloudAiAgentKeyRecord {
|
|
16
|
+
hash: string;
|
|
17
|
+
madeAt: string;
|
|
18
|
+
madeByUserId?: string | undefined;
|
|
19
|
+
firstUsedAt?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface CloudAiAgentKeys {
|
|
22
|
+
current: CloudAiAgentKeyRecord | null;
|
|
23
|
+
pending: Array<CloudAiAgentKeyRecord>;
|
|
24
|
+
isOwnKeyRequired: boolean;
|
|
25
|
+
revokedAt?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export type CloudAiAgentKeyMatch = "current" | "pending";
|
|
28
|
+
export declare function readCloudAiAgentKeys(value: unknown): CloudAiAgentKeys | null;
|
|
29
|
+
export declare function isPendingCloudAiAgentKeyUsable(data: {
|
|
30
|
+
record: CloudAiAgentKeyRecord;
|
|
31
|
+
now: Date;
|
|
32
|
+
}): boolean;
|
|
33
|
+
export declare function getLiveCloudAiAgentKeyHashes(data: {
|
|
34
|
+
keys: CloudAiAgentKeys | null;
|
|
35
|
+
now: Date;
|
|
36
|
+
}): Array<{
|
|
37
|
+
hash: string;
|
|
38
|
+
match: CloudAiAgentKeyMatch;
|
|
39
|
+
}>;
|
|
40
|
+
export declare function addCloudAiAgentKey(data: {
|
|
41
|
+
keys: CloudAiAgentKeys | null;
|
|
42
|
+
record: CloudAiAgentKeyRecord;
|
|
43
|
+
now: Date;
|
|
44
|
+
}): CloudAiAgentKeys;
|
|
45
|
+
export declare function useCloudAiAgentKey(data: {
|
|
46
|
+
keys: CloudAiAgentKeys | null;
|
|
47
|
+
hash: string;
|
|
48
|
+
now: Date;
|
|
49
|
+
}): CloudAiAgentKeys | null;
|
|
50
|
+
export declare function revokeCloudAiAgentKeys(data: {
|
|
51
|
+
now: Date;
|
|
52
|
+
}): CloudAiAgentKeys;
|
|
53
|
+
export interface CloudAiAgentKeyTaken {
|
|
54
|
+
isUsable: boolean;
|
|
55
|
+
isNewKey: boolean;
|
|
56
|
+
replacedAgentKey: boolean;
|
|
57
|
+
madeByUserId?: string | undefined;
|
|
58
|
+
}
|
|
59
|
+
export declare function isOwnCloudAiAgentKeyRequired(keys: CloudAiAgentKeys | null): boolean;
|
|
60
|
+
export interface CloudAiAgentKeyResponse {
|
|
61
|
+
agentKey: string;
|
|
62
|
+
worksUntilConnectedBy: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE: string;
|
|
65
|
+
export declare const CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE: string;
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE = exports.CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE = exports.CLOUD_AI_AGENT_MAX_PENDING_KEYS = exports.CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS = exports.CLOUD_AI_AGENT_KEY_MAX_LENGTH = exports.CLOUD_AI_AGENT_KEY_SECRET_LENGTH = exports.CLOUD_AI_AGENT_KEY_PREFIX = void 0;
|
|
7
|
+
exports.buildCloudAiAgentKey = buildCloudAiAgentKey;
|
|
8
|
+
exports.parseCloudAiAgentKey = parseCloudAiAgentKey;
|
|
9
|
+
exports.isCloudAiAgentKey = isCloudAiAgentKey;
|
|
10
|
+
exports.readCloudAiAgentKeys = readCloudAiAgentKeys;
|
|
11
|
+
exports.isPendingCloudAiAgentKeyUsable = isPendingCloudAiAgentKeyUsable;
|
|
12
|
+
exports.getLiveCloudAiAgentKeyHashes = getLiveCloudAiAgentKeyHashes;
|
|
13
|
+
exports.addCloudAiAgentKey = addCloudAiAgentKey;
|
|
14
|
+
exports.useCloudAiAgentKey = useCloudAiAgentKey;
|
|
15
|
+
exports.revokeCloudAiAgentKeys = revokeCloudAiAgentKeys;
|
|
16
|
+
exports.isOwnCloudAiAgentKeyRequired = isOwnCloudAiAgentKeyRequired;
|
|
17
|
+
const ObjectID_1 = __importDefault(require("../ObjectID"));
|
|
18
|
+
/*
|
|
19
|
+
* THE KEY A CLOUD AI AGENT CONNECTS WITH: ONE ACCOUNT'S, AND NOTHING ELSE.
|
|
20
|
+
*
|
|
21
|
+
* A Cloud AI agent (the resource AI agent in an AWS account, an Azure
|
|
22
|
+
* subscription or a Google Cloud project) used to register with one of the
|
|
23
|
+
* project's telemetry ingestion keys, kept as a secret of its cloud. That key
|
|
24
|
+
* also sends telemetry for the whole project and registers the AI agent of
|
|
25
|
+
* any of its resources, so whoever could read the secret could do both.
|
|
26
|
+
*
|
|
27
|
+
* Now the setup command carries a key made for that one cloud account: the
|
|
28
|
+
* account's "Let AI fix problems" makes it (POST
|
|
29
|
+
* /resource-ai-access/agent-key, RESOURCE_AI_ACCESS_AGENT_KEY_PATH) and the
|
|
30
|
+
* command puts it in the cloud's secret. It names its account - "ouca_<cloud account id>_<64 hex>" - and it
|
|
31
|
+
* registers that account's agent and nothing else: no other account's agent,
|
|
32
|
+
* no other resource's, and no telemetry anywhere (an ingestion route never
|
|
33
|
+
* knows it). Only its SHA-256 is kept (CloudAccount.aiAgentKeys, which nobody
|
|
34
|
+
* may read), and it is shown once, in the command.
|
|
35
|
+
*
|
|
36
|
+
* A key that has not connected yet is pending: the command may not have run.
|
|
37
|
+
* The agent's key so far keeps working beside it, so opening the dialog never
|
|
38
|
+
* disconnects anything. The first registration with a pending key makes it
|
|
39
|
+
* the agent's key, and the key it replaces stops working. A pending key that
|
|
40
|
+
* never connects stops working a day after it was made, and at most
|
|
41
|
+
* CLOUD_AI_AGENT_MAX_PENDING_KEYS are kept (each opening of the dialog makes
|
|
42
|
+
* one; two admins setting the agent up at once both get a key that works).
|
|
43
|
+
*
|
|
44
|
+
* Once an agent has connected with a key of its own, the project's ingestion
|
|
45
|
+
* key no longer registers that account's agent (isOwnKeyRequired). Reset
|
|
46
|
+
* agent revokes every key at once and keeps that rule: the agent stays
|
|
47
|
+
* disconnected until its setup command runs again, with a new key. Removing
|
|
48
|
+
* the account removes its keys with it.
|
|
49
|
+
*
|
|
50
|
+
* An agent set up before this keeps connecting with the ingestion key it was
|
|
51
|
+
* given until its setup command runs again (Change on its AI agent page) or
|
|
52
|
+
* it is reset.
|
|
53
|
+
*
|
|
54
|
+
* Shared by the server (the key route, registration, Reset agent), the
|
|
55
|
+
* dashboard and the setup commands (which check a key before writing it into
|
|
56
|
+
* a command). React-free and Node-free.
|
|
57
|
+
*/
|
|
58
|
+
exports.CLOUD_AI_AGENT_KEY_PREFIX = "ouca";
|
|
59
|
+
exports.CLOUD_AI_AGENT_KEY_SECRET_LENGTH = 64;
|
|
60
|
+
// ouca_ + a 36-character id + _ + 64 hex: 106 characters. Nothing longer is read.
|
|
61
|
+
exports.CLOUD_AI_AGENT_KEY_MAX_LENGTH = 128;
|
|
62
|
+
// How long a key that has not connected yet keeps working.
|
|
63
|
+
exports.CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS = 24 * 60 * 60 * 1000;
|
|
64
|
+
// How many keys that have not connected yet an account keeps, newest first.
|
|
65
|
+
exports.CLOUD_AI_AGENT_MAX_PENDING_KEYS = 5;
|
|
66
|
+
function buildCloudAiAgentKey(data) {
|
|
67
|
+
return `${exports.CLOUD_AI_AGENT_KEY_PREFIX}_${data.cloudAccountId.toLowerCase()}_${data.secret.toLowerCase()}`;
|
|
68
|
+
}
|
|
69
|
+
function isLowerHex(value) {
|
|
70
|
+
for (let index = 0; index < value.length; index++) {
|
|
71
|
+
const code = value.charCodeAt(index);
|
|
72
|
+
const isDigit = code >= 48 && code <= 57;
|
|
73
|
+
const isLetter = code >= 97 && code <= 102;
|
|
74
|
+
if (!isDigit && !isLetter) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return value.length > 0;
|
|
79
|
+
}
|
|
80
|
+
/*
|
|
81
|
+
* The account a key names and its secret, or null for anything that is not
|
|
82
|
+
* a Cloud AI agent key. Never throws, and reads nothing past
|
|
83
|
+
* CLOUD_AI_AGENT_KEY_MAX_LENGTH characters.
|
|
84
|
+
*/
|
|
85
|
+
function parseCloudAiAgentKey(value) {
|
|
86
|
+
if (typeof value !== "string") {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
if (value.length === 0 || value.length > exports.CLOUD_AI_AGENT_KEY_MAX_LENGTH) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
const key = value.trim();
|
|
93
|
+
const parts = key.split("_");
|
|
94
|
+
if (parts.length !== 3 || parts[0] !== exports.CLOUD_AI_AGENT_KEY_PREFIX) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const cloudAccountId = parts[1];
|
|
98
|
+
const secret = parts[2];
|
|
99
|
+
if (!ObjectID_1.default.isValidUUID(cloudAccountId) ||
|
|
100
|
+
cloudAccountId !== cloudAccountId.toLowerCase() ||
|
|
101
|
+
secret.length !== exports.CLOUD_AI_AGENT_KEY_SECRET_LENGTH ||
|
|
102
|
+
!isLowerHex(secret)) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return { cloudAccountId, secret };
|
|
106
|
+
}
|
|
107
|
+
function isCloudAiAgentKey(value) {
|
|
108
|
+
return parseCloudAiAgentKey(value) !== null;
|
|
109
|
+
}
|
|
110
|
+
const SHA256_HEX_LENGTH = 64;
|
|
111
|
+
function readTime(value) {
|
|
112
|
+
if (typeof value !== "string" || !value || value.length > 64) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
const time = Date.parse(value);
|
|
116
|
+
return Number.isFinite(time) ? new Date(time).toISOString() : null;
|
|
117
|
+
}
|
|
118
|
+
function readRecord(value) {
|
|
119
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
const stored = value;
|
|
123
|
+
const hash = stored["hash"];
|
|
124
|
+
const madeAt = readTime(stored["madeAt"]);
|
|
125
|
+
if (typeof hash !== "string" ||
|
|
126
|
+
hash.length !== SHA256_HEX_LENGTH ||
|
|
127
|
+
!isLowerHex(hash) ||
|
|
128
|
+
!madeAt) {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
const record = { hash, madeAt };
|
|
132
|
+
const madeByUserId = stored["madeByUserId"];
|
|
133
|
+
const firstUsedAt = readTime(stored["firstUsedAt"]);
|
|
134
|
+
if (typeof madeByUserId === "string" && ObjectID_1.default.isValidUUID(madeByUserId)) {
|
|
135
|
+
record.madeByUserId = madeByUserId.toLowerCase();
|
|
136
|
+
}
|
|
137
|
+
if (firstUsedAt) {
|
|
138
|
+
record.firstUsedAt = firstUsedAt;
|
|
139
|
+
}
|
|
140
|
+
return record;
|
|
141
|
+
}
|
|
142
|
+
/*
|
|
143
|
+
* The keys an account keeps, as they are - or null when it never had one,
|
|
144
|
+
* so its agent still registers with the project's ingestion key, as every
|
|
145
|
+
* agent set up before keys of their own did. A stored value of the wrong
|
|
146
|
+
* shape fails closed: its keys match nothing, and the ingestion key is not
|
|
147
|
+
* taken for the account (isOwnKeyRequired). Never throws.
|
|
148
|
+
*/
|
|
149
|
+
function readCloudAiAgentKeys(value) {
|
|
150
|
+
if (value === null || value === undefined) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
if (typeof value !== "object" || Array.isArray(value)) {
|
|
154
|
+
return { current: null, pending: [], isOwnKeyRequired: true };
|
|
155
|
+
}
|
|
156
|
+
const stored = value;
|
|
157
|
+
const current = readRecord(stored["current"]);
|
|
158
|
+
const pending = [];
|
|
159
|
+
if (Array.isArray(stored["pending"])) {
|
|
160
|
+
for (const item of stored["pending"]) {
|
|
161
|
+
const record = readRecord(item);
|
|
162
|
+
if (record) {
|
|
163
|
+
pending.push(record);
|
|
164
|
+
}
|
|
165
|
+
if (pending.length >= exports.CLOUD_AI_AGENT_MAX_PENDING_KEYS) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const revokedAt = readTime(stored["revokedAt"]);
|
|
171
|
+
const keys = {
|
|
172
|
+
current,
|
|
173
|
+
pending,
|
|
174
|
+
/*
|
|
175
|
+
* Not required only while it says so plainly and no key ever connected
|
|
176
|
+
* nor was revoked: anything else requires the account's own key.
|
|
177
|
+
*/
|
|
178
|
+
isOwnKeyRequired: stored["isOwnKeyRequired"] !== false ||
|
|
179
|
+
current !== null ||
|
|
180
|
+
revokedAt !== null,
|
|
181
|
+
};
|
|
182
|
+
if (revokedAt) {
|
|
183
|
+
keys.revokedAt = revokedAt;
|
|
184
|
+
}
|
|
185
|
+
return keys;
|
|
186
|
+
}
|
|
187
|
+
// Whether a pending key still works at `now`.
|
|
188
|
+
function isPendingCloudAiAgentKeyUsable(data) {
|
|
189
|
+
const madeAt = Date.parse(data.record.madeAt);
|
|
190
|
+
return (Number.isFinite(madeAt) &&
|
|
191
|
+
madeAt <= data.now.getTime() + 60 * 1000 &&
|
|
192
|
+
data.now.getTime() - madeAt < exports.CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS);
|
|
193
|
+
}
|
|
194
|
+
/*
|
|
195
|
+
* The hashes a presented key may match at `now`: the agent's key, and the
|
|
196
|
+
* pending keys that still work.
|
|
197
|
+
*/
|
|
198
|
+
function getLiveCloudAiAgentKeyHashes(data) {
|
|
199
|
+
if (!data.keys) {
|
|
200
|
+
return [];
|
|
201
|
+
}
|
|
202
|
+
const hashes = [];
|
|
203
|
+
if (data.keys.current) {
|
|
204
|
+
hashes.push({ hash: data.keys.current.hash, match: "current" });
|
|
205
|
+
}
|
|
206
|
+
for (const record of data.keys.pending) {
|
|
207
|
+
if (isPendingCloudAiAgentKeyUsable({ record, now: data.now })) {
|
|
208
|
+
hashes.push({ hash: record.hash, match: "pending" });
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return hashes;
|
|
212
|
+
}
|
|
213
|
+
/*
|
|
214
|
+
* The keys once a new one is made: it goes first among the pending ones,
|
|
215
|
+
* the pending keys that no longer work go, and at most
|
|
216
|
+
* CLOUD_AI_AGENT_MAX_PENDING_KEYS stay. The agent's own key is untouched.
|
|
217
|
+
*/
|
|
218
|
+
function addCloudAiAgentKey(data) {
|
|
219
|
+
const keys = data.keys || {
|
|
220
|
+
current: null,
|
|
221
|
+
pending: [],
|
|
222
|
+
isOwnKeyRequired: false,
|
|
223
|
+
};
|
|
224
|
+
const next = {
|
|
225
|
+
current: keys.current,
|
|
226
|
+
pending: [
|
|
227
|
+
data.record,
|
|
228
|
+
...keys.pending.filter((record) => {
|
|
229
|
+
return (record.hash !== data.record.hash &&
|
|
230
|
+
isPendingCloudAiAgentKeyUsable({ record, now: data.now }));
|
|
231
|
+
}),
|
|
232
|
+
].slice(0, exports.CLOUD_AI_AGENT_MAX_PENDING_KEYS),
|
|
233
|
+
isOwnKeyRequired: keys.isOwnKeyRequired,
|
|
234
|
+
};
|
|
235
|
+
if (keys.revokedAt) {
|
|
236
|
+
next.revokedAt = keys.revokedAt;
|
|
237
|
+
}
|
|
238
|
+
return next;
|
|
239
|
+
}
|
|
240
|
+
/*
|
|
241
|
+
* The keys once an agent connected with the pending key of this hash: it is
|
|
242
|
+
* the agent's key now, the key it replaces stops working, the project's
|
|
243
|
+
* ingestion key no longer registers the account's agent, and the other
|
|
244
|
+
* pending keys that still work keep working (another admin's command may be
|
|
245
|
+
* on its way). Null when no pending key that still works has this hash.
|
|
246
|
+
*/
|
|
247
|
+
function useCloudAiAgentKey(data) {
|
|
248
|
+
if (!data.keys) {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
const used = data.keys.pending.find((record) => {
|
|
252
|
+
return (record.hash === data.hash &&
|
|
253
|
+
isPendingCloudAiAgentKeyUsable({ record, now: data.now }));
|
|
254
|
+
});
|
|
255
|
+
if (!used) {
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
current: Object.assign(Object.assign({}, used), { firstUsedAt: data.now.toISOString() }),
|
|
260
|
+
pending: data.keys.pending.filter((record) => {
|
|
261
|
+
return (record.hash !== data.hash &&
|
|
262
|
+
isPendingCloudAiAgentKeyUsable({ record, now: data.now }));
|
|
263
|
+
}),
|
|
264
|
+
isOwnKeyRequired: true,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/*
|
|
268
|
+
* Reset agent: every key stops working at once, and the project's ingestion
|
|
269
|
+
* key never registers the account's agent again. A new key connects it.
|
|
270
|
+
*/
|
|
271
|
+
function revokeCloudAiAgentKeys(data) {
|
|
272
|
+
return {
|
|
273
|
+
current: null,
|
|
274
|
+
pending: [],
|
|
275
|
+
isOwnKeyRequired: true,
|
|
276
|
+
revokedAt: data.now.toISOString(),
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
// Whether the project's ingestion key may still register the account's agent.
|
|
280
|
+
function isOwnCloudAiAgentKeyRequired(keys) {
|
|
281
|
+
return Boolean(keys && keys.isOwnKeyRequired);
|
|
282
|
+
}
|
|
283
|
+
/*
|
|
284
|
+
* Why a registration with a Cloud AI agent key was refused, in words for
|
|
285
|
+
* the agent's log (and so for whoever reads it in the cloud). Never names
|
|
286
|
+
* the key.
|
|
287
|
+
*/
|
|
288
|
+
exports.CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE = "This Cloud AI agent key is not the cloud account's: it was replaced by a newer one, revoked by Reset agent, never connected within a day of being made, or its account was removed. Run the agent's setup command again: Change on the account's AI agent page in OneUptime shows it.";
|
|
289
|
+
exports.CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE = "This cloud account's Cloud AI agent connects with a key of its own, so the project's telemetry ingestion key no longer connects it. Run the agent's setup command again: Change on the account's AI agent page in OneUptime shows it, with its key.";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import commonJsModule from "./CloudAiAgentKey.js";
|
|
2
|
+
export const CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE = commonJsModule.CLOUD_AI_AGENT_INGESTION_KEY_REFUSED_MESSAGE;
|
|
3
|
+
export const CLOUD_AI_AGENT_KEY_MAX_LENGTH = commonJsModule.CLOUD_AI_AGENT_KEY_MAX_LENGTH;
|
|
4
|
+
export const CLOUD_AI_AGENT_KEY_PREFIX = commonJsModule.CLOUD_AI_AGENT_KEY_PREFIX;
|
|
5
|
+
export const CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE = commonJsModule.CLOUD_AI_AGENT_KEY_REFUSED_MESSAGE;
|
|
6
|
+
export const CLOUD_AI_AGENT_KEY_SECRET_LENGTH = commonJsModule.CLOUD_AI_AGENT_KEY_SECRET_LENGTH;
|
|
7
|
+
export const CLOUD_AI_AGENT_MAX_PENDING_KEYS = commonJsModule.CLOUD_AI_AGENT_MAX_PENDING_KEYS;
|
|
8
|
+
export const CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS = commonJsModule.CLOUD_AI_AGENT_PENDING_KEY_LIFETIME_MS;
|
|
9
|
+
export const addCloudAiAgentKey = commonJsModule.addCloudAiAgentKey;
|
|
10
|
+
export const buildCloudAiAgentKey = commonJsModule.buildCloudAiAgentKey;
|
|
11
|
+
export const getLiveCloudAiAgentKeyHashes = commonJsModule.getLiveCloudAiAgentKeyHashes;
|
|
12
|
+
export const isCloudAiAgentKey = commonJsModule.isCloudAiAgentKey;
|
|
13
|
+
export const isOwnCloudAiAgentKeyRequired = commonJsModule.isOwnCloudAiAgentKeyRequired;
|
|
14
|
+
export const isPendingCloudAiAgentKeyUsable = commonJsModule.isPendingCloudAiAgentKeyUsable;
|
|
15
|
+
export const parseCloudAiAgentKey = commonJsModule.parseCloudAiAgentKey;
|
|
16
|
+
export const readCloudAiAgentKeys = commonJsModule.readCloudAiAgentKeys;
|
|
17
|
+
export const revokeCloudAiAgentKeys = commonJsModule.revokeCloudAiAgentKeys;
|
|
18
|
+
export const useCloudAiAgentKey = commonJsModule.useCloudAiAgentKey;
|