@oneuptime/common 14.0.99 → 14.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/ExceptionInstance.d.mts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.js +31 -0
- package/Models/AnalyticsModels/LogCountBaseline.d.mts +6 -0
- package/Models/AnalyticsModels/LogCountBaseline.d.ts +6 -0
- package/Models/AnalyticsModels/LogCountBaseline.js +7 -1
- package/Models/AnalyticsModels/MetricBaselineHourly.d.mts +11 -6
- package/Models/AnalyticsModels/MetricBaselineHourly.d.ts +11 -6
- package/Models/AnalyticsModels/MetricBaselineHourly.js +12 -7
- package/Models/AnalyticsModels/NetworkTrafficUsage.js +30 -10
- package/Models/AnalyticsModels/RumSessionChunk.js +1 -1
- package/Models/AnalyticsModels/SpanCountBaseline.d.mts +17 -9
- package/Models/AnalyticsModels/SpanCountBaseline.d.ts +17 -9
- package/Models/AnalyticsModels/SpanCountBaseline.js +18 -10
- package/Models/DatabaseModels/CloudApp.d.mts +27 -0
- package/Models/DatabaseModels/CloudApp.d.ts +27 -0
- package/Models/DatabaseModels/CloudApp.js +414 -0
- package/Models/DatabaseModels/CloudApp.mjs +2 -0
- package/Models/DatabaseModels/CloudAppRevision.d.mts +23 -0
- package/Models/DatabaseModels/CloudAppRevision.d.ts +23 -0
- package/Models/DatabaseModels/CloudAppRevision.js +351 -0
- package/Models/DatabaseModels/CloudAppRevision.mjs +2 -0
- package/Models/DatabaseModels/CloudResourceFeed.d.mts +4 -1
- package/Models/DatabaseModels/CloudResourceFeed.d.ts +4 -1
- package/Models/DatabaseModels/CloudResourceFeed.js +17 -1
- package/Models/DatabaseModels/CloudResourceFeed.mjs +1 -0
- package/Models/DatabaseModels/CloudResourceInstance.d.mts +4 -0
- package/Models/DatabaseModels/CloudResourceInstance.d.ts +4 -0
- package/Models/DatabaseModels/CloudResourceInstance.js +60 -1
- package/Models/DatabaseModels/CloudResourceLabelRule.d.mts +2 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.d.ts +2 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.js +44 -1
- package/Models/DatabaseModels/CloudResourceOwnerRule.d.mts +2 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.d.ts +2 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.js +44 -1
- package/Models/DatabaseModels/Dashboard.d.mts +2 -0
- package/Models/DatabaseModels/Dashboard.d.ts +2 -0
- package/Models/DatabaseModels/Dashboard.js +88 -0
- package/Models/DatabaseModels/DataSecurityIdentity.d.mts +29 -0
- package/Models/DatabaseModels/DataSecurityIdentity.d.ts +29 -0
- package/Models/DatabaseModels/DataSecurityIdentity.js +535 -0
- package/Models/DatabaseModels/DataSecurityIdentity.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +1 -0
- package/Models/DatabaseModels/DataStore.d.ts +1 -0
- package/Models/DatabaseModels/DataStore.js +16 -0
- package/Models/DatabaseModels/DataStoreAccess.d.mts +1 -0
- package/Models/DatabaseModels/DataStoreAccess.d.ts +1 -0
- package/Models/DatabaseModels/DataStoreAccess.js +20 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +3 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +3 -0
- package/Models/DatabaseModels/DataStoreFinding.js +63 -1
- package/Models/DatabaseModels/DetectionRule.d.mts +1 -0
- package/Models/DatabaseModels/DetectionRule.d.ts +1 -0
- package/Models/DatabaseModels/DetectionRule.js +31 -0
- package/Models/DatabaseModels/ExceptionSavedView.d.mts +16 -0
- package/Models/DatabaseModels/ExceptionSavedView.d.ts +16 -0
- package/Models/DatabaseModels/ExceptionSavedView.js +413 -0
- package/Models/DatabaseModels/ExceptionSavedView.mjs +2 -0
- package/Models/DatabaseModels/FormDomain.d.mts +28 -0
- package/Models/DatabaseModels/FormDomain.d.ts +28 -0
- package/Models/DatabaseModels/FormDomain.js +598 -0
- package/Models/DatabaseModels/FormDomain.mjs +2 -0
- package/Models/DatabaseModels/IncidentEpisodeRoleMember.js +10 -1
- package/Models/DatabaseModels/Index.js +12 -0
- package/Models/DatabaseModels/KubernetesResource.d.mts +1 -0
- package/Models/DatabaseModels/KubernetesResource.d.ts +1 -0
- package/Models/DatabaseModels/KubernetesResource.js +36 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +2 -1
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +2 -1
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +2 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +2 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +62 -1
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +66 -0
- package/Models/DatabaseModels/ProxmoxResource.d.mts +13 -0
- package/Models/DatabaseModels/ProxmoxResource.d.ts +13 -0
- package/Models/DatabaseModels/ProxmoxResource.js +292 -0
- package/Models/DatabaseModels/StatusPageSubscriber.d.mts +1 -0
- package/Models/DatabaseModels/StatusPageSubscriber.d.ts +1 -0
- package/Models/DatabaseModels/StatusPageSubscriber.js +52 -0
- package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
- package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
- package/Models/DatabaseModels/TelemetryException.js +183 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.d.mts +42 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.d.ts +42 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.js +527 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.mjs +3 -0
- package/Server/Services/DatabaseService.d.mts +10 -0
- package/Server/Services/DatabaseService.d.ts +10 -0
- package/Types/AI/AIResourceContext.d.mts +2 -0
- package/Types/AI/AIResourceContext.d.ts +2 -0
- package/Types/AI/AIResourceContext.js +5 -0
- package/Types/Analytics/CookieConsent.d.mts +1 -0
- package/Types/Analytics/CookieConsent.d.ts +1 -0
- package/Types/Analytics/CookieConsent.js +10 -0
- package/Types/Analytics/CookieConsent.mjs +2 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +3 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +3 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +11 -2
- package/Types/AutoRemediation/RemediationTrackRecord.d.mts +26 -0
- package/Types/AutoRemediation/RemediationTrackRecord.d.ts +26 -0
- package/Types/AutoRemediation/RemediationTrackRecord.js +137 -0
- package/Types/AutoRemediation/RemediationTrackRecord.mjs +8 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.d.mts +10 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.d.ts +10 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.js +86 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.mjs +9 -0
- package/Types/BaseDatabase/AggregateBy.d.mts +13 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +13 -0
- package/Types/Billing/SubscriptionPlanPricing.d.mts +2 -0
- package/Types/Billing/SubscriptionPlanPricing.d.ts +2 -0
- package/Types/Billing/SubscriptionPlanPricing.js +30 -0
- package/Types/Billing/SubscriptionPlanPricing.mjs +2 -0
- package/Types/Cloud/CloudPlatform.d.mts +3 -0
- package/Types/Cloud/CloudPlatform.d.ts +3 -0
- package/Types/Cloud/CloudPlatform.js +50 -0
- package/Types/Cloud/CloudResourceKind.d.mts +11 -0
- package/Types/Cloud/CloudResourceKind.d.ts +11 -0
- package/Types/Cloud/CloudResourceKind.js +78 -9
- package/Types/Cloud/CloudResourceKind.mjs +5 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +10 -8
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +32 -10
- package/Types/CustomField/CustomFieldFile.d.mts +69 -0
- package/Types/CustomField/CustomFieldFile.d.ts +69 -0
- package/Types/CustomField/CustomFieldFile.js +235 -0
- package/Types/CustomField/CustomFieldFile.mjs +16 -0
- package/Types/CustomField/CustomFieldRecordKinds.d.mts +25 -0
- package/Types/CustomField/CustomFieldRecordKinds.d.ts +25 -0
- package/Types/CustomField/CustomFieldRecordKinds.js +111 -0
- package/Types/CustomField/CustomFieldRecordKinds.mjs +6 -0
- package/Types/CustomField/CustomFieldType.d.mts +15 -1
- package/Types/CustomField/CustomFieldType.d.ts +15 -1
- package/Types/CustomField/CustomFieldType.js +14 -0
- package/Types/CustomField/CustomFieldValueFormat.d.mts +3 -2
- package/Types/CustomField/CustomFieldValueFormat.d.ts +3 -2
- package/Types/CustomField/CustomFieldValueFormat.js +8 -2
- package/Types/CustomField/CustomFieldValueMapping.js +31 -2
- package/Types/CustomField/CustomFieldValueValidator.js +41 -1
- package/Types/Dashboard/DashboardLanguage.d.mts +1 -0
- package/Types/Dashboard/DashboardLanguage.d.ts +1 -0
- package/Types/Dashboard/DashboardLanguage.js +7 -1
- package/Types/Dashboard/DashboardLanguage.mjs +1 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.d.mts +4 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.d.ts +4 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.js +42 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.mjs +4 -0
- package/Types/Dashboard/DashboardTemplates.js +34 -11
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +4 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +1 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +1 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +53 -0
- package/Types/DataSecurity/DataSecurityIdentity.d.mts +27 -0
- package/Types/DataSecurity/DataSecurityIdentity.d.ts +27 -0
- package/Types/DataSecurity/DataSecurityIdentity.js +160 -0
- package/Types/DataSecurity/DataSecurityIdentity.mjs +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.mts +9 -1
- package/Types/DataSecurity/DataSecurityResponseAction.d.ts +9 -1
- package/Types/DataSecurity/DataSecurityResponseAction.js +113 -26
- package/Types/DataSecurity/DataSecurityResponseAction.mjs +2 -0
- package/Types/DataSecurity/DataStoreAccess.d.mts +7 -0
- package/Types/DataSecurity/DataStoreAccess.d.ts +7 -0
- package/Types/DataSecurity/DataStoreAccess.js +23 -1
- package/Types/DataSecurity/DataStoreAccess.mjs +2 -0
- package/Types/Date.d.mts +30 -1
- package/Types/Date.d.ts +30 -1
- package/Types/Date.js +173 -5
- package/Types/Email/EmailMessage.d.mts +1 -0
- package/Types/Email/EmailMessage.d.ts +1 -0
- package/Types/Episode/EpisodeMembersAdd.d.mts +2 -0
- package/Types/Episode/EpisodeMembersAdd.d.ts +2 -0
- package/Types/Episode/EpisodeMembersAdd.js +9 -1
- package/Types/Episode/EpisodeMembersAdd.mjs +2 -0
- package/Types/File/FileContentCheck.d.mts +13 -0
- package/Types/File/FileContentCheck.d.ts +13 -0
- package/Types/File/FileContentCheck.js +301 -0
- package/Types/File/FileContentCheck.mjs +4 -0
- package/Types/File/FileSize.d.mts +3 -0
- package/Types/File/FileSize.d.ts +3 -0
- package/Types/File/FileSize.js +30 -0
- package/Types/File/FileSize.mjs +3 -0
- package/Types/File/FileTypeIcon.d.mts +4 -0
- package/Types/File/FileTypeIcon.d.ts +4 -0
- package/Types/File/FileTypeIcon.js +26 -0
- package/Types/File/FileTypeIcon.mjs +3 -0
- package/Types/File/MimeTypeLabel.d.mts +3 -0
- package/Types/File/MimeTypeLabel.d.ts +3 -0
- package/Types/File/MimeTypeLabel.js +39 -0
- package/Types/File/MimeTypeLabel.mjs +3 -0
- package/Types/Form/FormCustomDomain.d.mts +19 -0
- package/Types/Form/FormCustomDomain.d.ts +19 -0
- package/Types/Form/FormCustomDomain.js +86 -0
- package/Types/Form/FormCustomDomain.mjs +13 -0
- package/Types/Form/FormField.js +6 -0
- package/Types/Form/FormFileAnswer.d.mts +34 -0
- package/Types/Form/FormFileAnswer.d.ts +34 -0
- package/Types/Form/FormFileAnswer.js +203 -0
- package/Types/Form/FormFileAnswer.mjs +10 -0
- package/Types/Form/FormPublic.d.mts +16 -1
- package/Types/Form/FormPublic.d.ts +16 -1
- package/Types/Form/FormPublic.js +184 -2
- package/Types/Form/FormPublic.mjs +5 -0
- package/Types/Form/FormSubmissionAnswer.js +29 -0
- package/Types/InstallScripts/InstallScripts.d.mts +28 -0
- package/Types/InstallScripts/InstallScripts.d.ts +28 -0
- package/Types/InstallScripts/InstallScripts.js +225 -0
- package/Types/InstallScripts/InstallScripts.mjs +11 -0
- package/Types/Kubernetes/KubernetesClusterProvider.d.mts +10 -0
- package/Types/Kubernetes/KubernetesClusterProvider.d.ts +10 -0
- package/Types/Kubernetes/KubernetesClusterProvider.js +95 -0
- package/Types/Kubernetes/KubernetesClusterProvider.mjs +8 -0
- package/Types/Kubernetes/KubernetesHealth.d.mts +92 -0
- package/Types/Kubernetes/KubernetesHealth.d.ts +92 -0
- package/Types/Kubernetes/KubernetesHealth.js +1273 -0
- package/Types/Kubernetes/KubernetesHealth.mjs +32 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.d.mts +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.d.ts +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.js +30 -16
- package/Types/Kubernetes/KubernetesObjectParser.d.mts +54 -0
- package/Types/Kubernetes/KubernetesObjectParser.d.ts +54 -0
- package/Types/Kubernetes/KubernetesObjectParser.js +228 -38
- package/Types/Kubernetes/KubernetesObjectParser.mjs +6 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.d.mts +20 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.d.ts +20 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.js +124 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.mjs +5 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.mts +140 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.ts +140 -0
- package/Types/Kubernetes/OpenShiftObjectParser.js +436 -0
- package/Types/Kubernetes/OpenShiftObjectParser.mjs +22 -0
- package/Types/Metrics/MetricQueryConfigData.d.mts +2 -0
- package/Types/Metrics/MetricQueryConfigData.d.ts +2 -0
- package/Types/Metrics/MetricQueryFallback.d.mts +10 -0
- package/Types/Metrics/MetricQueryFallback.d.ts +10 -0
- package/Types/Metrics/MetricQueryFallback.js +2 -0
- package/Types/Metrics/MetricQueryFallback.mjs +1 -0
- package/Types/Monitor/CephAlertTemplates.d.mts +2 -2
- package/Types/Monitor/CephAlertTemplates.d.ts +2 -2
- package/Types/Monitor/CephAlertTemplates.js +17 -14
- package/Types/Monitor/CephMetricCatalog.d.mts +2 -0
- package/Types/Monitor/CephMetricCatalog.d.ts +2 -0
- package/Types/Monitor/CephMetricCatalog.js +72 -29
- package/Types/Monitor/CephMetricCatalog.mjs +2 -0
- package/Types/Monitor/CriteriaFilter.d.mts +17 -0
- package/Types/Monitor/CriteriaFilter.d.ts +17 -0
- package/Types/Monitor/CriteriaFilter.js +23 -1
- package/Types/Monitor/CriteriaFilter.mjs +3 -0
- package/Types/Monitor/DockerAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerAlertTemplates.js +63 -52
- package/Types/Monitor/DockerMetricCatalog.js +16 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +13 -2
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +34 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +34 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +170 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +12 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +17 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +17 -0
- package/Types/Monitor/HostMetricCatalog.d.mts +2 -0
- package/Types/Monitor/HostMetricCatalog.d.ts +2 -0
- package/Types/Monitor/HostMetricCatalog.js +20 -11
- package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
- package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
- package/Types/Monitor/IotAlertTemplates.js +11 -7
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +15 -12
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +15 -12
- package/Types/Monitor/KubernetesAlertTemplates.js +393 -73
- package/Types/Monitor/KubernetesMetricCatalog.d.mts +2 -1
- package/Types/Monitor/KubernetesMetricCatalog.d.ts +2 -1
- package/Types/Monitor/KubernetesMetricCatalog.js +119 -1
- package/Types/Monitor/LogMonitor/LogMonitorResponse.d.mts +1 -0
- package/Types/Monitor/LogMonitor/LogMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.mts +24 -1
- package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.ts +24 -1
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +1 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MonitorStepCephMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepCephMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepDockerMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepDockerMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +10 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +10 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +3 -1
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.mjs +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.js +13 -2
- package/Types/Monitor/MonitorStepHostMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepHostMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepIoTMonitor.d.mts +9 -0
- package/Types/Monitor/MonitorStepIoTMonitor.d.ts +9 -0
- package/Types/Monitor/MonitorStepIoTMonitor.js +21 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +11 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +11 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.js +15 -4
- package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.d.mts +5 -3
- package/Types/Monitor/MonitorStepProxmoxMonitor.d.ts +5 -3
- package/Types/Monitor/MonitorStepProxmoxMonitor.js +1 -1
- package/Types/Monitor/MonitorStepStorageArrayMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepStorageArrayMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepVMwareMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepVMwareMonitor.d.ts +1 -0
- package/Types/Monitor/OpenShiftAlertTemplates.d.mts +29 -0
- package/Types/Monitor/OpenShiftAlertTemplates.d.ts +29 -0
- package/Types/Monitor/OpenShiftAlertTemplates.js +220 -0
- package/Types/Monitor/OpenShiftAlertTemplates.mjs +9 -0
- package/Types/Monitor/PodmanAlertTemplates.d.mts +1 -10
- package/Types/Monitor/PodmanAlertTemplates.d.ts +1 -10
- package/Types/Monitor/PodmanAlertTemplates.js +40 -85
- package/Types/Monitor/PodmanAlertTemplates.mjs +0 -1
- package/Types/Monitor/PodmanMetricCatalog.js +16 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +190 -4
- package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
- package/Types/Monitor/ProxmoxMetricCatalog.js +43 -22
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.mts +24 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.ts +24 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.js +251 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.mjs +12 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +71 -3
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +23 -7
- package/Types/Monitor/ServiceAlertTemplates.js +111 -3
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +9 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +9 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.mts +5 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.ts +5 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.js +2 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.mjs +1 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.mts +27 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.ts +27 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.js +97 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.mjs +4 -0
- package/Types/Monitor/StorageArrayAlertTemplates.d.mts +1 -0
- package/Types/Monitor/StorageArrayAlertTemplates.d.ts +1 -0
- package/Types/Monitor/StorageArrayAlertTemplates.js +8 -1
- package/Types/Monitor/StorageArrayMetricCatalog.js +10 -1
- package/Types/Monitor/TelemetryAlertRule.d.mts +8 -1
- package/Types/Monitor/TelemetryAlertRule.d.ts +8 -1
- package/Types/Monitor/TelemetryAlertRule.js +62 -35
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +1 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.ts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.js +41 -19
- package/Types/NetFlow/NetworkTrafficUsage.d.mts +40 -1
- package/Types/NetFlow/NetworkTrafficUsage.d.ts +40 -1
- package/Types/NetFlow/NetworkTrafficUsage.js +58 -6
- package/Types/NetFlow/NetworkTrafficUsage.mjs +1 -0
- package/Types/NetworkController/NetworkControllerProvider.d.mts +1 -0
- package/Types/NetworkController/NetworkControllerProvider.d.ts +1 -0
- package/Types/NetworkController/NetworkControllerProvider.js +8 -0
- package/Types/NetworkController/NetworkControllerProvider.mjs +1 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.mts +3 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.ts +3 -0
- package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +49 -2
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +49 -2
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +252 -17
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -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 +8 -0
- package/Types/Permission.d.mts +5 -0
- package/Types/Permission.d.ts +5 -0
- package/Types/Permission.js +59 -1
- package/Types/PrivateRecord/PrivateRecordHeld.d.mts +18 -0
- package/Types/PrivateRecord/PrivateRecordHeld.d.ts +18 -0
- package/Types/PrivateRecord/PrivateRecordHeld.js +101 -0
- package/Types/PrivateRecord/PrivateRecordHeld.mjs +2 -0
- package/Types/PrivateRecord/PrivateRecordParts.d.mts +14 -0
- package/Types/PrivateRecord/PrivateRecordParts.d.ts +14 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +95 -0
- package/Types/PrivateRecord/PrivateRecordParts.mjs +4 -0
- package/Types/ReaderLanguage.d.mts +11 -0
- package/Types/ReaderLanguage.d.ts +11 -0
- package/Types/ReaderLanguage.js +173 -0
- package/Types/ReaderLanguage.mjs +12 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +52 -1
- package/Types/ReadingDirection.mjs +4 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +3 -1
- package/Types/Rules/RuleCriteriaSubject.d.ts +3 -1
- package/Types/Rules/RuleCriteriaSubject.js +16 -1
- package/Types/Rules/RuleCriteriaSubject.mjs +1 -0
- package/Types/Rules/RuleRun.d.mts +5 -1
- package/Types/Rules/RuleRun.d.ts +5 -1
- package/Types/Rules/RuleRun.js +10 -2
- package/Types/Rum/SessionReplay.d.mts +1 -0
- package/Types/Rum/SessionReplay.d.ts +1 -0
- package/Types/Rum/SessionReplay.js +4 -2
- package/Types/Rum/SessionReplay.mjs +1 -0
- package/Types/Rum/UserFlow.d.mts +11 -0
- package/Types/Rum/UserFlow.d.ts +11 -0
- package/Types/Rum/UserFlow.js +27 -12
- package/Types/SecurityCase/SecurityCaseContext.d.mts +33 -1
- package/Types/SecurityCase/SecurityCaseContext.d.ts +33 -1
- package/Types/SecurityCase/SecurityCaseContext.js +6 -1
- package/Types/SecurityCase/SecurityCaseContext.mjs +2 -0
- package/Types/SecurityEvent/RealTimeDetection.d.mts +13 -0
- package/Types/SecurityEvent/RealTimeDetection.d.ts +13 -0
- package/Types/SecurityEvent/RealTimeDetection.js +60 -0
- package/Types/SecurityEvent/RealTimeDetection.mjs +8 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +80 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +15 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +15 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +112 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +5 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +44 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +44 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +188 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +9 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.mts +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.ts +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.js +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.mts +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.ts +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +67 -16
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.mjs +2 -0
- package/Types/StatusPage/DefaultStatusNames.d.mts +4 -0
- package/Types/StatusPage/DefaultStatusNames.d.ts +4 -0
- package/Types/StatusPage/DefaultStatusNames.js +50 -0
- package/Types/StatusPage/DefaultStatusNames.mjs +4 -0
- package/Types/StatusPage/StateChangeNoteMessage.d.mts +18 -1
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +18 -1
- package/Types/StatusPage/StateChangeNoteMessage.js +60 -9
- package/Types/StatusPage/StateChangeNoteMessage.mjs +1 -0
- package/Types/StatusPage/StatusPageLanguage.d.mts +2 -0
- package/Types/StatusPage/StatusPageLanguage.d.ts +2 -0
- package/Types/StatusPage/StatusPageLanguage.js +10 -1
- package/Types/StatusPage/StatusPageLanguage.mjs +2 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.d.mts +9 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.d.ts +9 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.js +55 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.mjs +4 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.d.mts +10 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.d.ts +10 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.js +114 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.mjs +6 -0
- package/Types/Telemetry/ExceptionListStats.d.mts +19 -0
- package/Types/Telemetry/ExceptionListStats.d.ts +19 -0
- package/Types/Telemetry/ExceptionListStats.js +122 -0
- package/Types/Telemetry/ExceptionListStats.mjs +9 -0
- package/Types/Telemetry/ExceptionSpanScope.d.mts +3 -0
- package/Types/Telemetry/ExceptionSpanScope.d.ts +3 -0
- package/Types/Telemetry/ExceptionSpanScope.js +39 -3
- package/Types/Telemetry/ExceptionSpanScope.mjs +2 -0
- package/Types/Telemetry/SimilarExceptions.d.mts +33 -0
- package/Types/Telemetry/SimilarExceptions.d.ts +33 -0
- package/Types/Telemetry/SimilarExceptions.js +109 -0
- package/Types/Telemetry/SimilarExceptions.mjs +10 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.mts +4 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.ts +4 -0
- package/Types/Telemetry/TraceSpanType.d.mts +1 -0
- package/Types/Telemetry/TraceSpanType.d.ts +1 -0
- package/Types/Telemetry/TraceSpanType.js +17 -3
- package/Types/Telemetry/TraceSpanType.mjs +1 -0
- package/Types/Theme/ThemePreference.js +2 -1
- package/Types/Translator.d.mts +77 -0
- package/Types/Translator.d.ts +77 -0
- package/Types/Translator.js +582 -0
- package/Types/Translator.mjs +18 -0
- package/Types/VideoCall/VideoCallProvider.js +6 -3
- package/Types/Workflow/ComponentID.d.mts +5 -0
- package/Types/Workflow/ComponentID.d.ts +5 -0
- package/Types/Workflow/ComponentID.js +12 -0
- package/Types/Workflow/Components/API.js +91 -0
- package/Types/Workflow/Components/ApiGetById.d.mts +16 -0
- package/Types/Workflow/Components/ApiGetById.d.ts +16 -0
- package/Types/Workflow/Components/ApiGetById.js +69 -0
- package/Types/Workflow/Components/ApiGetById.mjs +4 -0
- package/Types/Workflow/Components/FromAnotherTool.d.mts +94 -0
- package/Types/Workflow/Components/FromAnotherTool.d.ts +94 -0
- package/Types/Workflow/Components/FromAnotherTool.js +541 -0
- package/Types/Workflow/Components/FromAnotherTool.mjs +23 -0
- package/Types/Workflow/Components/JavaScriptCheck.d.mts +16 -0
- package/Types/Workflow/Components/JavaScriptCheck.d.ts +16 -0
- package/Types/Workflow/Components/JavaScriptCheck.js +145 -0
- package/Types/Workflow/Components/JavaScriptCheck.mjs +5 -0
- package/Types/Workflow/Components/Zabbix.d.mts +62 -0
- package/Types/Workflow/Components/Zabbix.d.ts +62 -0
- package/Types/Workflow/Components/Zabbix.js +343 -0
- package/Types/Workflow/Components/Zabbix.mjs +17 -0
- package/Types/Workflow/Components.js +21 -0
- package/Types/Workflow/Documentation/APIDocumentation.d.mts +1 -0
- package/Types/Workflow/Documentation/APIDocumentation.d.ts +1 -0
- package/Types/Workflow/Documentation/APIDocumentation.js +48 -1
- package/Types/Workflow/Documentation/APIDocumentation.mjs +1 -0
- package/Types/Workflow/Documentation/DocumentationContext.js +2 -0
- package/Types/Workflow/Documentation/DocumentationLinks.d.mts +3 -0
- package/Types/Workflow/Documentation/DocumentationLinks.d.ts +3 -0
- package/Types/Workflow/Documentation/DocumentationLinks.js +3 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.mts +5 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.ts +5 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.js +89 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.mjs +3 -0
- package/Types/Workflow/Documentation/Index.js +7 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.d.mts +1 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.d.ts +1 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.js +40 -1
- package/Types/Workflow/Documentation/UtilityDocumentation.mjs +1 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.d.mts +4 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.d.ts +4 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.js +67 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.mjs +2 -0
- package/Types/Workflow/TemplateLayout.d.mts +44 -0
- package/Types/Workflow/TemplateLayout.d.ts +44 -0
- package/Types/Workflow/TemplateLayout.js +125 -0
- package/Types/Workflow/TemplateLayout.mjs +7 -0
- package/Types/Workflow/Templates.d.mts +42 -12
- package/Types/Workflow/Templates.d.ts +42 -12
- package/Types/Workflow/Templates.js +2046 -6220
- package/Types/Workflow/Templates.mjs +1 -0
- package/Types/Workflow/UnhandledStepFailure.d.mts +15 -0
- package/Types/Workflow/UnhandledStepFailure.d.ts +15 -0
- package/Types/Workflow/UnhandledStepFailure.js +68 -0
- package/Types/Workflow/UnhandledStepFailure.mjs +5 -0
- package/Types/Workspace/MicrosoftTeamsCloud.d.mts +26 -0
- package/Types/Workspace/MicrosoftTeamsCloud.d.ts +26 -0
- package/Types/Workspace/MicrosoftTeamsCloud.js +214 -0
- package/Types/Workspace/MicrosoftTeamsCloud.mjs +4 -0
- package/Types/Workspace/WorkspaceChannelLink.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelLink.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelLink.js +45 -6
- package/UI/Utils/TranslateTemplate.d.mts +3 -68
- package/UI/Utils/TranslateTemplate.d.ts +3 -68
- package/Utils/AI/InvestigationReport.d.mts +9 -0
- package/Utils/AI/InvestigationReport.d.ts +9 -0
- package/Utils/AI/InvestigationReport.js +122 -10
- package/Utils/AI/InvestigationReport.mjs +3 -0
- package/Utils/AiRemediation/CloudChangeWords.d.mts +32 -0
- package/Utils/AiRemediation/CloudChangeWords.d.ts +32 -0
- package/Utils/AiRemediation/CloudChangeWords.js +242 -0
- package/Utils/AiRemediation/CloudChangeWords.mjs +8 -0
- package/Utils/AiRemediation/RemediationChangeKey.d.mts +2 -0
- package/Utils/AiRemediation/RemediationChangeKey.d.ts +2 -0
- package/Utils/AiRemediation/RemediationChangeKey.js +132 -0
- package/Utils/AiRemediation/RemediationChangeKey.mjs +2 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.mts +46 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.ts +46 -0
- package/Utils/Dashboard/DashboardBoardLayout.js +238 -0
- package/Utils/Dashboard/DashboardBoardLayout.mjs +11 -0
- package/Utils/Dashboard/ValueWidgetLayout.js +9 -1
- package/Utils/Dashboard/VariableInterpolation.d.mts +1 -0
- package/Utils/Dashboard/VariableInterpolation.d.ts +1 -0
- package/Utils/Dashboard/VariableInterpolation.js +19 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
- package/Utils/DataSecurity/UnplacedFields.d.mts +35 -0
- package/Utils/DataSecurity/UnplacedFields.d.ts +35 -0
- package/Utils/DataSecurity/UnplacedFields.js +407 -0
- package/Utils/DataSecurity/UnplacedFields.mjs +19 -0
- package/Utils/Exceptions/ExceptionActivity.d.mts +22 -0
- package/Utils/Exceptions/ExceptionActivity.d.ts +22 -0
- package/Utils/Exceptions/ExceptionActivity.js +141 -0
- package/Utils/Exceptions/ExceptionActivity.mjs +6 -0
- package/Utils/Exceptions/ExceptionUserId.d.mts +8 -0
- package/Utils/Exceptions/ExceptionUserId.d.ts +8 -0
- package/Utils/Exceptions/ExceptionUserId.js +79 -0
- package/Utils/Exceptions/ExceptionUserId.mjs +6 -0
- package/Utils/Inventory/InventoryAssetDetails.d.mts +7 -0
- package/Utils/Inventory/InventoryAssetDetails.d.ts +7 -0
- package/Utils/Inventory/InventoryAssetDetails.js +70 -1
- package/Utils/Inventory/InventoryAssetDetails.mjs +1 -0
- package/Utils/Metrics/MetricQueryFallback.d.mts +24 -0
- package/Utils/Metrics/MetricQueryFallback.d.ts +24 -0
- package/Utils/Metrics/MetricQueryFallback.js +208 -0
- package/Utils/Metrics/MetricQueryFallback.mjs +2 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +15 -2
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +15 -2
- package/Utils/Monitor/EndpointAttachmentUtil.js +83 -1
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +1 -0
- package/Utils/Monitor/NeighborIdentityUtil.d.mts +15 -0
- package/Utils/Monitor/NeighborIdentityUtil.d.ts +15 -0
- package/Utils/Monitor/NeighborIdentityUtil.js +58 -0
- package/Utils/Monitor/NeighborIdentityUtil.mjs +3 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +13 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +13 -0
- package/Utils/Monitor/NetworkTopologyUtil.js +293 -70
- package/Utils/NetworkDevice/DeviceOwnMacUtil.d.mts +20 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.d.ts +20 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.js +81 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.mjs +4 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.d.mts +20 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.d.ts +20 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.js +139 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.mjs +4 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +1 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +1 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +64 -6
- package/Utils/NetworkDevice/SystemDescriptionUtil.d.mts +10 -0
- package/Utils/NetworkDevice/SystemDescriptionUtil.d.ts +10 -0
- package/Utils/NetworkDevice/SystemDescriptionUtil.js +69 -5
- package/Utils/NetworkDevice/SystemDescriptionUtil.mjs +2 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.js +19 -6
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.mts +1 -1
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.ts +1 -1
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.js +18 -1
- package/Utils/Proxmox/ProxmoxNotifications.d.mts +62 -0
- package/Utils/Proxmox/ProxmoxNotifications.d.ts +62 -0
- package/Utils/Proxmox/ProxmoxNotifications.js +458 -0
- package/Utils/Proxmox/ProxmoxNotifications.mjs +20 -0
- package/Utils/Rules/RuleRunSummary.d.mts +6 -3
- package/Utils/Rules/RuleRunSummary.d.ts +6 -3
- package/Utils/Rules/RuleRunSummary.js +11 -7
- package/Utils/Rum/UserFlow.d.mts +20 -0
- package/Utils/Rum/UserFlow.d.ts +20 -0
- package/Utils/Rum/UserFlow.js +41 -3
- package/Utils/Rum/UserFlow.mjs +1 -0
- package/Utils/Schema/MonitorSchemas.js +2 -0
- package/Utils/Sms/Gsm7Text.d.mts +3 -0
- package/Utils/Sms/Gsm7Text.d.ts +3 -0
- package/Utils/Sms/Gsm7Text.js +109 -8
- package/Utils/Sms/Gsm7Text.mjs +3 -0
- package/Utils/Sms/SubscriberSms.js +9 -1
- package/Utils/Telemetry/ChangeEventFields.d.mts +11 -0
- package/Utils/Telemetry/ChangeEventFields.d.ts +11 -0
- package/Utils/Telemetry/ChangeEventFields.js +33 -3
- package/Utils/Telemetry/CloudAppRevisionName.d.mts +4 -0
- package/Utils/Telemetry/CloudAppRevisionName.d.ts +4 -0
- package/Utils/Telemetry/CloudAppRevisionName.js +27 -0
- package/Utils/Telemetry/CloudAppRevisionName.mjs +2 -0
- package/Utils/Telemetry/CloudInstanceIdentity.d.mts +1 -0
- package/Utils/Telemetry/CloudInstanceIdentity.d.ts +1 -0
- package/Utils/Telemetry/CloudInstanceIdentity.js +10 -0
- package/Utils/Telemetry/CloudInstanceIdentity.mjs +1 -0
- package/package.json +1 -1
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DATA_SECURITY_RESPONSE_ACTION_CHECKS = exports.CLUSTER_SNAPSHOT_DATA_STORE_KINDS = exports.SHAREABLE_DATA_STORE_KINDS = exports.BLOCKABLE_DATA_STORE_KINDS = exports.ALL_DATA_SECURITY_RESPONSE_ACTIONS = exports.DataSecurityResponseAction = void 0;
|
|
3
|
+
exports.EXPOSURE_RESPONSE_ACTIONS = exports.DATA_SECURITY_RESPONSE_ACTION_CHECKS = exports.DATA_SECURITY_RESPONSE_ACTION_KINDS = exports.CLUSTER_SNAPSHOT_DATA_STORE_KINDS = exports.SHAREABLE_DATA_STORE_KINDS = exports.BLOCKABLE_DATA_STORE_KINDS = exports.ALL_DATA_SECURITY_RESPONSE_ACTIONS = exports.DataSecurityResponseAction = void 0;
|
|
4
4
|
exports.isDataSecurityResponseAction = isDataSecurityResponseAction;
|
|
5
5
|
exports.getDataSecurityResponseActions = getDataSecurityResponseActions;
|
|
6
6
|
exports.getDataSecurityResponseActionForIssue = getDataSecurityResponseActionForIssue;
|
|
7
7
|
exports.describeDataSecurityResponseAction = describeDataSecurityResponseAction;
|
|
8
8
|
const DataStoreKind_1 = require("./DataStoreKind");
|
|
9
9
|
/*
|
|
10
|
-
*
|
|
10
|
+
* FIXING A STORE FROM ITS ISSUE, AS DATA.
|
|
11
11
|
*
|
|
12
|
-
* What Data Security can
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* What Data Security can change on a cloud store, through the store's
|
|
13
|
+
* cloud connection - and only when that connection's "Data security
|
|
14
|
+
* response" setting is on, whose setup command grants the narrow write
|
|
15
|
+
* role (CloudConnectionSetupCommands):
|
|
16
16
|
*
|
|
17
|
-
* Block public access
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* Revoke sharing
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
17
|
+
* Block public access an S3 bucket's four Block Public Access
|
|
18
|
+
* settings on, an Azure storage account's
|
|
19
|
+
* anonymous blob access off, a Cloud Storage
|
|
20
|
+
* bucket's public access prevention enforced;
|
|
21
|
+
* Revoke sharing an RDS snapshot - or every manual snapshot of
|
|
22
|
+
* an RDS database, Aurora or DocumentDB cluster -
|
|
23
|
+
* no longer restorable by everyone, or by
|
|
24
|
+
* accounts outside the ones the project connected;
|
|
25
|
+
* Turn on versioning an S3 or Cloud Storage bucket keeps the earlier
|
|
26
|
+
* versions of what is overwritten or deleted;
|
|
27
|
+
* Turn on soft delete an Azure storage account keeps deleted blobs and
|
|
28
|
+
* containers for 14 days;
|
|
29
|
+
* Turn off object ACLs an S3 bucket's Object Ownership set to Bucket
|
|
30
|
+
* owner enforced: its policy alone decides access;
|
|
31
|
+
* Turn on uniform access a Cloud Storage bucket's uniform bucket-level
|
|
32
|
+
* access: its IAM policy alone decides access;
|
|
33
|
+
* Require secure transfer an Azure storage account takes HTTPS only, with
|
|
34
|
+
* TLS 1.2 or later;
|
|
35
|
+
* Turn on point-in-time recovery
|
|
36
|
+
* a DynamoDB table can be restored to any second
|
|
37
|
+
* of the last 35 days.
|
|
25
38
|
*
|
|
26
|
-
* Each changes the store's configuration, never its data
|
|
27
|
-
* from the issue it fixes
|
|
28
|
-
*
|
|
29
|
-
*
|
|
39
|
+
* Each changes the store's configuration, never its data, and nothing it
|
|
40
|
+
* does deletes anything. A person runs it from the issue it fixes
|
|
41
|
+
* (Server/API/DataSecurityAPI); a Security Operations playbook runs the
|
|
42
|
+
* first two, as approved steps. The server, the Dashboard and the playbook
|
|
43
|
+
* steps read the same lists here.
|
|
30
44
|
*/
|
|
31
45
|
var DataSecurityResponseAction;
|
|
32
46
|
(function (DataSecurityResponseAction) {
|
|
33
47
|
DataSecurityResponseAction["BlockPublicAccess"] = "Block public access";
|
|
34
48
|
DataSecurityResponseAction["RevokeSharing"] = "Revoke sharing";
|
|
49
|
+
DataSecurityResponseAction["TurnOnVersioning"] = "Turn on versioning";
|
|
50
|
+
DataSecurityResponseAction["TurnOnSoftDelete"] = "Turn on soft delete";
|
|
51
|
+
DataSecurityResponseAction["TurnOffObjectAcls"] = "Turn off object ACLs";
|
|
52
|
+
DataSecurityResponseAction["TurnOnUniformAccess"] = "Turn on uniform access";
|
|
53
|
+
DataSecurityResponseAction["RequireSecureTransfer"] = "Require secure transfer";
|
|
54
|
+
DataSecurityResponseAction["TurnOnPointInTimeRecovery"] = "Turn on point-in-time recovery";
|
|
35
55
|
})(DataSecurityResponseAction || (exports.DataSecurityResponseAction = DataSecurityResponseAction = {}));
|
|
36
56
|
exports.ALL_DATA_SECURITY_RESPONSE_ACTIONS = [
|
|
37
57
|
DataSecurityResponseAction.BlockPublicAccess,
|
|
38
58
|
DataSecurityResponseAction.RevokeSharing,
|
|
59
|
+
DataSecurityResponseAction.TurnOnVersioning,
|
|
60
|
+
DataSecurityResponseAction.TurnOnSoftDelete,
|
|
61
|
+
DataSecurityResponseAction.TurnOffObjectAcls,
|
|
62
|
+
DataSecurityResponseAction.TurnOnUniformAccess,
|
|
63
|
+
DataSecurityResponseAction.RequireSecureTransfer,
|
|
64
|
+
DataSecurityResponseAction.TurnOnPointInTimeRecovery,
|
|
39
65
|
];
|
|
40
66
|
// The stores whose public access can be blocked.
|
|
41
67
|
exports.BLOCKABLE_DATA_STORE_KINDS = [
|
|
@@ -55,6 +81,28 @@ exports.CLUSTER_SNAPSHOT_DATA_STORE_KINDS = [
|
|
|
55
81
|
DataStoreKind_1.DataStoreKind.AwsRdsCluster,
|
|
56
82
|
DataStoreKind_1.DataStoreKind.AwsDocumentDbCluster,
|
|
57
83
|
];
|
|
84
|
+
// The kinds of store each action can change.
|
|
85
|
+
exports.DATA_SECURITY_RESPONSE_ACTION_KINDS = {
|
|
86
|
+
[DataSecurityResponseAction.BlockPublicAccess]: exports.BLOCKABLE_DATA_STORE_KINDS,
|
|
87
|
+
[DataSecurityResponseAction.RevokeSharing]: exports.SHAREABLE_DATA_STORE_KINDS,
|
|
88
|
+
[DataSecurityResponseAction.TurnOnVersioning]: [
|
|
89
|
+
DataStoreKind_1.DataStoreKind.AwsS3Bucket,
|
|
90
|
+
DataStoreKind_1.DataStoreKind.GcpStorageBucket,
|
|
91
|
+
],
|
|
92
|
+
[DataSecurityResponseAction.TurnOnSoftDelete]: [
|
|
93
|
+
DataStoreKind_1.DataStoreKind.AzureStorageAccount,
|
|
94
|
+
],
|
|
95
|
+
[DataSecurityResponseAction.TurnOffObjectAcls]: [DataStoreKind_1.DataStoreKind.AwsS3Bucket],
|
|
96
|
+
[DataSecurityResponseAction.TurnOnUniformAccess]: [
|
|
97
|
+
DataStoreKind_1.DataStoreKind.GcpStorageBucket,
|
|
98
|
+
],
|
|
99
|
+
[DataSecurityResponseAction.RequireSecureTransfer]: [
|
|
100
|
+
DataStoreKind_1.DataStoreKind.AzureStorageAccount,
|
|
101
|
+
],
|
|
102
|
+
[DataSecurityResponseAction.TurnOnPointInTimeRecovery]: [
|
|
103
|
+
DataStoreKind_1.DataStoreKind.AwsDynamoDbTable,
|
|
104
|
+
],
|
|
105
|
+
};
|
|
58
106
|
/*
|
|
59
107
|
* The checks each action fixes: an issue of one of these, on a store the
|
|
60
108
|
* action can change, offers the action on its page.
|
|
@@ -69,20 +117,39 @@ exports.DATA_SECURITY_RESPONSE_ACTION_CHECKS = {
|
|
|
69
117
|
"snapshot-public",
|
|
70
118
|
"snapshot-shared-externally",
|
|
71
119
|
],
|
|
120
|
+
[DataSecurityResponseAction.TurnOnVersioning]: [
|
|
121
|
+
"deleted-data-not-recoverable",
|
|
122
|
+
],
|
|
123
|
+
[DataSecurityResponseAction.TurnOnSoftDelete]: [
|
|
124
|
+
"deleted-data-not-recoverable",
|
|
125
|
+
],
|
|
126
|
+
[DataSecurityResponseAction.TurnOffObjectAcls]: ["object-acls-enabled"],
|
|
127
|
+
[DataSecurityResponseAction.TurnOnUniformAccess]: ["object-acls-enabled"],
|
|
128
|
+
[DataSecurityResponseAction.RequireSecureTransfer]: [
|
|
129
|
+
"encryption-in-transit-not-enforced",
|
|
130
|
+
"weak-tls",
|
|
131
|
+
],
|
|
132
|
+
[DataSecurityResponseAction.TurnOnPointInTimeRecovery]: [
|
|
133
|
+
"no-point-in-time-recovery",
|
|
134
|
+
],
|
|
72
135
|
};
|
|
136
|
+
/*
|
|
137
|
+
* The actions that close an exposure - the internet, or accounts outside -
|
|
138
|
+
* rather than harden a store: a store marked public by design is never
|
|
139
|
+
* blocked, and a Security Operations playbook runs these as steps.
|
|
140
|
+
*/
|
|
141
|
+
exports.EXPOSURE_RESPONSE_ACTIONS = [
|
|
142
|
+
DataSecurityResponseAction.BlockPublicAccess,
|
|
143
|
+
DataSecurityResponseAction.RevokeSharing,
|
|
144
|
+
];
|
|
73
145
|
function isDataSecurityResponseAction(value) {
|
|
74
146
|
return exports.ALL_DATA_SECURITY_RESPONSE_ACTIONS.includes(value);
|
|
75
147
|
}
|
|
76
148
|
// The response actions a store of this kind can take.
|
|
77
149
|
function getDataSecurityResponseActions(kind) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
if (exports.SHAREABLE_DATA_STORE_KINDS.includes(kind)) {
|
|
83
|
-
actions.push(DataSecurityResponseAction.RevokeSharing);
|
|
84
|
-
}
|
|
85
|
-
return actions;
|
|
150
|
+
return exports.ALL_DATA_SECURITY_RESPONSE_ACTIONS.filter((action) => {
|
|
151
|
+
return exports.DATA_SECURITY_RESPONSE_ACTION_KINDS[action].includes(kind);
|
|
152
|
+
});
|
|
86
153
|
}
|
|
87
154
|
// The action that fixes an issue of this check on a store of this kind, if any.
|
|
88
155
|
function getDataSecurityResponseActionForIssue(checkId, kind) {
|
|
@@ -108,6 +175,26 @@ function describeDataSecurityResponseAction(action, kind) {
|
|
|
108
175
|
return "Turns on the bucket's four Block Public Access settings, so nobody on the internet can read it. Anything that reads it publicly - a website, a download link - stops working. No object is changed.";
|
|
109
176
|
}
|
|
110
177
|
}
|
|
178
|
+
if (action === DataSecurityResponseAction.TurnOnVersioning) {
|
|
179
|
+
return kind === DataStoreKind_1.DataStoreKind.GcpStorageBucket
|
|
180
|
+
? "Turns on Object Versioning for the bucket, so an object that is overwritten or deleted can be restored from its earlier version. Earlier versions are kept, and billed, until a lifecycle rule removes them. No object is changed."
|
|
181
|
+
: "Turns on versioning for the bucket, so an object that is overwritten or deleted can be restored from its earlier version. Earlier versions are kept, and billed, until a lifecycle rule removes them. No object is changed.";
|
|
182
|
+
}
|
|
183
|
+
if (action === DataSecurityResponseAction.TurnOnSoftDelete) {
|
|
184
|
+
return "Turns on soft delete for the storage account's blobs and containers, for 14 days: a deleted blob or container can be restored in that time. Deleted data is kept, and billed, for those 14 days. No blob is changed.";
|
|
185
|
+
}
|
|
186
|
+
if (action === DataSecurityResponseAction.TurnOffObjectAcls) {
|
|
187
|
+
return "Sets the bucket's Object Ownership to Bucket owner enforced: object ACLs no longer grant access, and the bucket's policy alone decides who reads it. Anything that is given access through an ACL - another account, a public link - stops working. No object is changed.";
|
|
188
|
+
}
|
|
189
|
+
if (action === DataSecurityResponseAction.TurnOnUniformAccess) {
|
|
190
|
+
return "Turns on uniform bucket-level access: object ACLs no longer grant access, and the bucket's IAM policy alone decides who reads it. Anything that is given access through an ACL stops working, and after 90 days it cannot be turned off again. No object is changed.";
|
|
191
|
+
}
|
|
192
|
+
if (action === DataSecurityResponseAction.RequireSecureTransfer) {
|
|
193
|
+
return "Turns on Secure transfer required, and sets the minimum TLS version to 1.2, on the storage account: it then takes HTTPS only, with TLS 1.2 or later. Anything that connects over HTTP, or with older TLS, stops working. No blob is changed.";
|
|
194
|
+
}
|
|
195
|
+
if (action === DataSecurityResponseAction.TurnOnPointInTimeRecovery) {
|
|
196
|
+
return "Turns on point-in-time recovery for the table, so it can be restored to any second of the last 35 days. AWS bills it by the table's size. No item is changed.";
|
|
197
|
+
}
|
|
111
198
|
if (kind === DataStoreKind_1.DataStoreKind.AwsRdsSnapshot) {
|
|
112
199
|
return "Stops sharing the snapshot with everyone, and with any account outside the ones this project has connected. The snapshot itself is not changed.";
|
|
113
200
|
}
|
|
@@ -3,7 +3,9 @@ export const ALL_DATA_SECURITY_RESPONSE_ACTIONS = commonJsModule.ALL_DATA_SECURI
|
|
|
3
3
|
export const BLOCKABLE_DATA_STORE_KINDS = commonJsModule.BLOCKABLE_DATA_STORE_KINDS;
|
|
4
4
|
export const CLUSTER_SNAPSHOT_DATA_STORE_KINDS = commonJsModule.CLUSTER_SNAPSHOT_DATA_STORE_KINDS;
|
|
5
5
|
export const DATA_SECURITY_RESPONSE_ACTION_CHECKS = commonJsModule.DATA_SECURITY_RESPONSE_ACTION_CHECKS;
|
|
6
|
+
export const DATA_SECURITY_RESPONSE_ACTION_KINDS = commonJsModule.DATA_SECURITY_RESPONSE_ACTION_KINDS;
|
|
6
7
|
export const DataSecurityResponseAction = commonJsModule.DataSecurityResponseAction;
|
|
8
|
+
export const EXPOSURE_RESPONSE_ACTIONS = commonJsModule.EXPOSURE_RESPONSE_ACTIONS;
|
|
7
9
|
export const SHAREABLE_DATA_STORE_KINDS = commonJsModule.SHAREABLE_DATA_STORE_KINDS;
|
|
8
10
|
export const describeDataSecurityResponseAction = commonJsModule.describeDataSecurityResponseAction;
|
|
9
11
|
export const getDataSecurityResponseActionForIssue = commonJsModule.getDataSecurityResponseActionForIssue;
|
|
@@ -23,5 +23,12 @@ export interface DataStoreAccessEntry {
|
|
|
23
23
|
isPublic: boolean;
|
|
24
24
|
isSeenInTraces?: boolean | undefined;
|
|
25
25
|
lastUsedAt?: Date | undefined;
|
|
26
|
+
isUnused?: boolean | undefined;
|
|
26
27
|
}
|
|
28
|
+
export declare const UNUSED_ACCESS_DAYS: number;
|
|
29
|
+
export declare function isAccessUnused(data: {
|
|
30
|
+
lastUsedAt?: Date | null | undefined;
|
|
31
|
+
hasNoRecordedUse?: boolean | undefined;
|
|
32
|
+
now: Date;
|
|
33
|
+
}): boolean;
|
|
27
34
|
export declare function getDataStoreAccessKey(entry: DataStoreAccessEntry): string;
|
|
@@ -23,5 +23,12 @@ export interface DataStoreAccessEntry {
|
|
|
23
23
|
isPublic: boolean;
|
|
24
24
|
isSeenInTraces?: boolean | undefined;
|
|
25
25
|
lastUsedAt?: Date | undefined;
|
|
26
|
+
isUnused?: boolean | undefined;
|
|
26
27
|
}
|
|
28
|
+
export declare const UNUSED_ACCESS_DAYS: number;
|
|
29
|
+
export declare function isAccessUnused(data: {
|
|
30
|
+
lastUsedAt?: Date | null | undefined;
|
|
31
|
+
hasNoRecordedUse?: boolean | undefined;
|
|
32
|
+
now: Date;
|
|
33
|
+
}): boolean;
|
|
27
34
|
export declare function getDataStoreAccessKey(entry: DataStoreAccessEntry): string;
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* using a store. DataStoreAccess rows are written from them.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.DataStoreAccessLevel = exports.DataStorePrincipalType = void 0;
|
|
11
|
+
exports.UNUSED_ACCESS_DAYS = exports.DataStoreAccessLevel = exports.DataStorePrincipalType = void 0;
|
|
12
|
+
exports.isAccessUnused = isAccessUnused;
|
|
12
13
|
exports.getDataStoreAccessKey = getDataStoreAccessKey;
|
|
13
14
|
var DataStorePrincipalType;
|
|
14
15
|
(function (DataStorePrincipalType) {
|
|
@@ -27,6 +28,27 @@ var DataStoreAccessLevel;
|
|
|
27
28
|
DataStoreAccessLevel["Write"] = "Write";
|
|
28
29
|
DataStoreAccessLevel["Admin"] = "Admin";
|
|
29
30
|
})(DataStoreAccessLevel || (exports.DataStoreAccessLevel = DataStoreAccessLevel = {}));
|
|
31
|
+
/*
|
|
32
|
+
* How long an identity goes unused before its access counts as access it
|
|
33
|
+
* does not need: the period access reviews (SOC 2 CC6.2, PCI DSS 7.2.4,
|
|
34
|
+
* ISO/IEC 27001 A.5.18) look back over.
|
|
35
|
+
*/
|
|
36
|
+
exports.UNUSED_ACCESS_DAYS = 90;
|
|
37
|
+
/*
|
|
38
|
+
* Whether an identity has gone unused for UNUSED_ACCESS_DAYS days: its
|
|
39
|
+
* last use is older than that, or the cloud records no use of it at all
|
|
40
|
+
* and it was made longer ago than that (hasNoRecordedUse, which its reader
|
|
41
|
+
* works out). An identity whose use the cloud does not say is never
|
|
42
|
+
* unused: OneUptime does not guess.
|
|
43
|
+
*/
|
|
44
|
+
function isAccessUnused(data) {
|
|
45
|
+
const cutoff = data.now.getTime() - exports.UNUSED_ACCESS_DAYS * 24 * 60 * 60 * 1000;
|
|
46
|
+
if (data.lastUsedAt) {
|
|
47
|
+
const time = new Date(data.lastUsedAt).getTime();
|
|
48
|
+
return Number.isFinite(time) && time < cutoff;
|
|
49
|
+
}
|
|
50
|
+
return Boolean(data.hasNoRecordedUse);
|
|
51
|
+
}
|
|
30
52
|
// What identifies an entry within its store: one row per principal, level and grant.
|
|
31
53
|
function getDataStoreAccessKey(entry) {
|
|
32
54
|
return [entry.principal, entry.accessLevel, entry.grantedVia]
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import commonJsModule from "./DataStoreAccess.js";
|
|
2
2
|
export const DataStoreAccessLevel = commonJsModule.DataStoreAccessLevel;
|
|
3
3
|
export const DataStorePrincipalType = commonJsModule.DataStorePrincipalType;
|
|
4
|
+
export const UNUSED_ACCESS_DAYS = commonJsModule.UNUSED_ACCESS_DAYS;
|
|
4
5
|
export const getDataStoreAccessKey = commonJsModule.getDataStoreAccessKey;
|
|
6
|
+
export const isAccessUnused = commonJsModule.isAccessUnused;
|
package/Types/Date.d.mts
CHANGED
|
@@ -5,6 +5,10 @@ import PositiveNumber from "./PositiveNumber.mjs";
|
|
|
5
5
|
import moment from "moment-timezone";
|
|
6
6
|
import Timezone from "./Timezone.mjs";
|
|
7
7
|
export declare const Moment: typeof moment;
|
|
8
|
+
export interface ExactUnixNano {
|
|
9
|
+
nano: string;
|
|
10
|
+
date: Date;
|
|
11
|
+
}
|
|
8
12
|
export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
|
|
9
13
|
export default class OneUptimeDate {
|
|
10
14
|
private static userTimezone;
|
|
@@ -93,6 +97,29 @@ export default class OneUptimeDate {
|
|
|
93
97
|
use12HourFormat?: boolean | undefined;
|
|
94
98
|
includeSeconds?: boolean | undefined;
|
|
95
99
|
}): string;
|
|
100
|
+
/**
|
|
101
|
+
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
102
|
+
* year without its year, and without the zone - or "Oct 22, 2025", the
|
|
103
|
+
* date alone, for one of another year. With onlyShowDate, "Oct 22" and
|
|
104
|
+
* "Oct 22, 2025". The whole of it - year, time and zone
|
|
105
|
+
* (getDateAsUserFriendlyLocalFormattedString) - is what the cell shows
|
|
106
|
+
* under the pointer (Table/TableDate).
|
|
107
|
+
*
|
|
108
|
+
* "Oct 22 2026, 07:25 AM BST" took some 180px in every table's date
|
|
109
|
+
* column, the widest value left in the lists that still ran past their
|
|
110
|
+
* card at a laptop's width - incidents, alerts, the on-call logs - and its
|
|
111
|
+
* year and its zone said the same thing on every row.
|
|
112
|
+
*
|
|
113
|
+
* Read in the current timezone (the one the person picked in User
|
|
114
|
+
* Settings, or the browser's), as every other local date: a year turns
|
|
115
|
+
* there. The clock follows the person's 12- or 24-hour preference unless
|
|
116
|
+
* the caller says.
|
|
117
|
+
*/
|
|
118
|
+
static getDateAsCompactLocalString(date: Date | string, options?: {
|
|
119
|
+
onlyShowDate?: boolean | undefined;
|
|
120
|
+
use12HourFormat?: boolean | undefined;
|
|
121
|
+
now?: Date | undefined;
|
|
122
|
+
}): string;
|
|
96
123
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
97
124
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
98
125
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
@@ -200,6 +227,7 @@ export default class OneUptimeDate {
|
|
|
200
227
|
static getOneMinAgo(): Date;
|
|
201
228
|
static getOneDayAgo(): Date;
|
|
202
229
|
static fromUnixNano(timestamp: string | number): Date;
|
|
230
|
+
static readExactUnixNano(value: unknown): ExactUnixNano | null;
|
|
203
231
|
static parseRfc5424Timestamp(value: string): Date | undefined;
|
|
204
232
|
static parseRfc3164Timestamp(value: string): Date | undefined;
|
|
205
233
|
static getSecondsTo(date: Date): number;
|
|
@@ -362,6 +390,7 @@ export default class OneUptimeDate {
|
|
|
362
390
|
}): string;
|
|
363
391
|
static getDateAsLocalFormattedString(date: string | Date, onlyShowDate?: boolean, use12HourFormat?: boolean, showSeconds?: boolean): string;
|
|
364
392
|
static getDayInSeconds(days?: number | undefined): number;
|
|
393
|
+
private static getZoneInLocale;
|
|
365
394
|
static getCurrentTimezoneString(): string;
|
|
366
395
|
static getZoneAbbrByTimezone(timezone: Timezone, date?: string | Date | undefined): string;
|
|
367
396
|
/**
|
|
@@ -408,5 +437,5 @@ export default class OneUptimeDate {
|
|
|
408
437
|
static resetSecondsAndMilliseconds(date: Date): Date;
|
|
409
438
|
private static formatUtcClickhouseDateTime;
|
|
410
439
|
static toClickhouseDateTime(date: Date | string): string;
|
|
411
|
-
static toClickhouseDateTime64(date: Date | string, nanoTimestamp?: number): string;
|
|
440
|
+
static toClickhouseDateTime64(date: Date | string, nanoTimestamp?: number | string): string;
|
|
412
441
|
}
|
package/Types/Date.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import PositiveNumber from "./PositiveNumber";
|
|
|
5
5
|
import moment from "moment-timezone";
|
|
6
6
|
import Timezone from "./Timezone";
|
|
7
7
|
export declare const Moment: typeof moment;
|
|
8
|
+
export interface ExactUnixNano {
|
|
9
|
+
nano: string;
|
|
10
|
+
date: Date;
|
|
11
|
+
}
|
|
8
12
|
export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
|
|
9
13
|
export default class OneUptimeDate {
|
|
10
14
|
private static userTimezone;
|
|
@@ -93,6 +97,29 @@ export default class OneUptimeDate {
|
|
|
93
97
|
use12HourFormat?: boolean | undefined;
|
|
94
98
|
includeSeconds?: boolean | undefined;
|
|
95
99
|
}): string;
|
|
100
|
+
/**
|
|
101
|
+
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
102
|
+
* year without its year, and without the zone - or "Oct 22, 2025", the
|
|
103
|
+
* date alone, for one of another year. With onlyShowDate, "Oct 22" and
|
|
104
|
+
* "Oct 22, 2025". The whole of it - year, time and zone
|
|
105
|
+
* (getDateAsUserFriendlyLocalFormattedString) - is what the cell shows
|
|
106
|
+
* under the pointer (Table/TableDate).
|
|
107
|
+
*
|
|
108
|
+
* "Oct 22 2026, 07:25 AM BST" took some 180px in every table's date
|
|
109
|
+
* column, the widest value left in the lists that still ran past their
|
|
110
|
+
* card at a laptop's width - incidents, alerts, the on-call logs - and its
|
|
111
|
+
* year and its zone said the same thing on every row.
|
|
112
|
+
*
|
|
113
|
+
* Read in the current timezone (the one the person picked in User
|
|
114
|
+
* Settings, or the browser's), as every other local date: a year turns
|
|
115
|
+
* there. The clock follows the person's 12- or 24-hour preference unless
|
|
116
|
+
* the caller says.
|
|
117
|
+
*/
|
|
118
|
+
static getDateAsCompactLocalString(date: Date | string, options?: {
|
|
119
|
+
onlyShowDate?: boolean | undefined;
|
|
120
|
+
use12HourFormat?: boolean | undefined;
|
|
121
|
+
now?: Date | undefined;
|
|
122
|
+
}): string;
|
|
96
123
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
97
124
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
98
125
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
@@ -200,6 +227,7 @@ export default class OneUptimeDate {
|
|
|
200
227
|
static getOneMinAgo(): Date;
|
|
201
228
|
static getOneDayAgo(): Date;
|
|
202
229
|
static fromUnixNano(timestamp: string | number): Date;
|
|
230
|
+
static readExactUnixNano(value: unknown): ExactUnixNano | null;
|
|
203
231
|
static parseRfc5424Timestamp(value: string): Date | undefined;
|
|
204
232
|
static parseRfc3164Timestamp(value: string): Date | undefined;
|
|
205
233
|
static getSecondsTo(date: Date): number;
|
|
@@ -362,6 +390,7 @@ export default class OneUptimeDate {
|
|
|
362
390
|
}): string;
|
|
363
391
|
static getDateAsLocalFormattedString(date: string | Date, onlyShowDate?: boolean, use12HourFormat?: boolean, showSeconds?: boolean): string;
|
|
364
392
|
static getDayInSeconds(days?: number | undefined): number;
|
|
393
|
+
private static getZoneInLocale;
|
|
365
394
|
static getCurrentTimezoneString(): string;
|
|
366
395
|
static getZoneAbbrByTimezone(timezone: Timezone, date?: string | Date | undefined): string;
|
|
367
396
|
/**
|
|
@@ -408,5 +437,5 @@ export default class OneUptimeDate {
|
|
|
408
437
|
static resetSecondsAndMilliseconds(date: Date): Date;
|
|
409
438
|
private static formatUtcClickhouseDateTime;
|
|
410
439
|
static toClickhouseDateTime(date: Date | string): string;
|
|
411
|
-
static toClickhouseDateTime64(date: Date | string, nanoTimestamp?: number): string;
|
|
440
|
+
static toClickhouseDateTime64(date: Date | string, nanoTimestamp?: number | string): string;
|
|
412
441
|
}
|
package/Types/Date.js
CHANGED
|
@@ -70,6 +70,18 @@ const LOCALIZED_CUSTOM_DATE_FORMATS = {
|
|
|
70
70
|
};
|
|
71
71
|
// A whole number of nanoseconds, as fromUnixNano reads one exactly.
|
|
72
72
|
const UNIX_NANO_INTEGER_PATTERN = /^[+-]?\d+$/;
|
|
73
|
+
/*
|
|
74
|
+
* The most digits OneUptimeDate.readExactUnixNano reads. Below 1e21 ns a
|
|
75
|
+
* time's millisecond has at most 15 digits, so it never leaves the integers
|
|
76
|
+
* a double holds exactly (2^53), and every such time is inside the Date
|
|
77
|
+
* range (8.64e21 ns). That is past every time a nanosecond column holds
|
|
78
|
+
* (UInt64 ends near 1.8e19, int64 near 9.2e18); a longer text is left to the
|
|
79
|
+
* caller's float read, which keeps what it did with one.
|
|
80
|
+
*/
|
|
81
|
+
const MAX_EXACT_UNIX_NANO_DIGITS = 21;
|
|
82
|
+
// The character codes readExactUnixNano reads.
|
|
83
|
+
const PLUS_SIGN_CODE = 43;
|
|
84
|
+
const DIGIT_ZERO_CODE = 48;
|
|
73
85
|
/*
|
|
74
86
|
* The decimal point of a short duration's figure ("1.72 s", "2m 5.5s"): a
|
|
75
87
|
* digit either side of it. Read on a few characters, so linear.
|
|
@@ -424,6 +436,47 @@ class OneUptimeDate {
|
|
|
424
436
|
});
|
|
425
437
|
});
|
|
426
438
|
}
|
|
439
|
+
/**
|
|
440
|
+
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
441
|
+
* year without its year, and without the zone - or "Oct 22, 2025", the
|
|
442
|
+
* date alone, for one of another year. With onlyShowDate, "Oct 22" and
|
|
443
|
+
* "Oct 22, 2025". The whole of it - year, time and zone
|
|
444
|
+
* (getDateAsUserFriendlyLocalFormattedString) - is what the cell shows
|
|
445
|
+
* under the pointer (Table/TableDate).
|
|
446
|
+
*
|
|
447
|
+
* "Oct 22 2026, 07:25 AM BST" took some 180px in every table's date
|
|
448
|
+
* column, the widest value left in the lists that still ran past their
|
|
449
|
+
* card at a laptop's width - incidents, alerts, the on-call logs - and its
|
|
450
|
+
* year and its zone said the same thing on every row.
|
|
451
|
+
*
|
|
452
|
+
* Read in the current timezone (the one the person picked in User
|
|
453
|
+
* Settings, or the browser's), as every other local date: a year turns
|
|
454
|
+
* there. The clock follows the person's 12- or 24-hour preference unless
|
|
455
|
+
* the caller says.
|
|
456
|
+
*/
|
|
457
|
+
static getDateAsCompactLocalString(date, options) {
|
|
458
|
+
const instant = this.fromString(date);
|
|
459
|
+
const now = (options === null || options === void 0 ? void 0 : options.now) || this.getCurrentDate();
|
|
460
|
+
const isThisYear = this.inCurrentTimezone(instant).year() ===
|
|
461
|
+
this.inCurrentTimezone(now).year();
|
|
462
|
+
if (isThisYear && !(options === null || options === void 0 ? void 0 : options.onlyShowDate)) {
|
|
463
|
+
return this.getDateAsLocalShortDateTimeString(instant, {
|
|
464
|
+
use12HourFormat: options === null || options === void 0 ? void 0 : options.use12HourFormat,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
const englishFormat = isThisYear ? "MMM D" : "MMM D, YYYY";
|
|
468
|
+
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
469
|
+
return this.inCurrentTimezone(instant).format(englishFormat);
|
|
470
|
+
}, (language, locale) => {
|
|
471
|
+
// "22. Okt.", "22. Okt. 2025", "10月22日", "2025年10月22日".
|
|
472
|
+
return this.getLocalizedDateText({
|
|
473
|
+
date: instant,
|
|
474
|
+
language,
|
|
475
|
+
locale,
|
|
476
|
+
shape: { onlyShowDate: true, hideYear: isThisYear },
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
}
|
|
427
480
|
static getDateAsLocalMonthYearString(date) {
|
|
428
481
|
const instant = this.fromString(date);
|
|
429
482
|
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
@@ -531,7 +584,7 @@ class OneUptimeDate {
|
|
|
531
584
|
if (!text || data.onlyShowDate) {
|
|
532
585
|
return text;
|
|
533
586
|
}
|
|
534
|
-
return `${text} ${this.getZoneAbbrByTimezone(timezone, date)}`.trim();
|
|
587
|
+
return `${text} ${this.getZoneInLocale(this.getZoneAbbrByTimezone(timezone, date), locale)}`.trim();
|
|
535
588
|
});
|
|
536
589
|
}
|
|
537
590
|
// getDateAsFormattedStringInTimezone's English, as moment writes it.
|
|
@@ -897,6 +950,92 @@ class OneUptimeDate {
|
|
|
897
950
|
}
|
|
898
951
|
return new Date(timestamp / 1000000);
|
|
899
952
|
}
|
|
953
|
+
/*
|
|
954
|
+
* OTLP sends a time as whole nanoseconds since the epoch: an integer
|
|
955
|
+
* string in OTLP/protobuf, and from most OTLP/JSON senders. Today's are
|
|
956
|
+
* about 1.8e18, where doubles are 256 ns apart, so parseFloat moves such a
|
|
957
|
+
* text by up to 128 ns, and a Date made from that float (fromUnixNano of a
|
|
958
|
+
* number) can land a millisecond off: early on one whole millisecond in
|
|
959
|
+
* eight, late just before a millisecond ends. A time up to 128 ns before a
|
|
960
|
+
* whole second even reads as that second: its float is the second itself.
|
|
961
|
+
*
|
|
962
|
+
* This reads the digits instead. The Date, the stored nanoseconds and a
|
|
963
|
+
* DateTime64(9) fraction (toClickhouseDateTime64 given `nano`) all come
|
|
964
|
+
* from the same digits, so they always agree. Keep a float of the text
|
|
965
|
+
* for arithmetic only - a duration, a comparison - never for what is
|
|
966
|
+
* stored or shown.
|
|
967
|
+
*
|
|
968
|
+
* It reads a text of decimal digits with an optional leading "+" and
|
|
969
|
+
* leading zeros, which parseFloat reads as the same number, and at most
|
|
970
|
+
* MAX_EXACT_UNIX_NANO_DIGITS of them; `nano` drops the "+" and the zeros,
|
|
971
|
+
* as the float's digits did. Anything else gives null, and the caller
|
|
972
|
+
* reads it as it did before: a number (already a float), a "-", spaces, a
|
|
973
|
+
* point or an exponent ("1.5e18"), any other character, an empty text,
|
|
974
|
+
* more digits, or no text at all.
|
|
975
|
+
*
|
|
976
|
+
* Every ingested log, span and metric data point comes through here, so
|
|
977
|
+
* it is one pass over the characters that sums the millisecond as it
|
|
978
|
+
* goes: no regular expression, BigInt or float of the whole value, and
|
|
979
|
+
* the stored digits are the text itself when it has no "+" or zeros to
|
|
980
|
+
* drop. Like fromUnixNano it builds the Date directly, and it makes no
|
|
981
|
+
* BigInt (see nanosPerMillisecond).
|
|
982
|
+
*/
|
|
983
|
+
static readExactUnixNano(value) {
|
|
984
|
+
if (typeof value !== "string") {
|
|
985
|
+
return null;
|
|
986
|
+
}
|
|
987
|
+
const text = value;
|
|
988
|
+
const length = text.length;
|
|
989
|
+
let start = 0;
|
|
990
|
+
// A "+" and leading zeros read as nothing; the last digit always stays.
|
|
991
|
+
if (length > 1 && text.charCodeAt(0) === PLUS_SIGN_CODE) {
|
|
992
|
+
start = 1;
|
|
993
|
+
}
|
|
994
|
+
while (start < length - 1 && text.charCodeAt(start) === DIGIT_ZERO_CODE) {
|
|
995
|
+
start++;
|
|
996
|
+
}
|
|
997
|
+
const digitCount = length - start;
|
|
998
|
+
if (digitCount === 0 || digitCount > MAX_EXACT_UNIX_NANO_DIGITS) {
|
|
999
|
+
return null;
|
|
1000
|
+
}
|
|
1001
|
+
/*
|
|
1002
|
+
* The millisecond is every digit but the last six. It is summed in two
|
|
1003
|
+
* parts that stay small integers - its last nine digits, and the up to
|
|
1004
|
+
* six before them - since one sum that grows past 2^31 is a float's
|
|
1005
|
+
* and made the whole read about 40% slower; joined, they stay below
|
|
1006
|
+
* 2^53, so exact. The last six digits are only checked.
|
|
1007
|
+
*/
|
|
1008
|
+
const millisecondEnd = length - 6;
|
|
1009
|
+
// Not Math.max: in a vm context (Jest's) it is a call, a third of the read.
|
|
1010
|
+
const lowStart = millisecondEnd - 9 > start ? millisecondEnd - 9 : start;
|
|
1011
|
+
let high = 0;
|
|
1012
|
+
let low = 0;
|
|
1013
|
+
let index = start;
|
|
1014
|
+
for (; index < lowStart; index++) {
|
|
1015
|
+
const digit = text.charCodeAt(index) - DIGIT_ZERO_CODE;
|
|
1016
|
+
if (digit < 0 || digit > 9) {
|
|
1017
|
+
return null;
|
|
1018
|
+
}
|
|
1019
|
+
high = high * 10 + digit;
|
|
1020
|
+
}
|
|
1021
|
+
for (; index < millisecondEnd; index++) {
|
|
1022
|
+
const digit = text.charCodeAt(index) - DIGIT_ZERO_CODE;
|
|
1023
|
+
if (digit < 0 || digit > 9) {
|
|
1024
|
+
return null;
|
|
1025
|
+
}
|
|
1026
|
+
low = low * 10 + digit;
|
|
1027
|
+
}
|
|
1028
|
+
for (; index < length; index++) {
|
|
1029
|
+
const digit = text.charCodeAt(index) - DIGIT_ZERO_CODE;
|
|
1030
|
+
if (digit < 0 || digit > 9) {
|
|
1031
|
+
return null;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
return {
|
|
1035
|
+
nano: start === 0 ? text : text.slice(start),
|
|
1036
|
+
date: new Date(high * 1000000000 + low),
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
900
1039
|
static parseRfc5424Timestamp(value) {
|
|
901
1040
|
if (!value || typeof value !== "string") {
|
|
902
1041
|
return undefined;
|
|
@@ -1518,7 +1657,7 @@ class OneUptimeDate {
|
|
|
1518
1657
|
if (!text || (options === null || options === void 0 ? void 0 : options.onlyShowDate)) {
|
|
1519
1658
|
return text;
|
|
1520
1659
|
}
|
|
1521
|
-
return `${text} ${this.getCurrentTimezoneString()}`.trim();
|
|
1660
|
+
return `${text} ${this.getZoneInLocale(this.getCurrentTimezoneString(), locale)}`.trim();
|
|
1522
1661
|
});
|
|
1523
1662
|
}
|
|
1524
1663
|
static getDifferenceInMinutes(date, date2) {
|
|
@@ -1830,7 +1969,7 @@ class OneUptimeDate {
|
|
|
1830
1969
|
if (!text || onlyShowDate) {
|
|
1831
1970
|
return text;
|
|
1832
1971
|
}
|
|
1833
|
-
return `${text} ${this.getZoneAbbrByTimezone(timezone, instant)}`;
|
|
1972
|
+
return `${text} ${this.getZoneInLocale(this.getZoneAbbrByTimezone(timezone, instant), locale)}`;
|
|
1834
1973
|
}));
|
|
1835
1974
|
}
|
|
1836
1975
|
return timezoneDates;
|
|
@@ -1902,7 +2041,9 @@ class OneUptimeDate {
|
|
|
1902
2041
|
twoDigitDay: true,
|
|
1903
2042
|
},
|
|
1904
2043
|
});
|
|
1905
|
-
return text
|
|
2044
|
+
return text
|
|
2045
|
+
? `${text} ${this.getZoneInLocale(zoneAbbr, locale)}`.trim()
|
|
2046
|
+
: null;
|
|
1906
2047
|
});
|
|
1907
2048
|
}
|
|
1908
2049
|
static getDayInSeconds(days) {
|
|
@@ -1911,6 +2052,16 @@ class OneUptimeDate {
|
|
|
1911
2052
|
}
|
|
1912
2053
|
return 24 * 60 * 60 * days;
|
|
1913
2054
|
}
|
|
2055
|
+
/*
|
|
2056
|
+
* A zone's name after a date written in `locale`, in the digits the date
|
|
2057
|
+
* is in: "۲۶ اکتبر ۲۰۲۶، ۱۸:۳۷ GMT+۰۳۳۰" on a Persian page, where the
|
|
2058
|
+
* offset stood in Latin digits beside a date in Persian ones. A name of
|
|
2059
|
+
* letters only ("BST", "EDT") and every language that writes Latin digits
|
|
2060
|
+
* keep it as it is.
|
|
2061
|
+
*/
|
|
2062
|
+
static getZoneInLocale(zone, locale) {
|
|
2063
|
+
return (0, DateLanguage_1.writeDigitsInLocale)(zone, locale);
|
|
2064
|
+
}
|
|
1914
2065
|
static getCurrentTimezoneString() {
|
|
1915
2066
|
return this.getZoneAbbrByTimezone(this.getCurrentTimezone());
|
|
1916
2067
|
}
|
|
@@ -2120,11 +2271,28 @@ class OneUptimeDate {
|
|
|
2120
2271
|
const parsedDate = this.fromString(date);
|
|
2121
2272
|
return this.formatUtcClickhouseDateTime(parsedDate);
|
|
2122
2273
|
}
|
|
2274
|
+
/*
|
|
2275
|
+
* `nanoTimestamp` is the time in whole nanoseconds since the epoch, and
|
|
2276
|
+
* the fraction is read from it rather than from the Date's milliseconds:
|
|
2277
|
+
*
|
|
2278
|
+
* - digits (ExactUnixNano.nano): their last nine, exactly. Pass the Date
|
|
2279
|
+
* read from the same digits (readExactUnixNano), so the second and the
|
|
2280
|
+
* fraction agree. A float's fraction cannot go with that Date: for a
|
|
2281
|
+
* time up to 128 ns before a whole second the float is that second, so
|
|
2282
|
+
* its fraction reads .000000000 while the exact Date is still in the
|
|
2283
|
+
* second before - a second early.
|
|
2284
|
+
* - a number: its remainder in a second, as exact as the float is. Pass
|
|
2285
|
+
* the Date made from the same float (fromUnixNano), as before.
|
|
2286
|
+
* - absent, zero or below: the Date's milliseconds.
|
|
2287
|
+
*/
|
|
2123
2288
|
static toClickhouseDateTime64(date, nanoTimestamp) {
|
|
2124
2289
|
const parsedDate = this.fromString(date);
|
|
2125
2290
|
const base = this.formatUtcClickhouseDateTime(parsedDate);
|
|
2126
2291
|
let nanoFraction;
|
|
2127
|
-
if (
|
|
2292
|
+
if (typeof nanoTimestamp === "string") {
|
|
2293
|
+
nanoFraction = nanoTimestamp.slice(-9).padStart(9, "0");
|
|
2294
|
+
}
|
|
2295
|
+
else if (nanoTimestamp !== undefined && nanoTimestamp > 0) {
|
|
2128
2296
|
// Extract sub-second nanoseconds from the unix nano timestamp
|
|
2129
2297
|
const subSecondNanos = nanoTimestamp % 1000000000;
|
|
2130
2298
|
nanoFraction = subSecondNanos.toString().padStart(9, "0");
|