@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
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const Alert_1 = __importDefault(require("./Alert"));
|
|
16
|
+
const DataStore_1 = __importDefault(require("./DataStore"));
|
|
17
|
+
const Incident_1 = __importDefault(require("./Incident"));
|
|
18
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
19
|
+
const SecurityCase_1 = __importDefault(require("./SecurityCase"));
|
|
20
|
+
const Team_1 = __importDefault(require("./Team"));
|
|
21
|
+
const User_1 = __importDefault(require("./User"));
|
|
22
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
23
|
+
const Route_1 = __importDefault(require("../../Types/API/Route"));
|
|
24
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
25
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
26
|
+
const TableBillingAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableBillingAccessControl"));
|
|
27
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
28
|
+
const CrudApiEndpoint_1 = __importDefault(require("../../Types/Database/CrudApiEndpoint"));
|
|
29
|
+
const EnableDocumentation_1 = __importDefault(require("../../Types/Database/EnableDocumentation"));
|
|
30
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
31
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
32
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
33
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
34
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
35
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
36
|
+
const Permission_1 = __importDefault(require("../../Types/Permission"));
|
|
37
|
+
const SubscriptionPlan_1 = require("../../Types/Billing/SubscriptionPlan");
|
|
38
|
+
const EnableMCP_1 = __importDefault(require("../../Types/Database/EnableMCP"));
|
|
39
|
+
const EnableAuditLog_1 = __importDefault(require("../../Types/Database/EnableAuditLog"));
|
|
40
|
+
const EnableWorkflow_1 = __importDefault(require("../../Types/Database/EnableWorkflow"));
|
|
41
|
+
const SecuritySeverity_1 = __importDefault(require("../../Types/SecuritySeverity"));
|
|
42
|
+
const DataSecurityIssueStatus_1 = __importDefault(require("../../Types/DataSecurity/DataSecurityIssueStatus"));
|
|
43
|
+
const ColumnLength_1 = __importDefault(require("../../Types/Database/ColumnLength"));
|
|
44
|
+
const typeorm_1 = require("typeorm");
|
|
45
|
+
/*
|
|
46
|
+
* One failing check on one store
|
|
47
|
+
* (Types/DataSecurity/DataSecurityCheckCatalog): what is wrong, the
|
|
48
|
+
* evidence, how severe it is for this store's data, and its risk score with
|
|
49
|
+
* every factor that went into it.
|
|
50
|
+
*
|
|
51
|
+
* OneUptime opens, updates and resolves issues as checks run
|
|
52
|
+
* (DataSecurityIssueReconciler); one row per store and check, however often
|
|
53
|
+
* it fails. People assign an issue, accept its risk with a reason and an
|
|
54
|
+
* expiry date, mark it resolved to ask for a re-check, or say it is not an
|
|
55
|
+
* issue at all.
|
|
56
|
+
*/
|
|
57
|
+
const readPermissions = [
|
|
58
|
+
Permission_1.default.ProjectOwner,
|
|
59
|
+
Permission_1.default.ProjectAdmin,
|
|
60
|
+
Permission_1.default.SecurityAdmin,
|
|
61
|
+
Permission_1.default.SecurityMember,
|
|
62
|
+
Permission_1.default.SecurityViewer,
|
|
63
|
+
Permission_1.default.ReadDataSecurityIssue,
|
|
64
|
+
];
|
|
65
|
+
const createPermissions = [];
|
|
66
|
+
const updatePermissions = [
|
|
67
|
+
Permission_1.default.ProjectOwner,
|
|
68
|
+
Permission_1.default.ProjectAdmin,
|
|
69
|
+
Permission_1.default.SecurityAdmin,
|
|
70
|
+
Permission_1.default.SecurityMember,
|
|
71
|
+
Permission_1.default.EditDataSecurityIssue,
|
|
72
|
+
];
|
|
73
|
+
const deletePermissions = [
|
|
74
|
+
Permission_1.default.ProjectOwner,
|
|
75
|
+
Permission_1.default.ProjectAdmin,
|
|
76
|
+
Permission_1.default.SecurityAdmin,
|
|
77
|
+
Permission_1.default.DeleteDataSecurityIssue,
|
|
78
|
+
];
|
|
79
|
+
// Columns OneUptime writes; people read them.
|
|
80
|
+
const serverWrittenColumnAccess = {
|
|
81
|
+
create: [],
|
|
82
|
+
read: readPermissions,
|
|
83
|
+
update: [],
|
|
84
|
+
};
|
|
85
|
+
const createOnlyColumnAccess = {
|
|
86
|
+
create: createPermissions,
|
|
87
|
+
read: readPermissions,
|
|
88
|
+
update: [],
|
|
89
|
+
};
|
|
90
|
+
// Columns OneUptime sets when it creates the row, and people change after.
|
|
91
|
+
const peopleEditableColumnAccess = {
|
|
92
|
+
create: [],
|
|
93
|
+
read: readPermissions,
|
|
94
|
+
update: updatePermissions,
|
|
95
|
+
};
|
|
96
|
+
let DataSecurityIssue = class DataSecurityIssue extends DatabaseBaseModel_1.default {
|
|
97
|
+
constructor() {
|
|
98
|
+
super(...arguments);
|
|
99
|
+
this.project = undefined;
|
|
100
|
+
this.projectId = undefined;
|
|
101
|
+
this.dataStore = undefined;
|
|
102
|
+
this.dataStoreId = undefined;
|
|
103
|
+
this.issueKey = undefined;
|
|
104
|
+
this.checkId = undefined;
|
|
105
|
+
this.checkGroup = undefined;
|
|
106
|
+
this.title = undefined;
|
|
107
|
+
this.evidence = undefined;
|
|
108
|
+
this.severity = undefined;
|
|
109
|
+
this.riskScore = undefined;
|
|
110
|
+
this.riskFactors = undefined;
|
|
111
|
+
this.status = undefined;
|
|
112
|
+
this.dataTypeIds = undefined;
|
|
113
|
+
this.frameworks = undefined;
|
|
114
|
+
this.acceptedReason = undefined;
|
|
115
|
+
this.acceptedUntil = undefined;
|
|
116
|
+
this.acceptedByUser = undefined;
|
|
117
|
+
this.acceptedByUserId = undefined;
|
|
118
|
+
this.assignedToUser = undefined;
|
|
119
|
+
this.assignedToUserId = undefined;
|
|
120
|
+
this.assignedToTeam = undefined;
|
|
121
|
+
this.assignedToTeamId = undefined;
|
|
122
|
+
this.securityCase = undefined;
|
|
123
|
+
this.securityCaseId = undefined;
|
|
124
|
+
this.alert = undefined;
|
|
125
|
+
this.alertId = undefined;
|
|
126
|
+
this.incident = undefined;
|
|
127
|
+
this.incidentId = undefined;
|
|
128
|
+
this.firstDetectedAt = undefined;
|
|
129
|
+
this.lastDetectedAt = undefined;
|
|
130
|
+
this.resolvedAt = undefined;
|
|
131
|
+
this.reopenCount = undefined;
|
|
132
|
+
this.recheckRequestedAt = undefined;
|
|
133
|
+
this.isOwnerNotified = undefined;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
|
|
138
|
+
(0, TableColumn_1.default)({
|
|
139
|
+
manyToOneRelationColumn: "projectId",
|
|
140
|
+
type: TableColumnType_1.default.Entity,
|
|
141
|
+
modelType: Project_1.default,
|
|
142
|
+
title: "Project",
|
|
143
|
+
description: "Relation to the project this issue belongs to.",
|
|
144
|
+
}),
|
|
145
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
146
|
+
return Project_1.default;
|
|
147
|
+
}, {
|
|
148
|
+
eager: false,
|
|
149
|
+
nullable: true,
|
|
150
|
+
onDelete: "CASCADE",
|
|
151
|
+
orphanedRowAction: "nullify",
|
|
152
|
+
}),
|
|
153
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
154
|
+
__metadata("design:type", Project_1.default)
|
|
155
|
+
], DataSecurityIssue.prototype, "project", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
|
|
158
|
+
(0, typeorm_1.Index)(),
|
|
159
|
+
(0, TableColumn_1.default)({
|
|
160
|
+
type: TableColumnType_1.default.ObjectID,
|
|
161
|
+
required: true,
|
|
162
|
+
canReadOnRelationQuery: true,
|
|
163
|
+
title: "Project ID",
|
|
164
|
+
description: "ID of the project this issue belongs to.",
|
|
165
|
+
}),
|
|
166
|
+
(0, typeorm_1.Column)({
|
|
167
|
+
type: ColumnType_1.default.ObjectID,
|
|
168
|
+
nullable: false,
|
|
169
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
170
|
+
}),
|
|
171
|
+
__metadata("design:type", ObjectID_1.default)
|
|
172
|
+
], DataSecurityIssue.prototype, "projectId", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
175
|
+
(0, TableColumn_1.default)({
|
|
176
|
+
manyToOneRelationColumn: "dataStoreId",
|
|
177
|
+
type: TableColumnType_1.default.Entity,
|
|
178
|
+
modelType: DataStore_1.default,
|
|
179
|
+
title: "Data Store",
|
|
180
|
+
description: "Relation to the store the issue is on.",
|
|
181
|
+
}),
|
|
182
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
183
|
+
return DataStore_1.default;
|
|
184
|
+
}, {
|
|
185
|
+
eager: false,
|
|
186
|
+
nullable: true,
|
|
187
|
+
onDelete: "CASCADE",
|
|
188
|
+
orphanedRowAction: "nullify",
|
|
189
|
+
}),
|
|
190
|
+
(0, typeorm_1.JoinColumn)({ name: "dataStoreId" }),
|
|
191
|
+
__metadata("design:type", DataStore_1.default)
|
|
192
|
+
], DataSecurityIssue.prototype, "dataStore", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
195
|
+
(0, typeorm_1.Index)(),
|
|
196
|
+
(0, TableColumn_1.default)({
|
|
197
|
+
type: TableColumnType_1.default.ObjectID,
|
|
198
|
+
required: true,
|
|
199
|
+
computed: true,
|
|
200
|
+
canReadOnRelationQuery: true,
|
|
201
|
+
title: "Data Store ID",
|
|
202
|
+
description: "The store the issue is on.",
|
|
203
|
+
}),
|
|
204
|
+
(0, typeorm_1.Column)({
|
|
205
|
+
type: ColumnType_1.default.ObjectID,
|
|
206
|
+
nullable: false,
|
|
207
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
208
|
+
}),
|
|
209
|
+
__metadata("design:type", ObjectID_1.default)
|
|
210
|
+
], DataSecurityIssue.prototype, "dataStoreId", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
213
|
+
(0, TableColumn_1.default)({
|
|
214
|
+
type: TableColumnType_1.default.LongText,
|
|
215
|
+
required: true,
|
|
216
|
+
computed: true,
|
|
217
|
+
canReadOnRelationQuery: true,
|
|
218
|
+
title: "Issue Key",
|
|
219
|
+
description: "The store and check, which identify the issue within the project.",
|
|
220
|
+
}),
|
|
221
|
+
(0, typeorm_1.Column)({
|
|
222
|
+
type: ColumnType_1.default.LongText,
|
|
223
|
+
length: ColumnLength_1.default.LongText,
|
|
224
|
+
nullable: false,
|
|
225
|
+
}),
|
|
226
|
+
__metadata("design:type", String)
|
|
227
|
+
], DataSecurityIssue.prototype, "issueKey", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
230
|
+
(0, TableColumn_1.default)({
|
|
231
|
+
type: TableColumnType_1.default.ShortText,
|
|
232
|
+
required: true,
|
|
233
|
+
computed: true,
|
|
234
|
+
canReadOnRelationQuery: true,
|
|
235
|
+
title: "Check",
|
|
236
|
+
description: "The check that failed.",
|
|
237
|
+
}),
|
|
238
|
+
(0, typeorm_1.Column)({
|
|
239
|
+
type: ColumnType_1.default.ShortText,
|
|
240
|
+
length: ColumnLength_1.default.ShortText,
|
|
241
|
+
nullable: false,
|
|
242
|
+
}),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], DataSecurityIssue.prototype, "checkId", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
247
|
+
(0, TableColumn_1.default)({
|
|
248
|
+
type: TableColumnType_1.default.ShortText,
|
|
249
|
+
required: false,
|
|
250
|
+
computed: true,
|
|
251
|
+
canReadOnRelationQuery: true,
|
|
252
|
+
title: "Group",
|
|
253
|
+
description: "The check's group: Exposure, Encryption, Recovery, Visibility, Access, Data hygiene, Telemetry, Residency or AI.",
|
|
254
|
+
}),
|
|
255
|
+
(0, typeorm_1.Column)({
|
|
256
|
+
type: ColumnType_1.default.ShortText,
|
|
257
|
+
length: ColumnLength_1.default.ShortText,
|
|
258
|
+
nullable: true,
|
|
259
|
+
}),
|
|
260
|
+
__metadata("design:type", String)
|
|
261
|
+
], DataSecurityIssue.prototype, "checkGroup", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
264
|
+
(0, TableColumn_1.default)({
|
|
265
|
+
type: TableColumnType_1.default.LongText,
|
|
266
|
+
required: true,
|
|
267
|
+
computed: true,
|
|
268
|
+
canReadOnRelationQuery: true,
|
|
269
|
+
title: "Title",
|
|
270
|
+
description: "What is wrong, in a few words.",
|
|
271
|
+
}),
|
|
272
|
+
(0, typeorm_1.Column)({
|
|
273
|
+
type: ColumnType_1.default.LongText,
|
|
274
|
+
length: ColumnLength_1.default.LongText,
|
|
275
|
+
nullable: false,
|
|
276
|
+
}),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], DataSecurityIssue.prototype, "title", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
281
|
+
(0, TableColumn_1.default)({
|
|
282
|
+
type: TableColumnType_1.default.LongText,
|
|
283
|
+
required: false,
|
|
284
|
+
computed: true,
|
|
285
|
+
canReadOnRelationQuery: true,
|
|
286
|
+
title: "Evidence",
|
|
287
|
+
description: "What the check saw, in one sentence.",
|
|
288
|
+
}),
|
|
289
|
+
(0, typeorm_1.Column)({
|
|
290
|
+
type: ColumnType_1.default.LongText,
|
|
291
|
+
length: ColumnLength_1.default.LongText,
|
|
292
|
+
nullable: true,
|
|
293
|
+
}),
|
|
294
|
+
__metadata("design:type", String)
|
|
295
|
+
], DataSecurityIssue.prototype, "evidence", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
298
|
+
(0, typeorm_1.Index)(),
|
|
299
|
+
(0, TableColumn_1.default)({
|
|
300
|
+
type: TableColumnType_1.default.ShortText,
|
|
301
|
+
required: true,
|
|
302
|
+
computed: true,
|
|
303
|
+
canReadOnRelationQuery: true,
|
|
304
|
+
title: "Severity",
|
|
305
|
+
description: "How severe the issue is for this store's data: Critical, High, Medium or Low.",
|
|
306
|
+
}),
|
|
307
|
+
(0, typeorm_1.Column)({
|
|
308
|
+
type: ColumnType_1.default.ShortText,
|
|
309
|
+
length: ColumnLength_1.default.ShortText,
|
|
310
|
+
nullable: false,
|
|
311
|
+
}),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], DataSecurityIssue.prototype, "severity", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
316
|
+
(0, TableColumn_1.default)({
|
|
317
|
+
type: TableColumnType_1.default.Number,
|
|
318
|
+
required: true,
|
|
319
|
+
computed: true,
|
|
320
|
+
canReadOnRelationQuery: true,
|
|
321
|
+
title: "Risk Score",
|
|
322
|
+
description: "Orders issues inside a severity, from 0 to 100: severity, exposure, volume, recent activity and production.",
|
|
323
|
+
defaultValue: 0,
|
|
324
|
+
isDefaultValueColumn: true,
|
|
325
|
+
}),
|
|
326
|
+
(0, typeorm_1.Column)({
|
|
327
|
+
type: ColumnType_1.default.Number,
|
|
328
|
+
nullable: false,
|
|
329
|
+
default: 0,
|
|
330
|
+
}),
|
|
331
|
+
__metadata("design:type", Number)
|
|
332
|
+
], DataSecurityIssue.prototype, "riskScore", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
335
|
+
(0, TableColumn_1.default)({
|
|
336
|
+
type: TableColumnType_1.default.JSON,
|
|
337
|
+
required: false,
|
|
338
|
+
computed: true,
|
|
339
|
+
title: "Risk Factors",
|
|
340
|
+
description: "Each part of the risk score, with its points.",
|
|
341
|
+
}),
|
|
342
|
+
(0, typeorm_1.Column)({
|
|
343
|
+
type: ColumnType_1.default.JSON,
|
|
344
|
+
nullable: true,
|
|
345
|
+
}),
|
|
346
|
+
__metadata("design:type", Array)
|
|
347
|
+
], DataSecurityIssue.prototype, "riskFactors", void 0);
|
|
348
|
+
__decorate([
|
|
349
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
350
|
+
(0, typeorm_1.Index)(),
|
|
351
|
+
(0, TableColumn_1.default)({
|
|
352
|
+
type: TableColumnType_1.default.ShortText,
|
|
353
|
+
required: true,
|
|
354
|
+
canReadOnRelationQuery: true,
|
|
355
|
+
title: "Status",
|
|
356
|
+
description: "Open, Accepted, Resolved or Not an issue.",
|
|
357
|
+
defaultValue: "Open",
|
|
358
|
+
isDefaultValueColumn: true,
|
|
359
|
+
}),
|
|
360
|
+
(0, typeorm_1.Column)({
|
|
361
|
+
type: ColumnType_1.default.ShortText,
|
|
362
|
+
length: ColumnLength_1.default.ShortText,
|
|
363
|
+
nullable: false,
|
|
364
|
+
default: "Open",
|
|
365
|
+
}),
|
|
366
|
+
__metadata("design:type", String)
|
|
367
|
+
], DataSecurityIssue.prototype, "status", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
370
|
+
(0, TableColumn_1.default)({
|
|
371
|
+
type: TableColumnType_1.default.JSON,
|
|
372
|
+
required: false,
|
|
373
|
+
computed: true,
|
|
374
|
+
title: "Data Types",
|
|
375
|
+
description: "The sensitive data types the store holds, which make the issue as severe as it is.",
|
|
376
|
+
}),
|
|
377
|
+
(0, typeorm_1.Column)({
|
|
378
|
+
type: ColumnType_1.default.JSON,
|
|
379
|
+
nullable: true,
|
|
380
|
+
}),
|
|
381
|
+
__metadata("design:type", Array)
|
|
382
|
+
], DataSecurityIssue.prototype, "dataTypeIds", void 0);
|
|
383
|
+
__decorate([
|
|
384
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
385
|
+
(0, TableColumn_1.default)({
|
|
386
|
+
type: TableColumnType_1.default.JSON,
|
|
387
|
+
required: false,
|
|
388
|
+
computed: true,
|
|
389
|
+
title: "Frameworks",
|
|
390
|
+
description: "The framework requirements the check is evidence for.",
|
|
391
|
+
}),
|
|
392
|
+
(0, typeorm_1.Column)({
|
|
393
|
+
type: ColumnType_1.default.JSON,
|
|
394
|
+
nullable: true,
|
|
395
|
+
}),
|
|
396
|
+
__metadata("design:type", Array)
|
|
397
|
+
], DataSecurityIssue.prototype, "frameworks", void 0);
|
|
398
|
+
__decorate([
|
|
399
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
400
|
+
(0, TableColumn_1.default)({
|
|
401
|
+
type: TableColumnType_1.default.LongText,
|
|
402
|
+
required: false,
|
|
403
|
+
canReadOnRelationQuery: true,
|
|
404
|
+
title: "Why Accepted",
|
|
405
|
+
description: "Why the risk was accepted.",
|
|
406
|
+
}),
|
|
407
|
+
(0, typeorm_1.Column)({
|
|
408
|
+
type: ColumnType_1.default.LongText,
|
|
409
|
+
length: ColumnLength_1.default.LongText,
|
|
410
|
+
nullable: true,
|
|
411
|
+
}),
|
|
412
|
+
__metadata("design:type", String)
|
|
413
|
+
], DataSecurityIssue.prototype, "acceptedReason", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
416
|
+
(0, TableColumn_1.default)({
|
|
417
|
+
type: TableColumnType_1.default.Date,
|
|
418
|
+
required: false,
|
|
419
|
+
canReadOnRelationQuery: true,
|
|
420
|
+
title: "Accepted Until",
|
|
421
|
+
description: "When an accepted issue opens again if its check still fails.",
|
|
422
|
+
}),
|
|
423
|
+
(0, typeorm_1.Column)({
|
|
424
|
+
type: ColumnType_1.default.Date,
|
|
425
|
+
nullable: true,
|
|
426
|
+
}),
|
|
427
|
+
__metadata("design:type", Date)
|
|
428
|
+
], DataSecurityIssue.prototype, "acceptedUntil", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
431
|
+
(0, TableColumn_1.default)({
|
|
432
|
+
manyToOneRelationColumn: "acceptedByUserId",
|
|
433
|
+
type: TableColumnType_1.default.Entity,
|
|
434
|
+
modelType: User_1.default,
|
|
435
|
+
title: "Accepted By",
|
|
436
|
+
description: "Relation to the person who accepted the risk.",
|
|
437
|
+
}),
|
|
438
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
439
|
+
return User_1.default;
|
|
440
|
+
}, {
|
|
441
|
+
eager: false,
|
|
442
|
+
nullable: true,
|
|
443
|
+
onDelete: "SET NULL",
|
|
444
|
+
orphanedRowAction: "nullify",
|
|
445
|
+
}),
|
|
446
|
+
(0, typeorm_1.JoinColumn)({ name: "acceptedByUserId" }),
|
|
447
|
+
__metadata("design:type", User_1.default)
|
|
448
|
+
], DataSecurityIssue.prototype, "acceptedByUser", void 0);
|
|
449
|
+
__decorate([
|
|
450
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
451
|
+
(0, typeorm_1.Index)(),
|
|
452
|
+
(0, TableColumn_1.default)({
|
|
453
|
+
type: TableColumnType_1.default.ObjectID,
|
|
454
|
+
required: false,
|
|
455
|
+
computed: true,
|
|
456
|
+
canReadOnRelationQuery: true,
|
|
457
|
+
title: "Accepted By ID",
|
|
458
|
+
description: "The person who accepted the risk.",
|
|
459
|
+
}),
|
|
460
|
+
(0, typeorm_1.Column)({
|
|
461
|
+
type: ColumnType_1.default.ObjectID,
|
|
462
|
+
nullable: true,
|
|
463
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
464
|
+
}),
|
|
465
|
+
__metadata("design:type", ObjectID_1.default)
|
|
466
|
+
], DataSecurityIssue.prototype, "acceptedByUserId", void 0);
|
|
467
|
+
__decorate([
|
|
468
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
469
|
+
(0, TableColumn_1.default)({
|
|
470
|
+
manyToOneRelationColumn: "assignedToUserId",
|
|
471
|
+
type: TableColumnType_1.default.Entity,
|
|
472
|
+
modelType: User_1.default,
|
|
473
|
+
title: "Assigned To User",
|
|
474
|
+
description: "Relation to the person working on the issue.",
|
|
475
|
+
}),
|
|
476
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
477
|
+
return User_1.default;
|
|
478
|
+
}, {
|
|
479
|
+
eager: false,
|
|
480
|
+
nullable: true,
|
|
481
|
+
onDelete: "SET NULL",
|
|
482
|
+
orphanedRowAction: "nullify",
|
|
483
|
+
}),
|
|
484
|
+
(0, typeorm_1.JoinColumn)({ name: "assignedToUserId" }),
|
|
485
|
+
__metadata("design:type", User_1.default)
|
|
486
|
+
], DataSecurityIssue.prototype, "assignedToUser", void 0);
|
|
487
|
+
__decorate([
|
|
488
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
489
|
+
(0, typeorm_1.Index)(),
|
|
490
|
+
(0, TableColumn_1.default)({
|
|
491
|
+
type: TableColumnType_1.default.ObjectID,
|
|
492
|
+
required: false,
|
|
493
|
+
canReadOnRelationQuery: true,
|
|
494
|
+
title: "Assigned To User ID",
|
|
495
|
+
description: "The person working on the issue.",
|
|
496
|
+
}),
|
|
497
|
+
(0, typeorm_1.Column)({
|
|
498
|
+
type: ColumnType_1.default.ObjectID,
|
|
499
|
+
nullable: true,
|
|
500
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
501
|
+
}),
|
|
502
|
+
__metadata("design:type", ObjectID_1.default)
|
|
503
|
+
], DataSecurityIssue.prototype, "assignedToUserId", void 0);
|
|
504
|
+
__decorate([
|
|
505
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
506
|
+
(0, TableColumn_1.default)({
|
|
507
|
+
manyToOneRelationColumn: "assignedToTeamId",
|
|
508
|
+
type: TableColumnType_1.default.Entity,
|
|
509
|
+
modelType: Team_1.default,
|
|
510
|
+
title: "Assigned To Team",
|
|
511
|
+
description: "Relation to the team working on the issue.",
|
|
512
|
+
}),
|
|
513
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
514
|
+
return Team_1.default;
|
|
515
|
+
}, {
|
|
516
|
+
eager: false,
|
|
517
|
+
nullable: true,
|
|
518
|
+
onDelete: "SET NULL",
|
|
519
|
+
orphanedRowAction: "nullify",
|
|
520
|
+
}),
|
|
521
|
+
(0, typeorm_1.JoinColumn)({ name: "assignedToTeamId" }),
|
|
522
|
+
__metadata("design:type", Team_1.default)
|
|
523
|
+
], DataSecurityIssue.prototype, "assignedToTeam", void 0);
|
|
524
|
+
__decorate([
|
|
525
|
+
(0, ColumnAccessControl_1.default)(peopleEditableColumnAccess),
|
|
526
|
+
(0, typeorm_1.Index)(),
|
|
527
|
+
(0, TableColumn_1.default)({
|
|
528
|
+
type: TableColumnType_1.default.ObjectID,
|
|
529
|
+
required: false,
|
|
530
|
+
canReadOnRelationQuery: true,
|
|
531
|
+
title: "Assigned To Team ID",
|
|
532
|
+
description: "The team working on the issue.",
|
|
533
|
+
}),
|
|
534
|
+
(0, typeorm_1.Column)({
|
|
535
|
+
type: ColumnType_1.default.ObjectID,
|
|
536
|
+
nullable: true,
|
|
537
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
538
|
+
}),
|
|
539
|
+
__metadata("design:type", ObjectID_1.default)
|
|
540
|
+
], DataSecurityIssue.prototype, "assignedToTeamId", void 0);
|
|
541
|
+
__decorate([
|
|
542
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
543
|
+
(0, TableColumn_1.default)({
|
|
544
|
+
manyToOneRelationColumn: "securityCaseId",
|
|
545
|
+
type: TableColumnType_1.default.Entity,
|
|
546
|
+
modelType: SecurityCase_1.default,
|
|
547
|
+
title: "Security Case",
|
|
548
|
+
description: "Relation to the security case opened for the issue.",
|
|
549
|
+
}),
|
|
550
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
551
|
+
return SecurityCase_1.default;
|
|
552
|
+
}, {
|
|
553
|
+
eager: false,
|
|
554
|
+
nullable: true,
|
|
555
|
+
onDelete: "SET NULL",
|
|
556
|
+
orphanedRowAction: "nullify",
|
|
557
|
+
}),
|
|
558
|
+
(0, typeorm_1.JoinColumn)({ name: "securityCaseId" }),
|
|
559
|
+
__metadata("design:type", SecurityCase_1.default)
|
|
560
|
+
], DataSecurityIssue.prototype, "securityCase", void 0);
|
|
561
|
+
__decorate([
|
|
562
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
563
|
+
(0, typeorm_1.Index)(),
|
|
564
|
+
(0, TableColumn_1.default)({
|
|
565
|
+
type: TableColumnType_1.default.ObjectID,
|
|
566
|
+
required: false,
|
|
567
|
+
computed: true,
|
|
568
|
+
canReadOnRelationQuery: true,
|
|
569
|
+
title: "Security Case ID",
|
|
570
|
+
description: "The security case opened for the issue, if any.",
|
|
571
|
+
}),
|
|
572
|
+
(0, typeorm_1.Column)({
|
|
573
|
+
type: ColumnType_1.default.ObjectID,
|
|
574
|
+
nullable: true,
|
|
575
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
576
|
+
}),
|
|
577
|
+
__metadata("design:type", ObjectID_1.default)
|
|
578
|
+
], DataSecurityIssue.prototype, "securityCaseId", void 0);
|
|
579
|
+
__decorate([
|
|
580
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
581
|
+
(0, TableColumn_1.default)({
|
|
582
|
+
manyToOneRelationColumn: "alertId",
|
|
583
|
+
type: TableColumnType_1.default.Entity,
|
|
584
|
+
modelType: Alert_1.default,
|
|
585
|
+
title: "Alert",
|
|
586
|
+
description: "Relation to the alert raised for the issue.",
|
|
587
|
+
}),
|
|
588
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
589
|
+
return Alert_1.default;
|
|
590
|
+
}, {
|
|
591
|
+
eager: false,
|
|
592
|
+
nullable: true,
|
|
593
|
+
onDelete: "SET NULL",
|
|
594
|
+
orphanedRowAction: "nullify",
|
|
595
|
+
}),
|
|
596
|
+
(0, typeorm_1.JoinColumn)({ name: "alertId" }),
|
|
597
|
+
__metadata("design:type", Alert_1.default)
|
|
598
|
+
], DataSecurityIssue.prototype, "alert", void 0);
|
|
599
|
+
__decorate([
|
|
600
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
601
|
+
(0, typeorm_1.Index)(),
|
|
602
|
+
(0, TableColumn_1.default)({
|
|
603
|
+
type: TableColumnType_1.default.ObjectID,
|
|
604
|
+
required: false,
|
|
605
|
+
computed: true,
|
|
606
|
+
canReadOnRelationQuery: true,
|
|
607
|
+
title: "Alert ID",
|
|
608
|
+
description: "The alert raised for the issue, if any.",
|
|
609
|
+
}),
|
|
610
|
+
(0, typeorm_1.Column)({
|
|
611
|
+
type: ColumnType_1.default.ObjectID,
|
|
612
|
+
nullable: true,
|
|
613
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
614
|
+
}),
|
|
615
|
+
__metadata("design:type", ObjectID_1.default)
|
|
616
|
+
], DataSecurityIssue.prototype, "alertId", void 0);
|
|
617
|
+
__decorate([
|
|
618
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
619
|
+
(0, TableColumn_1.default)({
|
|
620
|
+
manyToOneRelationColumn: "incidentId",
|
|
621
|
+
type: TableColumnType_1.default.Entity,
|
|
622
|
+
modelType: Incident_1.default,
|
|
623
|
+
title: "Incident",
|
|
624
|
+
description: "Relation to the incident declared for the issue.",
|
|
625
|
+
}),
|
|
626
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
627
|
+
return Incident_1.default;
|
|
628
|
+
}, {
|
|
629
|
+
eager: false,
|
|
630
|
+
nullable: true,
|
|
631
|
+
onDelete: "SET NULL",
|
|
632
|
+
orphanedRowAction: "nullify",
|
|
633
|
+
}),
|
|
634
|
+
(0, typeorm_1.JoinColumn)({ name: "incidentId" }),
|
|
635
|
+
__metadata("design:type", Incident_1.default)
|
|
636
|
+
], DataSecurityIssue.prototype, "incident", void 0);
|
|
637
|
+
__decorate([
|
|
638
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
639
|
+
(0, typeorm_1.Index)(),
|
|
640
|
+
(0, TableColumn_1.default)({
|
|
641
|
+
type: TableColumnType_1.default.ObjectID,
|
|
642
|
+
required: false,
|
|
643
|
+
computed: true,
|
|
644
|
+
canReadOnRelationQuery: true,
|
|
645
|
+
title: "Incident ID",
|
|
646
|
+
description: "The incident declared for the issue, if any.",
|
|
647
|
+
}),
|
|
648
|
+
(0, typeorm_1.Column)({
|
|
649
|
+
type: ColumnType_1.default.ObjectID,
|
|
650
|
+
nullable: true,
|
|
651
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
652
|
+
}),
|
|
653
|
+
__metadata("design:type", ObjectID_1.default)
|
|
654
|
+
], DataSecurityIssue.prototype, "incidentId", void 0);
|
|
655
|
+
__decorate([
|
|
656
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
657
|
+
(0, TableColumn_1.default)({
|
|
658
|
+
type: TableColumnType_1.default.Date,
|
|
659
|
+
required: false,
|
|
660
|
+
computed: true,
|
|
661
|
+
canReadOnRelationQuery: true,
|
|
662
|
+
title: "First Detected At",
|
|
663
|
+
description: "When the check first failed.",
|
|
664
|
+
}),
|
|
665
|
+
(0, typeorm_1.Column)({
|
|
666
|
+
type: ColumnType_1.default.Date,
|
|
667
|
+
nullable: true,
|
|
668
|
+
}),
|
|
669
|
+
__metadata("design:type", Date)
|
|
670
|
+
], DataSecurityIssue.prototype, "firstDetectedAt", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
673
|
+
(0, typeorm_1.Index)(),
|
|
674
|
+
(0, TableColumn_1.default)({
|
|
675
|
+
type: TableColumnType_1.default.Date,
|
|
676
|
+
required: false,
|
|
677
|
+
computed: true,
|
|
678
|
+
canReadOnRelationQuery: true,
|
|
679
|
+
title: "Last Detected At",
|
|
680
|
+
description: "When the check last failed.",
|
|
681
|
+
}),
|
|
682
|
+
(0, typeorm_1.Column)({
|
|
683
|
+
type: ColumnType_1.default.Date,
|
|
684
|
+
nullable: true,
|
|
685
|
+
}),
|
|
686
|
+
__metadata("design:type", Date)
|
|
687
|
+
], DataSecurityIssue.prototype, "lastDetectedAt", void 0);
|
|
688
|
+
__decorate([
|
|
689
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
690
|
+
(0, TableColumn_1.default)({
|
|
691
|
+
type: TableColumnType_1.default.Date,
|
|
692
|
+
required: false,
|
|
693
|
+
computed: true,
|
|
694
|
+
canReadOnRelationQuery: true,
|
|
695
|
+
title: "Resolved At",
|
|
696
|
+
description: "When the check last passed after failing.",
|
|
697
|
+
}),
|
|
698
|
+
(0, typeorm_1.Column)({
|
|
699
|
+
type: ColumnType_1.default.Date,
|
|
700
|
+
nullable: true,
|
|
701
|
+
}),
|
|
702
|
+
__metadata("design:type", Date)
|
|
703
|
+
], DataSecurityIssue.prototype, "resolvedAt", void 0);
|
|
704
|
+
__decorate([
|
|
705
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
706
|
+
(0, TableColumn_1.default)({
|
|
707
|
+
type: TableColumnType_1.default.Number,
|
|
708
|
+
required: true,
|
|
709
|
+
computed: true,
|
|
710
|
+
canReadOnRelationQuery: true,
|
|
711
|
+
title: "Times Reopened",
|
|
712
|
+
description: "How many times the issue opened again after it was resolved.",
|
|
713
|
+
defaultValue: 0,
|
|
714
|
+
isDefaultValueColumn: true,
|
|
715
|
+
}),
|
|
716
|
+
(0, typeorm_1.Column)({
|
|
717
|
+
type: ColumnType_1.default.Number,
|
|
718
|
+
nullable: false,
|
|
719
|
+
default: 0,
|
|
720
|
+
}),
|
|
721
|
+
__metadata("design:type", Number)
|
|
722
|
+
], DataSecurityIssue.prototype, "reopenCount", void 0);
|
|
723
|
+
__decorate([
|
|
724
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
725
|
+
(0, TableColumn_1.default)({
|
|
726
|
+
type: TableColumnType_1.default.Date,
|
|
727
|
+
required: false,
|
|
728
|
+
computed: true,
|
|
729
|
+
canReadOnRelationQuery: true,
|
|
730
|
+
title: "Re-check Requested At",
|
|
731
|
+
description: "When a person last asked for the store to be checked again.",
|
|
732
|
+
}),
|
|
733
|
+
(0, typeorm_1.Column)({
|
|
734
|
+
type: ColumnType_1.default.Date,
|
|
735
|
+
nullable: true,
|
|
736
|
+
}),
|
|
737
|
+
__metadata("design:type", Date)
|
|
738
|
+
], DataSecurityIssue.prototype, "recheckRequestedAt", void 0);
|
|
739
|
+
__decorate([
|
|
740
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
741
|
+
(0, TableColumn_1.default)({
|
|
742
|
+
type: TableColumnType_1.default.Boolean,
|
|
743
|
+
required: true,
|
|
744
|
+
computed: true,
|
|
745
|
+
canReadOnRelationQuery: true,
|
|
746
|
+
title: "Owner Notified",
|
|
747
|
+
description: "Whether the store's owners were told about the issue.",
|
|
748
|
+
defaultValue: false,
|
|
749
|
+
isDefaultValueColumn: true,
|
|
750
|
+
}),
|
|
751
|
+
(0, typeorm_1.Column)({
|
|
752
|
+
type: ColumnType_1.default.Boolean,
|
|
753
|
+
nullable: false,
|
|
754
|
+
default: false,
|
|
755
|
+
}),
|
|
756
|
+
__metadata("design:type", Boolean)
|
|
757
|
+
], DataSecurityIssue.prototype, "isOwnerNotified", void 0);
|
|
758
|
+
DataSecurityIssue = __decorate([
|
|
759
|
+
(0, EnableDocumentation_1.default)(),
|
|
760
|
+
(0, EnableMCP_1.default)(),
|
|
761
|
+
(0, EnableAuditLog_1.default)(),
|
|
762
|
+
(0, EnableWorkflow_1.default)({
|
|
763
|
+
create: true,
|
|
764
|
+
delete: true,
|
|
765
|
+
update: true,
|
|
766
|
+
read: true,
|
|
767
|
+
}),
|
|
768
|
+
(0, TableBillingAccessControl_1.default)({
|
|
769
|
+
create: SubscriptionPlan_1.PlanType.Free,
|
|
770
|
+
read: SubscriptionPlan_1.PlanType.Free,
|
|
771
|
+
update: SubscriptionPlan_1.PlanType.Free,
|
|
772
|
+
delete: SubscriptionPlan_1.PlanType.Free,
|
|
773
|
+
}),
|
|
774
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
775
|
+
(0, CrudApiEndpoint_1.default)(new Route_1.default("/data-security-issue")),
|
|
776
|
+
(0, typeorm_1.Entity)({
|
|
777
|
+
name: "DataSecurityIssue",
|
|
778
|
+
}),
|
|
779
|
+
(0, TableMetadata_1.default)({
|
|
780
|
+
tableName: "DataSecurityIssue",
|
|
781
|
+
singularName: "Data Security Issue",
|
|
782
|
+
pluralName: "Data Security Issues",
|
|
783
|
+
// The Issues menu entry's icon: the triangle is an incident's.
|
|
784
|
+
icon: IconProp_1.default.ShieldExclamation,
|
|
785
|
+
tableDescription: "Everything wrong with a store that a check found, ranked by risk: what is wrong, why it matters, how to fix it, and who owns it.",
|
|
786
|
+
}),
|
|
787
|
+
(0, TableAccessControl_1.default)({
|
|
788
|
+
create: createPermissions,
|
|
789
|
+
read: readPermissions,
|
|
790
|
+
update: updatePermissions,
|
|
791
|
+
delete: deletePermissions,
|
|
792
|
+
}),
|
|
793
|
+
(0, typeorm_1.Index)(["projectId", "issueKey"], { unique: true }),
|
|
794
|
+
(0, typeorm_1.Index)(["projectId", "status", "severity"]),
|
|
795
|
+
(0, typeorm_1.Index)(["projectId", "riskScore"])
|
|
796
|
+
], DataSecurityIssue);
|
|
797
|
+
exports.default = DataSecurityIssue;
|