@oneuptime/common 14.0.98 → 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/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 +35 -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/SecurityEntityCriticality.js +7 -6
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
- 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 +6 -1
- package/Types/AI/AIChatTypes.d.ts +6 -1
- package/Types/AI/AIChatTypes.js +9 -0
- package/Types/AI/AiAffectedResources.js +5 -3
- package/Types/AI/CodeFixTaskContext.d.mts +21 -0
- package/Types/AI/CodeFixTaskContext.d.ts +21 -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/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 +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +6 -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/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/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/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/Workspace/WorkspaceMessagePayload.d.mts +1 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -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/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/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/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/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,1343 @@
|
|
|
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 CloudAccount_1 = __importDefault(require("./CloudAccount"));
|
|
16
|
+
const CloudConnection_1 = __importDefault(require("./CloudConnection"));
|
|
17
|
+
const CloudResource_1 = __importDefault(require("./CloudResource"));
|
|
18
|
+
const DatabaseServer_1 = __importDefault(require("./DatabaseServer"));
|
|
19
|
+
const Label_1 = __importDefault(require("./Label"));
|
|
20
|
+
const Probe_1 = __importDefault(require("./Probe"));
|
|
21
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
22
|
+
const Service_1 = __importDefault(require("./Service"));
|
|
23
|
+
const User_1 = __importDefault(require("./User"));
|
|
24
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
25
|
+
const Route_1 = __importDefault(require("../../Types/API/Route"));
|
|
26
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
27
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
28
|
+
const TableBillingAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableBillingAccessControl"));
|
|
29
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
30
|
+
const CrudApiEndpoint_1 = __importDefault(require("../../Types/Database/CrudApiEndpoint"));
|
|
31
|
+
const EnableDocumentation_1 = __importDefault(require("../../Types/Database/EnableDocumentation"));
|
|
32
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
33
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
34
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
35
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
36
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
37
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
38
|
+
const Permission_1 = __importDefault(require("../../Types/Permission"));
|
|
39
|
+
const SubscriptionPlan_1 = require("../../Types/Billing/SubscriptionPlan");
|
|
40
|
+
const EnableMCP_1 = __importDefault(require("../../Types/Database/EnableMCP"));
|
|
41
|
+
const EnableAuditLog_1 = __importDefault(require("../../Types/Database/EnableAuditLog"));
|
|
42
|
+
const EnableWorkflow_1 = __importDefault(require("../../Types/Database/EnableWorkflow"));
|
|
43
|
+
const AccessControlColumn_1 = __importDefault(require("../../Types/Database/AccessControlColumn"));
|
|
44
|
+
const DataStoreKind_1 = require("../../Types/DataSecurity/DataStoreKind");
|
|
45
|
+
const DataStoreEnvironment_1 = __importDefault(require("../../Types/DataSecurity/DataStoreEnvironment"));
|
|
46
|
+
const DataSensitivity_1 = __importDefault(require("../../Types/DataSecurity/DataSensitivity"));
|
|
47
|
+
const DataStorePosture_1 = require("../../Types/DataSecurity/DataStorePosture");
|
|
48
|
+
const SecuritySeverity_1 = __importDefault(require("../../Types/SecuritySeverity"));
|
|
49
|
+
const ColumnLength_1 = __importDefault(require("../../Types/Database/ColumnLength"));
|
|
50
|
+
const typeorm_1 = require("typeorm");
|
|
51
|
+
/*
|
|
52
|
+
* One place data lives: a bucket, a database, a warehouse, or a service's
|
|
53
|
+
* logs, traces, exceptions, replays or AI conversations in OneUptime itself.
|
|
54
|
+
*
|
|
55
|
+
* OneUptime discovers stores from cloud inventory, the Database product,
|
|
56
|
+
* telemetry and the service map (DataSecurityDiscovery), reads their
|
|
57
|
+
* configuration and access, samples their content, and keeps here what that
|
|
58
|
+
* found: how sensitive the store is, which data types it holds, how exposed
|
|
59
|
+
* it is, and the posture facts every check reads
|
|
60
|
+
* (Types/DataSecurity/DataStorePosture). People add stores the scans cannot
|
|
61
|
+
* find on their own, name owners, and say how a store may be scanned; the
|
|
62
|
+
* rest is OneUptime's to write.
|
|
63
|
+
*
|
|
64
|
+
* It is security data, so the Security tiers read it and nobody else - which
|
|
65
|
+
* buckets hold card numbers is exactly what an attacker wants to know.
|
|
66
|
+
*/
|
|
67
|
+
const readPermissions = [
|
|
68
|
+
Permission_1.default.ProjectOwner,
|
|
69
|
+
Permission_1.default.ProjectAdmin,
|
|
70
|
+
Permission_1.default.SecurityAdmin,
|
|
71
|
+
Permission_1.default.SecurityMember,
|
|
72
|
+
Permission_1.default.SecurityViewer,
|
|
73
|
+
Permission_1.default.ReadDataStore,
|
|
74
|
+
];
|
|
75
|
+
const createPermissions = [
|
|
76
|
+
Permission_1.default.ProjectOwner,
|
|
77
|
+
Permission_1.default.ProjectAdmin,
|
|
78
|
+
Permission_1.default.SecurityAdmin,
|
|
79
|
+
Permission_1.default.SecurityMember,
|
|
80
|
+
Permission_1.default.CreateDataStore,
|
|
81
|
+
];
|
|
82
|
+
const updatePermissions = [
|
|
83
|
+
Permission_1.default.ProjectOwner,
|
|
84
|
+
Permission_1.default.ProjectAdmin,
|
|
85
|
+
Permission_1.default.SecurityAdmin,
|
|
86
|
+
Permission_1.default.SecurityMember,
|
|
87
|
+
Permission_1.default.EditDataStore,
|
|
88
|
+
];
|
|
89
|
+
const deletePermissions = [
|
|
90
|
+
Permission_1.default.ProjectOwner,
|
|
91
|
+
Permission_1.default.ProjectAdmin,
|
|
92
|
+
Permission_1.default.SecurityAdmin,
|
|
93
|
+
Permission_1.default.DeleteDataStore,
|
|
94
|
+
];
|
|
95
|
+
// Columns OneUptime writes; people read them.
|
|
96
|
+
const serverWrittenColumnAccess = {
|
|
97
|
+
create: [],
|
|
98
|
+
read: readPermissions,
|
|
99
|
+
update: [],
|
|
100
|
+
};
|
|
101
|
+
const editableColumnAccess = {
|
|
102
|
+
create: createPermissions,
|
|
103
|
+
read: readPermissions,
|
|
104
|
+
update: updatePermissions,
|
|
105
|
+
};
|
|
106
|
+
const createOnlyColumnAccess = {
|
|
107
|
+
create: createPermissions,
|
|
108
|
+
read: readPermissions,
|
|
109
|
+
update: [],
|
|
110
|
+
};
|
|
111
|
+
// Written by people, never read back through the API.
|
|
112
|
+
const secretColumnAccess = {
|
|
113
|
+
create: createPermissions,
|
|
114
|
+
read: [],
|
|
115
|
+
update: updatePermissions,
|
|
116
|
+
};
|
|
117
|
+
// Working state of OneUptime's own jobs: nobody reads it through the API.
|
|
118
|
+
const hiddenColumnAccess = {
|
|
119
|
+
create: [],
|
|
120
|
+
read: [],
|
|
121
|
+
update: [],
|
|
122
|
+
};
|
|
123
|
+
// Counts and sizes run past 2^31, so the columns are bigint, read back as numbers.
|
|
124
|
+
const bigNumberTransformer = {
|
|
125
|
+
to: (value) => {
|
|
126
|
+
if (value === undefined) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
if (value === null) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
return Math.trunc(value).toString();
|
|
133
|
+
},
|
|
134
|
+
from: (value) => {
|
|
135
|
+
if (value === undefined || value === null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
return Number(value);
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
let DataStore = class DataStore extends DatabaseBaseModel_1.default {
|
|
142
|
+
constructor() {
|
|
143
|
+
super(...arguments);
|
|
144
|
+
this.project = undefined;
|
|
145
|
+
this.projectId = undefined;
|
|
146
|
+
this.name = undefined;
|
|
147
|
+
this.description = undefined;
|
|
148
|
+
this.storeKey = undefined;
|
|
149
|
+
this.kind = undefined;
|
|
150
|
+
this.provider = undefined;
|
|
151
|
+
this.family = undefined;
|
|
152
|
+
this.discoveredFrom = undefined;
|
|
153
|
+
this.cloudAccount = undefined;
|
|
154
|
+
this.cloudAccountId = undefined;
|
|
155
|
+
this.cloudResource = undefined;
|
|
156
|
+
this.cloudResourceId = undefined;
|
|
157
|
+
this.cloudConnection = undefined;
|
|
158
|
+
this.cloudConnectionId = undefined;
|
|
159
|
+
this.databaseServer = undefined;
|
|
160
|
+
this.databaseServerId = undefined;
|
|
161
|
+
this.service = undefined;
|
|
162
|
+
this.serviceId = undefined;
|
|
163
|
+
this.providerResourceId = undefined;
|
|
164
|
+
this.cloudAccountNumber = undefined;
|
|
165
|
+
this.region = undefined;
|
|
166
|
+
this.environment = undefined;
|
|
167
|
+
this.sensitivity = undefined;
|
|
168
|
+
this.sensitivityOverride = undefined;
|
|
169
|
+
this.dataTypeIds = undefined;
|
|
170
|
+
this.dataCategories = undefined;
|
|
171
|
+
this.subjectCountries = undefined;
|
|
172
|
+
this.exposure = undefined;
|
|
173
|
+
this.posture = undefined;
|
|
174
|
+
this.fingerprints = undefined;
|
|
175
|
+
this.cloudTags = undefined;
|
|
176
|
+
this.sizeInBytes = undefined;
|
|
177
|
+
this.objectCount = undefined;
|
|
178
|
+
this.estimatedRecords = undefined;
|
|
179
|
+
this.lastActivityAt = undefined;
|
|
180
|
+
this.isPublicByDesign = undefined;
|
|
181
|
+
this.isAiData = undefined;
|
|
182
|
+
this.isContentScanEnabled = undefined;
|
|
183
|
+
this.scanProbe = undefined;
|
|
184
|
+
this.scanProbeId = undefined;
|
|
185
|
+
this.probeConnectionVariable = undefined;
|
|
186
|
+
this.connectionString = undefined;
|
|
187
|
+
this.scanExclusions = undefined;
|
|
188
|
+
this.purpose = undefined;
|
|
189
|
+
this.retention = undefined;
|
|
190
|
+
this.configurationReadAt = undefined;
|
|
191
|
+
this.contentScannedAt = undefined;
|
|
192
|
+
this.contentScanStatus = undefined;
|
|
193
|
+
this.nextContentScanAt = undefined;
|
|
194
|
+
this.contentScanState = undefined;
|
|
195
|
+
this.findingCount = undefined;
|
|
196
|
+
this.openIssueCount = undefined;
|
|
197
|
+
this.highestIssueSeverity = undefined;
|
|
198
|
+
this.riskScore = undefined;
|
|
199
|
+
this.isArchived = undefined;
|
|
200
|
+
this.firstSeenAt = undefined;
|
|
201
|
+
this.lastSeenAt = undefined;
|
|
202
|
+
this.labels = undefined;
|
|
203
|
+
this.createdByUser = undefined;
|
|
204
|
+
this.createdByUserId = undefined;
|
|
205
|
+
this.deletedByUser = undefined;
|
|
206
|
+
this.deletedByUserId = undefined;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
|
|
211
|
+
(0, TableColumn_1.default)({
|
|
212
|
+
manyToOneRelationColumn: "projectId",
|
|
213
|
+
type: TableColumnType_1.default.Entity,
|
|
214
|
+
modelType: Project_1.default,
|
|
215
|
+
title: "Project",
|
|
216
|
+
description: "Relation to the project this data store belongs to.",
|
|
217
|
+
}),
|
|
218
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
219
|
+
return Project_1.default;
|
|
220
|
+
}, {
|
|
221
|
+
eager: false,
|
|
222
|
+
nullable: true,
|
|
223
|
+
onDelete: "CASCADE",
|
|
224
|
+
orphanedRowAction: "nullify",
|
|
225
|
+
}),
|
|
226
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
227
|
+
__metadata("design:type", Project_1.default)
|
|
228
|
+
], DataStore.prototype, "project", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
|
|
231
|
+
(0, typeorm_1.Index)(),
|
|
232
|
+
(0, TableColumn_1.default)({
|
|
233
|
+
type: TableColumnType_1.default.ObjectID,
|
|
234
|
+
required: true,
|
|
235
|
+
canReadOnRelationQuery: true,
|
|
236
|
+
title: "Project ID",
|
|
237
|
+
description: "ID of the project this data store belongs to.",
|
|
238
|
+
}),
|
|
239
|
+
(0, typeorm_1.Column)({
|
|
240
|
+
type: ColumnType_1.default.ObjectID,
|
|
241
|
+
nullable: false,
|
|
242
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
243
|
+
}),
|
|
244
|
+
__metadata("design:type", ObjectID_1.default)
|
|
245
|
+
], DataStore.prototype, "projectId", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
248
|
+
(0, TableColumn_1.default)({
|
|
249
|
+
type: TableColumnType_1.default.LongText,
|
|
250
|
+
required: true,
|
|
251
|
+
canReadOnRelationQuery: true,
|
|
252
|
+
title: "Name",
|
|
253
|
+
description: "The store's name: a bucket, database, dataset or service name.",
|
|
254
|
+
}),
|
|
255
|
+
(0, typeorm_1.Column)({
|
|
256
|
+
type: ColumnType_1.default.LongText,
|
|
257
|
+
length: ColumnLength_1.default.LongText,
|
|
258
|
+
nullable: false,
|
|
259
|
+
}),
|
|
260
|
+
__metadata("design:type", String)
|
|
261
|
+
], DataStore.prototype, "name", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
264
|
+
(0, TableColumn_1.default)({
|
|
265
|
+
type: TableColumnType_1.default.LongText,
|
|
266
|
+
required: false,
|
|
267
|
+
canReadOnRelationQuery: true,
|
|
268
|
+
title: "Description",
|
|
269
|
+
description: "What the store is for, in your team's words.",
|
|
270
|
+
}),
|
|
271
|
+
(0, typeorm_1.Column)({
|
|
272
|
+
type: ColumnType_1.default.LongText,
|
|
273
|
+
length: ColumnLength_1.default.LongText,
|
|
274
|
+
nullable: true,
|
|
275
|
+
}),
|
|
276
|
+
__metadata("design:type", String)
|
|
277
|
+
], DataStore.prototype, "description", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
280
|
+
(0, TableColumn_1.default)({
|
|
281
|
+
type: TableColumnType_1.default.LongText,
|
|
282
|
+
required: true,
|
|
283
|
+
computed: true,
|
|
284
|
+
canReadOnRelationQuery: true,
|
|
285
|
+
title: "Store Key",
|
|
286
|
+
description: "What identifies the store within the project: its provider, kind and native id. One row per store, however often it is discovered.",
|
|
287
|
+
}),
|
|
288
|
+
(0, typeorm_1.Column)({
|
|
289
|
+
type: ColumnType_1.default.LongText,
|
|
290
|
+
length: ColumnLength_1.default.LongText,
|
|
291
|
+
nullable: false,
|
|
292
|
+
}),
|
|
293
|
+
__metadata("design:type", String)
|
|
294
|
+
], DataStore.prototype, "storeKey", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
|
|
297
|
+
(0, TableColumn_1.default)({
|
|
298
|
+
type: TableColumnType_1.default.ShortText,
|
|
299
|
+
required: true,
|
|
300
|
+
canReadOnRelationQuery: true,
|
|
301
|
+
title: "Kind",
|
|
302
|
+
description: "What kind of store it is: an S3 bucket, an RDS instance, a PostgreSQL database, a service's logs.",
|
|
303
|
+
}),
|
|
304
|
+
(0, typeorm_1.Column)({
|
|
305
|
+
type: ColumnType_1.default.ShortText,
|
|
306
|
+
length: ColumnLength_1.default.ShortText,
|
|
307
|
+
nullable: false,
|
|
308
|
+
}),
|
|
309
|
+
__metadata("design:type", String)
|
|
310
|
+
], DataStore.prototype, "kind", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
313
|
+
(0, TableColumn_1.default)({
|
|
314
|
+
type: TableColumnType_1.default.ShortText,
|
|
315
|
+
required: false,
|
|
316
|
+
computed: true,
|
|
317
|
+
canReadOnRelationQuery: true,
|
|
318
|
+
title: "Provider",
|
|
319
|
+
description: "Where the store lives: aws, azure, gcp, self-managed or oneuptime.",
|
|
320
|
+
}),
|
|
321
|
+
(0, typeorm_1.Column)({
|
|
322
|
+
type: ColumnType_1.default.ShortText,
|
|
323
|
+
length: ColumnLength_1.default.ShortText,
|
|
324
|
+
nullable: true,
|
|
325
|
+
}),
|
|
326
|
+
__metadata("design:type", String)
|
|
327
|
+
], DataStore.prototype, "provider", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
330
|
+
(0, TableColumn_1.default)({
|
|
331
|
+
type: TableColumnType_1.default.ShortText,
|
|
332
|
+
required: false,
|
|
333
|
+
computed: true,
|
|
334
|
+
canReadOnRelationQuery: true,
|
|
335
|
+
title: "Family",
|
|
336
|
+
description: "The store's family: object storage, database, warehouse, search, cache, file system, snapshot or telemetry.",
|
|
337
|
+
}),
|
|
338
|
+
(0, typeorm_1.Column)({
|
|
339
|
+
type: ColumnType_1.default.ShortText,
|
|
340
|
+
length: ColumnLength_1.default.ShortText,
|
|
341
|
+
nullable: true,
|
|
342
|
+
}),
|
|
343
|
+
__metadata("design:type", String)
|
|
344
|
+
], DataStore.prototype, "family", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
347
|
+
(0, TableColumn_1.default)({
|
|
348
|
+
type: TableColumnType_1.default.ShortText,
|
|
349
|
+
required: false,
|
|
350
|
+
computed: true,
|
|
351
|
+
canReadOnRelationQuery: true,
|
|
352
|
+
title: "Discovered From",
|
|
353
|
+
description: "How OneUptime found the store: cloud inventory, the Database product, telemetry, the service map, or added by hand.",
|
|
354
|
+
}),
|
|
355
|
+
(0, typeorm_1.Column)({
|
|
356
|
+
type: ColumnType_1.default.ShortText,
|
|
357
|
+
length: ColumnLength_1.default.ShortText,
|
|
358
|
+
nullable: true,
|
|
359
|
+
}),
|
|
360
|
+
__metadata("design:type", String)
|
|
361
|
+
], DataStore.prototype, "discoveredFrom", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
364
|
+
(0, TableColumn_1.default)({
|
|
365
|
+
manyToOneRelationColumn: "cloudAccountId",
|
|
366
|
+
type: TableColumnType_1.default.Entity,
|
|
367
|
+
modelType: CloudAccount_1.default,
|
|
368
|
+
title: "Cloud Account",
|
|
369
|
+
description: "Relation to the cloud account the store belongs to.",
|
|
370
|
+
}),
|
|
371
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
372
|
+
return CloudAccount_1.default;
|
|
373
|
+
}, {
|
|
374
|
+
eager: false,
|
|
375
|
+
nullable: true,
|
|
376
|
+
onDelete: "SET NULL",
|
|
377
|
+
orphanedRowAction: "nullify",
|
|
378
|
+
}),
|
|
379
|
+
(0, typeorm_1.JoinColumn)({ name: "cloudAccountId" }),
|
|
380
|
+
__metadata("design:type", CloudAccount_1.default)
|
|
381
|
+
], DataStore.prototype, "cloudAccount", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
384
|
+
(0, typeorm_1.Index)(),
|
|
385
|
+
(0, TableColumn_1.default)({
|
|
386
|
+
type: TableColumnType_1.default.ObjectID,
|
|
387
|
+
required: false,
|
|
388
|
+
computed: true,
|
|
389
|
+
canReadOnRelationQuery: true,
|
|
390
|
+
title: "Cloud Account ID",
|
|
391
|
+
description: "The cloud account the store belongs to, for a cloud store.",
|
|
392
|
+
}),
|
|
393
|
+
(0, typeorm_1.Column)({
|
|
394
|
+
type: ColumnType_1.default.ObjectID,
|
|
395
|
+
nullable: true,
|
|
396
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
397
|
+
}),
|
|
398
|
+
__metadata("design:type", ObjectID_1.default)
|
|
399
|
+
], DataStore.prototype, "cloudAccountId", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
402
|
+
(0, TableColumn_1.default)({
|
|
403
|
+
manyToOneRelationColumn: "cloudResourceId",
|
|
404
|
+
type: TableColumnType_1.default.Entity,
|
|
405
|
+
modelType: CloudResource_1.default,
|
|
406
|
+
title: "Cloud Resource",
|
|
407
|
+
description: "Relation to the cloud resource the store was discovered from.",
|
|
408
|
+
}),
|
|
409
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
410
|
+
return CloudResource_1.default;
|
|
411
|
+
}, {
|
|
412
|
+
eager: false,
|
|
413
|
+
nullable: true,
|
|
414
|
+
onDelete: "SET NULL",
|
|
415
|
+
orphanedRowAction: "nullify",
|
|
416
|
+
}),
|
|
417
|
+
(0, typeorm_1.JoinColumn)({ name: "cloudResourceId" }),
|
|
418
|
+
__metadata("design:type", CloudResource_1.default)
|
|
419
|
+
], DataStore.prototype, "cloudResource", void 0);
|
|
420
|
+
__decorate([
|
|
421
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
422
|
+
(0, typeorm_1.Index)(),
|
|
423
|
+
(0, TableColumn_1.default)({
|
|
424
|
+
type: TableColumnType_1.default.ObjectID,
|
|
425
|
+
required: false,
|
|
426
|
+
computed: true,
|
|
427
|
+
canReadOnRelationQuery: true,
|
|
428
|
+
title: "Cloud Resource ID",
|
|
429
|
+
description: "The cloud resource the store was discovered from, if any.",
|
|
430
|
+
}),
|
|
431
|
+
(0, typeorm_1.Column)({
|
|
432
|
+
type: ColumnType_1.default.ObjectID,
|
|
433
|
+
nullable: true,
|
|
434
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
435
|
+
}),
|
|
436
|
+
__metadata("design:type", ObjectID_1.default)
|
|
437
|
+
], DataStore.prototype, "cloudResourceId", void 0);
|
|
438
|
+
__decorate([
|
|
439
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
440
|
+
(0, TableColumn_1.default)({
|
|
441
|
+
manyToOneRelationColumn: "cloudConnectionId",
|
|
442
|
+
type: TableColumnType_1.default.Entity,
|
|
443
|
+
modelType: CloudConnection_1.default,
|
|
444
|
+
title: "Cloud Connection",
|
|
445
|
+
description: "Relation to the cloud connection that reads the store.",
|
|
446
|
+
}),
|
|
447
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
448
|
+
return CloudConnection_1.default;
|
|
449
|
+
}, {
|
|
450
|
+
eager: false,
|
|
451
|
+
nullable: true,
|
|
452
|
+
onDelete: "SET NULL",
|
|
453
|
+
orphanedRowAction: "nullify",
|
|
454
|
+
}),
|
|
455
|
+
(0, typeorm_1.JoinColumn)({ name: "cloudConnectionId" }),
|
|
456
|
+
__metadata("design:type", CloudConnection_1.default)
|
|
457
|
+
], DataStore.prototype, "cloudConnection", void 0);
|
|
458
|
+
__decorate([
|
|
459
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
460
|
+
(0, typeorm_1.Index)(),
|
|
461
|
+
(0, TableColumn_1.default)({
|
|
462
|
+
type: TableColumnType_1.default.ObjectID,
|
|
463
|
+
required: false,
|
|
464
|
+
computed: true,
|
|
465
|
+
canReadOnRelationQuery: true,
|
|
466
|
+
title: "Cloud Connection ID",
|
|
467
|
+
description: "The cloud connection that reads the store's configuration, if any.",
|
|
468
|
+
}),
|
|
469
|
+
(0, typeorm_1.Column)({
|
|
470
|
+
type: ColumnType_1.default.ObjectID,
|
|
471
|
+
nullable: true,
|
|
472
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
473
|
+
}),
|
|
474
|
+
__metadata("design:type", ObjectID_1.default)
|
|
475
|
+
], DataStore.prototype, "cloudConnectionId", void 0);
|
|
476
|
+
__decorate([
|
|
477
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
478
|
+
(0, TableColumn_1.default)({
|
|
479
|
+
manyToOneRelationColumn: "databaseServerId",
|
|
480
|
+
type: TableColumnType_1.default.Entity,
|
|
481
|
+
modelType: DatabaseServer_1.default,
|
|
482
|
+
title: "Database Server",
|
|
483
|
+
description: "Relation to the database server the store is.",
|
|
484
|
+
}),
|
|
485
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
486
|
+
return DatabaseServer_1.default;
|
|
487
|
+
}, {
|
|
488
|
+
eager: false,
|
|
489
|
+
nullable: true,
|
|
490
|
+
onDelete: "SET NULL",
|
|
491
|
+
orphanedRowAction: "nullify",
|
|
492
|
+
}),
|
|
493
|
+
(0, typeorm_1.JoinColumn)({ name: "databaseServerId" }),
|
|
494
|
+
__metadata("design:type", DatabaseServer_1.default)
|
|
495
|
+
], DataStore.prototype, "databaseServer", void 0);
|
|
496
|
+
__decorate([
|
|
497
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
498
|
+
(0, typeorm_1.Index)(),
|
|
499
|
+
(0, TableColumn_1.default)({
|
|
500
|
+
type: TableColumnType_1.default.ObjectID,
|
|
501
|
+
required: false,
|
|
502
|
+
computed: true,
|
|
503
|
+
canReadOnRelationQuery: true,
|
|
504
|
+
title: "Database Server ID",
|
|
505
|
+
description: "The Database product server the store is, for a self-managed database.",
|
|
506
|
+
}),
|
|
507
|
+
(0, typeorm_1.Column)({
|
|
508
|
+
type: ColumnType_1.default.ObjectID,
|
|
509
|
+
nullable: true,
|
|
510
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
511
|
+
}),
|
|
512
|
+
__metadata("design:type", ObjectID_1.default)
|
|
513
|
+
], DataStore.prototype, "databaseServerId", void 0);
|
|
514
|
+
__decorate([
|
|
515
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
516
|
+
(0, TableColumn_1.default)({
|
|
517
|
+
manyToOneRelationColumn: "serviceId",
|
|
518
|
+
type: TableColumnType_1.default.Entity,
|
|
519
|
+
modelType: Service_1.default,
|
|
520
|
+
title: "Service",
|
|
521
|
+
description: "Relation to the service whose telemetry the store is.",
|
|
522
|
+
}),
|
|
523
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
524
|
+
return Service_1.default;
|
|
525
|
+
}, {
|
|
526
|
+
eager: false,
|
|
527
|
+
nullable: true,
|
|
528
|
+
onDelete: "SET NULL",
|
|
529
|
+
orphanedRowAction: "nullify",
|
|
530
|
+
}),
|
|
531
|
+
(0, typeorm_1.JoinColumn)({ name: "serviceId" }),
|
|
532
|
+
__metadata("design:type", Service_1.default)
|
|
533
|
+
], DataStore.prototype, "service", void 0);
|
|
534
|
+
__decorate([
|
|
535
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
536
|
+
(0, typeorm_1.Index)(),
|
|
537
|
+
(0, TableColumn_1.default)({
|
|
538
|
+
type: TableColumnType_1.default.ObjectID,
|
|
539
|
+
required: false,
|
|
540
|
+
computed: true,
|
|
541
|
+
canReadOnRelationQuery: true,
|
|
542
|
+
title: "Service ID",
|
|
543
|
+
description: "The telemetry service whose logs, traces, exceptions, replays or AI conversations the store is.",
|
|
544
|
+
}),
|
|
545
|
+
(0, typeorm_1.Column)({
|
|
546
|
+
type: ColumnType_1.default.ObjectID,
|
|
547
|
+
nullable: true,
|
|
548
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
549
|
+
}),
|
|
550
|
+
__metadata("design:type", ObjectID_1.default)
|
|
551
|
+
], DataStore.prototype, "serviceId", void 0);
|
|
552
|
+
__decorate([
|
|
553
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
554
|
+
(0, TableColumn_1.default)({
|
|
555
|
+
type: TableColumnType_1.default.LongText,
|
|
556
|
+
required: false,
|
|
557
|
+
computed: true,
|
|
558
|
+
canReadOnRelationQuery: true,
|
|
559
|
+
title: "Provider Resource ID",
|
|
560
|
+
description: "The store's id in its cloud: an ARN, an Azure resource id or a Google Cloud resource name.",
|
|
561
|
+
}),
|
|
562
|
+
(0, typeorm_1.Column)({
|
|
563
|
+
type: ColumnType_1.default.LongText,
|
|
564
|
+
length: ColumnLength_1.default.LongText,
|
|
565
|
+
nullable: true,
|
|
566
|
+
}),
|
|
567
|
+
__metadata("design:type", String)
|
|
568
|
+
], DataStore.prototype, "providerResourceId", void 0);
|
|
569
|
+
__decorate([
|
|
570
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
571
|
+
(0, TableColumn_1.default)({
|
|
572
|
+
type: TableColumnType_1.default.ShortText,
|
|
573
|
+
required: false,
|
|
574
|
+
computed: true,
|
|
575
|
+
canReadOnRelationQuery: true,
|
|
576
|
+
title: "Account",
|
|
577
|
+
description: "The cloud's own id for the account: an AWS account id, an Azure subscription id or a Google Cloud project id.",
|
|
578
|
+
}),
|
|
579
|
+
(0, typeorm_1.Column)({
|
|
580
|
+
type: ColumnType_1.default.ShortText,
|
|
581
|
+
length: ColumnLength_1.default.ShortText,
|
|
582
|
+
nullable: true,
|
|
583
|
+
}),
|
|
584
|
+
__metadata("design:type", String)
|
|
585
|
+
], DataStore.prototype, "cloudAccountNumber", void 0);
|
|
586
|
+
__decorate([
|
|
587
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
588
|
+
(0, TableColumn_1.default)({
|
|
589
|
+
type: TableColumnType_1.default.ShortText,
|
|
590
|
+
required: false,
|
|
591
|
+
computed: true,
|
|
592
|
+
canReadOnRelationQuery: true,
|
|
593
|
+
title: "Region",
|
|
594
|
+
description: "The region the store lives in.",
|
|
595
|
+
}),
|
|
596
|
+
(0, typeorm_1.Column)({
|
|
597
|
+
type: ColumnType_1.default.ShortText,
|
|
598
|
+
length: ColumnLength_1.default.ShortText,
|
|
599
|
+
nullable: true,
|
|
600
|
+
}),
|
|
601
|
+
__metadata("design:type", String)
|
|
602
|
+
], DataStore.prototype, "region", void 0);
|
|
603
|
+
__decorate([
|
|
604
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
605
|
+
(0, TableColumn_1.default)({
|
|
606
|
+
type: TableColumnType_1.default.ShortText,
|
|
607
|
+
required: true,
|
|
608
|
+
canReadOnRelationQuery: true,
|
|
609
|
+
title: "Environment",
|
|
610
|
+
description: "Which environment the store serves: Production, Staging, Development, Test or Unknown. Read from its tags and name; people may set it.",
|
|
611
|
+
defaultValue: "Unknown",
|
|
612
|
+
isDefaultValueColumn: true,
|
|
613
|
+
}),
|
|
614
|
+
(0, typeorm_1.Column)({
|
|
615
|
+
type: ColumnType_1.default.ShortText,
|
|
616
|
+
length: ColumnLength_1.default.ShortText,
|
|
617
|
+
nullable: false,
|
|
618
|
+
default: "Unknown",
|
|
619
|
+
}),
|
|
620
|
+
__metadata("design:type", String)
|
|
621
|
+
], DataStore.prototype, "environment", void 0);
|
|
622
|
+
__decorate([
|
|
623
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
624
|
+
(0, TableColumn_1.default)({
|
|
625
|
+
type: TableColumnType_1.default.ShortText,
|
|
626
|
+
required: true,
|
|
627
|
+
computed: true,
|
|
628
|
+
canReadOnRelationQuery: true,
|
|
629
|
+
title: "Sensitivity",
|
|
630
|
+
description: "How sensitive the store is: Restricted, Confidential, Internal or Public, from the most sensitive data type found in it.",
|
|
631
|
+
defaultValue: "Public",
|
|
632
|
+
isDefaultValueColumn: true,
|
|
633
|
+
}),
|
|
634
|
+
(0, typeorm_1.Column)({
|
|
635
|
+
type: ColumnType_1.default.ShortText,
|
|
636
|
+
length: ColumnLength_1.default.ShortText,
|
|
637
|
+
nullable: false,
|
|
638
|
+
default: "Public",
|
|
639
|
+
}),
|
|
640
|
+
__metadata("design:type", String)
|
|
641
|
+
], DataStore.prototype, "sensitivity", void 0);
|
|
642
|
+
__decorate([
|
|
643
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
644
|
+
(0, TableColumn_1.default)({
|
|
645
|
+
type: TableColumnType_1.default.ShortText,
|
|
646
|
+
required: false,
|
|
647
|
+
canReadOnRelationQuery: true,
|
|
648
|
+
title: "Sensitivity Override",
|
|
649
|
+
description: "A sensitivity people set by hand, which the store is treated as instead of what the scans found.",
|
|
650
|
+
}),
|
|
651
|
+
(0, typeorm_1.Column)({
|
|
652
|
+
type: ColumnType_1.default.ShortText,
|
|
653
|
+
length: ColumnLength_1.default.ShortText,
|
|
654
|
+
nullable: true,
|
|
655
|
+
}),
|
|
656
|
+
__metadata("design:type", String)
|
|
657
|
+
], DataStore.prototype, "sensitivityOverride", void 0);
|
|
658
|
+
__decorate([
|
|
659
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
660
|
+
(0, TableColumn_1.default)({
|
|
661
|
+
type: TableColumnType_1.default.JSON,
|
|
662
|
+
required: false,
|
|
663
|
+
computed: true,
|
|
664
|
+
title: "Data Types",
|
|
665
|
+
description: "The data types found in the store with at least Medium confidence.",
|
|
666
|
+
}),
|
|
667
|
+
(0, typeorm_1.Column)({
|
|
668
|
+
type: ColumnType_1.default.JSON,
|
|
669
|
+
nullable: true,
|
|
670
|
+
}),
|
|
671
|
+
__metadata("design:type", Array)
|
|
672
|
+
], DataStore.prototype, "dataTypeIds", void 0);
|
|
673
|
+
__decorate([
|
|
674
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
675
|
+
(0, TableColumn_1.default)({
|
|
676
|
+
type: TableColumnType_1.default.JSON,
|
|
677
|
+
required: false,
|
|
678
|
+
computed: true,
|
|
679
|
+
title: "Data Categories",
|
|
680
|
+
description: "The categories of those data types.",
|
|
681
|
+
}),
|
|
682
|
+
(0, typeorm_1.Column)({
|
|
683
|
+
type: ColumnType_1.default.JSON,
|
|
684
|
+
nullable: true,
|
|
685
|
+
}),
|
|
686
|
+
__metadata("design:type", Array)
|
|
687
|
+
], DataStore.prototype, "dataCategories", void 0);
|
|
688
|
+
__decorate([
|
|
689
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
690
|
+
(0, TableColumn_1.default)({
|
|
691
|
+
type: TableColumnType_1.default.JSON,
|
|
692
|
+
required: false,
|
|
693
|
+
computed: true,
|
|
694
|
+
title: "Data Subject Countries",
|
|
695
|
+
description: "Countries whose people's data the store holds, from country-bound data types (ISO 3166-1 alpha-2).",
|
|
696
|
+
}),
|
|
697
|
+
(0, typeorm_1.Column)({
|
|
698
|
+
type: ColumnType_1.default.JSON,
|
|
699
|
+
nullable: true,
|
|
700
|
+
}),
|
|
701
|
+
__metadata("design:type", Array)
|
|
702
|
+
], DataStore.prototype, "subjectCountries", void 0);
|
|
703
|
+
__decorate([
|
|
704
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
705
|
+
(0, TableColumn_1.default)({
|
|
706
|
+
type: TableColumnType_1.default.ShortText,
|
|
707
|
+
required: true,
|
|
708
|
+
computed: true,
|
|
709
|
+
canReadOnRelationQuery: true,
|
|
710
|
+
title: "Exposure",
|
|
711
|
+
description: "Where the store sits relative to the internet and other organizations: Public, Other accounts, Internet reachable, Private or Unknown.",
|
|
712
|
+
defaultValue: "Unknown",
|
|
713
|
+
isDefaultValueColumn: true,
|
|
714
|
+
}),
|
|
715
|
+
(0, typeorm_1.Column)({
|
|
716
|
+
type: ColumnType_1.default.ShortText,
|
|
717
|
+
length: ColumnLength_1.default.ShortText,
|
|
718
|
+
nullable: false,
|
|
719
|
+
default: "Unknown",
|
|
720
|
+
}),
|
|
721
|
+
__metadata("design:type", String)
|
|
722
|
+
], DataStore.prototype, "exposure", void 0);
|
|
723
|
+
__decorate([
|
|
724
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
725
|
+
(0, TableColumn_1.default)({
|
|
726
|
+
type: TableColumnType_1.default.JSON,
|
|
727
|
+
required: false,
|
|
728
|
+
computed: true,
|
|
729
|
+
title: "Configuration",
|
|
730
|
+
description: "What the store's configuration says about its safety: public access, encryption, backups, logging and the rest.",
|
|
731
|
+
}),
|
|
732
|
+
(0, typeorm_1.Column)({
|
|
733
|
+
type: ColumnType_1.default.JSON,
|
|
734
|
+
nullable: true,
|
|
735
|
+
}),
|
|
736
|
+
__metadata("design:type", Object)
|
|
737
|
+
], DataStore.prototype, "posture", void 0);
|
|
738
|
+
__decorate([
|
|
739
|
+
(0, ColumnAccessControl_1.default)(hiddenColumnAccess),
|
|
740
|
+
(0, TableColumn_1.default)({
|
|
741
|
+
type: TableColumnType_1.default.JSON,
|
|
742
|
+
required: false,
|
|
743
|
+
computed: true,
|
|
744
|
+
title: "Fingerprints",
|
|
745
|
+
description: "16-bit MinHash fingerprints of matched values by data type, used to find copies between stores.",
|
|
746
|
+
}),
|
|
747
|
+
(0, typeorm_1.Column)({
|
|
748
|
+
type: ColumnType_1.default.JSON,
|
|
749
|
+
nullable: true,
|
|
750
|
+
}),
|
|
751
|
+
__metadata("design:type", Object)
|
|
752
|
+
], DataStore.prototype, "fingerprints", void 0);
|
|
753
|
+
__decorate([
|
|
754
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
755
|
+
(0, TableColumn_1.default)({
|
|
756
|
+
type: TableColumnType_1.default.JSON,
|
|
757
|
+
required: false,
|
|
758
|
+
computed: true,
|
|
759
|
+
title: "Tags",
|
|
760
|
+
description: "The store's tags or labels in its cloud.",
|
|
761
|
+
}),
|
|
762
|
+
(0, typeorm_1.Column)({
|
|
763
|
+
type: ColumnType_1.default.JSON,
|
|
764
|
+
nullable: true,
|
|
765
|
+
}),
|
|
766
|
+
__metadata("design:type", Object)
|
|
767
|
+
], DataStore.prototype, "cloudTags", void 0);
|
|
768
|
+
__decorate([
|
|
769
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
770
|
+
(0, TableColumn_1.default)({
|
|
771
|
+
type: TableColumnType_1.default.BigNumber,
|
|
772
|
+
required: false,
|
|
773
|
+
computed: true,
|
|
774
|
+
canReadOnRelationQuery: true,
|
|
775
|
+
title: "Size (Bytes)",
|
|
776
|
+
description: "How much data the store holds, from the metrics already collected.",
|
|
777
|
+
}),
|
|
778
|
+
(0, typeorm_1.Column)({
|
|
779
|
+
type: ColumnType_1.default.BigNumber,
|
|
780
|
+
nullable: true,
|
|
781
|
+
transformer: bigNumberTransformer,
|
|
782
|
+
}),
|
|
783
|
+
__metadata("design:type", Number)
|
|
784
|
+
], DataStore.prototype, "sizeInBytes", void 0);
|
|
785
|
+
__decorate([
|
|
786
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
787
|
+
(0, TableColumn_1.default)({
|
|
788
|
+
type: TableColumnType_1.default.BigNumber,
|
|
789
|
+
required: false,
|
|
790
|
+
computed: true,
|
|
791
|
+
canReadOnRelationQuery: true,
|
|
792
|
+
title: "Objects",
|
|
793
|
+
description: "How many objects, rows or documents the store holds, when known.",
|
|
794
|
+
}),
|
|
795
|
+
(0, typeorm_1.Column)({
|
|
796
|
+
type: ColumnType_1.default.BigNumber,
|
|
797
|
+
nullable: true,
|
|
798
|
+
transformer: bigNumberTransformer,
|
|
799
|
+
}),
|
|
800
|
+
__metadata("design:type", Number)
|
|
801
|
+
], DataStore.prototype, "objectCount", void 0);
|
|
802
|
+
__decorate([
|
|
803
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
804
|
+
(0, TableColumn_1.default)({
|
|
805
|
+
type: TableColumnType_1.default.BigNumber,
|
|
806
|
+
required: false,
|
|
807
|
+
computed: true,
|
|
808
|
+
canReadOnRelationQuery: true,
|
|
809
|
+
title: "Estimated Sensitive Records",
|
|
810
|
+
description: "An estimate of how many records with sensitive data the store holds, from its samples.",
|
|
811
|
+
}),
|
|
812
|
+
(0, typeorm_1.Column)({
|
|
813
|
+
type: ColumnType_1.default.BigNumber,
|
|
814
|
+
nullable: true,
|
|
815
|
+
transformer: bigNumberTransformer,
|
|
816
|
+
}),
|
|
817
|
+
__metadata("design:type", Number)
|
|
818
|
+
], DataStore.prototype, "estimatedRecords", void 0);
|
|
819
|
+
__decorate([
|
|
820
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
821
|
+
(0, TableColumn_1.default)({
|
|
822
|
+
type: TableColumnType_1.default.Date,
|
|
823
|
+
required: false,
|
|
824
|
+
computed: true,
|
|
825
|
+
canReadOnRelationQuery: true,
|
|
826
|
+
title: "Last Activity At",
|
|
827
|
+
description: "When the store was last read or written, when its metrics or traces say.",
|
|
828
|
+
}),
|
|
829
|
+
(0, typeorm_1.Column)({
|
|
830
|
+
type: ColumnType_1.default.Date,
|
|
831
|
+
nullable: true,
|
|
832
|
+
}),
|
|
833
|
+
__metadata("design:type", Date)
|
|
834
|
+
], DataStore.prototype, "lastActivityAt", void 0);
|
|
835
|
+
__decorate([
|
|
836
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
837
|
+
(0, TableColumn_1.default)({
|
|
838
|
+
type: TableColumnType_1.default.Boolean,
|
|
839
|
+
required: true,
|
|
840
|
+
canReadOnRelationQuery: true,
|
|
841
|
+
title: "Public By Design",
|
|
842
|
+
description: "The store is meant to be public, such as a website's assets. Public access checks pass for it.",
|
|
843
|
+
defaultValue: false,
|
|
844
|
+
isDefaultValueColumn: true,
|
|
845
|
+
}),
|
|
846
|
+
(0, typeorm_1.Column)({
|
|
847
|
+
type: ColumnType_1.default.Boolean,
|
|
848
|
+
nullable: false,
|
|
849
|
+
default: false,
|
|
850
|
+
}),
|
|
851
|
+
__metadata("design:type", Boolean)
|
|
852
|
+
], DataStore.prototype, "isPublicByDesign", void 0);
|
|
853
|
+
__decorate([
|
|
854
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
855
|
+
(0, TableColumn_1.default)({
|
|
856
|
+
type: TableColumnType_1.default.Boolean,
|
|
857
|
+
required: true,
|
|
858
|
+
canReadOnRelationQuery: true,
|
|
859
|
+
title: "Used For AI",
|
|
860
|
+
description: "The store holds data used to train or ground an AI model.",
|
|
861
|
+
defaultValue: false,
|
|
862
|
+
isDefaultValueColumn: true,
|
|
863
|
+
}),
|
|
864
|
+
(0, typeorm_1.Column)({
|
|
865
|
+
type: ColumnType_1.default.Boolean,
|
|
866
|
+
nullable: false,
|
|
867
|
+
default: false,
|
|
868
|
+
}),
|
|
869
|
+
__metadata("design:type", Boolean)
|
|
870
|
+
], DataStore.prototype, "isAiData", void 0);
|
|
871
|
+
__decorate([
|
|
872
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
873
|
+
(0, TableColumn_1.default)({
|
|
874
|
+
type: TableColumnType_1.default.Boolean,
|
|
875
|
+
required: true,
|
|
876
|
+
canReadOnRelationQuery: true,
|
|
877
|
+
title: "Scan Content",
|
|
878
|
+
description: "Whether Data Security samples the store's content. Configuration checks run either way.",
|
|
879
|
+
defaultValue: true,
|
|
880
|
+
isDefaultValueColumn: true,
|
|
881
|
+
}),
|
|
882
|
+
(0, typeorm_1.Column)({
|
|
883
|
+
type: ColumnType_1.default.Boolean,
|
|
884
|
+
nullable: false,
|
|
885
|
+
default: true,
|
|
886
|
+
}),
|
|
887
|
+
__metadata("design:type", Boolean)
|
|
888
|
+
], DataStore.prototype, "isContentScanEnabled", void 0);
|
|
889
|
+
__decorate([
|
|
890
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
891
|
+
(0, TableColumn_1.default)({
|
|
892
|
+
manyToOneRelationColumn: "scanProbeId",
|
|
893
|
+
type: TableColumnType_1.default.Entity,
|
|
894
|
+
modelType: Probe_1.default,
|
|
895
|
+
title: "Scan From Probe",
|
|
896
|
+
description: "Relation to the probe that scans this store.",
|
|
897
|
+
}),
|
|
898
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
899
|
+
return Probe_1.default;
|
|
900
|
+
}, {
|
|
901
|
+
eager: false,
|
|
902
|
+
nullable: true,
|
|
903
|
+
onDelete: "SET NULL",
|
|
904
|
+
orphanedRowAction: "nullify",
|
|
905
|
+
}),
|
|
906
|
+
(0, typeorm_1.JoinColumn)({ name: "scanProbeId" }),
|
|
907
|
+
__metadata("design:type", Probe_1.default)
|
|
908
|
+
], DataStore.prototype, "scanProbe", void 0);
|
|
909
|
+
__decorate([
|
|
910
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
911
|
+
(0, typeorm_1.Index)(),
|
|
912
|
+
(0, TableColumn_1.default)({
|
|
913
|
+
type: TableColumnType_1.default.ObjectID,
|
|
914
|
+
required: false,
|
|
915
|
+
canReadOnRelationQuery: true,
|
|
916
|
+
title: "Scan From Probe ID",
|
|
917
|
+
description: "A probe that scans the store's content from inside your network instead of OneUptime's workers.",
|
|
918
|
+
}),
|
|
919
|
+
(0, typeorm_1.Column)({
|
|
920
|
+
type: ColumnType_1.default.ObjectID,
|
|
921
|
+
nullable: true,
|
|
922
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
923
|
+
}),
|
|
924
|
+
__metadata("design:type", ObjectID_1.default)
|
|
925
|
+
], DataStore.prototype, "scanProbeId", void 0);
|
|
926
|
+
__decorate([
|
|
927
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
928
|
+
(0, TableColumn_1.default)({
|
|
929
|
+
type: TableColumnType_1.default.ShortText,
|
|
930
|
+
required: false,
|
|
931
|
+
canReadOnRelationQuery: true,
|
|
932
|
+
title: "Probe Connection Variable",
|
|
933
|
+
description: "For a database scanned from a probe: the environment variable on that probe that holds its connection string. The connection string itself never reaches OneUptime.",
|
|
934
|
+
}),
|
|
935
|
+
(0, typeorm_1.Column)({
|
|
936
|
+
type: ColumnType_1.default.ShortText,
|
|
937
|
+
length: ColumnLength_1.default.ShortText,
|
|
938
|
+
nullable: true,
|
|
939
|
+
}),
|
|
940
|
+
__metadata("design:type", String)
|
|
941
|
+
], DataStore.prototype, "probeConnectionVariable", void 0);
|
|
942
|
+
__decorate([
|
|
943
|
+
(0, ColumnAccessControl_1.default)(secretColumnAccess),
|
|
944
|
+
(0, TableColumn_1.default)({
|
|
945
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
946
|
+
required: false,
|
|
947
|
+
encrypted: true,
|
|
948
|
+
title: "Connection String",
|
|
949
|
+
description: "For a database scanned by OneUptime's workers: a read-only connection string. Encrypted at rest and never returned by the API.",
|
|
950
|
+
}),
|
|
951
|
+
(0, typeorm_1.Column)({
|
|
952
|
+
type: ColumnType_1.default.VeryLongText,
|
|
953
|
+
nullable: true,
|
|
954
|
+
}),
|
|
955
|
+
__metadata("design:type", String)
|
|
956
|
+
], DataStore.prototype, "connectionString", void 0);
|
|
957
|
+
__decorate([
|
|
958
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
959
|
+
(0, TableColumn_1.default)({
|
|
960
|
+
type: TableColumnType_1.default.JSON,
|
|
961
|
+
required: false,
|
|
962
|
+
title: "Scan Exclusions",
|
|
963
|
+
description: "Path prefixes, tables or attribute keys the content scan skips.",
|
|
964
|
+
}),
|
|
965
|
+
(0, typeorm_1.Column)({
|
|
966
|
+
type: ColumnType_1.default.JSON,
|
|
967
|
+
nullable: true,
|
|
968
|
+
}),
|
|
969
|
+
__metadata("design:type", Array)
|
|
970
|
+
], DataStore.prototype, "scanExclusions", void 0);
|
|
971
|
+
__decorate([
|
|
972
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
973
|
+
(0, TableColumn_1.default)({
|
|
974
|
+
type: TableColumnType_1.default.LongText,
|
|
975
|
+
required: false,
|
|
976
|
+
canReadOnRelationQuery: true,
|
|
977
|
+
title: "Purpose",
|
|
978
|
+
description: "Why the store holds personal data, for the GDPR record of processing.",
|
|
979
|
+
}),
|
|
980
|
+
(0, typeorm_1.Column)({
|
|
981
|
+
type: ColumnType_1.default.LongText,
|
|
982
|
+
length: ColumnLength_1.default.LongText,
|
|
983
|
+
nullable: true,
|
|
984
|
+
}),
|
|
985
|
+
__metadata("design:type", String)
|
|
986
|
+
], DataStore.prototype, "purpose", void 0);
|
|
987
|
+
__decorate([
|
|
988
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
989
|
+
(0, TableColumn_1.default)({
|
|
990
|
+
type: TableColumnType_1.default.ShortText,
|
|
991
|
+
required: false,
|
|
992
|
+
canReadOnRelationQuery: true,
|
|
993
|
+
title: "Retention",
|
|
994
|
+
description: "How long data is kept in the store, for the GDPR record of processing.",
|
|
995
|
+
}),
|
|
996
|
+
(0, typeorm_1.Column)({
|
|
997
|
+
type: ColumnType_1.default.ShortText,
|
|
998
|
+
length: ColumnLength_1.default.ShortText,
|
|
999
|
+
nullable: true,
|
|
1000
|
+
}),
|
|
1001
|
+
__metadata("design:type", String)
|
|
1002
|
+
], DataStore.prototype, "retention", void 0);
|
|
1003
|
+
__decorate([
|
|
1004
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1005
|
+
(0, TableColumn_1.default)({
|
|
1006
|
+
type: TableColumnType_1.default.Date,
|
|
1007
|
+
required: false,
|
|
1008
|
+
computed: true,
|
|
1009
|
+
canReadOnRelationQuery: true,
|
|
1010
|
+
title: "Configuration Read At",
|
|
1011
|
+
description: "When the store's configuration and access were last read.",
|
|
1012
|
+
}),
|
|
1013
|
+
(0, typeorm_1.Column)({
|
|
1014
|
+
type: ColumnType_1.default.Date,
|
|
1015
|
+
nullable: true,
|
|
1016
|
+
}),
|
|
1017
|
+
__metadata("design:type", Date)
|
|
1018
|
+
], DataStore.prototype, "configurationReadAt", void 0);
|
|
1019
|
+
__decorate([
|
|
1020
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1021
|
+
(0, TableColumn_1.default)({
|
|
1022
|
+
type: TableColumnType_1.default.Date,
|
|
1023
|
+
required: false,
|
|
1024
|
+
computed: true,
|
|
1025
|
+
canReadOnRelationQuery: true,
|
|
1026
|
+
title: "Content Scanned At",
|
|
1027
|
+
description: "When the store's content was last sampled.",
|
|
1028
|
+
}),
|
|
1029
|
+
(0, typeorm_1.Column)({
|
|
1030
|
+
type: ColumnType_1.default.Date,
|
|
1031
|
+
nullable: true,
|
|
1032
|
+
}),
|
|
1033
|
+
__metadata("design:type", Date)
|
|
1034
|
+
], DataStore.prototype, "contentScannedAt", void 0);
|
|
1035
|
+
__decorate([
|
|
1036
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1037
|
+
(0, TableColumn_1.default)({
|
|
1038
|
+
type: TableColumnType_1.default.ShortText,
|
|
1039
|
+
required: false,
|
|
1040
|
+
computed: true,
|
|
1041
|
+
canReadOnRelationQuery: true,
|
|
1042
|
+
title: "Content Scan Status",
|
|
1043
|
+
description: "How the last content scan ended, or why it could not run.",
|
|
1044
|
+
}),
|
|
1045
|
+
(0, typeorm_1.Column)({
|
|
1046
|
+
type: ColumnType_1.default.ShortText,
|
|
1047
|
+
length: ColumnLength_1.default.ShortText,
|
|
1048
|
+
nullable: true,
|
|
1049
|
+
}),
|
|
1050
|
+
__metadata("design:type", String)
|
|
1051
|
+
], DataStore.prototype, "contentScanStatus", void 0);
|
|
1052
|
+
__decorate([
|
|
1053
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1054
|
+
(0, typeorm_1.Index)(),
|
|
1055
|
+
(0, TableColumn_1.default)({
|
|
1056
|
+
type: TableColumnType_1.default.Date,
|
|
1057
|
+
required: false,
|
|
1058
|
+
computed: true,
|
|
1059
|
+
canReadOnRelationQuery: true,
|
|
1060
|
+
title: "Next Content Scan At",
|
|
1061
|
+
description: "When the store's content is next sampled.",
|
|
1062
|
+
}),
|
|
1063
|
+
(0, typeorm_1.Column)({
|
|
1064
|
+
type: ColumnType_1.default.Date,
|
|
1065
|
+
nullable: true,
|
|
1066
|
+
}),
|
|
1067
|
+
__metadata("design:type", Date)
|
|
1068
|
+
], DataStore.prototype, "nextContentScanAt", void 0);
|
|
1069
|
+
__decorate([
|
|
1070
|
+
(0, ColumnAccessControl_1.default)(hiddenColumnAccess),
|
|
1071
|
+
(0, TableColumn_1.default)({
|
|
1072
|
+
type: TableColumnType_1.default.JSON,
|
|
1073
|
+
required: false,
|
|
1074
|
+
computed: true,
|
|
1075
|
+
title: "Content Scan State",
|
|
1076
|
+
description: "Where the last content scan got to, so the next one skips what has not changed.",
|
|
1077
|
+
}),
|
|
1078
|
+
(0, typeorm_1.Column)({
|
|
1079
|
+
type: ColumnType_1.default.JSON,
|
|
1080
|
+
nullable: true,
|
|
1081
|
+
}),
|
|
1082
|
+
__metadata("design:type", Object)
|
|
1083
|
+
], DataStore.prototype, "contentScanState", void 0);
|
|
1084
|
+
__decorate([
|
|
1085
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1086
|
+
(0, TableColumn_1.default)({
|
|
1087
|
+
type: TableColumnType_1.default.Number,
|
|
1088
|
+
required: true,
|
|
1089
|
+
computed: true,
|
|
1090
|
+
canReadOnRelationQuery: true,
|
|
1091
|
+
title: "Findings",
|
|
1092
|
+
description: "How many data types were found at how many locations.",
|
|
1093
|
+
defaultValue: 0,
|
|
1094
|
+
isDefaultValueColumn: true,
|
|
1095
|
+
}),
|
|
1096
|
+
(0, typeorm_1.Column)({
|
|
1097
|
+
type: ColumnType_1.default.Number,
|
|
1098
|
+
nullable: false,
|
|
1099
|
+
default: 0,
|
|
1100
|
+
}),
|
|
1101
|
+
__metadata("design:type", Number)
|
|
1102
|
+
], DataStore.prototype, "findingCount", void 0);
|
|
1103
|
+
__decorate([
|
|
1104
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1105
|
+
(0, TableColumn_1.default)({
|
|
1106
|
+
type: TableColumnType_1.default.Number,
|
|
1107
|
+
required: true,
|
|
1108
|
+
computed: true,
|
|
1109
|
+
canReadOnRelationQuery: true,
|
|
1110
|
+
title: "Open Issues",
|
|
1111
|
+
description: "How many of the store's issues are open.",
|
|
1112
|
+
defaultValue: 0,
|
|
1113
|
+
isDefaultValueColumn: true,
|
|
1114
|
+
}),
|
|
1115
|
+
(0, typeorm_1.Column)({
|
|
1116
|
+
type: ColumnType_1.default.Number,
|
|
1117
|
+
nullable: false,
|
|
1118
|
+
default: 0,
|
|
1119
|
+
}),
|
|
1120
|
+
__metadata("design:type", Number)
|
|
1121
|
+
], DataStore.prototype, "openIssueCount", void 0);
|
|
1122
|
+
__decorate([
|
|
1123
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1124
|
+
(0, TableColumn_1.default)({
|
|
1125
|
+
type: TableColumnType_1.default.ShortText,
|
|
1126
|
+
required: false,
|
|
1127
|
+
computed: true,
|
|
1128
|
+
canReadOnRelationQuery: true,
|
|
1129
|
+
title: "Highest Issue Severity",
|
|
1130
|
+
description: "The severity of the store's worst open issue.",
|
|
1131
|
+
}),
|
|
1132
|
+
(0, typeorm_1.Column)({
|
|
1133
|
+
type: ColumnType_1.default.ShortText,
|
|
1134
|
+
length: ColumnLength_1.default.ShortText,
|
|
1135
|
+
nullable: true,
|
|
1136
|
+
}),
|
|
1137
|
+
__metadata("design:type", String)
|
|
1138
|
+
], DataStore.prototype, "highestIssueSeverity", void 0);
|
|
1139
|
+
__decorate([
|
|
1140
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1141
|
+
(0, typeorm_1.Index)(),
|
|
1142
|
+
(0, TableColumn_1.default)({
|
|
1143
|
+
type: TableColumnType_1.default.Number,
|
|
1144
|
+
required: true,
|
|
1145
|
+
computed: true,
|
|
1146
|
+
canReadOnRelationQuery: true,
|
|
1147
|
+
title: "Risk Score",
|
|
1148
|
+
description: "The risk score of the store's worst open issue, from 0 to 100.",
|
|
1149
|
+
defaultValue: 0,
|
|
1150
|
+
isDefaultValueColumn: true,
|
|
1151
|
+
}),
|
|
1152
|
+
(0, typeorm_1.Column)({
|
|
1153
|
+
type: ColumnType_1.default.Number,
|
|
1154
|
+
nullable: false,
|
|
1155
|
+
default: 0,
|
|
1156
|
+
}),
|
|
1157
|
+
__metadata("design:type", Number)
|
|
1158
|
+
], DataStore.prototype, "riskScore", void 0);
|
|
1159
|
+
__decorate([
|
|
1160
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1161
|
+
(0, TableColumn_1.default)({
|
|
1162
|
+
type: TableColumnType_1.default.Boolean,
|
|
1163
|
+
required: true,
|
|
1164
|
+
computed: true,
|
|
1165
|
+
canReadOnRelationQuery: true,
|
|
1166
|
+
title: "Archived",
|
|
1167
|
+
description: "The store is gone from its cloud or source; it is kept with its history.",
|
|
1168
|
+
defaultValue: false,
|
|
1169
|
+
isDefaultValueColumn: true,
|
|
1170
|
+
}),
|
|
1171
|
+
(0, typeorm_1.Column)({
|
|
1172
|
+
type: ColumnType_1.default.Boolean,
|
|
1173
|
+
nullable: false,
|
|
1174
|
+
default: false,
|
|
1175
|
+
}),
|
|
1176
|
+
__metadata("design:type", Boolean)
|
|
1177
|
+
], DataStore.prototype, "isArchived", void 0);
|
|
1178
|
+
__decorate([
|
|
1179
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1180
|
+
(0, TableColumn_1.default)({
|
|
1181
|
+
type: TableColumnType_1.default.Date,
|
|
1182
|
+
required: false,
|
|
1183
|
+
computed: true,
|
|
1184
|
+
canReadOnRelationQuery: true,
|
|
1185
|
+
title: "First Seen At",
|
|
1186
|
+
description: "When OneUptime first found the store.",
|
|
1187
|
+
}),
|
|
1188
|
+
(0, typeorm_1.Column)({
|
|
1189
|
+
type: ColumnType_1.default.Date,
|
|
1190
|
+
nullable: true,
|
|
1191
|
+
}),
|
|
1192
|
+
__metadata("design:type", Date)
|
|
1193
|
+
], DataStore.prototype, "firstSeenAt", void 0);
|
|
1194
|
+
__decorate([
|
|
1195
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1196
|
+
(0, TableColumn_1.default)({
|
|
1197
|
+
type: TableColumnType_1.default.Date,
|
|
1198
|
+
required: false,
|
|
1199
|
+
computed: true,
|
|
1200
|
+
canReadOnRelationQuery: true,
|
|
1201
|
+
title: "Last Seen At",
|
|
1202
|
+
description: "When OneUptime last found the store.",
|
|
1203
|
+
}),
|
|
1204
|
+
(0, typeorm_1.Column)({
|
|
1205
|
+
type: ColumnType_1.default.Date,
|
|
1206
|
+
nullable: true,
|
|
1207
|
+
}),
|
|
1208
|
+
__metadata("design:type", Date)
|
|
1209
|
+
], DataStore.prototype, "lastSeenAt", void 0);
|
|
1210
|
+
__decorate([
|
|
1211
|
+
(0, ColumnAccessControl_1.default)(editableColumnAccess),
|
|
1212
|
+
(0, TableColumn_1.default)({
|
|
1213
|
+
required: false,
|
|
1214
|
+
type: TableColumnType_1.default.EntityArray,
|
|
1215
|
+
modelType: Label_1.default,
|
|
1216
|
+
title: "Labels",
|
|
1217
|
+
description: "Relation to Labels Array where this object is categorized in.",
|
|
1218
|
+
}),
|
|
1219
|
+
(0, typeorm_1.ManyToMany)(() => {
|
|
1220
|
+
return Label_1.default;
|
|
1221
|
+
}, { eager: false }),
|
|
1222
|
+
(0, typeorm_1.JoinTable)({
|
|
1223
|
+
name: "DataStoreLabel",
|
|
1224
|
+
inverseJoinColumn: {
|
|
1225
|
+
name: "labelId",
|
|
1226
|
+
referencedColumnName: "_id",
|
|
1227
|
+
},
|
|
1228
|
+
joinColumn: {
|
|
1229
|
+
name: "dataStoreId",
|
|
1230
|
+
referencedColumnName: "_id",
|
|
1231
|
+
},
|
|
1232
|
+
}),
|
|
1233
|
+
__metadata("design:type", Array)
|
|
1234
|
+
], DataStore.prototype, "labels", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1237
|
+
(0, TableColumn_1.default)({
|
|
1238
|
+
manyToOneRelationColumn: "createdByUserId",
|
|
1239
|
+
type: TableColumnType_1.default.Entity,
|
|
1240
|
+
modelType: User_1.default,
|
|
1241
|
+
title: "Created By User",
|
|
1242
|
+
description: "Relation to the user who created this data store.",
|
|
1243
|
+
}),
|
|
1244
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
1245
|
+
return User_1.default;
|
|
1246
|
+
}, {
|
|
1247
|
+
eager: false,
|
|
1248
|
+
nullable: true,
|
|
1249
|
+
onDelete: "SET NULL",
|
|
1250
|
+
orphanedRowAction: "nullify",
|
|
1251
|
+
}),
|
|
1252
|
+
(0, typeorm_1.JoinColumn)({ name: "createdByUserId" }),
|
|
1253
|
+
__metadata("design:type", User_1.default)
|
|
1254
|
+
], DataStore.prototype, "createdByUser", void 0);
|
|
1255
|
+
__decorate([
|
|
1256
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1257
|
+
(0, TableColumn_1.default)({
|
|
1258
|
+
type: TableColumnType_1.default.ObjectID,
|
|
1259
|
+
title: "Created By User ID",
|
|
1260
|
+
description: "ID of the user who created this data store.",
|
|
1261
|
+
}),
|
|
1262
|
+
(0, typeorm_1.Column)({
|
|
1263
|
+
type: ColumnType_1.default.ObjectID,
|
|
1264
|
+
nullable: true,
|
|
1265
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
1266
|
+
}),
|
|
1267
|
+
__metadata("design:type", ObjectID_1.default)
|
|
1268
|
+
], DataStore.prototype, "createdByUserId", void 0);
|
|
1269
|
+
__decorate([
|
|
1270
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1271
|
+
(0, TableColumn_1.default)({
|
|
1272
|
+
manyToOneRelationColumn: "deletedByUserId",
|
|
1273
|
+
type: TableColumnType_1.default.Entity,
|
|
1274
|
+
modelType: User_1.default,
|
|
1275
|
+
title: "Deleted By User",
|
|
1276
|
+
description: "Relation to the user who deleted this data store.",
|
|
1277
|
+
}),
|
|
1278
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
1279
|
+
return User_1.default;
|
|
1280
|
+
}, {
|
|
1281
|
+
eager: false,
|
|
1282
|
+
nullable: true,
|
|
1283
|
+
onDelete: "SET NULL",
|
|
1284
|
+
orphanedRowAction: "nullify",
|
|
1285
|
+
}),
|
|
1286
|
+
(0, typeorm_1.JoinColumn)({ name: "deletedByUserId" }),
|
|
1287
|
+
__metadata("design:type", User_1.default)
|
|
1288
|
+
], DataStore.prototype, "deletedByUser", void 0);
|
|
1289
|
+
__decorate([
|
|
1290
|
+
(0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
|
|
1291
|
+
(0, TableColumn_1.default)({
|
|
1292
|
+
type: TableColumnType_1.default.ObjectID,
|
|
1293
|
+
title: "Deleted By User ID",
|
|
1294
|
+
description: "ID of the user who deleted this data store.",
|
|
1295
|
+
}),
|
|
1296
|
+
(0, typeorm_1.Column)({
|
|
1297
|
+
type: ColumnType_1.default.ObjectID,
|
|
1298
|
+
nullable: true,
|
|
1299
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
1300
|
+
}),
|
|
1301
|
+
__metadata("design:type", ObjectID_1.default)
|
|
1302
|
+
], DataStore.prototype, "deletedByUserId", void 0);
|
|
1303
|
+
DataStore = __decorate([
|
|
1304
|
+
(0, AccessControlColumn_1.default)("labels"),
|
|
1305
|
+
(0, EnableDocumentation_1.default)(),
|
|
1306
|
+
(0, EnableMCP_1.default)(),
|
|
1307
|
+
(0, EnableAuditLog_1.default)(),
|
|
1308
|
+
(0, EnableWorkflow_1.default)({
|
|
1309
|
+
create: true,
|
|
1310
|
+
delete: true,
|
|
1311
|
+
update: true,
|
|
1312
|
+
read: true,
|
|
1313
|
+
}),
|
|
1314
|
+
(0, TableBillingAccessControl_1.default)({
|
|
1315
|
+
create: SubscriptionPlan_1.PlanType.Free,
|
|
1316
|
+
read: SubscriptionPlan_1.PlanType.Free,
|
|
1317
|
+
update: SubscriptionPlan_1.PlanType.Free,
|
|
1318
|
+
delete: SubscriptionPlan_1.PlanType.Free,
|
|
1319
|
+
}),
|
|
1320
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
1321
|
+
(0, CrudApiEndpoint_1.default)(new Route_1.default("/data-store")),
|
|
1322
|
+
(0, typeorm_1.Entity)({
|
|
1323
|
+
name: "DataStore",
|
|
1324
|
+
}),
|
|
1325
|
+
(0, TableMetadata_1.default)({
|
|
1326
|
+
tableName: "DataStore",
|
|
1327
|
+
singularName: "Data Store",
|
|
1328
|
+
pluralName: "Data Stores",
|
|
1329
|
+
icon: IconProp_1.default.Database,
|
|
1330
|
+
tableDescription: "Every bucket, database, warehouse and telemetry stream Data Security knows: what sensitive data it holds, who can reach it and how it is configured.",
|
|
1331
|
+
}),
|
|
1332
|
+
(0, TableAccessControl_1.default)({
|
|
1333
|
+
create: createPermissions,
|
|
1334
|
+
read: readPermissions,
|
|
1335
|
+
update: updatePermissions,
|
|
1336
|
+
delete: deletePermissions,
|
|
1337
|
+
}),
|
|
1338
|
+
(0, typeorm_1.Index)(["projectId", "storeKey"], { unique: true }),
|
|
1339
|
+
(0, typeorm_1.Index)(["projectId", "sensitivity"]),
|
|
1340
|
+
(0, typeorm_1.Index)(["projectId", "kind"]),
|
|
1341
|
+
(0, typeorm_1.Index)(["projectId", "isArchived"])
|
|
1342
|
+
], DataStore);
|
|
1343
|
+
exports.default = DataStore;
|