@oneuptime/common 14.0.97 → 14.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
- package/Models/DatabaseModels/CloudAccount.js +167 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
- package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
- package/Models/DatabaseModels/CodeRepository.d.mts +3 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
- package/Models/DatabaseModels/CodeRepository.js +104 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
- package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
- package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.js +520 -0
- package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
- package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +83 -0
- package/Models/DatabaseModels/DataStore.d.ts +83 -0
- package/Models/DatabaseModels/DataStore.js +1343 -0
- package/Models/DatabaseModels/DataStore.mjs +2 -0
- package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.js +407 -0
- package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
- package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.js +613 -0
- package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.js +683 -0
- package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
- package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +110 -0
- package/Models/DatabaseModels/Index.js +37 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
- package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
- package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
- package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
- package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
- package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
- package/Models/DatabaseModels/SecurityHunt.js +608 -0
- package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
- package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
- package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
- package/Models/DatabaseModels/TelemetryException.js +170 -8
- package/Types/AI/AIChatPageContext.d.mts +4 -1
- package/Types/AI/AIChatPageContext.d.ts +4 -1
- package/Types/AI/AIChatPageContext.js +7 -0
- package/Types/AI/AIChatTypes.d.mts +7 -1
- package/Types/AI/AIChatTypes.d.ts +7 -1
- package/Types/AI/AIChatTypes.js +9 -0
- package/Types/AI/AIRunEventType.d.mts +1 -0
- package/Types/AI/AIRunEventType.d.ts +1 -0
- package/Types/AI/AIRunEventType.js +8 -0
- package/Types/AI/AiAffectedResources.js +5 -3
- package/Types/AI/AiTokenCount.d.mts +22 -1
- package/Types/AI/AiTokenCount.d.ts +22 -1
- package/Types/AI/AiTokenCount.js +126 -57
- package/Types/AI/AiTokenCount.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +22 -0
- package/Types/AI/CodeFixTaskContext.d.ts +22 -0
- package/Types/AI/CodeFixTaskContext.js +61 -4
- package/Types/AI/CodeFixTaskContext.mjs +2 -0
- package/Types/AI/CodeTask.d.mts +2 -0
- package/Types/AI/CodeTask.d.ts +2 -0
- package/Types/AI/CodeTask.js +4 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessPermissions.js +6 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
- package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
- package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
- package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
- package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
- package/Types/CodeRepository/CodeHost.d.mts +2 -1
- package/Types/CodeRepository/CodeHost.d.ts +2 -1
- package/Types/CodeRepository/CodeHost.js +12 -5
- package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
- package/Types/CodeRepository/ProductionReview.d.mts +7 -0
- package/Types/CodeRepository/ProductionReview.d.ts +7 -0
- package/Types/CodeRepository/ProductionReview.js +67 -1
- package/Types/CodeRepository/ProductionReview.mjs +1 -0
- package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
- package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
- package/Types/DataSecurity/ComplianceFramework.js +97 -0
- package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
- package/Types/DataSecurity/DataCategory.d.mts +15 -0
- package/Types/DataSecurity/DataCategory.d.ts +15 -0
- package/Types/DataSecurity/DataCategory.js +61 -0
- package/Types/DataSecurity/DataCategory.mjs +7 -0
- package/Types/DataSecurity/DataConfidence.d.mts +11 -0
- package/Types/DataSecurity/DataConfidence.d.ts +11 -0
- package/Types/DataSecurity/DataConfidence.js +49 -0
- package/Types/DataSecurity/DataConfidence.mjs +7 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.js +92 -0
- package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
- package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
- package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.js +138 -0
- package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
- package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
- package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
- package/Types/DataSecurity/DataSensitivity.js +68 -0
- package/Types/DataSecurity/DataSensitivity.mjs +8 -0
- package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
- package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
- package/Types/DataSecurity/DataStoreAccess.js +35 -0
- package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
- package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
- package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
- package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
- package/Types/DataSecurity/DataStoreKey.js +49 -0
- package/Types/DataSecurity/DataStoreKey.mjs +7 -0
- package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
- package/Types/DataSecurity/DataStoreKind.js +230 -0
- package/Types/DataSecurity/DataStoreKind.mjs +10 -0
- package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
- package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
- package/Types/DataSecurity/DataStorePosture.js +100 -0
- package/Types/DataSecurity/DataStorePosture.mjs +7 -0
- package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.js +434 -0
- package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -0
- package/Types/Email/EmailTemplateType.d.ts +2 -0
- package/Types/Email/EmailTemplateType.js +8 -0
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
- package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
- package/Types/Monitor/CephAlertTemplates.js +49 -0
- package/Types/Monitor/CephAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
- package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
- package/Types/Monitor/DockerAlertTemplates.js +109 -37
- package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
- package/Types/Monitor/DockerMetricCatalog.js +26 -52
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
- package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
- package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
- package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
- package/Types/Monitor/HostAlertTemplates.js +48 -0
- package/Types/Monitor/HostAlertTemplates.mjs +1 -0
- package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
- package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
- package/Types/Monitor/IotAlertTemplates.js +11 -0
- package/Types/Monitor/IotAlertTemplates.mjs +1 -0
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
- package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
- package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
- package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
- package/Types/Monitor/MonitorStep.js +50 -3
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
- package/Types/Monitor/MonitorType.d.mts +1 -0
- package/Types/Monitor/MonitorType.d.ts +1 -0
- package/Types/Monitor/MonitorType.js +18 -0
- package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.js +161 -33
- package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
- package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.js +26 -52
- package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
- package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
- package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
- package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.js +50 -0
- package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
- package/Types/Permission.d.mts +51 -0
- package/Types/Permission.d.ts +51 -0
- package/Types/Permission.js +542 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +8 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
- package/Types/ProviderLogo/ProviderLogo.js +4 -0
- package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.js +76 -2
- package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
- package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
- package/Types/Rules/RuleCriteriaSubject.js +3 -0
- package/Types/Rules/RuleRun.d.mts +2 -0
- package/Types/Rules/RuleRun.d.ts +2 -0
- package/Types/Rules/RuleRun.js +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
- package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
- package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
- package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
- package/Types/SecurityCase/SecurityEntity.js +39 -1
- package/Types/SecurityCase/SecurityEntity.mjs +4 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
- package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
- package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
- package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
- package/Types/SecurityEvent/OcsfEventClass.js +31 -2
- package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
- package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
- package/Types/SecurityEvent/SecurityHunt.js +391 -0
- package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
- package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
- package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.js +131 -0
- package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
- package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
- package/Types/Telemetry/TraceSpanType.d.mts +1 -1
- package/Types/Telemetry/TraceSpanType.d.ts +1 -1
- package/Types/Telemetry/TraceSpanType.js +33 -8
- package/Types/Telemetry/TraceSpanType.mjs +1 -1
- package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
- package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
- package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
- package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
- package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
- package/Types/UpdateCheck/UpdateStatus.js +195 -0
- package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
- package/Types/Workflow/RunRecord.d.mts +3 -14
- package/Types/Workflow/RunRecord.d.ts +3 -14
- package/Types/Workflow/RunRecord.js +10 -51
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
- package/Utils/AI/InvestigationLogStall.d.mts +38 -0
- package/Utils/AI/InvestigationLogStall.d.ts +38 -0
- package/Utils/AI/InvestigationLogStall.js +163 -0
- package/Utils/AI/InvestigationLogStall.mjs +11 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
- package/Utils/DataSecurity/Detector.d.mts +26 -0
- package/Utils/DataSecurity/Detector.d.ts +26 -0
- package/Utils/DataSecurity/Detector.js +83 -0
- package/Utils/DataSecurity/Detector.mjs +8 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
- package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
- package/Utils/DataSecurity/Detectors/Index.js +47 -0
- package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
- package/Utils/DataSecurity/FieldClassifier.js +247 -0
- package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
- package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
- package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
- package/Utils/DataSecurity/FieldCollector.js +81 -0
- package/Utils/DataSecurity/FieldCollector.mjs +3 -0
- package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
- package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
- package/Utils/DataSecurity/FieldNameHints.js +184 -0
- package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
- package/Utils/DataSecurity/FindingTally.d.mts +44 -0
- package/Utils/DataSecurity/FindingTally.d.ts +44 -0
- package/Utils/DataSecurity/FindingTally.js +138 -0
- package/Utils/DataSecurity/FindingTally.mjs +6 -0
- package/Utils/DataSecurity/Masking.d.mts +6 -0
- package/Utils/DataSecurity/Masking.d.ts +6 -0
- package/Utils/DataSecurity/Masking.js +159 -0
- package/Utils/DataSecurity/Masking.mjs +7 -0
- package/Utils/DataSecurity/PathPattern.d.mts +3 -0
- package/Utils/DataSecurity/PathPattern.d.ts +3 -0
- package/Utils/DataSecurity/PathPattern.js +55 -0
- package/Utils/DataSecurity/PathPattern.mjs +4 -0
- package/Utils/DataSecurity/Sha256.d.mts +1 -0
- package/Utils/DataSecurity/Sha256.d.ts +1 -0
- package/Utils/DataSecurity/Sha256.js +94 -0
- package/Utils/DataSecurity/Sha256.mjs +2 -0
- package/Utils/DataSecurity/TextScanner.d.mts +35 -0
- package/Utils/DataSecurity/TextScanner.d.ts +35 -0
- package/Utils/DataSecurity/TextScanner.js +303 -0
- package/Utils/DataSecurity/TextScanner.mjs +8 -0
- package/Utils/DataSecurity/Validators.d.mts +16 -0
- package/Utils/DataSecurity/Validators.d.ts +16 -0
- package/Utils/DataSecurity/Validators.js +339 -0
- package/Utils/DataSecurity/Validators.mjs +17 -0
- package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.js +131 -0
- package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
- package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
- package/Utils/LabelRuleImportExport.js +17 -3
- package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
- package/Utils/Project/RecordNumber.d.mts +43 -0
- package/Utils/Project/RecordNumber.d.ts +43 -0
- package/Utils/Project/RecordNumber.js +151 -0
- package/Utils/Project/RecordNumber.mjs +6 -0
- package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
- package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
- package/Utils/SecurityAdvisoryMatcher.js +291 -0
- package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +2 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
- package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
- package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
- package/Utils/Sms/OnCallPageSms.d.mts +1 -0
- package/Utils/Sms/OnCallPageSms.d.ts +1 -0
- package/Utils/Sms/OnCallPageSms.js +16 -2
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
- package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
- package/Utils/Syslog/LeefParser.d.mts +28 -0
- package/Utils/Syslog/LeefParser.d.ts +28 -0
- package/Utils/Syslog/LeefParser.js +326 -0
- package/Utils/Syslog/LeefParser.mjs +10 -0
- package/Utils/VersionRange.d.mts +34 -0
- package/Utils/VersionRange.d.ts +34 -0
- package/Utils/VersionRange.js +422 -0
- package/Utils/VersionRange.mjs +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import commonJsModule from "./Validators.js";
|
|
2
|
+
export const base58Check = commonJsModule.base58Check;
|
|
3
|
+
export const base58Decode = commonJsModule.base58Decode;
|
|
4
|
+
export const base58Version = commonJsModule.base58Version;
|
|
5
|
+
export const bech32 = commonJsModule.bech32;
|
|
6
|
+
export const decimalStringMod = commonJsModule.decimalStringMod;
|
|
7
|
+
export const digitAt = commonJsModule.digitAt;
|
|
8
|
+
export const ean13 = commonJsModule.ean13;
|
|
9
|
+
export const ibanMod97 = commonJsModule.ibanMod97;
|
|
10
|
+
export const isRealDate = commonJsModule.isRealDate;
|
|
11
|
+
export const isRealTwoDigitYearDate = commonJsModule.isRealTwoDigitYearDate;
|
|
12
|
+
export const iso7064Mod11Mod10 = commonJsModule.iso7064Mod11Mod10;
|
|
13
|
+
export const luhn = commonJsModule.luhn;
|
|
14
|
+
export const shannonEntropy = commonJsModule.shannonEntropy;
|
|
15
|
+
export const twoDigits = commonJsModule.twoDigits;
|
|
16
|
+
export const verhoeff = commonJsModule.verhoeff;
|
|
17
|
+
export const weightedDigitSum = commonJsModule.weightedDigitSum;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const NEW_EXCEPTION_WINDOW_MS: number;
|
|
2
|
+
export declare enum ExceptionIssueBadge {
|
|
3
|
+
Regressed = "regressed",
|
|
4
|
+
New = "new",
|
|
5
|
+
Unhandled = "unhandled"
|
|
6
|
+
}
|
|
7
|
+
export interface ExceptionIssueStateInput {
|
|
8
|
+
isResolved?: boolean | undefined;
|
|
9
|
+
isArchived?: boolean | undefined;
|
|
10
|
+
regressedAt?: Date | string | undefined | null;
|
|
11
|
+
firstSeenAt?: Date | string | undefined | null;
|
|
12
|
+
unhandled?: boolean | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function isExceptionRegressed(exception: ExceptionIssueStateInput): boolean;
|
|
15
|
+
export declare function isExceptionNew(exception: ExceptionIssueStateInput, now?: Date): boolean;
|
|
16
|
+
export declare function getExceptionIssueBadges(exception: ExceptionIssueStateInput, now?: Date): Array<ExceptionIssueBadge>;
|
|
17
|
+
export declare function applyAssignmentChange(data: Record<string, unknown>): void;
|
|
18
|
+
export declare function applyManualResolutionChange(data: Record<string, unknown>): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const NEW_EXCEPTION_WINDOW_MS: number;
|
|
2
|
+
export declare enum ExceptionIssueBadge {
|
|
3
|
+
Regressed = "regressed",
|
|
4
|
+
New = "new",
|
|
5
|
+
Unhandled = "unhandled"
|
|
6
|
+
}
|
|
7
|
+
export interface ExceptionIssueStateInput {
|
|
8
|
+
isResolved?: boolean | undefined;
|
|
9
|
+
isArchived?: boolean | undefined;
|
|
10
|
+
regressedAt?: Date | string | undefined | null;
|
|
11
|
+
firstSeenAt?: Date | string | undefined | null;
|
|
12
|
+
unhandled?: boolean | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function isExceptionRegressed(exception: ExceptionIssueStateInput): boolean;
|
|
15
|
+
export declare function isExceptionNew(exception: ExceptionIssueStateInput, now?: Date): boolean;
|
|
16
|
+
export declare function getExceptionIssueBadges(exception: ExceptionIssueStateInput, now?: Date): Array<ExceptionIssueBadge>;
|
|
17
|
+
export declare function applyAssignmentChange(data: Record<string, unknown>): void;
|
|
18
|
+
export declare function applyManualResolutionChange(data: Record<string, unknown>): void;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* WHERE AN EXCEPTION STANDS, AT A GLANCE.
|
|
4
|
+
*
|
|
5
|
+
* An exception group is Unresolved, Resolved or Archived (two switches,
|
|
6
|
+
* isResolved and isArchived). On top of that, three things a person triaging
|
|
7
|
+
* the list needs to see before they open it:
|
|
8
|
+
*
|
|
9
|
+
* - Regressed: it was resolved and came back. The ingest upsert reopens a
|
|
10
|
+
* resolved exception on an occurrence that happened after it was resolved
|
|
11
|
+
* - from another release, when it was resolved in the next release - and
|
|
12
|
+
* stamps regressedAt (App/FeatureSet/Telemetry/Utils/Exception.ts). It
|
|
13
|
+
* reads Regressed while it stays unresolved.
|
|
14
|
+
* - New: first seen in the last day (NEW_EXCEPTION_WINDOW_MS), the same day
|
|
15
|
+
* the New Exception finding of the Exceptions AI section looks back over,
|
|
16
|
+
* while nobody has resolved or archived it.
|
|
17
|
+
* - Unhandled: at least one occurrence escaped its span uncaught.
|
|
18
|
+
*
|
|
19
|
+
* Shared by the server (TelemetryExceptionService) and the Dashboard, so the
|
|
20
|
+
* list, the exception's page and the API agree on one meaning.
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.ExceptionIssueBadge = exports.NEW_EXCEPTION_WINDOW_MS = void 0;
|
|
24
|
+
exports.isExceptionRegressed = isExceptionRegressed;
|
|
25
|
+
exports.isExceptionNew = isExceptionNew;
|
|
26
|
+
exports.getExceptionIssueBadges = getExceptionIssueBadges;
|
|
27
|
+
exports.applyAssignmentChange = applyAssignmentChange;
|
|
28
|
+
exports.applyManualResolutionChange = applyManualResolutionChange;
|
|
29
|
+
exports.NEW_EXCEPTION_WINDOW_MS = 24 * 60 * 60 * 1000;
|
|
30
|
+
var ExceptionIssueBadge;
|
|
31
|
+
(function (ExceptionIssueBadge) {
|
|
32
|
+
ExceptionIssueBadge["Regressed"] = "regressed";
|
|
33
|
+
ExceptionIssueBadge["New"] = "new";
|
|
34
|
+
ExceptionIssueBadge["Unhandled"] = "unhandled";
|
|
35
|
+
})(ExceptionIssueBadge || (exports.ExceptionIssueBadge = ExceptionIssueBadge = {}));
|
|
36
|
+
function toTime(value) {
|
|
37
|
+
if (value === undefined || value === null || value === "") {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const time = value instanceof Date ? value.getTime() : new Date(value).getTime();
|
|
41
|
+
return Number.isNaN(time) ? null : time;
|
|
42
|
+
}
|
|
43
|
+
// It came back after it was resolved, and nobody has resolved it since.
|
|
44
|
+
function isExceptionRegressed(exception) {
|
|
45
|
+
return !exception.isResolved && toTime(exception.regressedAt) !== null;
|
|
46
|
+
}
|
|
47
|
+
// First seen within the last day, and still open.
|
|
48
|
+
function isExceptionNew(exception, now = new Date()) {
|
|
49
|
+
if (exception.isResolved || exception.isArchived) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
const firstSeen = toTime(exception.firstSeenAt);
|
|
53
|
+
if (firstSeen === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
const age = now.getTime() - firstSeen;
|
|
57
|
+
return age >= 0 && age <= exports.NEW_EXCEPTION_WINDOW_MS;
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* The badges an exception carries, in the order they are shown: Regressed
|
|
61
|
+
* and New are one or the other (a regressed exception is not new, whatever
|
|
62
|
+
* its first seen), then Unhandled.
|
|
63
|
+
*/
|
|
64
|
+
function getExceptionIssueBadges(exception, now = new Date()) {
|
|
65
|
+
const badges = [];
|
|
66
|
+
if (isExceptionRegressed(exception)) {
|
|
67
|
+
badges.push(ExceptionIssueBadge.Regressed);
|
|
68
|
+
}
|
|
69
|
+
else if (isExceptionNew(exception, now)) {
|
|
70
|
+
badges.push(ExceptionIssueBadge.New);
|
|
71
|
+
}
|
|
72
|
+
if (exception.unhandled) {
|
|
73
|
+
badges.push(ExceptionIssueBadge.Unhandled);
|
|
74
|
+
}
|
|
75
|
+
return badges;
|
|
76
|
+
}
|
|
77
|
+
/*
|
|
78
|
+
* An exception is assigned to one person or one team, never both: a write
|
|
79
|
+
* that names one clears the other (TelemetryExceptionService.onBeforeUpdate),
|
|
80
|
+
* so the list's Assigned to me and the exception's Assignee always agree on
|
|
81
|
+
* who owns it. A write that names both keeps both as written, and one that
|
|
82
|
+
* clears one leaves the other alone.
|
|
83
|
+
*/
|
|
84
|
+
function applyAssignmentChange(data) {
|
|
85
|
+
const isNamed = (value) => {
|
|
86
|
+
return value !== undefined && value !== null && value !== "";
|
|
87
|
+
};
|
|
88
|
+
const user = data["assignToUserId"];
|
|
89
|
+
const team = data["assignToTeamId"];
|
|
90
|
+
if (isNamed(user) && team === undefined) {
|
|
91
|
+
data["assignToTeamId"] = null;
|
|
92
|
+
}
|
|
93
|
+
if (isNamed(team) && user === undefined) {
|
|
94
|
+
data["assignToUserId"] = null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/*
|
|
98
|
+
* What resolving or reopening an exception by hand writes besides the switch
|
|
99
|
+
* (TelemetryExceptionService.onBeforeUpdate), on the update's data:
|
|
100
|
+
*
|
|
101
|
+
* - regressedAt is cleared, so it reads Regressed again only when it comes
|
|
102
|
+
* back once more - and a manual reopen never reads as a regression. A
|
|
103
|
+
* write that names regressedAt itself keeps what it names (OneUptime's
|
|
104
|
+
* own check of a fix in production reopens with a regression time).
|
|
105
|
+
* - resolvedInReleaseAfter is kept only on a resolve that names a release
|
|
106
|
+
* (Resolve in next release). A plain resolve and every reopen clear it,
|
|
107
|
+
* so a later plain resolve never inherits an old release.
|
|
108
|
+
*
|
|
109
|
+
* A write that does not turn isResolved only has its release tidied.
|
|
110
|
+
*/
|
|
111
|
+
function applyManualResolutionChange(data) {
|
|
112
|
+
const release = data["resolvedInReleaseAfter"];
|
|
113
|
+
const tidiedRelease = release === undefined
|
|
114
|
+
? undefined
|
|
115
|
+
: typeof release === "string" && release.trim().length > 0
|
|
116
|
+
? release.trim()
|
|
117
|
+
: null;
|
|
118
|
+
if (data["isResolved"] === undefined) {
|
|
119
|
+
if (tidiedRelease !== undefined) {
|
|
120
|
+
data["resolvedInReleaseAfter"] = tidiedRelease;
|
|
121
|
+
}
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (data["regressedAt"] === undefined) {
|
|
125
|
+
data["regressedAt"] = null;
|
|
126
|
+
}
|
|
127
|
+
data["resolvedInReleaseAfter"] =
|
|
128
|
+
data["isResolved"] === true || data["isResolved"] === "true"
|
|
129
|
+
? tidiedRelease !== null && tidiedRelease !== void 0 ? tidiedRelease : null
|
|
130
|
+
: null;
|
|
131
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import commonJsModule from "./ExceptionIssueState.js";
|
|
2
|
+
export const ExceptionIssueBadge = commonJsModule.ExceptionIssueBadge;
|
|
3
|
+
export const NEW_EXCEPTION_WINDOW_MS = commonJsModule.NEW_EXCEPTION_WINDOW_MS;
|
|
4
|
+
export const applyAssignmentChange = commonJsModule.applyAssignmentChange;
|
|
5
|
+
export const applyManualResolutionChange = commonJsModule.applyManualResolutionChange;
|
|
6
|
+
export const getExceptionIssueBadges = commonJsModule.getExceptionIssueBadges;
|
|
7
|
+
export const isExceptionNew = commonJsModule.isExceptionNew;
|
|
8
|
+
export const isExceptionRegressed = commonJsModule.isExceptionRegressed;
|
|
@@ -5,6 +5,8 @@ export interface HostCollectorHostFeatures {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const UNKNOWN_HOST_FEATURES: HostCollectorHostFeatures;
|
|
7
7
|
export declare const ALL_HOST_FEATURES: HostCollectorHostFeatures;
|
|
8
|
+
export declare const HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES: ReadonlyArray<string>;
|
|
9
|
+
export declare const HOST_COLLECTOR_FILESYSTEM_EXCLUSION: string;
|
|
8
10
|
export declare function getHostCollectorDefaultConfig(osType: HostCollectorOsType | null | undefined, features?: HostCollectorHostFeatures): string;
|
|
9
11
|
export declare function readHostCollectorHostFeatures(data: {
|
|
10
12
|
journald: string | null | undefined;
|
|
@@ -5,6 +5,8 @@ export interface HostCollectorHostFeatures {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const UNKNOWN_HOST_FEATURES: HostCollectorHostFeatures;
|
|
7
7
|
export declare const ALL_HOST_FEATURES: HostCollectorHostFeatures;
|
|
8
|
+
export declare const HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES: ReadonlyArray<string>;
|
|
9
|
+
export declare const HOST_COLLECTOR_FILESYSTEM_EXCLUSION: string;
|
|
8
10
|
export declare function getHostCollectorDefaultConfig(osType: HostCollectorOsType | null | undefined, features?: HostCollectorHostFeatures): string;
|
|
9
11
|
export declare function readHostCollectorHostFeatures(data: {
|
|
10
12
|
journald: string | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ALL_HOST_FEATURES = exports.UNKNOWN_HOST_FEATURES = void 0;
|
|
3
|
+
exports.HOST_COLLECTOR_FILESYSTEM_EXCLUSION = exports.HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES = exports.ALL_HOST_FEATURES = exports.UNKNOWN_HOST_FEATURES = void 0;
|
|
4
4
|
exports.getHostCollectorDefaultConfig = getHostCollectorDefaultConfig;
|
|
5
5
|
exports.readHostCollectorHostFeatures = readHostCollectorHostFeatures;
|
|
6
6
|
exports.hostCollectorHostFeaturesToText = hostCollectorHostFeaturesToText;
|
|
@@ -16,6 +16,43 @@ exports.ALL_HOST_FEATURES = {
|
|
|
16
16
|
journald: true,
|
|
17
17
|
systemd: true,
|
|
18
18
|
};
|
|
19
|
+
/*
|
|
20
|
+
* The file systems the filesystem scraper leaves out, on every system: the
|
|
21
|
+
* ones that are full by design and the ones that hold no data. Read-only
|
|
22
|
+
* images are always 100% used - snap packages (squashfs), EROFS images, and
|
|
23
|
+
* CDs, DVDs and ISO images, under each system's name for them (iso9660 and
|
|
24
|
+
* udf on Linux, cd9660 and udf on macOS, CDFS and UDF on Windows) - and so
|
|
25
|
+
* is macOS's /dev (devfs). Measured, they would keep High Filesystem Usage
|
|
26
|
+
* firing for as long as they are mounted. The automounter's maps (autofs,
|
|
27
|
+
* which macOS lists) have no size at all. The match is strict, so case
|
|
28
|
+
* counts.
|
|
29
|
+
*
|
|
30
|
+
* Linux's other virtual file systems (proc, sysfs, tmpfs, overlay, nsfs,
|
|
31
|
+
* ...) need no entry: the scraper skips every one /proc/filesystems marks
|
|
32
|
+
* nodev unless include_virtual_filesystems is on.
|
|
33
|
+
*/
|
|
34
|
+
exports.HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES = [
|
|
35
|
+
"autofs",
|
|
36
|
+
"cd9660",
|
|
37
|
+
"CDFS",
|
|
38
|
+
"devfs",
|
|
39
|
+
"erofs",
|
|
40
|
+
"iso9660",
|
|
41
|
+
"squashfs",
|
|
42
|
+
"udf",
|
|
43
|
+
"UDF",
|
|
44
|
+
];
|
|
45
|
+
/*
|
|
46
|
+
* The filesystem scraper's exclusion as every host collector config OneUptime
|
|
47
|
+
* writes or hands out carries it, indented to sit under `filesystem:` in
|
|
48
|
+
* `scrapers:` (the Hosts guide's config.yaml and the docs' configs too).
|
|
49
|
+
*/
|
|
50
|
+
exports.HOST_COLLECTOR_FILESYSTEM_EXCLUSION = ` # Leave out file systems that are full by design (snap packages and
|
|
51
|
+
# other read-only images, CDs and DVDs, macOS's /dev) or hold no data
|
|
52
|
+
# (the automounter's maps): the full ones would read 100% used for good.
|
|
53
|
+
exclude_fs_types:
|
|
54
|
+
fs_types: [${exports.HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES.join(", ")}]
|
|
55
|
+
match_type: strict`;
|
|
19
56
|
// The receivers every system shares: CPU, memory, disks, network, processes.
|
|
20
57
|
const HOST_METRICS_RECEIVER = ` host_metrics:
|
|
21
58
|
collection_interval: 30s
|
|
@@ -32,6 +69,7 @@ const HOST_METRICS_RECEIVER = ` host_metrics:
|
|
|
32
69
|
enabled: true
|
|
33
70
|
disk:
|
|
34
71
|
filesystem:
|
|
72
|
+
${exports.HOST_COLLECTOR_FILESYSTEM_EXCLUSION}
|
|
35
73
|
metrics:
|
|
36
74
|
system.filesystem.utilization:
|
|
37
75
|
enabled: true
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import commonJsModule from "./HostCollectorDefaultConfig.js";
|
|
2
2
|
export const ALL_HOST_FEATURES = commonJsModule.ALL_HOST_FEATURES;
|
|
3
|
+
export const HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES = commonJsModule.HOST_COLLECTOR_EXCLUDED_FILESYSTEM_TYPES;
|
|
4
|
+
export const HOST_COLLECTOR_FILESYSTEM_EXCLUSION = commonJsModule.HOST_COLLECTOR_FILESYSTEM_EXCLUSION;
|
|
3
5
|
export const UNKNOWN_HOST_FEATURES = commonJsModule.UNKNOWN_HOST_FEATURES;
|
|
4
6
|
export const getHostCollectorDefaultConfig = commonJsModule.getHostCollectorDefaultConfig;
|
|
5
7
|
export const hostCollectorHostFeaturesFromText = commonJsModule.hostCollectorHostFeaturesFromText;
|
|
@@ -9,6 +9,7 @@ const AlertLabelRule_1 = __importDefault(require("../Models/DatabaseModels/Alert
|
|
|
9
9
|
const CephClusterLabelRule_1 = __importDefault(require("../Models/DatabaseModels/CephClusterLabelRule"));
|
|
10
10
|
const CloudResourceLabelRule_1 = __importDefault(require("../Models/DatabaseModels/CloudResourceLabelRule"));
|
|
11
11
|
const DashboardLabelRule_1 = __importDefault(require("../Models/DatabaseModels/DashboardLabelRule"));
|
|
12
|
+
const DataStoreLabelRule_1 = __importDefault(require("../Models/DatabaseModels/DataStoreLabelRule"));
|
|
12
13
|
const DatabaseBaseModel_1 = __importDefault(require("../Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel"));
|
|
13
14
|
const DatabaseServerLabelRule_1 = __importDefault(require("../Models/DatabaseModels/DatabaseServerLabelRule"));
|
|
14
15
|
const DockerHostLabelRule_1 = __importDefault(require("../Models/DatabaseModels/DockerHostLabelRule"));
|
|
@@ -52,6 +53,7 @@ exports.LABEL_RULE_MODELS = [
|
|
|
52
53
|
CephClusterLabelRule_1.default,
|
|
53
54
|
CloudResourceLabelRule_1.default,
|
|
54
55
|
DashboardLabelRule_1.default,
|
|
56
|
+
DataStoreLabelRule_1.default,
|
|
55
57
|
DatabaseServerLabelRule_1.default,
|
|
56
58
|
DockerHostLabelRule_1.default,
|
|
57
59
|
DockerSwarmClusterLabelRule_1.default,
|
|
@@ -78,6 +80,18 @@ exports.LABEL_RULE_MODELS = [
|
|
|
78
80
|
StorageArrayLabelRule_1.default,
|
|
79
81
|
WorkflowLabelRule_1.default,
|
|
80
82
|
];
|
|
83
|
+
/*
|
|
84
|
+
* Rule types whose criteria have generic names - nameRegexPattern,
|
|
85
|
+
* descriptionRegexPattern, matchLabels - rather than the resource's own
|
|
86
|
+
* (monitorNamePattern), mapped to the same meaning when a rule moves
|
|
87
|
+
* between types.
|
|
88
|
+
*/
|
|
89
|
+
const RESOURCES_WITH_GENERIC_CRITERIA = [
|
|
90
|
+
"RumApplication",
|
|
91
|
+
"CloudResource",
|
|
92
|
+
"ServerlessFunction",
|
|
93
|
+
"DataStore",
|
|
94
|
+
];
|
|
81
95
|
/*
|
|
82
96
|
* Rule types whose engines match patterns through RulePatternMatchUtil: a
|
|
83
97
|
* regex, with a '*' wildcard fallback, on the trimmed pattern. Every other
|
|
@@ -472,19 +486,19 @@ class LabelRuleImportExport {
|
|
|
472
486
|
prefix = "episode";
|
|
473
487
|
}
|
|
474
488
|
if ([`${prefix}NamePattern`, `${prefix}TitlePattern`].includes(column) ||
|
|
475
|
-
(
|
|
489
|
+
(RESOURCES_WITH_GENERIC_CRITERIA.includes(resource) &&
|
|
476
490
|
column === "nameRegexPattern") ||
|
|
477
491
|
(resource === "ScheduledMaintenance" && column === "titlePattern")) {
|
|
478
492
|
return "$resourceNamePattern";
|
|
479
493
|
}
|
|
480
494
|
if (column === `${prefix}DescriptionPattern` ||
|
|
481
|
-
(
|
|
495
|
+
(RESOURCES_WITH_GENERIC_CRITERIA.includes(resource) &&
|
|
482
496
|
column === "descriptionRegexPattern") ||
|
|
483
497
|
(resource === "ScheduledMaintenance" && column === "descriptionPattern")) {
|
|
484
498
|
return "$resourceDescriptionPattern";
|
|
485
499
|
}
|
|
486
500
|
if (column === `${prefix}Labels` ||
|
|
487
|
-
(
|
|
501
|
+
(RESOURCES_WITH_GENERIC_CRITERIA.includes(resource) &&
|
|
488
502
|
column === "matchLabels")) {
|
|
489
503
|
return "$resourceLabels";
|
|
490
504
|
}
|
|
@@ -330,14 +330,17 @@ class PlatformResourceIdentity {
|
|
|
330
330
|
}
|
|
331
331
|
static dockerSwarm(attributes) {
|
|
332
332
|
/*
|
|
333
|
-
* Prefixed: the docker_stats receiver puts container identity
|
|
334
|
-
* RESOURCE,
|
|
333
|
+
* Prefixed, all four: the docker_stats receiver puts container identity
|
|
334
|
+
* on the RESOURCE, and the Swarm agent copies the task's service label
|
|
335
|
+
* and stamps its node's name onto that same resource, so ClickHouse
|
|
336
|
+
* stores `resource.container.name`, `resource.docker.swarm.service.name`
|
|
337
|
+
* and `resource.docker.swarm.node.name`.
|
|
335
338
|
*/
|
|
336
339
|
return {
|
|
337
340
|
containerName: PlatformResourceIdentity.readAttribute(attributes, "resource.container.name"),
|
|
338
341
|
containerImage: PlatformResourceIdentity.readAttribute(attributes, "resource.container.image.name"),
|
|
339
|
-
nodeName: PlatformResourceIdentity.readAttribute(attributes, "docker.swarm.node.name"),
|
|
340
|
-
serviceName: PlatformResourceIdentity.readAttribute(attributes, "docker.swarm.service.name"),
|
|
342
|
+
nodeName: PlatformResourceIdentity.readAttribute(attributes, "resource.docker.swarm.node.name"),
|
|
343
|
+
serviceName: PlatformResourceIdentity.readAttribute(attributes, "resource.docker.swarm.service.name"),
|
|
341
344
|
};
|
|
342
345
|
}
|
|
343
346
|
static dockerSwarmKey(identity) {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const NUMBER_WITH_PREFIX_SUFFIX: string;
|
|
2
|
+
export interface RecordNumberColumns {
|
|
3
|
+
numberColumn: string;
|
|
4
|
+
numberWithPrefixColumn: string;
|
|
5
|
+
}
|
|
6
|
+
type GetRecordNumberColumnsFunction = (model: unknown) => RecordNumberColumns | null;
|
|
7
|
+
/**
|
|
8
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
9
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
10
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
11
|
+
* anything here changing. Anything that is not a database model - an
|
|
12
|
+
* analytics model, a plain object - numbers nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getRecordNumberColumns: GetRecordNumberColumnsFunction;
|
|
15
|
+
type FormatRecordNumberFunction = (data: {
|
|
16
|
+
number: unknown;
|
|
17
|
+
numberWithPrefix: unknown;
|
|
18
|
+
}) => string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
21
|
+
* record that has only the bare number, else nothing.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatRecordNumber: FormatRecordNumberFunction;
|
|
24
|
+
type GetRecordNumberFunction = (record: unknown, columns: RecordNumberColumns | null | undefined) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The number of one record, read from the columns its model numbers its
|
|
27
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
28
|
+
* list that did not select it, a model without numbers).
|
|
29
|
+
*/
|
|
30
|
+
export declare const getRecordNumber: GetRecordNumberFunction;
|
|
31
|
+
type GetNumberedRecordNameFunction = (data: {
|
|
32
|
+
number: string | null | undefined;
|
|
33
|
+
name: string | null | undefined;
|
|
34
|
+
}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
37
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
38
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
39
|
+
* search result, a sentence); a page draws them as two pieces
|
|
40
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
41
|
+
*/
|
|
42
|
+
export declare const getNumberedRecordName: GetNumberedRecordNameFunction;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const NUMBER_WITH_PREFIX_SUFFIX: string;
|
|
2
|
+
export interface RecordNumberColumns {
|
|
3
|
+
numberColumn: string;
|
|
4
|
+
numberWithPrefixColumn: string;
|
|
5
|
+
}
|
|
6
|
+
type GetRecordNumberColumnsFunction = (model: unknown) => RecordNumberColumns | null;
|
|
7
|
+
/**
|
|
8
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
9
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
10
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
11
|
+
* anything here changing. Anything that is not a database model - an
|
|
12
|
+
* analytics model, a plain object - numbers nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getRecordNumberColumns: GetRecordNumberColumnsFunction;
|
|
15
|
+
type FormatRecordNumberFunction = (data: {
|
|
16
|
+
number: unknown;
|
|
17
|
+
numberWithPrefix: unknown;
|
|
18
|
+
}) => string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
21
|
+
* record that has only the bare number, else nothing.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatRecordNumber: FormatRecordNumberFunction;
|
|
24
|
+
type GetRecordNumberFunction = (record: unknown, columns: RecordNumberColumns | null | undefined) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The number of one record, read from the columns its model numbers its
|
|
27
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
28
|
+
* list that did not select it, a model without numbers).
|
|
29
|
+
*/
|
|
30
|
+
export declare const getRecordNumber: GetRecordNumberFunction;
|
|
31
|
+
type GetNumberedRecordNameFunction = (data: {
|
|
32
|
+
number: string | null | undefined;
|
|
33
|
+
name: string | null | undefined;
|
|
34
|
+
}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
37
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
38
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
39
|
+
* search result, a sentence); a page draws them as two pieces
|
|
40
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
41
|
+
*/
|
|
42
|
+
export declare const getNumberedRecordName: GetNumberedRecordNameFunction;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getNumberedRecordName = exports.getRecordNumber = exports.formatRecordNumber = exports.getRecordNumberColumns = exports.NUMBER_WITH_PREFIX_SUFFIX = void 0;
|
|
7
|
+
const TableColumn_1 = require("../../Types/Database/TableColumn");
|
|
8
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
9
|
+
const NumberPrefix_1 = __importDefault(require("./NumberPrefix"));
|
|
10
|
+
/*
|
|
11
|
+
* THE NUMBER A RECORD IS KNOWN BY.
|
|
12
|
+
*
|
|
13
|
+
* Incidents, alerts, scheduled maintenance events, both kinds of episode and
|
|
14
|
+
* security cases are numbered in their project: INC-18, ALT-7, SM-3, IE-2,
|
|
15
|
+
* AE-4, CASE-12 - or #18 in a project without a prefix (NumberPrefix). Their
|
|
16
|
+
* titles are not unique: two incidents declared by hand can both read
|
|
17
|
+
* "Manually declared", and a monitor that fails again opens one more
|
|
18
|
+
* "Checkout API p95 latency above 2s". The number is what tells them apart,
|
|
19
|
+
* so wherever the product names one of them to someone moving between them -
|
|
20
|
+
* the record's page heading, its breadcrumb, the browser tab, a dialog about
|
|
21
|
+
* it, a search result - the number comes first: "INC-18 Manually declared".
|
|
22
|
+
*
|
|
23
|
+
* Each record keeps the number it was given, with the prefix it was given:
|
|
24
|
+
* an incident numbered before the project changed its prefix is still known
|
|
25
|
+
* by its old one, as everywhere else. A record from before numbers carried
|
|
26
|
+
* their prefix has only the bare number, shown "#18"; one with no number at
|
|
27
|
+
* all is named by its title alone, as before.
|
|
28
|
+
*
|
|
29
|
+
* React-free, so the server, the Dashboard and the tests share one rule.
|
|
30
|
+
*/
|
|
31
|
+
// The suffix that names the column holding a record's number with its prefix.
|
|
32
|
+
exports.NUMBER_WITH_PREFIX_SUFFIX = "WithPrefix";
|
|
33
|
+
const NUMERIC_COLUMN_TYPES = [
|
|
34
|
+
TableColumnType_1.default.Number,
|
|
35
|
+
TableColumnType_1.default.SmallNumber,
|
|
36
|
+
TableColumnType_1.default.BigNumber,
|
|
37
|
+
TableColumnType_1.default.PositiveNumber,
|
|
38
|
+
TableColumnType_1.default.SmallPositiveNumber,
|
|
39
|
+
TableColumnType_1.default.BigPositiveNumber,
|
|
40
|
+
];
|
|
41
|
+
const TEXT_COLUMN_TYPES = [
|
|
42
|
+
TableColumnType_1.default.ShortText,
|
|
43
|
+
TableColumnType_1.default.LongText,
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
47
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
48
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
49
|
+
* anything here changing. Anything that is not a database model - an
|
|
50
|
+
* analytics model, a plain object - numbers nothing.
|
|
51
|
+
*/
|
|
52
|
+
const getRecordNumberColumns = (model) => {
|
|
53
|
+
if (!model || typeof model !== "object") {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
/*
|
|
57
|
+
* A list names each of its rows by this (getRecordDisplayName), so the
|
|
58
|
+
* answer is kept per class: a model's columns never change.
|
|
59
|
+
*/
|
|
60
|
+
const constructorOfModel = model
|
|
61
|
+
.constructor;
|
|
62
|
+
const modelClass = typeof constructorOfModel === "function"
|
|
63
|
+
? constructorOfModel
|
|
64
|
+
: null;
|
|
65
|
+
if (modelClass && numberColumnsByClass.has(modelClass)) {
|
|
66
|
+
return numberColumnsByClass.get(modelClass) || null;
|
|
67
|
+
}
|
|
68
|
+
const found = findRecordNumberColumns(model);
|
|
69
|
+
if (found) {
|
|
70
|
+
// Shared by every caller from now on: nobody may change it.
|
|
71
|
+
Object.freeze(found);
|
|
72
|
+
}
|
|
73
|
+
if (modelClass) {
|
|
74
|
+
numberColumnsByClass.set(modelClass, found);
|
|
75
|
+
}
|
|
76
|
+
return found;
|
|
77
|
+
};
|
|
78
|
+
exports.getRecordNumberColumns = getRecordNumberColumns;
|
|
79
|
+
const numberColumnsByClass = new WeakMap();
|
|
80
|
+
function findRecordNumberColumns(model) {
|
|
81
|
+
let columns = {};
|
|
82
|
+
try {
|
|
83
|
+
columns = (0, TableColumn_1.getTableColumns)(model);
|
|
84
|
+
}
|
|
85
|
+
catch (_a) {
|
|
86
|
+
// Not a database model: nothing that numbers its records.
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
for (const columnId of Object.keys(columns)) {
|
|
90
|
+
const column = columns[columnId];
|
|
91
|
+
if (!column || !NUMERIC_COLUMN_TYPES.includes(column.type)) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
const withPrefixId = `${columnId}${exports.NUMBER_WITH_PREFIX_SUFFIX}`;
|
|
95
|
+
const withPrefix = columns[withPrefixId];
|
|
96
|
+
if (withPrefix && TEXT_COLUMN_TYPES.includes(withPrefix.type)) {
|
|
97
|
+
return {
|
|
98
|
+
numberColumn: columnId,
|
|
99
|
+
numberWithPrefixColumn: withPrefixId,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
107
|
+
* record that has only the bare number, else nothing.
|
|
108
|
+
*/
|
|
109
|
+
const formatRecordNumber = (data) => {
|
|
110
|
+
if (typeof data.numberWithPrefix === "string" &&
|
|
111
|
+
data.numberWithPrefix.trim() !== "") {
|
|
112
|
+
return data.numberWithPrefix.trim();
|
|
113
|
+
}
|
|
114
|
+
if (typeof data.number === "number" && Number.isFinite(data.number)) {
|
|
115
|
+
return NumberPrefix_1.default.formatNumber(null, data.number);
|
|
116
|
+
}
|
|
117
|
+
return undefined;
|
|
118
|
+
};
|
|
119
|
+
exports.formatRecordNumber = formatRecordNumber;
|
|
120
|
+
/**
|
|
121
|
+
* The number of one record, read from the columns its model numbers its
|
|
122
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
123
|
+
* list that did not select it, a model without numbers).
|
|
124
|
+
*/
|
|
125
|
+
const getRecordNumber = (record, columns) => {
|
|
126
|
+
if (!columns || !record || typeof record !== "object") {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
const fields = record;
|
|
130
|
+
return (0, exports.formatRecordNumber)({
|
|
131
|
+
number: fields[columns.numberColumn],
|
|
132
|
+
numberWithPrefix: fields[columns.numberWithPrefixColumn],
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
exports.getRecordNumber = getRecordNumber;
|
|
136
|
+
/**
|
|
137
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
138
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
139
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
140
|
+
* search result, a sentence); a page draws them as two pieces
|
|
141
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
142
|
+
*/
|
|
143
|
+
const getNumberedRecordName = (data) => {
|
|
144
|
+
const number = (data.number || "").trim();
|
|
145
|
+
const name = (data.name || "").trim();
|
|
146
|
+
if (number && name) {
|
|
147
|
+
return `${number} ${name}`;
|
|
148
|
+
}
|
|
149
|
+
return number || name;
|
|
150
|
+
};
|
|
151
|
+
exports.getNumberedRecordName = getNumberedRecordName;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import commonJsModule from "./RecordNumber.js";
|
|
2
|
+
export const NUMBER_WITH_PREFIX_SUFFIX = commonJsModule.NUMBER_WITH_PREFIX_SUFFIX;
|
|
3
|
+
export const formatRecordNumber = commonJsModule.formatRecordNumber;
|
|
4
|
+
export const getNumberedRecordName = commonJsModule.getNumberedRecordName;
|
|
5
|
+
export const getRecordNumber = commonJsModule.getRecordNumber;
|
|
6
|
+
export const getRecordNumberColumns = commonJsModule.getRecordNumberColumns;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SecurityAdvisory, SecurityAdvisoryVulnerability } from "../Types/UpdateCheck/SecurityAdvisory.mjs";
|
|
2
|
+
import { AffectingAdvisory, UpdateStatus } from "../Types/UpdateCheck/UpdateStatus.mjs";
|
|
3
|
+
export interface AdvisoryVerdict {
|
|
4
|
+
isAffected: boolean | null;
|
|
5
|
+
fixedIn: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface BuildUpdateStatusData {
|
|
8
|
+
currentVersion: unknown;
|
|
9
|
+
isUpdateCheckDisabled: boolean;
|
|
10
|
+
isSelfHosted: boolean;
|
|
11
|
+
latestVersion: unknown;
|
|
12
|
+
latestVersionPublishedAt: unknown;
|
|
13
|
+
latestVersionCheckedAt: unknown;
|
|
14
|
+
advisories: unknown;
|
|
15
|
+
advisoriesCheckedAt: unknown;
|
|
16
|
+
lastCheckAttemptedAt: unknown;
|
|
17
|
+
lastCheckFailure: unknown;
|
|
18
|
+
}
|
|
19
|
+
export default class SecurityAdvisoryMatcher {
|
|
20
|
+
static evaluateVulnerability(version: unknown, vulnerability: SecurityAdvisoryVulnerability): AdvisoryVerdict;
|
|
21
|
+
static evaluateAdvisory(version: unknown, advisory: SecurityAdvisory): AdvisoryVerdict;
|
|
22
|
+
static isAffected(version: unknown, advisory: SecurityAdvisory): boolean;
|
|
23
|
+
static getAffectingAdvisories(version: unknown, advisories: Array<SecurityAdvisory>): Array<AffectingAdvisory>;
|
|
24
|
+
static getRecommendedVersion(data: {
|
|
25
|
+
currentVersion: unknown;
|
|
26
|
+
latestVersion: unknown;
|
|
27
|
+
advisories: Array<SecurityAdvisory>;
|
|
28
|
+
}): string | null;
|
|
29
|
+
static buildUpdateStatus(data: BuildUpdateStatusData): UpdateStatus;
|
|
30
|
+
private static isBelowFix;
|
|
31
|
+
private static firstAbove;
|
|
32
|
+
private static describeAffectedVersions;
|
|
33
|
+
}
|