@oneuptime/common 14.0.97 → 14.0.99
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/DatabaseModels/CloudAccount.d.mts +8 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
- package/Models/DatabaseModels/CloudAccount.js +167 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
- package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
- package/Models/DatabaseModels/CodeRepository.d.mts +3 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
- package/Models/DatabaseModels/CodeRepository.js +104 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
- package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
- package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.js +520 -0
- package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
- package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +83 -0
- package/Models/DatabaseModels/DataStore.d.ts +83 -0
- package/Models/DatabaseModels/DataStore.js +1343 -0
- package/Models/DatabaseModels/DataStore.mjs +2 -0
- package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.js +407 -0
- package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
- package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.js +613 -0
- package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.js +683 -0
- package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
- package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +110 -0
- package/Models/DatabaseModels/Index.js +37 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
- package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
- package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
- package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
- package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
- package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
- package/Models/DatabaseModels/SecurityHunt.js +608 -0
- package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
- package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
- package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
- package/Models/DatabaseModels/TelemetryException.js +170 -8
- package/Types/AI/AIChatPageContext.d.mts +4 -1
- package/Types/AI/AIChatPageContext.d.ts +4 -1
- package/Types/AI/AIChatPageContext.js +7 -0
- package/Types/AI/AIChatTypes.d.mts +7 -1
- package/Types/AI/AIChatTypes.d.ts +7 -1
- package/Types/AI/AIChatTypes.js +9 -0
- package/Types/AI/AIRunEventType.d.mts +1 -0
- package/Types/AI/AIRunEventType.d.ts +1 -0
- package/Types/AI/AIRunEventType.js +8 -0
- package/Types/AI/AiAffectedResources.js +5 -3
- package/Types/AI/AiTokenCount.d.mts +22 -1
- package/Types/AI/AiTokenCount.d.ts +22 -1
- package/Types/AI/AiTokenCount.js +126 -57
- package/Types/AI/AiTokenCount.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +22 -0
- package/Types/AI/CodeFixTaskContext.d.ts +22 -0
- package/Types/AI/CodeFixTaskContext.js +61 -4
- package/Types/AI/CodeFixTaskContext.mjs +2 -0
- package/Types/AI/CodeTask.d.mts +2 -0
- package/Types/AI/CodeTask.d.ts +2 -0
- package/Types/AI/CodeTask.js +4 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessPermissions.js +6 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
- package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
- package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
- package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
- package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
- package/Types/CodeRepository/CodeHost.d.mts +2 -1
- package/Types/CodeRepository/CodeHost.d.ts +2 -1
- package/Types/CodeRepository/CodeHost.js +12 -5
- package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
- package/Types/CodeRepository/ProductionReview.d.mts +7 -0
- package/Types/CodeRepository/ProductionReview.d.ts +7 -0
- package/Types/CodeRepository/ProductionReview.js +67 -1
- package/Types/CodeRepository/ProductionReview.mjs +1 -0
- package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
- package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
- package/Types/DataSecurity/ComplianceFramework.js +97 -0
- package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
- package/Types/DataSecurity/DataCategory.d.mts +15 -0
- package/Types/DataSecurity/DataCategory.d.ts +15 -0
- package/Types/DataSecurity/DataCategory.js +61 -0
- package/Types/DataSecurity/DataCategory.mjs +7 -0
- package/Types/DataSecurity/DataConfidence.d.mts +11 -0
- package/Types/DataSecurity/DataConfidence.d.ts +11 -0
- package/Types/DataSecurity/DataConfidence.js +49 -0
- package/Types/DataSecurity/DataConfidence.mjs +7 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.js +92 -0
- package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
- package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
- package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.js +138 -0
- package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
- package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
- package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
- package/Types/DataSecurity/DataSensitivity.js +68 -0
- package/Types/DataSecurity/DataSensitivity.mjs +8 -0
- package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
- package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
- package/Types/DataSecurity/DataStoreAccess.js +35 -0
- package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
- package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
- package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
- package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
- package/Types/DataSecurity/DataStoreKey.js +49 -0
- package/Types/DataSecurity/DataStoreKey.mjs +7 -0
- package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
- package/Types/DataSecurity/DataStoreKind.js +230 -0
- package/Types/DataSecurity/DataStoreKind.mjs +10 -0
- package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
- package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
- package/Types/DataSecurity/DataStorePosture.js +100 -0
- package/Types/DataSecurity/DataStorePosture.mjs +7 -0
- package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.js +434 -0
- package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -0
- package/Types/Email/EmailTemplateType.d.ts +2 -0
- package/Types/Email/EmailTemplateType.js +8 -0
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
- package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
- package/Types/Monitor/CephAlertTemplates.js +49 -0
- package/Types/Monitor/CephAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
- package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
- package/Types/Monitor/DockerAlertTemplates.js +109 -37
- package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
- package/Types/Monitor/DockerMetricCatalog.js +26 -52
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
- package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
- package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
- package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
- package/Types/Monitor/HostAlertTemplates.js +48 -0
- package/Types/Monitor/HostAlertTemplates.mjs +1 -0
- package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
- package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
- package/Types/Monitor/IotAlertTemplates.js +11 -0
- package/Types/Monitor/IotAlertTemplates.mjs +1 -0
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
- package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
- package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
- package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
- package/Types/Monitor/MonitorStep.js +50 -3
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
- package/Types/Monitor/MonitorType.d.mts +1 -0
- package/Types/Monitor/MonitorType.d.ts +1 -0
- package/Types/Monitor/MonitorType.js +18 -0
- package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.js +161 -33
- package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
- package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.js +26 -52
- package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
- package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
- package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
- package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.js +50 -0
- package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
- package/Types/Permission.d.mts +51 -0
- package/Types/Permission.d.ts +51 -0
- package/Types/Permission.js +542 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +8 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
- package/Types/ProviderLogo/ProviderLogo.js +4 -0
- package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.js +76 -2
- package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
- package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
- package/Types/Rules/RuleCriteriaSubject.js +3 -0
- package/Types/Rules/RuleRun.d.mts +2 -0
- package/Types/Rules/RuleRun.d.ts +2 -0
- package/Types/Rules/RuleRun.js +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
- package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
- package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
- package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
- package/Types/SecurityCase/SecurityEntity.js +39 -1
- package/Types/SecurityCase/SecurityEntity.mjs +4 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
- package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
- package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
- package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
- package/Types/SecurityEvent/OcsfEventClass.js +31 -2
- package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
- package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
- package/Types/SecurityEvent/SecurityHunt.js +391 -0
- package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
- package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
- package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.js +131 -0
- package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
- package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
- package/Types/Telemetry/TraceSpanType.d.mts +1 -1
- package/Types/Telemetry/TraceSpanType.d.ts +1 -1
- package/Types/Telemetry/TraceSpanType.js +33 -8
- package/Types/Telemetry/TraceSpanType.mjs +1 -1
- package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
- package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
- package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
- package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
- package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
- package/Types/UpdateCheck/UpdateStatus.js +195 -0
- package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
- package/Types/Workflow/RunRecord.d.mts +3 -14
- package/Types/Workflow/RunRecord.d.ts +3 -14
- package/Types/Workflow/RunRecord.js +10 -51
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
- package/Utils/AI/InvestigationLogStall.d.mts +38 -0
- package/Utils/AI/InvestigationLogStall.d.ts +38 -0
- package/Utils/AI/InvestigationLogStall.js +163 -0
- package/Utils/AI/InvestigationLogStall.mjs +11 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
- package/Utils/DataSecurity/Detector.d.mts +26 -0
- package/Utils/DataSecurity/Detector.d.ts +26 -0
- package/Utils/DataSecurity/Detector.js +83 -0
- package/Utils/DataSecurity/Detector.mjs +8 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
- package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
- package/Utils/DataSecurity/Detectors/Index.js +47 -0
- package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
- package/Utils/DataSecurity/FieldClassifier.js +247 -0
- package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
- package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
- package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
- package/Utils/DataSecurity/FieldCollector.js +81 -0
- package/Utils/DataSecurity/FieldCollector.mjs +3 -0
- package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
- package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
- package/Utils/DataSecurity/FieldNameHints.js +184 -0
- package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
- package/Utils/DataSecurity/FindingTally.d.mts +44 -0
- package/Utils/DataSecurity/FindingTally.d.ts +44 -0
- package/Utils/DataSecurity/FindingTally.js +138 -0
- package/Utils/DataSecurity/FindingTally.mjs +6 -0
- package/Utils/DataSecurity/Masking.d.mts +6 -0
- package/Utils/DataSecurity/Masking.d.ts +6 -0
- package/Utils/DataSecurity/Masking.js +159 -0
- package/Utils/DataSecurity/Masking.mjs +7 -0
- package/Utils/DataSecurity/PathPattern.d.mts +3 -0
- package/Utils/DataSecurity/PathPattern.d.ts +3 -0
- package/Utils/DataSecurity/PathPattern.js +55 -0
- package/Utils/DataSecurity/PathPattern.mjs +4 -0
- package/Utils/DataSecurity/Sha256.d.mts +1 -0
- package/Utils/DataSecurity/Sha256.d.ts +1 -0
- package/Utils/DataSecurity/Sha256.js +94 -0
- package/Utils/DataSecurity/Sha256.mjs +2 -0
- package/Utils/DataSecurity/TextScanner.d.mts +35 -0
- package/Utils/DataSecurity/TextScanner.d.ts +35 -0
- package/Utils/DataSecurity/TextScanner.js +303 -0
- package/Utils/DataSecurity/TextScanner.mjs +8 -0
- package/Utils/DataSecurity/Validators.d.mts +16 -0
- package/Utils/DataSecurity/Validators.d.ts +16 -0
- package/Utils/DataSecurity/Validators.js +339 -0
- package/Utils/DataSecurity/Validators.mjs +17 -0
- package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.js +131 -0
- package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
- package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
- package/Utils/LabelRuleImportExport.js +17 -3
- package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
- package/Utils/Project/RecordNumber.d.mts +43 -0
- package/Utils/Project/RecordNumber.d.ts +43 -0
- package/Utils/Project/RecordNumber.js +151 -0
- package/Utils/Project/RecordNumber.mjs +6 -0
- package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
- package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
- package/Utils/SecurityAdvisoryMatcher.js +291 -0
- package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +2 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
- package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
- package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
- package/Utils/Sms/OnCallPageSms.d.mts +1 -0
- package/Utils/Sms/OnCallPageSms.d.ts +1 -0
- package/Utils/Sms/OnCallPageSms.js +16 -2
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
- package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
- package/Utils/Syslog/LeefParser.d.mts +28 -0
- package/Utils/Syslog/LeefParser.d.ts +28 -0
- package/Utils/Syslog/LeefParser.js +326 -0
- package/Utils/Syslog/LeefParser.mjs +10 -0
- package/Utils/VersionRange.d.mts +34 -0
- package/Utils/VersionRange.d.ts +34 -0
- package/Utils/VersionRange.js +422 -0
- package/Utils/VersionRange.mjs +5 -0
- package/package.json +1 -1
|
@@ -6,10 +6,15 @@ declare enum AiResourceType {
|
|
|
6
6
|
VMwareVCenter = "VMwareVCenter",
|
|
7
7
|
CephCluster = "CephCluster",
|
|
8
8
|
DatabaseServer = "DatabaseServer",
|
|
9
|
-
Host = "Host"
|
|
9
|
+
Host = "Host",
|
|
10
|
+
AwsAccount = "AwsAccount",
|
|
11
|
+
AzureSubscription = "AzureSubscription",
|
|
12
|
+
GoogleCloudProject = "GoogleCloudProject"
|
|
10
13
|
}
|
|
11
14
|
export default AiResourceType;
|
|
12
15
|
export declare const ALL_AI_RESOURCE_TYPES: ReadonlyArray<AiResourceType>;
|
|
16
|
+
export declare const CLOUD_AI_RESOURCE_TYPES: ReadonlyArray<AiResourceType>;
|
|
17
|
+
export declare function isCloudAiResourceType(value: unknown): boolean;
|
|
13
18
|
export declare function isAiResourceType(value: unknown): value is AiResourceType;
|
|
14
19
|
export interface AiResourceTypeInfo {
|
|
15
20
|
type: AiResourceType;
|
|
@@ -22,6 +27,7 @@ export interface AiResourceTypeInfo {
|
|
|
22
27
|
defaultIdentityPlaceholders: ReadonlyArray<string>;
|
|
23
28
|
}
|
|
24
29
|
export declare const AI_RESOURCE_TYPE_INFO: Readonly<Record<AiResourceType, AiResourceTypeInfo>>;
|
|
30
|
+
export declare function isIdentityResolvedByAgent(type: AiResourceType): boolean;
|
|
25
31
|
export declare function getAiResourceTypeInfo(type: AiResourceType): AiResourceTypeInfo;
|
|
26
32
|
export declare function parseAiResourceType(value: unknown): AiResourceType | null;
|
|
27
33
|
export declare function isDefaultIdentityPlaceholder(type: AiResourceType, identifier: unknown): boolean;
|
|
@@ -14,13 +14,21 @@
|
|
|
14
14
|
* Kubernetes clusters are NOT here: they keep their own Kubernetes AI agent
|
|
15
15
|
* (Types/Kubernetes/KubernetesClusterAiAccess).
|
|
16
16
|
*
|
|
17
|
+
* Cloud accounts are: an AWS account, an Azure subscription and a Google
|
|
18
|
+
* Cloud project are each served by a Cloud AI agent that runs in the
|
|
19
|
+
* customer's own cloud (not next to a collector) and runs one operation of
|
|
20
|
+
* a fixed catalog at a time (Utils/AiRemediation/Resource/
|
|
21
|
+
* CloudOperationCatalog). Its identity comes from the cloud itself.
|
|
22
|
+
*
|
|
17
23
|
* This file imports NOTHING outside Types/ResourceAiAgent on purpose: the
|
|
18
24
|
* resource AI agent (agents/ResourceAIAgent) carries a byte-identical copy of
|
|
19
25
|
* this directory and must compile without the rest of Common.
|
|
20
26
|
*/
|
|
21
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.AI_RESOURCE_TYPE_INFO = exports.ALL_AI_RESOURCE_TYPES = void 0;
|
|
28
|
+
exports.AI_RESOURCE_TYPE_INFO = exports.CLOUD_AI_RESOURCE_TYPES = exports.ALL_AI_RESOURCE_TYPES = void 0;
|
|
29
|
+
exports.isCloudAiResourceType = isCloudAiResourceType;
|
|
23
30
|
exports.isAiResourceType = isAiResourceType;
|
|
31
|
+
exports.isIdentityResolvedByAgent = isIdentityResolvedByAgent;
|
|
24
32
|
exports.getAiResourceTypeInfo = getAiResourceTypeInfo;
|
|
25
33
|
exports.parseAiResourceType = parseAiResourceType;
|
|
26
34
|
exports.isDefaultIdentityPlaceholder = isDefaultIdentityPlaceholder;
|
|
@@ -39,12 +47,16 @@ var AiResourceType;
|
|
|
39
47
|
AiResourceType["CephCluster"] = "CephCluster";
|
|
40
48
|
AiResourceType["DatabaseServer"] = "DatabaseServer";
|
|
41
49
|
AiResourceType["Host"] = "Host";
|
|
50
|
+
AiResourceType["AwsAccount"] = "AwsAccount";
|
|
51
|
+
AiResourceType["AzureSubscription"] = "AzureSubscription";
|
|
52
|
+
AiResourceType["GoogleCloudProject"] = "GoogleCloudProject";
|
|
42
53
|
})(AiResourceType || (AiResourceType = {}));
|
|
43
54
|
exports.default = AiResourceType;
|
|
44
55
|
/*
|
|
45
56
|
* Every type, in declaration order. This is also the priority order in
|
|
46
57
|
* which a remediation round picks among several resources linked to one
|
|
47
58
|
* incident or alert, so reordering it changes which resource AI fixes first.
|
|
59
|
+
* The cloud accounts come last, appended, so no existing priority changes.
|
|
48
60
|
*/
|
|
49
61
|
exports.ALL_AI_RESOURCE_TYPES = [
|
|
50
62
|
AiResourceType.DockerHost,
|
|
@@ -55,7 +67,21 @@ exports.ALL_AI_RESOURCE_TYPES = [
|
|
|
55
67
|
AiResourceType.CephCluster,
|
|
56
68
|
AiResourceType.DatabaseServer,
|
|
57
69
|
AiResourceType.Host,
|
|
70
|
+
AiResourceType.AwsAccount,
|
|
71
|
+
AiResourceType.AzureSubscription,
|
|
72
|
+
AiResourceType.GoogleCloudProject,
|
|
73
|
+
];
|
|
74
|
+
// The cloud accounts, in ALL_AI_RESOURCE_TYPES order.
|
|
75
|
+
exports.CLOUD_AI_RESOURCE_TYPES = [
|
|
76
|
+
AiResourceType.AwsAccount,
|
|
77
|
+
AiResourceType.AzureSubscription,
|
|
78
|
+
AiResourceType.GoogleCloudProject,
|
|
58
79
|
];
|
|
80
|
+
// Whether a type is a cloud account served by a Cloud AI agent.
|
|
81
|
+
function isCloudAiResourceType(value) {
|
|
82
|
+
return (typeof value === "string" &&
|
|
83
|
+
exports.CLOUD_AI_RESOURCE_TYPES.includes(value));
|
|
84
|
+
}
|
|
59
85
|
// Exactly an enum value, case included — what a stored row must hold.
|
|
60
86
|
function isAiResourceType(value) {
|
|
61
87
|
return (typeof value === "string" &&
|
|
@@ -187,7 +213,53 @@ exports.AI_RESOURCE_TYPE_INFO = {
|
|
|
187
213
|
identityEnvVars: ["HOST_NAME"],
|
|
188
214
|
defaultIdentityPlaceholders: [],
|
|
189
215
|
},
|
|
216
|
+
/*
|
|
217
|
+
* "cloud" is not a binary either: it names the closed catalog of cloud
|
|
218
|
+
* operations, each mapped to one API call the agent owns. The agent asks
|
|
219
|
+
* the cloud which account it is in (STS GetCallerIdentity, the one
|
|
220
|
+
* subscription its identity may read, the metadata server's project); the
|
|
221
|
+
* variable only overrides that. A cloud agent binds to an account that is
|
|
222
|
+
* already connected and never creates one.
|
|
223
|
+
*/
|
|
224
|
+
[AiResourceType.AwsAccount]: {
|
|
225
|
+
type: AiResourceType.AwsAccount,
|
|
226
|
+
displayName: "AWS account",
|
|
227
|
+
agentDisplayName: "Cloud AI agent",
|
|
228
|
+
agentAlias: "aws",
|
|
229
|
+
programs: ["cloud"],
|
|
230
|
+
testCommands: ["cloud whoami"],
|
|
231
|
+
identityEnvVars: ["AWS_ACCOUNT_ID"],
|
|
232
|
+
defaultIdentityPlaceholders: [],
|
|
233
|
+
},
|
|
234
|
+
[AiResourceType.AzureSubscription]: {
|
|
235
|
+
type: AiResourceType.AzureSubscription,
|
|
236
|
+
displayName: "Azure subscription",
|
|
237
|
+
agentDisplayName: "Cloud AI agent",
|
|
238
|
+
agentAlias: "azure",
|
|
239
|
+
programs: ["cloud"],
|
|
240
|
+
testCommands: ["cloud whoami"],
|
|
241
|
+
identityEnvVars: ["AZURE_SUBSCRIPTION_ID"],
|
|
242
|
+
defaultIdentityPlaceholders: [],
|
|
243
|
+
},
|
|
244
|
+
[AiResourceType.GoogleCloudProject]: {
|
|
245
|
+
type: AiResourceType.GoogleCloudProject,
|
|
246
|
+
displayName: "Google Cloud project",
|
|
247
|
+
agentDisplayName: "Cloud AI agent",
|
|
248
|
+
agentAlias: "gcp",
|
|
249
|
+
programs: ["cloud"],
|
|
250
|
+
testCommands: ["cloud whoami"],
|
|
251
|
+
identityEnvVars: ["GOOGLE_CLOUD_PROJECT"],
|
|
252
|
+
defaultIdentityPlaceholders: [],
|
|
253
|
+
},
|
|
190
254
|
};
|
|
255
|
+
/*
|
|
256
|
+
* Whether the agent finds its identity itself when no variable names it: a
|
|
257
|
+
* Host reads its own hostname, a cloud agent asks its cloud
|
|
258
|
+
* (ResourceExecutor.resolveResourceIdentifier).
|
|
259
|
+
*/
|
|
260
|
+
function isIdentityResolvedByAgent(type) {
|
|
261
|
+
return type === AiResourceType.Host || isCloudAiResourceType(type);
|
|
262
|
+
}
|
|
191
263
|
function getAiResourceTypeInfo(type) {
|
|
192
264
|
return exports.AI_RESOURCE_TYPE_INFO[type];
|
|
193
265
|
}
|
|
@@ -200,12 +272,14 @@ const EXTRA_AGENT_ALIASES = {
|
|
|
200
272
|
swarm: AiResourceType.DockerSwarmCluster,
|
|
201
273
|
vcenter: AiResourceType.VMwareVCenter,
|
|
202
274
|
db: AiResourceType.DatabaseServer,
|
|
275
|
+
"google-cloud": AiResourceType.GoogleCloudProject,
|
|
203
276
|
};
|
|
204
277
|
/*
|
|
205
278
|
* Read a resource type from configuration or a request: an enum value in
|
|
206
279
|
* any case ("DockerHost", "dockerhost"), or an agent alias ("docker",
|
|
207
280
|
* "podman", "docker-swarm"/"swarm", "proxmox", "vmware"/"vcenter", "ceph",
|
|
208
|
-
* "database"/"db", "host"). Anything
|
|
281
|
+
* "database"/"db", "host", "aws", "azure", "gcp"/"google-cloud"). Anything
|
|
282
|
+
* else is null — never a guess.
|
|
209
283
|
*/
|
|
210
284
|
function parseAiResourceType(value) {
|
|
211
285
|
if (typeof value !== "string") {
|
|
@@ -2,7 +2,10 @@ import commonJsModule from "./AiResourceType.js";
|
|
|
2
2
|
export default commonJsModule.default;
|
|
3
3
|
export const AI_RESOURCE_TYPE_INFO = commonJsModule.AI_RESOURCE_TYPE_INFO;
|
|
4
4
|
export const ALL_AI_RESOURCE_TYPES = commonJsModule.ALL_AI_RESOURCE_TYPES;
|
|
5
|
+
export const CLOUD_AI_RESOURCE_TYPES = commonJsModule.CLOUD_AI_RESOURCE_TYPES;
|
|
5
6
|
export const getAiResourceTypeInfo = commonJsModule.getAiResourceTypeInfo;
|
|
6
7
|
export const isAiResourceType = commonJsModule.isAiResourceType;
|
|
8
|
+
export const isCloudAiResourceType = commonJsModule.isCloudAiResourceType;
|
|
7
9
|
export const isDefaultIdentityPlaceholder = commonJsModule.isDefaultIdentityPlaceholder;
|
|
10
|
+
export const isIdentityResolvedByAgent = commonJsModule.isIdentityResolvedByAgent;
|
|
8
11
|
export const parseAiResourceType = commonJsModule.parseAiResourceType;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CloudAiAgentProvider = "aws" | "azure" | "gcp";
|
|
2
|
+
export declare const CLOUD_AI_AGENT_NAME: string;
|
|
3
|
+
export declare const AWS_CLOUD_AI_AGENT_STACK_NAME: string;
|
|
4
|
+
export declare const AWS_CLOUD_AI_AGENT_CLUSTER_NAME: string;
|
|
5
|
+
export declare const AWS_CLOUD_AI_AGENT_SERVICE_NAME: string;
|
|
6
|
+
export declare const AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME: string;
|
|
7
|
+
export declare const AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME: string;
|
|
8
|
+
export declare const AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME: string;
|
|
9
|
+
export declare const AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP: string;
|
|
10
|
+
export declare const AZURE_CLOUD_AI_AGENT_APP_NAME: string;
|
|
11
|
+
export declare const AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME: string;
|
|
12
|
+
export declare const AZURE_CLOUD_AI_AGENT_ROLE_NAME: string;
|
|
13
|
+
export declare const GCP_CLOUD_AI_AGENT_SERVICE_NAME: string;
|
|
14
|
+
export declare const GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID: string;
|
|
15
|
+
export declare const GCP_CLOUD_AI_AGENT_ROLE_ID: string;
|
|
16
|
+
export declare function getCloudAiAgentOwnTargets(data: {
|
|
17
|
+
provider: CloudAiAgentProvider;
|
|
18
|
+
accountId: string;
|
|
19
|
+
}): Array<string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CloudAiAgentProvider = "aws" | "azure" | "gcp";
|
|
2
|
+
export declare const CLOUD_AI_AGENT_NAME: string;
|
|
3
|
+
export declare const AWS_CLOUD_AI_AGENT_STACK_NAME: string;
|
|
4
|
+
export declare const AWS_CLOUD_AI_AGENT_CLUSTER_NAME: string;
|
|
5
|
+
export declare const AWS_CLOUD_AI_AGENT_SERVICE_NAME: string;
|
|
6
|
+
export declare const AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME: string;
|
|
7
|
+
export declare const AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME: string;
|
|
8
|
+
export declare const AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME: string;
|
|
9
|
+
export declare const AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP: string;
|
|
10
|
+
export declare const AZURE_CLOUD_AI_AGENT_APP_NAME: string;
|
|
11
|
+
export declare const AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME: string;
|
|
12
|
+
export declare const AZURE_CLOUD_AI_AGENT_ROLE_NAME: string;
|
|
13
|
+
export declare const GCP_CLOUD_AI_AGENT_SERVICE_NAME: string;
|
|
14
|
+
export declare const GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID: string;
|
|
15
|
+
export declare const GCP_CLOUD_AI_AGENT_ROLE_ID: string;
|
|
16
|
+
export declare function getCloudAiAgentOwnTargets(data: {
|
|
17
|
+
provider: CloudAiAgentProvider;
|
|
18
|
+
accountId: string;
|
|
19
|
+
}): Array<string>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* What the Cloud AI agent's setup command creates in a customer's cloud,
|
|
4
|
+
* by name, and what the agent therefore never changes: its own stack,
|
|
5
|
+
* service, roles and identity.
|
|
6
|
+
*
|
|
7
|
+
* The setup commands (Types/CloudConnection/CloudAiAgentSetupCommands)
|
|
8
|
+
* create exactly these, the agent protects them on top of what an operator
|
|
9
|
+
* lists in ONEUPTIME_AI_PROTECTED_TARGETS, and the docs name them.
|
|
10
|
+
*
|
|
11
|
+
* Imports nothing on purpose: the resource AI agent carries a
|
|
12
|
+
* byte-identical copy of this directory.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GCP_CLOUD_AI_AGENT_ROLE_ID = exports.GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID = exports.GCP_CLOUD_AI_AGENT_SERVICE_NAME = exports.AZURE_CLOUD_AI_AGENT_ROLE_NAME = exports.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME = exports.AZURE_CLOUD_AI_AGENT_APP_NAME = exports.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP = exports.AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME = exports.AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME = exports.AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME = exports.AWS_CLOUD_AI_AGENT_SERVICE_NAME = exports.AWS_CLOUD_AI_AGENT_CLUSTER_NAME = exports.AWS_CLOUD_AI_AGENT_STACK_NAME = exports.CLOUD_AI_AGENT_NAME = void 0;
|
|
16
|
+
exports.getCloudAiAgentOwnTargets = getCloudAiAgentOwnTargets;
|
|
17
|
+
// The one name every piece takes where a name fits.
|
|
18
|
+
exports.CLOUD_AI_AGENT_NAME = "oneuptime-ai-agent";
|
|
19
|
+
/*
|
|
20
|
+
* AWS: a CloudFormation stack running one ECS Fargate service in a cluster
|
|
21
|
+
* of its own, with a task role that may only assume the write role, which
|
|
22
|
+
* holds the enabled operations' permissions.
|
|
23
|
+
*/
|
|
24
|
+
exports.AWS_CLOUD_AI_AGENT_STACK_NAME = exports.CLOUD_AI_AGENT_NAME;
|
|
25
|
+
exports.AWS_CLOUD_AI_AGENT_CLUSTER_NAME = exports.CLOUD_AI_AGENT_NAME;
|
|
26
|
+
exports.AWS_CLOUD_AI_AGENT_SERVICE_NAME = exports.CLOUD_AI_AGENT_NAME;
|
|
27
|
+
exports.AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME = "OneUptimeAiAgentTask";
|
|
28
|
+
exports.AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME = "OneUptimeAiAgentWrite";
|
|
29
|
+
exports.AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME = `/oneuptime/${exports.CLOUD_AI_AGENT_NAME}`;
|
|
30
|
+
/*
|
|
31
|
+
* Azure: a resource group holding one Container App with a system-assigned
|
|
32
|
+
* managed identity, given a custom role built from the enabled operations.
|
|
33
|
+
*/
|
|
34
|
+
exports.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP = exports.CLOUD_AI_AGENT_NAME;
|
|
35
|
+
exports.AZURE_CLOUD_AI_AGENT_APP_NAME = exports.CLOUD_AI_AGENT_NAME;
|
|
36
|
+
exports.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME = `${exports.CLOUD_AI_AGENT_NAME}-env`;
|
|
37
|
+
exports.AZURE_CLOUD_AI_AGENT_ROLE_NAME = "OneUptime AI Agent";
|
|
38
|
+
/*
|
|
39
|
+
* Google Cloud: one Cloud Run service with CPU always allocated, running as
|
|
40
|
+
* a service account of its own with a custom role built from the enabled
|
|
41
|
+
* operations.
|
|
42
|
+
*/
|
|
43
|
+
exports.GCP_CLOUD_AI_AGENT_SERVICE_NAME = exports.CLOUD_AI_AGENT_NAME;
|
|
44
|
+
exports.GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID = exports.CLOUD_AI_AGENT_NAME;
|
|
45
|
+
exports.GCP_CLOUD_AI_AGENT_ROLE_ID = "oneuptimeAiAgent";
|
|
46
|
+
/*
|
|
47
|
+
* The targets an agent in this account never changes, as protected-target
|
|
48
|
+
* globs (ResourceCommandPolicy.getWriteScopeRefusal matches them against a
|
|
49
|
+
* change's target, case-insensitively): everything its setup command
|
|
50
|
+
* created. The account id narrows them where the cloud's ids carry it.
|
|
51
|
+
*/
|
|
52
|
+
function getCloudAiAgentOwnTargets(data) {
|
|
53
|
+
const account = data.accountId.trim() || "*";
|
|
54
|
+
switch (data.provider) {
|
|
55
|
+
case "aws":
|
|
56
|
+
return [
|
|
57
|
+
`arn:aws*:ecs:*:${account}:service/${exports.AWS_CLOUD_AI_AGENT_CLUSTER_NAME}/*`,
|
|
58
|
+
`arn:aws*:ecs:*:${account}:cluster/${exports.AWS_CLOUD_AI_AGENT_CLUSTER_NAME}`,
|
|
59
|
+
`arn:aws*:iam::${account}:role/${exports.AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME}`,
|
|
60
|
+
`arn:aws*:iam::${account}:role/${exports.AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME}`,
|
|
61
|
+
`arn:aws*:cloudformation:*:${account}:stack/${exports.AWS_CLOUD_AI_AGENT_STACK_NAME}/*`,
|
|
62
|
+
];
|
|
63
|
+
case "azure":
|
|
64
|
+
return [
|
|
65
|
+
`/subscriptions/${account.toLowerCase()}/resourcegroups/${exports.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP}/*`,
|
|
66
|
+
];
|
|
67
|
+
case "gcp":
|
|
68
|
+
return [
|
|
69
|
+
`//run.googleapis.com/projects/${account}/locations/*/services/${exports.GCP_CLOUD_AI_AGENT_SERVICE_NAME}`,
|
|
70
|
+
`//iam.googleapis.com/projects/${account}/serviceAccounts/${exports.GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID}@*`,
|
|
71
|
+
];
|
|
72
|
+
default:
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import commonJsModule from "./CloudAiAgentNames.js";
|
|
2
|
+
export const AWS_CLOUD_AI_AGENT_CLUSTER_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_CLUSTER_NAME;
|
|
3
|
+
export const AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_LOG_GROUP_NAME;
|
|
4
|
+
export const AWS_CLOUD_AI_AGENT_SERVICE_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_SERVICE_NAME;
|
|
5
|
+
export const AWS_CLOUD_AI_AGENT_STACK_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_STACK_NAME;
|
|
6
|
+
export const AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_TASK_ROLE_NAME;
|
|
7
|
+
export const AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME = commonJsModule.AWS_CLOUD_AI_AGENT_WRITE_ROLE_NAME;
|
|
8
|
+
export const AZURE_CLOUD_AI_AGENT_APP_NAME = commonJsModule.AZURE_CLOUD_AI_AGENT_APP_NAME;
|
|
9
|
+
export const AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME = commonJsModule.AZURE_CLOUD_AI_AGENT_ENVIRONMENT_NAME;
|
|
10
|
+
export const AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP = commonJsModule.AZURE_CLOUD_AI_AGENT_RESOURCE_GROUP;
|
|
11
|
+
export const AZURE_CLOUD_AI_AGENT_ROLE_NAME = commonJsModule.AZURE_CLOUD_AI_AGENT_ROLE_NAME;
|
|
12
|
+
export const CLOUD_AI_AGENT_NAME = commonJsModule.CLOUD_AI_AGENT_NAME;
|
|
13
|
+
export const GCP_CLOUD_AI_AGENT_ROLE_ID = commonJsModule.GCP_CLOUD_AI_AGENT_ROLE_ID;
|
|
14
|
+
export const GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID = commonJsModule.GCP_CLOUD_AI_AGENT_SERVICE_ACCOUNT_ID;
|
|
15
|
+
export const GCP_CLOUD_AI_AGENT_SERVICE_NAME = commonJsModule.GCP_CLOUD_AI_AGENT_SERVICE_NAME;
|
|
16
|
+
export const getCloudAiAgentOwnTargets = commonJsModule.getCloudAiAgentOwnTargets;
|
|
@@ -26,6 +26,12 @@ export declare const RESOURCE_AI_AGENT_RESOURCE_NAME_ENV: string;
|
|
|
26
26
|
export declare const RESOURCE_AI_ALLOW_WRITES_ENV: string;
|
|
27
27
|
export declare const RESOURCE_AI_WRITE_TARGETS_ENV: string;
|
|
28
28
|
export declare const RESOURCE_AI_AGENT_API_KEY_ENVS: ReadonlyArray<string>;
|
|
29
|
+
export declare const RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV: string;
|
|
30
|
+
export declare const RESOURCE_AI_CLOUD_OPERATIONS_ENV: string;
|
|
31
|
+
export declare const RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV: string;
|
|
32
|
+
export declare const RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV: string;
|
|
33
|
+
export declare const RESOURCE_AI_PROTECTED_TARGETS_ENV: string;
|
|
34
|
+
export declare const CLOUD_AI_DEFAULT_REQUIRED_TAG: string;
|
|
29
35
|
export interface ResourceAiAgentPosture {
|
|
30
36
|
resourceType: AiResourceType;
|
|
31
37
|
resourceIdentifier: string;
|
|
@@ -44,7 +50,7 @@ export interface ResourceAiAgentPosture {
|
|
|
44
50
|
export declare const MAX_POSTURE_LIST_ENTRIES: number;
|
|
45
51
|
export declare const MAX_POSTURE_STRING_LENGTH: number;
|
|
46
52
|
export declare function parseResourceAiAgentPosture(value: unknown): ResourceAiAgentPosture | null;
|
|
47
|
-
export type ResourceAiAccessGapCode = "ai_agent_not_connected" | "ai_agent_offline" | "ai_agent_unreachable_resource" | "investigation_disabled" | "remediation_disabled" | "remediation_write_access_missing" | "ai_disabled_for_project" | "auto_remediation_disabled_for_project" | "llm_provider_missing" | "ai_balance_insufficient";
|
|
53
|
+
export type ResourceAiAccessGapCode = "ai_agent_not_connected" | "ai_agent_offline" | "ai_agent_unreachable_resource" | "investigation_disabled" | "remediation_disabled" | "remediation_write_access_missing" | "ai_disabled_for_project" | "auto_remediation_disabled_for_project" | "llm_provider_missing" | "ai_balance_insufficient" | "cloud_connection_missing";
|
|
48
54
|
export interface ResourceAiAccessGap {
|
|
49
55
|
code: ResourceAiAccessGapCode;
|
|
50
56
|
title: string;
|
|
@@ -63,6 +69,10 @@ export interface ResourceAiAgentSummary {
|
|
|
63
69
|
lastRefusedRegistrationAt?: string | null | undefined;
|
|
64
70
|
lastRefusedRegistrationReason?: string | null | undefined;
|
|
65
71
|
}
|
|
72
|
+
export interface ResourceAiAutomaticRemediationSettings {
|
|
73
|
+
incidents: boolean;
|
|
74
|
+
alerts: boolean;
|
|
75
|
+
}
|
|
66
76
|
export interface ResourceAiAccessStatus {
|
|
67
77
|
resourceType: AiResourceType;
|
|
68
78
|
resourceId: string;
|
|
@@ -78,6 +88,7 @@ export interface ResourceAiAccessStatus {
|
|
|
78
88
|
gaps: Array<ResourceAiAccessGap>;
|
|
79
89
|
isInvestigationReady: boolean;
|
|
80
90
|
isRemediationReady: boolean;
|
|
91
|
+
automaticRemediation?: ResourceAiAutomaticRemediationSettings | undefined;
|
|
81
92
|
}
|
|
82
93
|
export interface ResourceAiAgentRegisterRequest {
|
|
83
94
|
resourceType: AiResourceType;
|
|
@@ -26,6 +26,12 @@ export declare const RESOURCE_AI_AGENT_RESOURCE_NAME_ENV: string;
|
|
|
26
26
|
export declare const RESOURCE_AI_ALLOW_WRITES_ENV: string;
|
|
27
27
|
export declare const RESOURCE_AI_WRITE_TARGETS_ENV: string;
|
|
28
28
|
export declare const RESOURCE_AI_AGENT_API_KEY_ENVS: ReadonlyArray<string>;
|
|
29
|
+
export declare const RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV: string;
|
|
30
|
+
export declare const RESOURCE_AI_CLOUD_OPERATIONS_ENV: string;
|
|
31
|
+
export declare const RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV: string;
|
|
32
|
+
export declare const RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV: string;
|
|
33
|
+
export declare const RESOURCE_AI_PROTECTED_TARGETS_ENV: string;
|
|
34
|
+
export declare const CLOUD_AI_DEFAULT_REQUIRED_TAG: string;
|
|
29
35
|
export interface ResourceAiAgentPosture {
|
|
30
36
|
resourceType: AiResourceType;
|
|
31
37
|
resourceIdentifier: string;
|
|
@@ -44,7 +50,7 @@ export interface ResourceAiAgentPosture {
|
|
|
44
50
|
export declare const MAX_POSTURE_LIST_ENTRIES: number;
|
|
45
51
|
export declare const MAX_POSTURE_STRING_LENGTH: number;
|
|
46
52
|
export declare function parseResourceAiAgentPosture(value: unknown): ResourceAiAgentPosture | null;
|
|
47
|
-
export type ResourceAiAccessGapCode = "ai_agent_not_connected" | "ai_agent_offline" | "ai_agent_unreachable_resource" | "investigation_disabled" | "remediation_disabled" | "remediation_write_access_missing" | "ai_disabled_for_project" | "auto_remediation_disabled_for_project" | "llm_provider_missing" | "ai_balance_insufficient";
|
|
53
|
+
export type ResourceAiAccessGapCode = "ai_agent_not_connected" | "ai_agent_offline" | "ai_agent_unreachable_resource" | "investigation_disabled" | "remediation_disabled" | "remediation_write_access_missing" | "ai_disabled_for_project" | "auto_remediation_disabled_for_project" | "llm_provider_missing" | "ai_balance_insufficient" | "cloud_connection_missing";
|
|
48
54
|
export interface ResourceAiAccessGap {
|
|
49
55
|
code: ResourceAiAccessGapCode;
|
|
50
56
|
title: string;
|
|
@@ -63,6 +69,10 @@ export interface ResourceAiAgentSummary {
|
|
|
63
69
|
lastRefusedRegistrationAt?: string | null | undefined;
|
|
64
70
|
lastRefusedRegistrationReason?: string | null | undefined;
|
|
65
71
|
}
|
|
72
|
+
export interface ResourceAiAutomaticRemediationSettings {
|
|
73
|
+
incidents: boolean;
|
|
74
|
+
alerts: boolean;
|
|
75
|
+
}
|
|
66
76
|
export interface ResourceAiAccessStatus {
|
|
67
77
|
resourceType: AiResourceType;
|
|
68
78
|
resourceId: string;
|
|
@@ -78,6 +88,7 @@ export interface ResourceAiAccessStatus {
|
|
|
78
88
|
gaps: Array<ResourceAiAccessGap>;
|
|
79
89
|
isInvestigationReady: boolean;
|
|
80
90
|
isRemediationReady: boolean;
|
|
91
|
+
automaticRemediation?: ResourceAiAutomaticRemediationSettings | undefined;
|
|
81
92
|
}
|
|
82
93
|
export interface ResourceAiAgentRegisterRequest {
|
|
83
94
|
resourceType: AiResourceType;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* must compile without the rest of Common.
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.MAX_RESOURCE_AGENT_OUTPUT_BYTES = exports.MAX_RESOURCE_COMMAND_OUTPUT_CHARS_FOR_LLM = exports.MAX_RESOURCE_COMMAND_TIMEOUT_MS = exports.DEFAULT_RESOURCE_COMMAND_TIMEOUT_MS = exports.MAX_RESOURCE_COMMANDS_PER_INVESTIGATION = exports.TRANSIENT_RESOURCE_AI_AGENT_REGISTRATION_REFUSALS = exports.MAX_POSTURE_STRING_LENGTH = exports.MAX_POSTURE_LIST_ENTRIES = exports.RESOURCE_AI_AGENT_API_KEY_ENVS = exports.RESOURCE_AI_WRITE_TARGETS_ENV = exports.RESOURCE_AI_ALLOW_WRITES_ENV = exports.RESOURCE_AI_AGENT_RESOURCE_NAME_ENV = exports.RESOURCE_AI_AGENT_RESOURCE_TYPE_ENV = exports.RESOURCE_AI_AGENT_DEFAULT_HEALTH_PORT = exports.RESOURCE_AI_AGENT_IMAGE_REPOSITORY = exports.RESOURCE_AI_AGENT_INGEST_PATH = exports.RESOURCE_AI_AGENT_TAKEOVER_AFTER_SILENT_SECONDS = exports.RESOURCE_AI_AGENT_ALIVE_WINDOW_IN_MINUTES = exports.UNATTENDED_RESOURCE_REMEDIATION_MODES = exports.ResourceAiRemediationMode = exports.ResourceCommandTier = void 0;
|
|
20
|
+
exports.MAX_RESOURCE_AGENT_OUTPUT_BYTES = exports.MAX_RESOURCE_COMMAND_OUTPUT_CHARS_FOR_LLM = exports.MAX_RESOURCE_COMMAND_TIMEOUT_MS = exports.DEFAULT_RESOURCE_COMMAND_TIMEOUT_MS = exports.MAX_RESOURCE_COMMANDS_PER_INVESTIGATION = exports.TRANSIENT_RESOURCE_AI_AGENT_REGISTRATION_REFUSALS = exports.MAX_POSTURE_STRING_LENGTH = exports.MAX_POSTURE_LIST_ENTRIES = exports.CLOUD_AI_DEFAULT_REQUIRED_TAG = exports.RESOURCE_AI_PROTECTED_TARGETS_ENV = exports.RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV = exports.RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV = exports.RESOURCE_AI_CLOUD_OPERATIONS_ENV = exports.RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV = exports.RESOURCE_AI_AGENT_API_KEY_ENVS = exports.RESOURCE_AI_WRITE_TARGETS_ENV = exports.RESOURCE_AI_ALLOW_WRITES_ENV = exports.RESOURCE_AI_AGENT_RESOURCE_NAME_ENV = exports.RESOURCE_AI_AGENT_RESOURCE_TYPE_ENV = exports.RESOURCE_AI_AGENT_DEFAULT_HEALTH_PORT = exports.RESOURCE_AI_AGENT_IMAGE_REPOSITORY = exports.RESOURCE_AI_AGENT_INGEST_PATH = exports.RESOURCE_AI_AGENT_TAKEOVER_AFTER_SILENT_SECONDS = exports.RESOURCE_AI_AGENT_ALIVE_WINDOW_IN_MINUTES = exports.UNATTENDED_RESOURCE_REMEDIATION_MODES = exports.ResourceAiRemediationMode = exports.ResourceCommandTier = void 0;
|
|
21
21
|
exports.isUnattendedResourceRemediationMode = isUnattendedResourceRemediationMode;
|
|
22
22
|
exports.parseResourceAiRemediationMode = parseResourceAiRemediationMode;
|
|
23
23
|
exports.parseResourceAiAgentPosture = parseResourceAiAgentPosture;
|
|
@@ -141,6 +141,33 @@ exports.RESOURCE_AI_AGENT_API_KEY_ENVS = [
|
|
|
141
141
|
"ONEUPTIME_TELEMETRY_INGESTION_KEY",
|
|
142
142
|
"ONEUPTIME_SERVICE_TOKEN",
|
|
143
143
|
];
|
|
144
|
+
/*
|
|
145
|
+
* What a Cloud AI agent reads besides (the cloud's setup command sets them):
|
|
146
|
+
*
|
|
147
|
+
* CLOUD_ACCOUNT_ID: OneUptime's id of the cloud account the command was
|
|
148
|
+
* written for, sent on registration as the pinned
|
|
149
|
+
* resourceId. The agent still binds by the account its
|
|
150
|
+
* cloud says it is in; an agent that runs somewhere else
|
|
151
|
+
* is refused, and the account it was meant for says so.
|
|
152
|
+
* CLOUD_OPERATIONS: comma-separated catalog changes the agent may make
|
|
153
|
+
* (restart-service, scale-out, ...). Unset means every
|
|
154
|
+
* change of the catalog; their tiers still apply. Reads
|
|
155
|
+
* are not in the list.
|
|
156
|
+
* CLOUD_REQUIRED_TAG: "key=value": the agent changes only resources that
|
|
157
|
+
* carry this tag (or label), such as oneuptime-ai=allow.
|
|
158
|
+
* AWS_WRITE_ROLE_ARN: AWS only: the role the agent assumes for each change,
|
|
159
|
+
* with a session policy that allows only that change's
|
|
160
|
+
* actions on its one resource.
|
|
161
|
+
* Protected targets (ONEUPTIME_AI_PROTECTED_TARGETS) take the agent's own
|
|
162
|
+
* service, roles and stack on top of what an operator lists.
|
|
163
|
+
*/
|
|
164
|
+
exports.RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV = "ONEUPTIME_AI_CLOUD_ACCOUNT_ID";
|
|
165
|
+
exports.RESOURCE_AI_CLOUD_OPERATIONS_ENV = "ONEUPTIME_AI_CLOUD_OPERATIONS";
|
|
166
|
+
exports.RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV = "ONEUPTIME_AI_CLOUD_REQUIRED_TAG";
|
|
167
|
+
exports.RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV = "ONEUPTIME_AI_AWS_WRITE_ROLE_ARN";
|
|
168
|
+
exports.RESOURCE_AI_PROTECTED_TARGETS_ENV = "ONEUPTIME_AI_PROTECTED_TARGETS";
|
|
169
|
+
// The tag a team may require on every resource AI changes.
|
|
170
|
+
exports.CLOUD_AI_DEFAULT_REQUIRED_TAG = "oneuptime-ai=allow";
|
|
144
171
|
// Bounds parseResourceAiAgentPosture holds every posture to.
|
|
145
172
|
exports.MAX_POSTURE_LIST_ENTRIES = 64;
|
|
146
173
|
exports.MAX_POSTURE_STRING_LENGTH = 256;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import commonJsModule from "./ResourceAiAccess.js";
|
|
2
|
+
export const CLOUD_AI_DEFAULT_REQUIRED_TAG = commonJsModule.CLOUD_AI_DEFAULT_REQUIRED_TAG;
|
|
2
3
|
export const DEFAULT_RESOURCE_COMMAND_TIMEOUT_MS = commonJsModule.DEFAULT_RESOURCE_COMMAND_TIMEOUT_MS;
|
|
3
4
|
export const MAX_POSTURE_LIST_ENTRIES = commonJsModule.MAX_POSTURE_LIST_ENTRIES;
|
|
4
5
|
export const MAX_POSTURE_STRING_LENGTH = commonJsModule.MAX_POSTURE_STRING_LENGTH;
|
|
@@ -15,6 +16,11 @@ export const RESOURCE_AI_AGENT_RESOURCE_NAME_ENV = commonJsModule.RESOURCE_AI_AG
|
|
|
15
16
|
export const RESOURCE_AI_AGENT_RESOURCE_TYPE_ENV = commonJsModule.RESOURCE_AI_AGENT_RESOURCE_TYPE_ENV;
|
|
16
17
|
export const RESOURCE_AI_AGENT_TAKEOVER_AFTER_SILENT_SECONDS = commonJsModule.RESOURCE_AI_AGENT_TAKEOVER_AFTER_SILENT_SECONDS;
|
|
17
18
|
export const RESOURCE_AI_ALLOW_WRITES_ENV = commonJsModule.RESOURCE_AI_ALLOW_WRITES_ENV;
|
|
19
|
+
export const RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV = commonJsModule.RESOURCE_AI_AWS_WRITE_ROLE_ARN_ENV;
|
|
20
|
+
export const RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV = commonJsModule.RESOURCE_AI_CLOUD_ACCOUNT_ID_ENV;
|
|
21
|
+
export const RESOURCE_AI_CLOUD_OPERATIONS_ENV = commonJsModule.RESOURCE_AI_CLOUD_OPERATIONS_ENV;
|
|
22
|
+
export const RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV = commonJsModule.RESOURCE_AI_CLOUD_REQUIRED_TAG_ENV;
|
|
23
|
+
export const RESOURCE_AI_PROTECTED_TARGETS_ENV = commonJsModule.RESOURCE_AI_PROTECTED_TARGETS_ENV;
|
|
18
24
|
export const RESOURCE_AI_WRITE_TARGETS_ENV = commonJsModule.RESOURCE_AI_WRITE_TARGETS_ENV;
|
|
19
25
|
export const ResourceAiRemediationMode = commonJsModule.ResourceAiRemediationMode;
|
|
20
26
|
export const ResourceCommandTier = commonJsModule.ResourceCommandTier;
|
|
@@ -147,6 +147,19 @@ exports.RULE_CRITERIA_FIELDS_BY_MODEL = {
|
|
|
147
147
|
"dashboardNamePattern",
|
|
148
148
|
"dashboardDescriptionPattern",
|
|
149
149
|
],
|
|
150
|
+
// A data store's labels, its name and description, and its cloud tags.
|
|
151
|
+
DataStoreLabelRule: [
|
|
152
|
+
"matchLabels",
|
|
153
|
+
"nameRegexPattern",
|
|
154
|
+
"descriptionRegexPattern",
|
|
155
|
+
"cloudTagPattern",
|
|
156
|
+
],
|
|
157
|
+
DataStoreOwnerRule: [
|
|
158
|
+
"matchLabels",
|
|
159
|
+
"nameRegexPattern",
|
|
160
|
+
"descriptionRegexPattern",
|
|
161
|
+
"cloudTagPattern",
|
|
162
|
+
],
|
|
150
163
|
DatabaseServerLabelRule: [
|
|
151
164
|
"databaseServerLabels",
|
|
152
165
|
"databaseServerNamePattern",
|
|
@@ -30,7 +30,8 @@ export declare enum RuleCriteriaSubject {
|
|
|
30
30
|
IncomingCallPolicies = "IncomingCallPolicies",
|
|
31
31
|
Runbooks = "Runbooks",
|
|
32
32
|
Workflows = "Workflows",
|
|
33
|
-
StorageArrays = "StorageArrays"
|
|
33
|
+
StorageArrays = "StorageArrays",
|
|
34
|
+
DataStores = "DataStores"
|
|
34
35
|
}
|
|
35
36
|
export declare const RULE_CRITERIA_MODELS_NAMED_BY_THEIR_TABLE: ReadonlyArray<RegisteredRuleCriteriaModelName>;
|
|
36
37
|
export declare const RULE_CRITERIA_SUBJECT_BY_MODEL: Readonly<Record<RegisteredRuleCriteriaModelName, RuleCriteriaSubject | null>>;
|
|
@@ -30,7 +30,8 @@ export declare enum RuleCriteriaSubject {
|
|
|
30
30
|
IncomingCallPolicies = "IncomingCallPolicies",
|
|
31
31
|
Runbooks = "Runbooks",
|
|
32
32
|
Workflows = "Workflows",
|
|
33
|
-
StorageArrays = "StorageArrays"
|
|
33
|
+
StorageArrays = "StorageArrays",
|
|
34
|
+
DataStores = "DataStores"
|
|
34
35
|
}
|
|
35
36
|
export declare const RULE_CRITERIA_MODELS_NAMED_BY_THEIR_TABLE: ReadonlyArray<RegisteredRuleCriteriaModelName>;
|
|
36
37
|
export declare const RULE_CRITERIA_SUBJECT_BY_MODEL: Readonly<Record<RegisteredRuleCriteriaModelName, RuleCriteriaSubject | null>>;
|
|
@@ -49,6 +49,7 @@ var RuleCriteriaSubject;
|
|
|
49
49
|
RuleCriteriaSubject["Runbooks"] = "Runbooks";
|
|
50
50
|
RuleCriteriaSubject["Workflows"] = "Workflows";
|
|
51
51
|
RuleCriteriaSubject["StorageArrays"] = "StorageArrays";
|
|
52
|
+
RuleCriteriaSubject["DataStores"] = "DataStores";
|
|
52
53
|
})(RuleCriteriaSubject || (exports.RuleCriteriaSubject = RuleCriteriaSubject = {}));
|
|
53
54
|
/*
|
|
54
55
|
* One table holds the rules for several kinds of record, so its records
|
|
@@ -84,6 +85,8 @@ exports.RULE_CRITERIA_SUBJECT_BY_MODEL = {
|
|
|
84
85
|
CloudResourceOwnerRule: RuleCriteriaSubject.CloudResources,
|
|
85
86
|
DashboardLabelRule: RuleCriteriaSubject.Dashboards,
|
|
86
87
|
DashboardOwnerRule: RuleCriteriaSubject.Dashboards,
|
|
88
|
+
DataStoreLabelRule: RuleCriteriaSubject.DataStores,
|
|
89
|
+
DataStoreOwnerRule: RuleCriteriaSubject.DataStores,
|
|
87
90
|
DatabaseServerLabelRule: RuleCriteriaSubject.Databases,
|
|
88
91
|
DatabaseServerOwnerRule: RuleCriteriaSubject.Databases,
|
|
89
92
|
DockerHostLabelRule: RuleCriteriaSubject.DockerHosts,
|
|
@@ -19,6 +19,8 @@ export declare enum RuleRunType {
|
|
|
19
19
|
CloudResourceOwnerRule = "CloudResourceOwnerRule",
|
|
20
20
|
DashboardLabelRule = "DashboardLabelRule",
|
|
21
21
|
DashboardOwnerRule = "DashboardOwnerRule",
|
|
22
|
+
DataStoreLabelRule = "DataStoreLabelRule",
|
|
23
|
+
DataStoreOwnerRule = "DataStoreOwnerRule",
|
|
22
24
|
DatabaseServerLabelRule = "DatabaseServerLabelRule",
|
|
23
25
|
DatabaseServerOwnerRule = "DatabaseServerOwnerRule",
|
|
24
26
|
DockerHostLabelRule = "DockerHostLabelRule",
|
package/Types/Rules/RuleRun.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export declare enum RuleRunType {
|
|
|
19
19
|
CloudResourceOwnerRule = "CloudResourceOwnerRule",
|
|
20
20
|
DashboardLabelRule = "DashboardLabelRule",
|
|
21
21
|
DashboardOwnerRule = "DashboardOwnerRule",
|
|
22
|
+
DataStoreLabelRule = "DataStoreLabelRule",
|
|
23
|
+
DataStoreOwnerRule = "DataStoreOwnerRule",
|
|
22
24
|
DatabaseServerLabelRule = "DatabaseServerLabelRule",
|
|
23
25
|
DatabaseServerOwnerRule = "DatabaseServerOwnerRule",
|
|
24
26
|
DockerHostLabelRule = "DockerHostLabelRule",
|
package/Types/Rules/RuleRun.js
CHANGED
|
@@ -57,6 +57,8 @@ var RuleRunType;
|
|
|
57
57
|
RuleRunType["CloudResourceOwnerRule"] = "CloudResourceOwnerRule";
|
|
58
58
|
RuleRunType["DashboardLabelRule"] = "DashboardLabelRule";
|
|
59
59
|
RuleRunType["DashboardOwnerRule"] = "DashboardOwnerRule";
|
|
60
|
+
RuleRunType["DataStoreLabelRule"] = "DataStoreLabelRule";
|
|
61
|
+
RuleRunType["DataStoreOwnerRule"] = "DataStoreOwnerRule";
|
|
60
62
|
RuleRunType["DatabaseServerLabelRule"] = "DatabaseServerLabelRule";
|
|
61
63
|
RuleRunType["DatabaseServerOwnerRule"] = "DatabaseServerOwnerRule";
|
|
62
64
|
RuleRunType["DockerHostLabelRule"] = "DockerHostLabelRule";
|
|
@@ -137,6 +139,8 @@ exports.RULE_RUN_TYPE_METADATA = {
|
|
|
137
139
|
[RuleRunType.CloudResourceOwnerRule]: metadata(Owners, "cloud resource", "cloud resources"),
|
|
138
140
|
[RuleRunType.DashboardLabelRule]: metadata(Labels, "dashboard", "dashboards"),
|
|
139
141
|
[RuleRunType.DashboardOwnerRule]: metadata(Owners, "dashboard", "dashboards"),
|
|
142
|
+
[RuleRunType.DataStoreLabelRule]: metadata(Labels, "data store", "data stores"),
|
|
143
|
+
[RuleRunType.DataStoreOwnerRule]: metadata(Owners, "data store", "data stores"),
|
|
140
144
|
[RuleRunType.DatabaseServerLabelRule]: metadata(Labels, "database", "databases"),
|
|
141
145
|
[RuleRunType.DatabaseServerOwnerRule]: metadata(Owners, "database", "databases"),
|
|
142
146
|
[RuleRunType.DockerHostLabelRule]: metadata(Labels, "Docker host", "Docker hosts"),
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const SECURITY_CASE_EVENT_EVIDENCE_MAX_PER_ADD: number;
|
|
2
|
+
export declare const SECURITY_CASE_EVENT_SNAPSHOT_TEXT_MAX_LENGTH: number;
|
|
3
|
+
export declare const SECURITY_CASE_EVENT_SNAPSHOT_LIST_MAX: number;
|
|
4
|
+
export declare const SECURITY_CASE_EVENT_SNAPSHOT_ATTRIBUTES_MAX: number;
|
|
5
|
+
export declare const SECURITY_CASE_EVENT_SNAPSHOT_ATTRIBUTE_VALUE_MAX_LENGTH: number;
|
|
6
|
+
export declare const SECURITY_CASE_EVENT_SNAPSHOT_COLUMNS: ReadonlyArray<string>;
|
|
7
|
+
export interface SecurityCaseEventHunt {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SecurityCaseEventSnapshot {
|
|
12
|
+
time: string;
|
|
13
|
+
eventUid: string;
|
|
14
|
+
sourceId: string;
|
|
15
|
+
severityName: string;
|
|
16
|
+
className: string;
|
|
17
|
+
categoryName: string;
|
|
18
|
+
activityName: string;
|
|
19
|
+
statusName: string;
|
|
20
|
+
message: string;
|
|
21
|
+
vendorName: string;
|
|
22
|
+
productName: string;
|
|
23
|
+
ruleName: string;
|
|
24
|
+
principalUser: string;
|
|
25
|
+
principalHost: string;
|
|
26
|
+
principalIp: string;
|
|
27
|
+
targetUser: string;
|
|
28
|
+
targetHost: string;
|
|
29
|
+
targetIp: string;
|
|
30
|
+
targetPort: number | null;
|
|
31
|
+
processName: string;
|
|
32
|
+
processCommandLine: string;
|
|
33
|
+
observables: Array<string>;
|
|
34
|
+
mitreTactics: Array<string>;
|
|
35
|
+
mitreTechniques: Array<string>;
|
|
36
|
+
attributes: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
hunt: SecurityCaseEventHunt | null;
|
|
40
|
+
}
|
|
41
|
+
export interface SecurityCaseEventReference {
|
|
42
|
+
eventUid: string;
|
|
43
|
+
time: Date;
|
|
44
|
+
}
|
|
45
|
+
export interface SecurityCaseEventsAddResult {
|
|
46
|
+
added: Array<string>;
|
|
47
|
+
alreadyOnCase: Array<string>;
|
|
48
|
+
notFound: Array<string>;
|
|
49
|
+
}
|
|
50
|
+
export declare function readSecurityCaseEventsAddResult(value: unknown): SecurityCaseEventsAddResult;
|
|
51
|
+
export declare const SECURITY_CASE_EVENTS_ADD_REASONS: {
|
|
52
|
+
alreadyOnCase: {
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
notFound: {
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare function buildSecurityCaseEventSnapshot(data: {
|
|
60
|
+
event: {
|
|
61
|
+
[column: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
hunt?: SecurityCaseEventHunt | null | undefined;
|
|
64
|
+
}): SecurityCaseEventSnapshot;
|
|
65
|
+
export declare function readSecurityCaseEventSnapshot(value: unknown): SecurityCaseEventSnapshot | null;
|
|
66
|
+
export declare function getSecurityCaseEventEvidenceName(snapshot: Pick<SecurityCaseEventSnapshot, "message" | "className" | "activityName">): string;
|
|
67
|
+
export declare function readSecurityCaseEventReferences(value: unknown): Array<SecurityCaseEventReference>;
|