@oneuptime/common 14.0.108 → 14.0.110
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/AuditLog.js +1 -1
- package/Models/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/Alert.js +2 -2
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +12 -12
- package/Models/DatabaseModels/FormSubmission.js +2 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +6 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +6 -0
- package/Models/DatabaseModels/GlobalConfig.js +139 -0
- package/Models/DatabaseModels/Incident.js +2 -2
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +17 -3
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +41 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +141 -8
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +8 -0
- package/Models/DatabaseModels/Project.d.ts +8 -0
- package/Models/DatabaseModels/Project.js +333 -2
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +6 -0
- package/Models/DatabaseModels/User.d.ts +6 -0
- package/Models/DatabaseModels/User.js +152 -0
- package/Models/DatabaseModels/UserOnCallLog.js +38 -10
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +13 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +21 -2
- package/Types/AI/AIChatTypes.d.ts +21 -2
- package/Types/AI/AIChatTypes.js +49 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +66 -0
- package/Types/Analytics/ProductEvent.d.ts +66 -0
- package/Types/Analytics/ProductEvent.js +471 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +3 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +3 -1
- package/Types/AuditLog/AuditLogCoverage.js +12 -3
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/DataObservability/DataTableLineage.d.mts +7 -0
- package/Types/DataObservability/DataTableLineage.d.ts +7 -0
- package/Types/DataObservability/DataTableLineage.js +15 -3
- package/Types/DataObservability/DataTableLineage.mjs +1 -0
- package/Types/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +42 -1
- package/Types/Date.d.ts +42 -1
- package/Types/Date.js +114 -5
- package/Types/DateLanguage.d.mts +9 -0
- package/Types/DateLanguage.d.ts +9 -0
- package/Types/DateLanguage.js +87 -2
- package/Types/DateLanguage.mjs +3 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +83 -0
- package/Types/Docs/GlossaryTerm.d.ts +83 -0
- package/Types/Docs/GlossaryTerm.js +128 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +58 -0
- package/Types/Exception/UnexplainedError.d.ts +58 -0
- package/Types/Exception/UnexplainedError.js +231 -0
- package/Types/Exception/UnexplainedError.mjs +12 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -0
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
- package/Types/Monitor/CriteriaFilterValues.js +22 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/WhoIsTold.d.mts +167 -0
- package/Types/Monitor/WhoIsTold.d.ts +167 -0
- package/Types/Monitor/WhoIsTold.js +583 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +665 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +53 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +194 -193
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Product/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.mjs +6 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +23 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +23 -0
- package/Types/Product/ProjectProductsAnswer.js +172 -0
- package/Types/Product/ProjectProductsAnswer.mjs +8 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +142 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +142 -0
- package/Types/ProductFeedback/ProductFeedback.js +525 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +83 -2
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
- package/Types/RollingTime/RollingTimeUtil.js +9 -0
- package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/TelemetryIngestSurface.js +6 -5
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +104 -33
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +396 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +23 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +139 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/Templates.js +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/API.js +10 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1901 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +5 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +8 -3
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +111 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +5 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
- package/Utils/StatusPage/ResourceExplorer.js +11 -1
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +51 -1
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -16,8 +16,10 @@ const NumericColumnValue_1 = require("../Database/NumericColumnValue");
|
|
|
16
16
|
* (Project.auditLogsRetentionInDays): a whole number of days from 7 to 180,
|
|
17
17
|
* and 7 until someone sets another. The recorder stamps each entry with it
|
|
18
18
|
* as it records it - the entry's retentionDate, which the AuditLog table's
|
|
19
|
-
* TTL deletes it on
|
|
20
|
-
* the entries it has not sent
|
|
19
|
+
* TTL deletes it on. A failing audit log export reads those stamps back to
|
|
20
|
+
* warn a day before the first of the entries it has not sent is deleted,
|
|
21
|
+
* and reckons with the retention as it is now only when it cannot read
|
|
22
|
+
* them: a retention changed since moves no stamp (#6563).
|
|
21
23
|
*
|
|
22
24
|
* The two used to work it out each their own way, and the server took any
|
|
23
25
|
* value: the settings form checked 7 to 180, but the API took -3, 0 or 3.
|
|
@@ -32,8 +34,9 @@ const NumericColumnValue_1 = require("../Database/NumericColumnValue");
|
|
|
32
34
|
* from 7 to 180 - -3, 0 and 3 as 7, 500 as 180;
|
|
33
35
|
* - getAuditLogRetentionDate: when an entry recorded at a moment is
|
|
34
36
|
* deleted, that many calendar days later by the server's clock
|
|
35
|
-
* (OneUptimeDate.addRemoveDays) - the retentionDate the recorder stamps
|
|
36
|
-
* and the moment a failing export reckons
|
|
37
|
+
* (OneUptimeDate.addRemoveDays) - the retentionDate the recorder stamps,
|
|
38
|
+
* and the moment a failing export reckons when it cannot read the
|
|
39
|
+
* stamps;
|
|
37
40
|
* - getAuditLogRetentionError: why a value cannot be saved, which
|
|
38
41
|
* ProjectService refuses a create or an update with. The settings form
|
|
39
42
|
* checks the same range in the browser.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import AuditLogAction from "./AuditLogAction.mjs";
|
|
2
|
+
import ObjectID from "../ObjectID.mjs";
|
|
3
|
+
import { SessionEndCause } from "../UserSession/SessionEndCause.mjs";
|
|
4
|
+
import { SessionSignIn } from "../UserSession/SessionSignIn.mjs";
|
|
5
|
+
export declare const AUDIT_LOG_SESSION_RESOURCE_TYPE: string;
|
|
6
|
+
export declare const AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE: string;
|
|
7
|
+
export declare const AUDIT_LOG_SESSION_UNKNOWN_DEVICE: string;
|
|
8
|
+
export type SessionAuditLogAction = AuditLogAction.SignIn | AuditLogAction.SignOut | AuditLogAction.SessionTimeout | AuditLogAction.SessionRevoked;
|
|
9
|
+
export declare const SESSION_AUDIT_LOG_ACTIONS: ReadonlyArray<SessionAuditLogAction>;
|
|
10
|
+
export declare const isSessionAuditLogAction: (action: unknown) => action is SessionAuditLogAction;
|
|
11
|
+
export declare const getSessionEndAuditLogAction: (cause: SessionEndCause) => SessionAuditLogAction;
|
|
12
|
+
export declare const SESSION_END_CAUSE_DESCRIPTIONS: Readonly<Record<SessionEndCause, string>>;
|
|
13
|
+
export declare enum AuditLogSessionField {
|
|
14
|
+
Reason = "reason",
|
|
15
|
+
SignInMethod = "signInMethod",
|
|
16
|
+
SsoProvider = "ssoProvider",
|
|
17
|
+
SecondFactor = "secondFactor",
|
|
18
|
+
Device = "device",
|
|
19
|
+
IpAddress = "ipAddress",
|
|
20
|
+
Location = "location",
|
|
21
|
+
SignedInAt = "signedInAt",
|
|
22
|
+
LastActiveAt = "lastActiveAt",
|
|
23
|
+
EndedAt = "endedAt"
|
|
24
|
+
}
|
|
25
|
+
export declare const AUDIT_LOG_SESSION_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
26
|
+
export declare const AUDIT_LOG_SESSION_FIELD_LABELS: Readonly<Record<AuditLogSessionField, string>>;
|
|
27
|
+
export declare const AUDIT_LOG_SESSION_TIME_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
28
|
+
export interface SessionAuditEvent {
|
|
29
|
+
action: SessionAuditLogAction;
|
|
30
|
+
userId: ObjectID;
|
|
31
|
+
sessionId: ObjectID;
|
|
32
|
+
signIn?: SessionSignIn | null | undefined;
|
|
33
|
+
device?: string | undefined;
|
|
34
|
+
ipAddress?: string | undefined;
|
|
35
|
+
location?: string | undefined;
|
|
36
|
+
signedInAt?: Date | undefined;
|
|
37
|
+
lastActiveAt?: Date | undefined;
|
|
38
|
+
endedAt?: Date | undefined;
|
|
39
|
+
endCause?: SessionEndCause | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const readSessionEntryFields: (changes: unknown) => Map<AuditLogSessionField, string>;
|
|
42
|
+
export declare const getSessionEntrySummary: (data: {
|
|
43
|
+
action: string | undefined;
|
|
44
|
+
changes: unknown;
|
|
45
|
+
}) => string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import AuditLogAction from "./AuditLogAction";
|
|
2
|
+
import ObjectID from "../ObjectID";
|
|
3
|
+
import { SessionEndCause } from "../UserSession/SessionEndCause";
|
|
4
|
+
import { SessionSignIn } from "../UserSession/SessionSignIn";
|
|
5
|
+
export declare const AUDIT_LOG_SESSION_RESOURCE_TYPE: string;
|
|
6
|
+
export declare const AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE: string;
|
|
7
|
+
export declare const AUDIT_LOG_SESSION_UNKNOWN_DEVICE: string;
|
|
8
|
+
export type SessionAuditLogAction = AuditLogAction.SignIn | AuditLogAction.SignOut | AuditLogAction.SessionTimeout | AuditLogAction.SessionRevoked;
|
|
9
|
+
export declare const SESSION_AUDIT_LOG_ACTIONS: ReadonlyArray<SessionAuditLogAction>;
|
|
10
|
+
export declare const isSessionAuditLogAction: (action: unknown) => action is SessionAuditLogAction;
|
|
11
|
+
export declare const getSessionEndAuditLogAction: (cause: SessionEndCause) => SessionAuditLogAction;
|
|
12
|
+
export declare const SESSION_END_CAUSE_DESCRIPTIONS: Readonly<Record<SessionEndCause, string>>;
|
|
13
|
+
export declare enum AuditLogSessionField {
|
|
14
|
+
Reason = "reason",
|
|
15
|
+
SignInMethod = "signInMethod",
|
|
16
|
+
SsoProvider = "ssoProvider",
|
|
17
|
+
SecondFactor = "secondFactor",
|
|
18
|
+
Device = "device",
|
|
19
|
+
IpAddress = "ipAddress",
|
|
20
|
+
Location = "location",
|
|
21
|
+
SignedInAt = "signedInAt",
|
|
22
|
+
LastActiveAt = "lastActiveAt",
|
|
23
|
+
EndedAt = "endedAt"
|
|
24
|
+
}
|
|
25
|
+
export declare const AUDIT_LOG_SESSION_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
26
|
+
export declare const AUDIT_LOG_SESSION_FIELD_LABELS: Readonly<Record<AuditLogSessionField, string>>;
|
|
27
|
+
export declare const AUDIT_LOG_SESSION_TIME_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
28
|
+
export interface SessionAuditEvent {
|
|
29
|
+
action: SessionAuditLogAction;
|
|
30
|
+
userId: ObjectID;
|
|
31
|
+
sessionId: ObjectID;
|
|
32
|
+
signIn?: SessionSignIn | null | undefined;
|
|
33
|
+
device?: string | undefined;
|
|
34
|
+
ipAddress?: string | undefined;
|
|
35
|
+
location?: string | undefined;
|
|
36
|
+
signedInAt?: Date | undefined;
|
|
37
|
+
lastActiveAt?: Date | undefined;
|
|
38
|
+
endedAt?: Date | undefined;
|
|
39
|
+
endCause?: SessionEndCause | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const readSessionEntryFields: (changes: unknown) => Map<AuditLogSessionField, string>;
|
|
42
|
+
export declare const getSessionEntrySummary: (data: {
|
|
43
|
+
action: string | undefined;
|
|
44
|
+
changes: unknown;
|
|
45
|
+
}) => string;
|
|
@@ -0,0 +1,210 @@
|
|
|
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.getSessionEntrySummary = exports.readSessionEntryFields = exports.AUDIT_LOG_SESSION_TIME_FIELDS = exports.AUDIT_LOG_SESSION_FIELD_LABELS = exports.AUDIT_LOG_SESSION_FIELDS = exports.AuditLogSessionField = exports.SESSION_END_CAUSE_DESCRIPTIONS = exports.getSessionEndAuditLogAction = exports.isSessionAuditLogAction = exports.SESSION_AUDIT_LOG_ACTIONS = exports.AUDIT_LOG_SESSION_UNKNOWN_DEVICE = exports.AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE = exports.AUDIT_LOG_SESSION_RESOURCE_TYPE = void 0;
|
|
7
|
+
const AuditLogAction_1 = __importDefault(require("./AuditLogAction"));
|
|
8
|
+
const SessionEndCause_1 = require("../UserSession/SessionEndCause");
|
|
9
|
+
const SessionLength_1 = require("../UserSession/SessionLength");
|
|
10
|
+
/*
|
|
11
|
+
* PEOPLE'S SESSIONS IN THE AUDIT LOG (issue #6762).
|
|
12
|
+
*
|
|
13
|
+
* The audit log records who changed what - and, as compliance reviews ask
|
|
14
|
+
* of it too, who signed in, how and from where, and how each session ended:
|
|
15
|
+
*
|
|
16
|
+
* - Sign In: a session started, by any way into OneUptime - a password or
|
|
17
|
+
* a sign-in link with the account's second factor, a passkey, Google,
|
|
18
|
+
* Microsoft, Vercel, or a SAML or OpenID Connect provider.
|
|
19
|
+
* - Sign Out: its person signed out.
|
|
20
|
+
* - Session Timeout: OneUptime ended it on time - the server's idle
|
|
21
|
+
* timeout or session length, or 30 days without use.
|
|
22
|
+
* - Session Revoked: OneUptime ended it because something changed - the
|
|
23
|
+
* password, a blocked account, two factor authentication reset or
|
|
24
|
+
* required by a server admin.
|
|
25
|
+
*
|
|
26
|
+
* WHERE: in every project the person is a member of (they accepted an
|
|
27
|
+
* invitation to one of its teams) that records audit logs. A sign-in is to
|
|
28
|
+
* OneUptime, and so to each of their projects at once. Recorded whether or
|
|
29
|
+
* not the project stores system events, like everything a person does: a
|
|
30
|
+
* session is theirs, whoever or whatever ended it.
|
|
31
|
+
*
|
|
32
|
+
* WHAT AN ENTRY SAYS:
|
|
33
|
+
*
|
|
34
|
+
* - its resource is the session itself: a User Session, by the session's
|
|
35
|
+
* id - so a session's sign-in and its end share an id - named by the
|
|
36
|
+
* device it signed in from ("Chrome 130 on macOS"), and rolling up to
|
|
37
|
+
* its person (User, by their id);
|
|
38
|
+
* - its actor is the person whose session it is, so filtering the audit
|
|
39
|
+
* log by their email shows every sign-in and session end of theirs;
|
|
40
|
+
* - its fields (`changes`) say how and from where it signed in, and why
|
|
41
|
+
* and when it ended (AuditLogSessionField).
|
|
42
|
+
*
|
|
43
|
+
* Nothing a client wrote reaches an entry, and nothing secret: the device is
|
|
44
|
+
* described only in words OneUptime spells out (UserAgentDevice), as the
|
|
45
|
+
* security emails describe it, and an entry never carries a token or the
|
|
46
|
+
* raw User-Agent. A project's own SSO provider is named only in that
|
|
47
|
+
* project's audit log (SessionSignIn.ssoProjectId).
|
|
48
|
+
*/
|
|
49
|
+
// The resource of every session entry: the session (UserSession's singular name).
|
|
50
|
+
exports.AUDIT_LOG_SESSION_RESOURCE_TYPE = "User Session";
|
|
51
|
+
// What every session entry rolls up to: the person whose session it is.
|
|
52
|
+
exports.AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE = "User";
|
|
53
|
+
// What a session entry is named when the device it signed in from is unknown.
|
|
54
|
+
exports.AUDIT_LOG_SESSION_UNKNOWN_DEVICE = "Unknown device";
|
|
55
|
+
exports.SESSION_AUDIT_LOG_ACTIONS = [
|
|
56
|
+
AuditLogAction_1.default.SignIn,
|
|
57
|
+
AuditLogAction_1.default.SignOut,
|
|
58
|
+
AuditLogAction_1.default.SessionTimeout,
|
|
59
|
+
AuditLogAction_1.default.SessionRevoked,
|
|
60
|
+
];
|
|
61
|
+
const isSessionAuditLogAction = (action) => {
|
|
62
|
+
return (typeof action === "string" &&
|
|
63
|
+
exports.SESSION_AUDIT_LOG_ACTIONS.includes(action));
|
|
64
|
+
};
|
|
65
|
+
exports.isSessionAuditLogAction = isSessionAuditLogAction;
|
|
66
|
+
// The action a session's end is recorded as.
|
|
67
|
+
const getSessionEndAuditLogAction = (cause) => {
|
|
68
|
+
switch (cause) {
|
|
69
|
+
case SessionEndCause_1.SessionEndCause.SignedOut:
|
|
70
|
+
return AuditLogAction_1.default.SignOut;
|
|
71
|
+
case SessionEndCause_1.SessionEndCause.IdleTimeout:
|
|
72
|
+
case SessionEndCause_1.SessionEndCause.LengthReached:
|
|
73
|
+
case SessionEndCause_1.SessionEndCause.Expired:
|
|
74
|
+
return AuditLogAction_1.default.SessionTimeout;
|
|
75
|
+
default:
|
|
76
|
+
return AuditLogAction_1.default.SessionRevoked;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
exports.getSessionEndAuditLogAction = getSessionEndAuditLogAction;
|
|
80
|
+
// What an entry says of why a session ended.
|
|
81
|
+
exports.SESSION_END_CAUSE_DESCRIPTIONS = {
|
|
82
|
+
[SessionEndCause_1.SessionEndCause.SignedOut]: "Signed out",
|
|
83
|
+
[SessionEndCause_1.SessionEndCause.IdleTimeout]: "Idle timeout reached",
|
|
84
|
+
[SessionEndCause_1.SessionEndCause.LengthReached]: "Session length reached",
|
|
85
|
+
[SessionEndCause_1.SessionEndCause.Expired]: `Not used for ${SessionLength_1.DEFAULT_SESSION_IDLE_DAYS} days`,
|
|
86
|
+
[SessionEndCause_1.SessionEndCause.PasswordChanged]: "Password changed",
|
|
87
|
+
[SessionEndCause_1.SessionEndCause.PasswordReset]: "Password reset",
|
|
88
|
+
[SessionEndCause_1.SessionEndCause.AccountBlocked]: "Account blocked by a server admin",
|
|
89
|
+
[SessionEndCause_1.SessionEndCause.TwoFactorRequired]: "Two-factor authentication required by a server admin",
|
|
90
|
+
[SessionEndCause_1.SessionEndCause.TwoFactorReset]: "Two-factor authentication reset by a server admin",
|
|
91
|
+
[SessionEndCause_1.SessionEndCause.Other]: "Session ended",
|
|
92
|
+
};
|
|
93
|
+
/*
|
|
94
|
+
* The fields of a session entry, as its `changes` carry them: each one a
|
|
95
|
+
* { field, newValue } with a text or an ISO 8601 time, in this order, and
|
|
96
|
+
* only when it is known.
|
|
97
|
+
*/
|
|
98
|
+
var AuditLogSessionField;
|
|
99
|
+
(function (AuditLogSessionField) {
|
|
100
|
+
// Why it ended: SESSION_END_CAUSE_DESCRIPTIONS. Not on a sign-in.
|
|
101
|
+
AuditLogSessionField["Reason"] = "reason";
|
|
102
|
+
AuditLogSessionField["SignInMethod"] = "signInMethod";
|
|
103
|
+
// The single sign-on provider's name.
|
|
104
|
+
AuditLogSessionField["SsoProvider"] = "ssoProvider";
|
|
105
|
+
AuditLogSessionField["SecondFactor"] = "secondFactor";
|
|
106
|
+
// The device it signed in from: "Chrome 130 on macOS".
|
|
107
|
+
AuditLogSessionField["Device"] = "device";
|
|
108
|
+
/*
|
|
109
|
+
* The address of the request the entry is about - the sign-in's, the
|
|
110
|
+
* sign-out's - or, for a session OneUptime ended, the last one that
|
|
111
|
+
* session was used from.
|
|
112
|
+
*/
|
|
113
|
+
AuditLogSessionField["IpAddress"] = "ipAddress";
|
|
114
|
+
// Where it signed in from, when the operator names the CDN headers that say it.
|
|
115
|
+
AuditLogSessionField["Location"] = "location";
|
|
116
|
+
// When it signed in. Not on a sign-in: the entry's own time says it.
|
|
117
|
+
AuditLogSessionField["SignedInAt"] = "signedInAt";
|
|
118
|
+
// When its person last used it, as OneUptime knew.
|
|
119
|
+
AuditLogSessionField["LastActiveAt"] = "lastActiveAt";
|
|
120
|
+
/*
|
|
121
|
+
* When it timed out: the moment its idle timeout, session length or
|
|
122
|
+
* refresh token ran out, which can be before the moment OneUptime
|
|
123
|
+
* noticed and recorded it.
|
|
124
|
+
*/
|
|
125
|
+
AuditLogSessionField["EndedAt"] = "endedAt";
|
|
126
|
+
})(AuditLogSessionField || (exports.AuditLogSessionField = AuditLogSessionField = {}));
|
|
127
|
+
exports.AUDIT_LOG_SESSION_FIELDS = [
|
|
128
|
+
AuditLogSessionField.Reason,
|
|
129
|
+
AuditLogSessionField.SignInMethod,
|
|
130
|
+
AuditLogSessionField.SsoProvider,
|
|
131
|
+
AuditLogSessionField.SecondFactor,
|
|
132
|
+
AuditLogSessionField.Device,
|
|
133
|
+
AuditLogSessionField.IpAddress,
|
|
134
|
+
AuditLogSessionField.Location,
|
|
135
|
+
AuditLogSessionField.SignedInAt,
|
|
136
|
+
AuditLogSessionField.LastActiveAt,
|
|
137
|
+
AuditLogSessionField.EndedAt,
|
|
138
|
+
];
|
|
139
|
+
exports.AUDIT_LOG_SESSION_FIELD_LABELS = {
|
|
140
|
+
[AuditLogSessionField.Reason]: "Reason",
|
|
141
|
+
[AuditLogSessionField.SignInMethod]: "Signed in with",
|
|
142
|
+
[AuditLogSessionField.SsoProvider]: "SSO provider",
|
|
143
|
+
[AuditLogSessionField.SecondFactor]: "Second factor",
|
|
144
|
+
[AuditLogSessionField.Device]: "Device",
|
|
145
|
+
[AuditLogSessionField.IpAddress]: "IP address",
|
|
146
|
+
[AuditLogSessionField.Location]: "Location",
|
|
147
|
+
[AuditLogSessionField.SignedInAt]: "Signed in at",
|
|
148
|
+
[AuditLogSessionField.LastActiveAt]: "Last active at",
|
|
149
|
+
[AuditLogSessionField.EndedAt]: "Timed out at",
|
|
150
|
+
};
|
|
151
|
+
// The fields whose values are times, which a reader shows in its own zone.
|
|
152
|
+
exports.AUDIT_LOG_SESSION_TIME_FIELDS = [
|
|
153
|
+
AuditLogSessionField.SignedInAt,
|
|
154
|
+
AuditLogSessionField.LastActiveAt,
|
|
155
|
+
AuditLogSessionField.EndedAt,
|
|
156
|
+
];
|
|
157
|
+
/*
|
|
158
|
+
* The text fields of a session entry, by field, as its `changes` hold them:
|
|
159
|
+
* a change of a field this file names, with a text value. Anything else an
|
|
160
|
+
* entry holds is left out.
|
|
161
|
+
*/
|
|
162
|
+
const readSessionEntryFields = (changes) => {
|
|
163
|
+
const fields = new Map();
|
|
164
|
+
if (!Array.isArray(changes)) {
|
|
165
|
+
return fields;
|
|
166
|
+
}
|
|
167
|
+
for (const change of changes) {
|
|
168
|
+
if (!change || typeof change !== "object" || Array.isArray(change)) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const field = change["field"];
|
|
172
|
+
const value = change["newValue"];
|
|
173
|
+
if (typeof field !== "string" ||
|
|
174
|
+
!exports.AUDIT_LOG_SESSION_FIELDS.includes(field) ||
|
|
175
|
+
typeof value !== "string" ||
|
|
176
|
+
value.trim().length === 0) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
fields.set(field, value);
|
|
180
|
+
}
|
|
181
|
+
return fields;
|
|
182
|
+
};
|
|
183
|
+
exports.readSessionEntryFields = readSessionEntryFields;
|
|
184
|
+
/*
|
|
185
|
+
* A session entry in a few words, for the audit log's table: how it signed
|
|
186
|
+
* in ("Password + Authenticator app", "SAML single sign-on · Okta"), or why
|
|
187
|
+
* it ended ("Idle timeout reached").
|
|
188
|
+
*/
|
|
189
|
+
const getSessionEntrySummary = (data) => {
|
|
190
|
+
const fields = (0, exports.readSessionEntryFields)(data.changes);
|
|
191
|
+
if (data.action === AuditLogAction_1.default.SignIn) {
|
|
192
|
+
const method = fields.get(AuditLogSessionField.SignInMethod);
|
|
193
|
+
if (!method) {
|
|
194
|
+
return "Signed in";
|
|
195
|
+
}
|
|
196
|
+
const secondFactor = fields.get(AuditLogSessionField.SecondFactor);
|
|
197
|
+
const provider = fields.get(AuditLogSessionField.SsoProvider);
|
|
198
|
+
let summary = method;
|
|
199
|
+
if (secondFactor) {
|
|
200
|
+
summary = `${summary} + ${secondFactor}`;
|
|
201
|
+
}
|
|
202
|
+
if (provider) {
|
|
203
|
+
summary = `${summary} · ${provider}`;
|
|
204
|
+
}
|
|
205
|
+
return summary;
|
|
206
|
+
}
|
|
207
|
+
return (fields.get(AuditLogSessionField.Reason) ||
|
|
208
|
+
exports.SESSION_END_CAUSE_DESCRIPTIONS[SessionEndCause_1.SessionEndCause.Other]);
|
|
209
|
+
};
|
|
210
|
+
exports.getSessionEntrySummary = getSessionEntrySummary;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import commonJsModule from "./AuditLogSessionEvent.js";
|
|
2
|
+
export const AUDIT_LOG_SESSION_FIELDS = commonJsModule.AUDIT_LOG_SESSION_FIELDS;
|
|
3
|
+
export const AUDIT_LOG_SESSION_FIELD_LABELS = commonJsModule.AUDIT_LOG_SESSION_FIELD_LABELS;
|
|
4
|
+
export const AUDIT_LOG_SESSION_RESOURCE_TYPE = commonJsModule.AUDIT_LOG_SESSION_RESOURCE_TYPE;
|
|
5
|
+
export const AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE = commonJsModule.AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE;
|
|
6
|
+
export const AUDIT_LOG_SESSION_TIME_FIELDS = commonJsModule.AUDIT_LOG_SESSION_TIME_FIELDS;
|
|
7
|
+
export const AUDIT_LOG_SESSION_UNKNOWN_DEVICE = commonJsModule.AUDIT_LOG_SESSION_UNKNOWN_DEVICE;
|
|
8
|
+
export const AuditLogSessionField = commonJsModule.AuditLogSessionField;
|
|
9
|
+
export const SESSION_AUDIT_LOG_ACTIONS = commonJsModule.SESSION_AUDIT_LOG_ACTIONS;
|
|
10
|
+
export const SESSION_END_CAUSE_DESCRIPTIONS = commonJsModule.SESSION_END_CAUSE_DESCRIPTIONS;
|
|
11
|
+
export const getSessionEndAuditLogAction = commonJsModule.getSessionEndAuditLogAction;
|
|
12
|
+
export const getSessionEntrySummary = commonJsModule.getSessionEntrySummary;
|
|
13
|
+
export const isSessionAuditLogAction = commonJsModule.isSessionAuditLogAction;
|
|
14
|
+
export const readSessionEntryFields = commonJsModule.readSessionEntryFields;
|
|
@@ -36,6 +36,10 @@ export declare enum RemediationRoundTryAgainRefusal {
|
|
|
36
36
|
NoProvider = "NoProvider",
|
|
37
37
|
CreditsUsedUp = "CreditsUsedUp",
|
|
38
38
|
LimitReached = "LimitReached",
|
|
39
|
+
IncidentTokenLimitPaused = "IncidentTokenLimitPaused",
|
|
40
|
+
IncidentTokenLimitUsedUp = "IncidentTokenLimitUsedUp",
|
|
41
|
+
AlertTokenLimitPaused = "AlertTokenLimitPaused",
|
|
42
|
+
AlertTokenLimitUsedUp = "AlertTokenLimitUsedUp",
|
|
39
43
|
NotStarted = "NotStarted"
|
|
40
44
|
}
|
|
41
45
|
export declare const REMEDIATION_ROUND_TRY_AGAIN_REFUSALS: Readonly<Record<RemediationRoundTryAgainRefusal, string>>;
|
|
@@ -36,6 +36,10 @@ export declare enum RemediationRoundTryAgainRefusal {
|
|
|
36
36
|
NoProvider = "NoProvider",
|
|
37
37
|
CreditsUsedUp = "CreditsUsedUp",
|
|
38
38
|
LimitReached = "LimitReached",
|
|
39
|
+
IncidentTokenLimitPaused = "IncidentTokenLimitPaused",
|
|
40
|
+
IncidentTokenLimitUsedUp = "IncidentTokenLimitUsedUp",
|
|
41
|
+
AlertTokenLimitPaused = "AlertTokenLimitPaused",
|
|
42
|
+
AlertTokenLimitUsedUp = "AlertTokenLimitUsedUp",
|
|
39
43
|
NotStarted = "NotStarted"
|
|
40
44
|
}
|
|
41
45
|
export declare const REMEDIATION_ROUND_TRY_AGAIN_REFUSALS: Readonly<Record<RemediationRoundTryAgainRefusal, string>>;
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
*
|
|
31
31
|
* Shared by the server (the routes, the runners' tool) and the Dashboard
|
|
32
32
|
* (the step, and the refusals in the reader's language), so both read the
|
|
33
|
-
* same shapes and say the same sentences. Dependency-free
|
|
33
|
+
* same shapes and say the same sentences. Dependency-free, but for the
|
|
34
|
+
* words of an incident's or alert's daily AI token limit, which every
|
|
35
|
+
* message about it shares (Types/AI/RecordAiTokenLimit, itself
|
|
36
|
+
* dependency-free).
|
|
34
37
|
*/
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.MAX_ROUND_CHECK_ERROR_LENGTH = exports.MAX_ROUND_CHECK_WHY_LENGTH = exports.MAX_ROUND_CHECKS = exports.REMEDIATION_ROUND_TRY_AGAIN_NOT_ALLOWED = exports.REMEDIATION_ROUND_TRY_AGAIN_REFUSALS = exports.RemediationRoundTryAgainRefusal = exports.MAX_ROUND_COMMAND_LENGTH = exports.MAX_RULED_OUT_FIX_COMMANDS = exports.MAX_RULED_OUT_WHY_NOT_LENGTH = exports.MAX_RULED_OUT_FIX_LENGTH = exports.MAX_RULED_OUT_FIXES = exports.MAX_EXPLANATION_REASON_LENGTH = exports.EXPLAIN_NO_FIX_TOOL_NAME = exports.REMEDIATION_ROUND_TRY_AGAIN_PATH = exports.REMEDIATION_ROUND_PATH = void 0;
|
|
@@ -40,6 +43,7 @@ exports.hasRemediationRoundAppliedSteps = hasRemediationRoundAppliedSteps;
|
|
|
40
43
|
exports.getRemediationRoundTryAgainRefusal = getRemediationRoundTryAgainRefusal;
|
|
41
44
|
exports.parseRemediationRoundChecks = parseRemediationRoundChecks;
|
|
42
45
|
exports.parseRemediationRoundAppliedSteps = parseRemediationRoundAppliedSteps;
|
|
46
|
+
const RecordAiTokenLimit_1 = require("../AI/RecordAiTokenLimit");
|
|
43
47
|
exports.REMEDIATION_ROUND_PATH = "/auto-remediation/round";
|
|
44
48
|
exports.REMEDIATION_ROUND_TRY_AGAIN_PATH = "/auto-remediation/round-try-again";
|
|
45
49
|
/*
|
|
@@ -152,7 +156,16 @@ var RemediationRoundTryAgainRefusal;
|
|
|
152
156
|
RemediationRoundTryAgainRefusal["AiOff"] = "AiOff";
|
|
153
157
|
RemediationRoundTryAgainRefusal["NoProvider"] = "NoProvider";
|
|
154
158
|
RemediationRoundTryAgainRefusal["CreditsUsedUp"] = "CreditsUsedUp";
|
|
159
|
+
// The project's own daily AI limits (Project Settings → AI → AI Features).
|
|
155
160
|
RemediationRoundTryAgainRefusal["LimitReached"] = "LimitReached";
|
|
161
|
+
/*
|
|
162
|
+
* The incident's (alert's) own daily AI token limit (#7157): set to 0,
|
|
163
|
+
* which pauses the work until it is raised, or used up until midnight UTC.
|
|
164
|
+
*/
|
|
165
|
+
RemediationRoundTryAgainRefusal["IncidentTokenLimitPaused"] = "IncidentTokenLimitPaused";
|
|
166
|
+
RemediationRoundTryAgainRefusal["IncidentTokenLimitUsedUp"] = "IncidentTokenLimitUsedUp";
|
|
167
|
+
RemediationRoundTryAgainRefusal["AlertTokenLimitPaused"] = "AlertTokenLimitPaused";
|
|
168
|
+
RemediationRoundTryAgainRefusal["AlertTokenLimitUsedUp"] = "AlertTokenLimitUsedUp";
|
|
156
169
|
// The queue did not take it, for no reason it could name.
|
|
157
170
|
RemediationRoundTryAgainRefusal["NotStarted"] = "NotStarted";
|
|
158
171
|
})(RemediationRoundTryAgainRefusal || (exports.RemediationRoundTryAgainRefusal = RemediationRoundTryAgainRefusal = {}));
|
|
@@ -165,9 +178,13 @@ exports.REMEDIATION_ROUND_TRY_AGAIN_REFUSALS = {
|
|
|
165
178
|
[RemediationRoundTryAgainRefusal.AlertResolved]: "This alert is resolved, so OneUptime AI does not try to fix it.",
|
|
166
179
|
[RemediationRoundTryAgainRefusal.AlreadyStarted]: "Someone has just started this fix again.",
|
|
167
180
|
[RemediationRoundTryAgainRefusal.AiOff]: "OneUptime AI is switched off for this project. A project owner or someone with Manage Billing can turn it on in Project Settings > AI > AI Features.",
|
|
168
|
-
[RemediationRoundTryAgainRefusal.NoProvider]: "This project has no
|
|
181
|
+
[RemediationRoundTryAgainRefusal.NoProvider]: "This project has no LLM provider to work out a fix with. Add one in Project Settings > AI > LLM Providers, then try again.",
|
|
169
182
|
[RemediationRoundTryAgainRefusal.CreditsUsedUp]: "This project's AI credits are used up. A project owner or someone with Manage Billing can add AI credits in Project Settings > AI > AI Credits.",
|
|
170
183
|
[RemediationRoundTryAgainRefusal.LimitReached]: "The project reached its daily AI limit. OneUptime AI starts again at midnight UTC.",
|
|
184
|
+
[RemediationRoundTryAgainRefusal.IncidentTokenLimitPaused]: (0, RecordAiTokenLimit_1.getRecordAiTokenLimitMessage)("incident", { limitInTokens: 0 }),
|
|
185
|
+
[RemediationRoundTryAgainRefusal.IncidentTokenLimitUsedUp]: (0, RecordAiTokenLimit_1.getRecordAiTokenLimitMessage)("incident"),
|
|
186
|
+
[RemediationRoundTryAgainRefusal.AlertTokenLimitPaused]: (0, RecordAiTokenLimit_1.getRecordAiTokenLimitMessage)("alert", { limitInTokens: 0 }),
|
|
187
|
+
[RemediationRoundTryAgainRefusal.AlertTokenLimitUsedUp]: (0, RecordAiTokenLimit_1.getRecordAiTokenLimitMessage)("alert"),
|
|
171
188
|
[RemediationRoundTryAgainRefusal.NotStarted]: "The fix could not start again. Try again in a few minutes.",
|
|
172
189
|
};
|
|
173
190
|
function getRemediationRoundTryAgainRefusal(refusal) {
|
|
@@ -13,6 +13,7 @@ export interface ParsedRoundName {
|
|
|
13
13
|
name: string;
|
|
14
14
|
round: number;
|
|
15
15
|
}
|
|
16
|
+
export declare function parseClusterRoundName(name: unknown): ParsedRoundName | null;
|
|
16
17
|
export declare function parseResourceRoundName(name: unknown, resourceType: AiResourceType | string | null | undefined): ParsedRoundName | null;
|
|
17
18
|
export declare const REMEDIATION_ROUND_SENTENCES: {
|
|
18
19
|
cluster: string;
|
|
@@ -13,6 +13,7 @@ export interface ParsedRoundName {
|
|
|
13
13
|
name: string;
|
|
14
14
|
round: number;
|
|
15
15
|
}
|
|
16
|
+
export declare function parseClusterRoundName(name: unknown): ParsedRoundName | null;
|
|
16
17
|
export declare function parseResourceRoundName(name: unknown, resourceType: AiResourceType | string | null | undefined): ParsedRoundName | null;
|
|
17
18
|
export declare const REMEDIATION_ROUND_SENTENCES: {
|
|
18
19
|
cluster: string;
|
|
@@ -9,6 +9,7 @@ exports.getClusterRoundNameSnapshot = getClusterRoundNameSnapshot;
|
|
|
9
9
|
exports.parseClusterRoundNameSnapshot = parseClusterRoundNameSnapshot;
|
|
10
10
|
exports.getResourceRoundNameSnapshot = getResourceRoundNameSnapshot;
|
|
11
11
|
exports.parseResourceRoundNumber = parseResourceRoundNumber;
|
|
12
|
+
exports.parseClusterRoundName = parseClusterRoundName;
|
|
12
13
|
exports.parseResourceRoundName = parseResourceRoundName;
|
|
13
14
|
exports.describeRemediationRoundName = describeRemediationRoundName;
|
|
14
15
|
const AiResourceType_1 = __importDefault(require("../ResourceAiAgent/AiResourceType"));
|
|
@@ -107,6 +108,10 @@ function toRound(text) {
|
|
|
107
108
|
const round = text ? parseInt(text, 10) : 1;
|
|
108
109
|
return Number.isFinite(round) && round > 1 ? round : 1;
|
|
109
110
|
}
|
|
111
|
+
/*
|
|
112
|
+
* A cluster round's name read back: the cluster's name and which round,
|
|
113
|
+
* or null when the name is not a cluster round's.
|
|
114
|
+
*/
|
|
110
115
|
function parseClusterRoundName(name) {
|
|
111
116
|
if (typeof name !== "string") {
|
|
112
117
|
return null;
|
|
@@ -6,6 +6,7 @@ export const describeRemediationRoundName = commonJsModule.describeRemediationRo
|
|
|
6
6
|
export const getClusterRoundNameSnapshot = commonJsModule.getClusterRoundNameSnapshot;
|
|
7
7
|
export const getRemediationRoundResourceNoun = commonJsModule.getRemediationRoundResourceNoun;
|
|
8
8
|
export const getResourceRoundNameSnapshot = commonJsModule.getResourceRoundNameSnapshot;
|
|
9
|
+
export const parseClusterRoundName = commonJsModule.parseClusterRoundName;
|
|
9
10
|
export const parseClusterRoundNameSnapshot = commonJsModule.parseClusterRoundNameSnapshot;
|
|
10
11
|
export const parseResourceRoundName = commonJsModule.parseResourceRoundName;
|
|
11
12
|
export const parseResourceRoundNumber = commonJsModule.parseResourceRoundNumber;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum CloudAppTelemetrySignal {
|
|
2
|
+
Traces = "traces",
|
|
3
|
+
Logs = "logs",
|
|
4
|
+
Metrics = "metrics",
|
|
5
|
+
Profiles = "profiles"
|
|
6
|
+
}
|
|
7
|
+
export type CloudAppSignalColumn = "tracesLastReceivedAt" | "logsLastReceivedAt" | "metricsLastReceivedAt";
|
|
8
|
+
export declare const CLOUD_APP_SIGNAL_COLUMNS: Readonly<Partial<Record<CloudAppTelemetrySignal, CloudAppSignalColumn>>>;
|
|
9
|
+
export declare function getCloudAppSignalColumn(signal: CloudAppTelemetrySignal | null | undefined): CloudAppSignalColumn | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum CloudAppTelemetrySignal {
|
|
2
|
+
Traces = "traces",
|
|
3
|
+
Logs = "logs",
|
|
4
|
+
Metrics = "metrics",
|
|
5
|
+
Profiles = "profiles"
|
|
6
|
+
}
|
|
7
|
+
export type CloudAppSignalColumn = "tracesLastReceivedAt" | "logsLastReceivedAt" | "metricsLastReceivedAt";
|
|
8
|
+
export declare const CLOUD_APP_SIGNAL_COLUMNS: Readonly<Partial<Record<CloudAppTelemetrySignal, CloudAppSignalColumn>>>;
|
|
9
|
+
export declare function getCloudAppSignalColumn(signal: CloudAppTelemetrySignal | null | undefined): CloudAppSignalColumn | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THE KINDS OF TELEMETRY AN APP PLATFORMS APP SENDS.
|
|
4
|
+
*
|
|
5
|
+
* An App Platforms app (CloudApp) is made from whatever telemetry its
|
|
6
|
+
* instances send - traces, logs, metrics or profiles - and its page draws
|
|
7
|
+
* different numbers from each: requests, error rate and latency from its
|
|
8
|
+
* traces, its instances' CPU and memory from their metrics. So the ingest of
|
|
9
|
+
* each kind marks when it last received that kind for the app, one column
|
|
10
|
+
* each (CLOUD_APP_SIGNAL_COLUMNS, named as a RUM application's are:
|
|
11
|
+
* RumTelemetrySignal), and the page can say "No traces received" where it
|
|
12
|
+
* would otherwise show a zero it never measured (issue #6770: an App Service
|
|
13
|
+
* app that sent only metrics read "Running", "0 requests", "0 instances",
|
|
14
|
+
* with nothing to say why).
|
|
15
|
+
*
|
|
16
|
+
* Shared by the ingest (OtelIngestBaseService, CloudAppService) and the
|
|
17
|
+
* dashboard (CloudAppTelemetrySetup), so the two name the kinds alike.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.CLOUD_APP_SIGNAL_COLUMNS = exports.CloudAppTelemetrySignal = void 0;
|
|
21
|
+
exports.getCloudAppSignalColumn = getCloudAppSignalColumn;
|
|
22
|
+
var CloudAppTelemetrySignal;
|
|
23
|
+
(function (CloudAppTelemetrySignal) {
|
|
24
|
+
CloudAppTelemetrySignal["Traces"] = "traces";
|
|
25
|
+
CloudAppTelemetrySignal["Logs"] = "logs";
|
|
26
|
+
CloudAppTelemetrySignal["Metrics"] = "metrics";
|
|
27
|
+
// Profiles keep the app seen, and have no column of their own on it.
|
|
28
|
+
CloudAppTelemetrySignal["Profiles"] = "profiles";
|
|
29
|
+
})(CloudAppTelemetrySignal || (exports.CloudAppTelemetrySignal = CloudAppTelemetrySignal = {}));
|
|
30
|
+
// The CloudApp column each kind is marked on. Profiles mark none.
|
|
31
|
+
exports.CLOUD_APP_SIGNAL_COLUMNS = {
|
|
32
|
+
[CloudAppTelemetrySignal.Traces]: "tracesLastReceivedAt",
|
|
33
|
+
[CloudAppTelemetrySignal.Logs]: "logsLastReceivedAt",
|
|
34
|
+
[CloudAppTelemetrySignal.Metrics]: "metricsLastReceivedAt",
|
|
35
|
+
};
|
|
36
|
+
function getCloudAppSignalColumn(signal) {
|
|
37
|
+
if (!signal) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return exports.CLOUD_APP_SIGNAL_COLUMNS[signal] || null;
|
|
41
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./CloudAppTelemetrySignal.js";
|
|
2
|
+
export const CLOUD_APP_SIGNAL_COLUMNS = commonJsModule.CLOUD_APP_SIGNAL_COLUMNS;
|
|
3
|
+
export const CloudAppTelemetrySignal = commonJsModule.CloudAppTelemetrySignal;
|
|
4
|
+
export const getCloudAppSignalColumn = commonJsModule.getCloudAppSignalColumn;
|
|
@@ -193,8 +193,14 @@ exports.MANAGED_CLOUD_PLATFORMS = [
|
|
|
193
193
|
productName: "Azure App Service",
|
|
194
194
|
description: (0, Translator_1.translationKey)("Web apps on Azure App Service."),
|
|
195
195
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
196
|
+
/*
|
|
197
|
+
* The Collector's and the Go SDK's `azureappservice` detectors put
|
|
198
|
+
* WEBSITE_INSTANCE_ID in azure.app_service.instance.id; the Node.js
|
|
199
|
+
* and .NET Azure detectors put it in service.instance.id. Either
|
|
200
|
+
* names the same instance.
|
|
201
|
+
*/
|
|
196
202
|
detection: "detector",
|
|
197
|
-
instanceAttribute: "
|
|
203
|
+
instanceAttribute: "azure.app_service.instance.id",
|
|
198
204
|
// The App Service detector names the site and its deployment slot.
|
|
199
205
|
appAttributes: [SERVICE_NAME_ATTRIBUTE],
|
|
200
206
|
appGroupAttributes: DEPLOYMENT_ENVIRONMENT_ATTRIBUTES,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CloudProvider } from "./CloudPlatform.mjs";
|
|
2
|
+
import { Translator } from "../Translator.mjs";
|
|
2
3
|
export declare enum CloudServiceModel {
|
|
3
4
|
IaaS = "iaas",
|
|
4
5
|
PaaS = "paas"
|
|
@@ -70,6 +71,7 @@ export interface CloudNamedOnlyResourceType {
|
|
|
70
71
|
export declare const NAMED_ONLY_RESOURCE_TYPES: ReadonlyArray<CloudNamedOnlyResourceType>;
|
|
71
72
|
export declare function getReadableCloudResourceType(type: string | null | undefined): string;
|
|
72
73
|
export declare function getCloudResourceTypeDisplayName(provider: string | null | undefined, type: string | null | undefined): string;
|
|
74
|
+
export declare function getCloudResourceTypeText(provider: string | null | undefined, type: string | null | undefined, translator: Pick<Translator, "translateText">): string;
|
|
73
75
|
export declare function getCanonicalCloudResourceType(provider: string, type: string): string;
|
|
74
76
|
export declare function getAwsCloudWatchRulesForNamespace(namespace: string): ReadonlyArray<AwsCloudWatchResourceRule>;
|
|
75
77
|
export declare const AWS_CLOUDWATCH_DISCOVERY_NAMESPACES: ReadonlyArray<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CloudProvider } from "./CloudPlatform";
|
|
2
|
+
import { Translator } from "../Translator";
|
|
2
3
|
export declare enum CloudServiceModel {
|
|
3
4
|
IaaS = "iaas",
|
|
4
5
|
PaaS = "paas"
|
|
@@ -70,6 +71,7 @@ export interface CloudNamedOnlyResourceType {
|
|
|
70
71
|
export declare const NAMED_ONLY_RESOURCE_TYPES: ReadonlyArray<CloudNamedOnlyResourceType>;
|
|
71
72
|
export declare function getReadableCloudResourceType(type: string | null | undefined): string;
|
|
72
73
|
export declare function getCloudResourceTypeDisplayName(provider: string | null | undefined, type: string | null | undefined): string;
|
|
74
|
+
export declare function getCloudResourceTypeText(provider: string | null | undefined, type: string | null | undefined, translator: Pick<Translator, "translateText">): string;
|
|
73
75
|
export declare function getCanonicalCloudResourceType(provider: string, type: string): string;
|
|
74
76
|
export declare function getAwsCloudWatchRulesForNamespace(namespace: string): ReadonlyArray<AwsCloudWatchResourceRule>;
|
|
75
77
|
export declare const AWS_CLOUDWATCH_DISCOVERY_NAMESPACES: ReadonlyArray<string>;
|
|
@@ -7,6 +7,7 @@ exports.isInventoryOnlyCloudResourceType = isInventoryOnlyCloudResourceType;
|
|
|
7
7
|
exports.getCloudResourceTypeLabel = getCloudResourceTypeLabel;
|
|
8
8
|
exports.getReadableCloudResourceType = getReadableCloudResourceType;
|
|
9
9
|
exports.getCloudResourceTypeDisplayName = getCloudResourceTypeDisplayName;
|
|
10
|
+
exports.getCloudResourceTypeText = getCloudResourceTypeText;
|
|
10
11
|
exports.getCanonicalCloudResourceType = getCanonicalCloudResourceType;
|
|
11
12
|
exports.getAwsCloudWatchRulesForNamespace = getAwsCloudWatchRulesForNamespace;
|
|
12
13
|
exports.getGcpMonitoredResourceRule = getGcpMonitoredResourceRule;
|
|
@@ -1405,9 +1406,11 @@ function getReadableCloudResourceType(type) {
|
|
|
1405
1406
|
return trimmed;
|
|
1406
1407
|
}
|
|
1407
1408
|
/*
|
|
1408
|
-
* What a page calls a resource of this type: the catalog's
|
|
1409
|
-
* only type's (Subnet, Security Group), else the type in
|
|
1410
|
-
* (getReadableCloudResourceType).
|
|
1409
|
+
* What a page calls a resource of this type, in English: the catalog's
|
|
1410
|
+
* label, a named only type's (Subnet, Security Group), else the type in
|
|
1411
|
+
* words (getReadableCloudResourceType). A list of resources, which never
|
|
1412
|
+
* holds a named only type, draws it as it comes; where one can be named, a
|
|
1413
|
+
* page draws getCloudResourceTypeText. For a page only: what is stored - a
|
|
1411
1414
|
* resource's name, a rule, the AI's facts - keeps getCloudResourceTypeLabel,
|
|
1412
1415
|
* whose fallback is the type as the cloud spells it.
|
|
1413
1416
|
*/
|
|
@@ -1424,6 +1427,33 @@ function getCloudResourceTypeDisplayName(provider, type) {
|
|
|
1424
1427
|
}
|
|
1425
1428
|
return getReadableCloudResourceType(type);
|
|
1426
1429
|
}
|
|
1430
|
+
// The words the catalog lists its types under: the clouds' product names.
|
|
1431
|
+
const LISTED_TYPE_LABELS = new Set(exports.CLOUD_RESOURCE_TYPES.map((descriptor) => {
|
|
1432
|
+
return descriptor.label;
|
|
1433
|
+
}));
|
|
1434
|
+
/*
|
|
1435
|
+
* A resource type's name as a page draws it, by one rule on every page
|
|
1436
|
+
* (#7659). The catalog's labels are the clouds' product names - "Virtual
|
|
1437
|
+
* Machine", "EC2 Instance", "Cloud Run Service" - drawn as written in every
|
|
1438
|
+
* language: as the docs' tables list them, as a resource's name carries
|
|
1439
|
+
* them ("web-01 (Virtual Machine)"), and as the lists, the Type filters and
|
|
1440
|
+
* their chips, the topology and a resource's own page draw them. So is a
|
|
1441
|
+
* type in words ("Transit Gateway (EC2)"). Only a named only type's label
|
|
1442
|
+
* is a common noun, drawn in the reader's language ("Subred") - unless a
|
|
1443
|
+
* listed type is called the same ("Instance Group", "Network Interface",
|
|
1444
|
+
* "KMS Key"): those words are a product's name, and one resource reads the
|
|
1445
|
+
* same whether OneUptime holds it or only a link to it.
|
|
1446
|
+
*/
|
|
1447
|
+
function getCloudResourceTypeText(provider, type, translator) {
|
|
1448
|
+
const name = getCloudResourceTypeDisplayName(provider, type);
|
|
1449
|
+
if (!provider ||
|
|
1450
|
+
!type ||
|
|
1451
|
+
LISTED_TYPE_LABELS.has(name) ||
|
|
1452
|
+
!NAMED_ONLY_LABELS.has(typeLookupKey(provider, type))) {
|
|
1453
|
+
return name;
|
|
1454
|
+
}
|
|
1455
|
+
return translator.translateText(name) || name;
|
|
1456
|
+
}
|
|
1427
1457
|
/*
|
|
1428
1458
|
* The type spelled the way the catalog spells it - Azure Monitor's
|
|
1429
1459
|
* `Microsoft.ServiceBus/Namespaces` becomes `Microsoft.ServiceBus/namespaces`
|