@oneuptime/common 14.0.107 → 14.0.109
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/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +9 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- 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/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- 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 +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- 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/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -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 +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -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/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -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 +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -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 +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- 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/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -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/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -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 +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -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 +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -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/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/HashedString.js +9 -2
- 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 +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -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/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- 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/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- 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/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -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/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/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -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/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 +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -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 +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -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 +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- 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/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- 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.js +64 -31
- 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 +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -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/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/API.js +10 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- 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/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 +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -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/MonitorRootCauseWording.js +28 -24
- 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/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -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/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/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/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- 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 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- 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 +49 -0
- 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/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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAmazonSesAuthenticationType = isAmazonSesAuthenticationType;
|
|
4
|
+
exports.toAmazonSesAuthenticationType = toAmazonSesAuthenticationType;
|
|
5
|
+
/**
|
|
6
|
+
* How OneUptime signs in to Amazon SES.
|
|
7
|
+
*
|
|
8
|
+
* - AccessKey: an IAM user's access key - an Access Key ID and a Secret
|
|
9
|
+
* Access Key, stored encrypted. What every config signed in with before
|
|
10
|
+
* there was a choice, and still the only way for a project's config.
|
|
11
|
+
* - ServerIamRole: the IAM role AWS gives the server itself - IAM roles for
|
|
12
|
+
* service accounts or EKS Pod Identity on Amazon EKS, a task role on
|
|
13
|
+
* Amazon ECS, an instance profile on Amazon EC2 - found the way every AWS
|
|
14
|
+
* SDK finds it (Common/Server/Utils/Aws/AwsDefaultCredentialChain). No key
|
|
15
|
+
* is stored, and every credential is short-lived (#7000). Only the
|
|
16
|
+
* server's own email settings (Admin Dashboard > Settings > Emails) may
|
|
17
|
+
* sign in this way: the role is the server's, not a project's.
|
|
18
|
+
*
|
|
19
|
+
* The values are what the API stores.
|
|
20
|
+
*/
|
|
21
|
+
var AmazonSesAuthenticationType;
|
|
22
|
+
(function (AmazonSesAuthenticationType) {
|
|
23
|
+
AmazonSesAuthenticationType["AccessKey"] = "Access Key";
|
|
24
|
+
AmazonSesAuthenticationType["ServerIamRole"] = "Server IAM Role";
|
|
25
|
+
})(AmazonSesAuthenticationType || (AmazonSesAuthenticationType = {}));
|
|
26
|
+
exports.default = AmazonSesAuthenticationType;
|
|
27
|
+
function isAmazonSesAuthenticationType(value) {
|
|
28
|
+
return (typeof value === "string" &&
|
|
29
|
+
Object.values(AmazonSesAuthenticationType).includes(value));
|
|
30
|
+
}
|
|
31
|
+
/*
|
|
32
|
+
* A stored or submitted sign-in as it is read: one of the two, or an
|
|
33
|
+
* access key for anything else (an empty value included) - what every
|
|
34
|
+
* config written before there was a choice signs in with.
|
|
35
|
+
*/
|
|
36
|
+
function toAmazonSesAuthenticationType(value) {
|
|
37
|
+
return isAmazonSesAuthenticationType(value)
|
|
38
|
+
? value
|
|
39
|
+
: AmazonSesAuthenticationType.AccessKey;
|
|
40
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./AmazonSesAuthenticationType.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const isAmazonSesAuthenticationType = commonJsModule.isAmazonSesAuthenticationType;
|
|
4
|
+
export const toAmazonSesAuthenticationType = commonJsModule.toAmazonSesAuthenticationType;
|
|
@@ -3,6 +3,7 @@ import URL from "../API/URL.mjs";
|
|
|
3
3
|
import Email from "../Email.mjs";
|
|
4
4
|
import ObjectID from "../ObjectID.mjs";
|
|
5
5
|
import Port from "../Port.mjs";
|
|
6
|
+
import AmazonSesAuthenticationType from "./AmazonSesAuthenticationType.mjs";
|
|
6
7
|
import MailgunRegion from "./MailgunRegion.mjs";
|
|
7
8
|
import MailTransportType from "./MailTransportType.mjs";
|
|
8
9
|
import OAuthProviderType from "./OAuthProviderType.mjs";
|
|
@@ -24,6 +25,7 @@ export default interface EmailServer {
|
|
|
24
25
|
scope?: string | undefined;
|
|
25
26
|
oauthProviderType?: OAuthProviderType | undefined;
|
|
26
27
|
apiKey?: string | undefined;
|
|
28
|
+
awsAuthenticationType?: AmazonSesAuthenticationType | undefined;
|
|
27
29
|
awsAccessKeyId?: string | undefined;
|
|
28
30
|
awsSecretAccessKey?: string | undefined;
|
|
29
31
|
awsRegion?: string | undefined;
|
|
@@ -3,6 +3,7 @@ import URL from "../API/URL";
|
|
|
3
3
|
import Email from "../Email";
|
|
4
4
|
import ObjectID from "../ObjectID";
|
|
5
5
|
import Port from "../Port";
|
|
6
|
+
import AmazonSesAuthenticationType from "./AmazonSesAuthenticationType";
|
|
6
7
|
import MailgunRegion from "./MailgunRegion";
|
|
7
8
|
import MailTransportType from "./MailTransportType";
|
|
8
9
|
import OAuthProviderType from "./OAuthProviderType";
|
|
@@ -24,6 +25,7 @@ export default interface EmailServer {
|
|
|
24
25
|
scope?: string | undefined;
|
|
25
26
|
oauthProviderType?: OAuthProviderType | undefined;
|
|
26
27
|
apiKey?: string | undefined;
|
|
28
|
+
awsAuthenticationType?: AmazonSesAuthenticationType | undefined;
|
|
27
29
|
awsAccessKeyId?: string | undefined;
|
|
28
30
|
awsSecretAccessKey?: string | undefined;
|
|
29
31
|
awsRegion?: string | undefined;
|
|
@@ -84,6 +84,7 @@ declare enum EmailTemplateType {
|
|
|
84
84
|
AcknowledgeAlert = "AcknowledgeAlert.hbs",
|
|
85
85
|
AcknowledgeAlertEpisode = "AcknowledgeAlertEpisode.hbs",
|
|
86
86
|
AcknowledgeIncidentEpisode = "AcknowledgeIncidentEpisode.hbs",
|
|
87
|
+
OnCallTestPage = "OnCallTestPage.hbs",
|
|
87
88
|
UserAddedToOnCallPolicy = "UserAddedToOnCallPolicy.hbs",
|
|
88
89
|
UserRemovedFromOnCallPolicy = "UserRemovedFromOnCallPolicy.hbs",
|
|
89
90
|
UserCurrentlyOnOnCallRoster = "UserCurrentlyOnOnCallRoster.hbs",
|
|
@@ -84,6 +84,7 @@ declare enum EmailTemplateType {
|
|
|
84
84
|
AcknowledgeAlert = "AcknowledgeAlert.hbs",
|
|
85
85
|
AcknowledgeAlertEpisode = "AcknowledgeAlertEpisode.hbs",
|
|
86
86
|
AcknowledgeIncidentEpisode = "AcknowledgeIncidentEpisode.hbs",
|
|
87
|
+
OnCallTestPage = "OnCallTestPage.hbs",
|
|
87
88
|
UserAddedToOnCallPolicy = "UserAddedToOnCallPolicy.hbs",
|
|
88
89
|
UserRemovedFromOnCallPolicy = "UserRemovedFromOnCallPolicy.hbs",
|
|
89
90
|
UserCurrentlyOnOnCallRoster = "UserCurrentlyOnOnCallRoster.hbs",
|
|
@@ -89,6 +89,8 @@ var EmailTemplateType;
|
|
|
89
89
|
EmailTemplateType["AcknowledgeAlert"] = "AcknowledgeAlert.hbs";
|
|
90
90
|
EmailTemplateType["AcknowledgeAlertEpisode"] = "AcknowledgeAlertEpisode.hbs";
|
|
91
91
|
EmailTemplateType["AcknowledgeIncidentEpisode"] = "AcknowledgeIncidentEpisode.hbs";
|
|
92
|
+
// A test page (Types/OnCallDutyPolicy/OnCallTestPage): TEST first, and Acknowledge.
|
|
93
|
+
EmailTemplateType["OnCallTestPage"] = "OnCallTestPage.hbs";
|
|
92
94
|
EmailTemplateType["UserAddedToOnCallPolicy"] = "UserAddedToOnCallPolicy.hbs";
|
|
93
95
|
EmailTemplateType["UserRemovedFromOnCallPolicy"] = "UserRemovedFromOnCallPolicy.hbs";
|
|
94
96
|
EmailTemplateType["UserCurrentlyOnOnCallRoster"] = "UserCurrentlyOnOnCallRoster.hbs";
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
const BadDataException_1 = __importDefault(require("./BadDataException"));
|
|
7
|
+
/*
|
|
8
|
+
* Bad data, answered with more than a message: Response.sendErrorResponse
|
|
9
|
+
* sends `details` beside the message, in the same body, at the same status
|
|
10
|
+
* (400). Test LLM Provider uses it to send what it sent the provider and
|
|
11
|
+
* what came back with a failed test (issue #7080). The message stays the
|
|
12
|
+
* reason, and `details` can never replace it.
|
|
13
|
+
*/
|
|
14
|
+
class BadDataExceptionWithDetails extends BadDataException_1.default {
|
|
15
|
+
constructor(message, details) {
|
|
16
|
+
super(message);
|
|
17
|
+
this.details = details;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = BadDataExceptionWithDetails;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const EMPTY_ERROR_PHRASES: ReadonlyArray<string>;
|
|
2
|
+
export declare const isEmptyErrorPhrase: (message: string | undefined | null) => boolean;
|
|
3
|
+
export declare const isErrorSentence: (message: string | undefined | null) => boolean;
|
|
4
|
+
export declare const meetsErrorMessageRule: (message: string | undefined | null) => boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const EMPTY_ERROR_PHRASES: ReadonlyArray<string>;
|
|
2
|
+
export declare const isEmptyErrorPhrase: (message: string | undefined | null) => boolean;
|
|
3
|
+
export declare const isErrorSentence: (message: string | undefined | null) => boolean;
|
|
4
|
+
export declare const meetsErrorMessageRule: (message: string | undefined | null) => boolean;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* What an error message a person reads must be (#6836, the rule in
|
|
4
|
+
* Docs/ux/README.md#errors): a sentence that says what happened and what to
|
|
5
|
+
* do next. This file holds the two checks a program can make of that:
|
|
6
|
+
*
|
|
7
|
+
* - it is not one of the empty phrases on its own - "Server Error",
|
|
8
|
+
* "Something went wrong", "Invalid request" - which say that something
|
|
9
|
+
* failed and nothing else;
|
|
10
|
+
* - it is a sentence: it starts with a capital letter (or a value) and ends
|
|
11
|
+
* with a full stop, a question mark or an exclamation mark.
|
|
12
|
+
*
|
|
13
|
+
* The UI uses the first to treat an empty answer from the server as one the
|
|
14
|
+
* server did not explain (API.getFriendlyMessage), and ErrorMessagesGuard
|
|
15
|
+
* holds every message the code throws to both. React-free and server-safe.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.meetsErrorMessageRule = exports.isErrorSentence = exports.isEmptyErrorPhrase = exports.EMPTY_ERROR_PHRASES = void 0;
|
|
19
|
+
/*
|
|
20
|
+
* The phrases that say only that something failed. Compared without case,
|
|
21
|
+
* without the punctuation around them and without a trailing "Please try
|
|
22
|
+
* again", so "Server Error. Please try again" and "Internal Server Error"
|
|
23
|
+
* count as well.
|
|
24
|
+
*/
|
|
25
|
+
exports.EMPTY_ERROR_PHRASES = [
|
|
26
|
+
"server error",
|
|
27
|
+
"internal server error",
|
|
28
|
+
"something went wrong",
|
|
29
|
+
"oops something went wrong",
|
|
30
|
+
"sorry something went wrong",
|
|
31
|
+
"invalid request",
|
|
32
|
+
"bad request",
|
|
33
|
+
"an error occurred",
|
|
34
|
+
"an error has occurred",
|
|
35
|
+
"an unexpected error occurred",
|
|
36
|
+
"an unexpected error has occurred",
|
|
37
|
+
"unknown error",
|
|
38
|
+
"error",
|
|
39
|
+
"request failed",
|
|
40
|
+
"failed",
|
|
41
|
+
"bad gateway",
|
|
42
|
+
"service unavailable",
|
|
43
|
+
];
|
|
44
|
+
// A request to try again that adds nothing to an empty phrase.
|
|
45
|
+
const TRAILING_TRY_AGAIN = [
|
|
46
|
+
"please try again later",
|
|
47
|
+
"please try again",
|
|
48
|
+
"try again later",
|
|
49
|
+
"try again",
|
|
50
|
+
];
|
|
51
|
+
const isLetter = (character) => {
|
|
52
|
+
return character.toLowerCase() !== character.toUpperCase();
|
|
53
|
+
};
|
|
54
|
+
/*
|
|
55
|
+
* The words of a message, lower case, with everything that is not a letter,
|
|
56
|
+
* a digit or a space turned into a space and the spaces squeezed: "Oops,
|
|
57
|
+
* something went wrong." reads "oops something went wrong".
|
|
58
|
+
*/
|
|
59
|
+
const toWords = (message) => {
|
|
60
|
+
let words = "";
|
|
61
|
+
for (const character of message.toLowerCase()) {
|
|
62
|
+
const isWordCharacter = isLetter(character) || (character >= "0" && character <= "9");
|
|
63
|
+
words += isWordCharacter ? character : " ";
|
|
64
|
+
}
|
|
65
|
+
return words.split(" ").filter(Boolean).join(" ");
|
|
66
|
+
};
|
|
67
|
+
/*
|
|
68
|
+
* Whether the message is one of the empty phrases and nothing else - also
|
|
69
|
+
* an empty message, which says even less.
|
|
70
|
+
*/
|
|
71
|
+
const isEmptyErrorPhrase = (message) => {
|
|
72
|
+
let words = toWords(message || "");
|
|
73
|
+
for (const tryAgain of TRAILING_TRY_AGAIN) {
|
|
74
|
+
if (words === tryAgain) {
|
|
75
|
+
// "Please try again" alone says nothing about what happened either.
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
if (words.endsWith(` ${tryAgain}`)) {
|
|
79
|
+
words = words.substring(0, words.length - tryAgain.length - 1);
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return words.length === 0 || exports.EMPTY_ERROR_PHRASES.includes(words);
|
|
84
|
+
};
|
|
85
|
+
exports.isEmptyErrorPhrase = isEmptyErrorPhrase;
|
|
86
|
+
// What may close a sentence after its full stop: a quote or a bracket.
|
|
87
|
+
const CLOSING_MARKS = `"'”’)]»`;
|
|
88
|
+
// What may open a sentence before its first word.
|
|
89
|
+
const OPENING_MARKS = `"'“‘([«¿¡`;
|
|
90
|
+
// The marks a sentence may end with.
|
|
91
|
+
const SENTENCE_ENDS = ".!?…。!?";
|
|
92
|
+
/*
|
|
93
|
+
* Whether the message is a sentence: it starts with a capital letter, a
|
|
94
|
+
* digit or a value, and ends with a full stop, a question mark or an
|
|
95
|
+
* exclamation mark (a closing quote or bracket may follow it). A value is
|
|
96
|
+
* written as {{name}} or ${...}: "{{name}} is already taken." is a sentence.
|
|
97
|
+
* A message that is several sentences counts as one when its first starts
|
|
98
|
+
* and its last ends that way.
|
|
99
|
+
*/
|
|
100
|
+
const isErrorSentence = (message) => {
|
|
101
|
+
const text = (message || "").trim();
|
|
102
|
+
if (!text) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
// The first character that is not an opening mark.
|
|
106
|
+
let start = 0;
|
|
107
|
+
while (start < text.length && OPENING_MARKS.includes(text[start])) {
|
|
108
|
+
start++;
|
|
109
|
+
}
|
|
110
|
+
const rest = text.substring(start);
|
|
111
|
+
const startsWithValue = rest.startsWith("{{") || rest.startsWith("${");
|
|
112
|
+
const first = rest.charAt(0);
|
|
113
|
+
const startsRight = startsWithValue ||
|
|
114
|
+
(first >= "0" && first <= "9") ||
|
|
115
|
+
(isLetter(first) && first === first.toUpperCase());
|
|
116
|
+
if (!startsRight) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
/*
|
|
120
|
+
* A value after a full stop is a sentence of its own - another message,
|
|
121
|
+
* passed on: "The code was not sent to {{number}}. {{reason}}".
|
|
122
|
+
*/
|
|
123
|
+
for (const value of ["${value}", "{{reason}}", "{{error}}", "{{message}}"]) {
|
|
124
|
+
if (text.endsWith(`. ${value}`)) {
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// The last character that is not a closing mark.
|
|
129
|
+
let end = text.length - 1;
|
|
130
|
+
while (end >= 0 && CLOSING_MARKS.includes(text[end])) {
|
|
131
|
+
end--;
|
|
132
|
+
}
|
|
133
|
+
return end >= 0 && SENTENCE_ENDS.includes(text[end]);
|
|
134
|
+
};
|
|
135
|
+
exports.isErrorSentence = isErrorSentence;
|
|
136
|
+
/*
|
|
137
|
+
* Whether a message meets what a program can check of the rule: a sentence,
|
|
138
|
+
* and more than an empty phrase.
|
|
139
|
+
*/
|
|
140
|
+
const meetsErrorMessageRule = (message) => {
|
|
141
|
+
return !(0, exports.isEmptyErrorPhrase)(message) && (0, exports.isErrorSentence)(message);
|
|
142
|
+
};
|
|
143
|
+
exports.meetsErrorMessageRule = meetsErrorMessageRule;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import commonJsModule from "./ErrorMessageRule.js";
|
|
2
|
+
export const EMPTY_ERROR_PHRASES = commonJsModule.EMPTY_ERROR_PHRASES;
|
|
3
|
+
export const isEmptyErrorPhrase = commonJsModule.isEmptyErrorPhrase;
|
|
4
|
+
export const isErrorSentence = commonJsModule.isErrorSentence;
|
|
5
|
+
export const meetsErrorMessageRule = commonJsModule.meetsErrorMessageRule;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const ERROR_REFERENCE_FIELD: string;
|
|
2
|
+
export declare const ERROR_REFERENCE_LENGTH: number;
|
|
3
|
+
export declare const toErrorReference: (requestId: string | undefined | null) => string | null;
|
|
4
|
+
export declare const isErrorReference: (value: unknown) => value is string;
|
|
5
|
+
export declare enum UnexplainedErrorKind {
|
|
6
|
+
ServerWithReference = "ServerWithReference",
|
|
7
|
+
Server = "Server",
|
|
8
|
+
ServerDown = "ServerDown",
|
|
9
|
+
Unreachable = "Unreachable",
|
|
10
|
+
Page = "Page"
|
|
11
|
+
}
|
|
12
|
+
export declare const SERVER_DOWN_MESSAGE: string;
|
|
13
|
+
export declare const UNEXPLAINED_ERROR_MESSAGES: {
|
|
14
|
+
serverWithReference: string;
|
|
15
|
+
server: string;
|
|
16
|
+
unreachable: string;
|
|
17
|
+
page: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const UnexplainedErrorWords: {
|
|
20
|
+
didNotFinish: string;
|
|
21
|
+
serverWhy: string;
|
|
22
|
+
serverDownWhy: string;
|
|
23
|
+
unreachableWhy: string;
|
|
24
|
+
pageWhy: string;
|
|
25
|
+
serverNextWithReferenceCloud: string;
|
|
26
|
+
serverNextWithReferenceSelfHosted: string;
|
|
27
|
+
serverNext: string;
|
|
28
|
+
serverDownNext: string;
|
|
29
|
+
unreachableNext: string;
|
|
30
|
+
pageNext: string;
|
|
31
|
+
adminWhereToLookWithReference: string;
|
|
32
|
+
adminWhereToLook: string;
|
|
33
|
+
serverDownWhereToLook: string;
|
|
34
|
+
openHealth: string;
|
|
35
|
+
createFailed: string;
|
|
36
|
+
saveFailed: string;
|
|
37
|
+
loadFailed: string;
|
|
38
|
+
pageDidNotLoadTitle: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const getUnexplainedServerErrorMessage: (reference: string | null | undefined) => string;
|
|
41
|
+
export interface UnexplainedError {
|
|
42
|
+
kind: UnexplainedErrorKind;
|
|
43
|
+
reference: string | null;
|
|
44
|
+
}
|
|
45
|
+
export declare const readUnexplainedError: (message: string | undefined | null) => UnexplainedError | null;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const ERROR_REFERENCE_FIELD: string;
|
|
2
|
+
export declare const ERROR_REFERENCE_LENGTH: number;
|
|
3
|
+
export declare const toErrorReference: (requestId: string | undefined | null) => string | null;
|
|
4
|
+
export declare const isErrorReference: (value: unknown) => value is string;
|
|
5
|
+
export declare enum UnexplainedErrorKind {
|
|
6
|
+
ServerWithReference = "ServerWithReference",
|
|
7
|
+
Server = "Server",
|
|
8
|
+
ServerDown = "ServerDown",
|
|
9
|
+
Unreachable = "Unreachable",
|
|
10
|
+
Page = "Page"
|
|
11
|
+
}
|
|
12
|
+
export declare const SERVER_DOWN_MESSAGE: string;
|
|
13
|
+
export declare const UNEXPLAINED_ERROR_MESSAGES: {
|
|
14
|
+
serverWithReference: string;
|
|
15
|
+
server: string;
|
|
16
|
+
unreachable: string;
|
|
17
|
+
page: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const UnexplainedErrorWords: {
|
|
20
|
+
didNotFinish: string;
|
|
21
|
+
serverWhy: string;
|
|
22
|
+
serverDownWhy: string;
|
|
23
|
+
unreachableWhy: string;
|
|
24
|
+
pageWhy: string;
|
|
25
|
+
serverNextWithReferenceCloud: string;
|
|
26
|
+
serverNextWithReferenceSelfHosted: string;
|
|
27
|
+
serverNext: string;
|
|
28
|
+
serverDownNext: string;
|
|
29
|
+
unreachableNext: string;
|
|
30
|
+
pageNext: string;
|
|
31
|
+
adminWhereToLookWithReference: string;
|
|
32
|
+
adminWhereToLook: string;
|
|
33
|
+
serverDownWhereToLook: string;
|
|
34
|
+
openHealth: string;
|
|
35
|
+
createFailed: string;
|
|
36
|
+
saveFailed: string;
|
|
37
|
+
loadFailed: string;
|
|
38
|
+
pageDidNotLoadTitle: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const getUnexplainedServerErrorMessage: (reference: string | null | undefined) => string;
|
|
41
|
+
export interface UnexplainedError {
|
|
42
|
+
kind: UnexplainedErrorKind;
|
|
43
|
+
reference: string | null;
|
|
44
|
+
}
|
|
45
|
+
export declare const readUnexplainedError: (message: string | undefined | null) => UnexplainedError | null;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readUnexplainedError = exports.getUnexplainedServerErrorMessage = exports.UnexplainedErrorWords = exports.UNEXPLAINED_ERROR_MESSAGES = exports.SERVER_DOWN_MESSAGE = exports.UnexplainedErrorKind = exports.isErrorReference = exports.toErrorReference = exports.ERROR_REFERENCE_LENGTH = exports.ERROR_REFERENCE_FIELD = void 0;
|
|
4
|
+
const Translator_1 = require("../Translator");
|
|
5
|
+
/*
|
|
6
|
+
* An error nobody explained (#6836): the server failed in a way no message
|
|
7
|
+
* describes (a TypeError, a lost database connection), OneUptime could not
|
|
8
|
+
* be reached, or the page itself failed. These used to read "Server Error.
|
|
9
|
+
* Please try again", which says nothing a person can act on.
|
|
10
|
+
*
|
|
11
|
+
* Now each says what happened and what to do next, and a failure on the
|
|
12
|
+
* server carries a reference: the first eight characters of the id the
|
|
13
|
+
* server gives every request, which every log record of that request
|
|
14
|
+
* carries (Common/Server/Utils/StartServer, TelemetryContext), and which the
|
|
15
|
+
* server's last-resort handler names in a log line of its own. A person
|
|
16
|
+
* gives it to their administrator or to support; an administrator searches
|
|
17
|
+
* the logs for it.
|
|
18
|
+
*
|
|
19
|
+
* The English sentences below are what travels: the API answers with the
|
|
20
|
+
* server's (an API client, the CLI and Terraform read it as it is), and
|
|
21
|
+
* API.getFriendlyMessage returns one of the four for every error it cannot
|
|
22
|
+
* otherwise put into words. The Dashboard, Accounts and Admin Dashboard read
|
|
23
|
+
* them back (readUnexplainedError) and draw them with ErrorExplanation, in
|
|
24
|
+
* the reader's language, with Try again, the reference and a copy button.
|
|
25
|
+
* The sentences are keys of every app's locales: this file is a "keys" root
|
|
26
|
+
* of the Dashboard's extractor. React-free and server-safe.
|
|
27
|
+
*/
|
|
28
|
+
// The field of an error answer that holds the reference.
|
|
29
|
+
exports.ERROR_REFERENCE_FIELD = "reference";
|
|
30
|
+
// How many characters of the request's id the reference keeps.
|
|
31
|
+
exports.ERROR_REFERENCE_LENGTH = 8;
|
|
32
|
+
/*
|
|
33
|
+
* The reference for a request's id: its first eight hex digits, lower case,
|
|
34
|
+
* or null when the id has fewer (no id at all, outside a request).
|
|
35
|
+
*/
|
|
36
|
+
const toErrorReference = (requestId) => {
|
|
37
|
+
let hex = "";
|
|
38
|
+
for (const character of (requestId || "").toLowerCase()) {
|
|
39
|
+
if ((character >= "0" && character <= "9") ||
|
|
40
|
+
(character >= "a" && character <= "f")) {
|
|
41
|
+
hex += character;
|
|
42
|
+
}
|
|
43
|
+
if (hex.length === exports.ERROR_REFERENCE_LENGTH) {
|
|
44
|
+
return hex;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
exports.toErrorReference = toErrorReference;
|
|
50
|
+
// Whether a value is a reference: eight lower-case hex digits.
|
|
51
|
+
const isErrorReference = (value) => {
|
|
52
|
+
if (typeof value !== "string" || value.length !== exports.ERROR_REFERENCE_LENGTH) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
for (const character of value) {
|
|
56
|
+
if (!((character >= "0" && character <= "9") ||
|
|
57
|
+
(character >= "a" && character <= "f"))) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return true;
|
|
62
|
+
};
|
|
63
|
+
exports.isErrorReference = isErrorReference;
|
|
64
|
+
// The kinds of error nobody explained.
|
|
65
|
+
var UnexplainedErrorKind;
|
|
66
|
+
(function (UnexplainedErrorKind) {
|
|
67
|
+
// The server failed, and named a reference for its logs.
|
|
68
|
+
UnexplainedErrorKind["ServerWithReference"] = "ServerWithReference";
|
|
69
|
+
// The server failed and named no reference (an older server, a proxy).
|
|
70
|
+
UnexplainedErrorKind["Server"] = "Server";
|
|
71
|
+
/*
|
|
72
|
+
* The gateway in front of OneUptime answered for it (a 502 or a 504 page):
|
|
73
|
+
* the server is down or restarting - on a new self-hosted install, often
|
|
74
|
+
* a container that keeps stopping (#1741).
|
|
75
|
+
*/
|
|
76
|
+
UnexplainedErrorKind["ServerDown"] = "ServerDown";
|
|
77
|
+
// OneUptime could not be reached at all.
|
|
78
|
+
UnexplainedErrorKind["Unreachable"] = "Unreachable";
|
|
79
|
+
// The page failed before or after it asked the server.
|
|
80
|
+
UnexplainedErrorKind["Page"] = "Page";
|
|
81
|
+
})(UnexplainedErrorKind || (exports.UnexplainedErrorKind = UnexplainedErrorKind = {}));
|
|
82
|
+
/*
|
|
83
|
+
* What API.getFriendlyMessage has always said for a gateway's 502 or 504
|
|
84
|
+
* page. Kept word for word - tests, fixtures and nginx's comments quote it -
|
|
85
|
+
* and drawn as ServerDown by ErrorExplanation.
|
|
86
|
+
*/
|
|
87
|
+
exports.SERVER_DOWN_MESSAGE = "Error connecting to server. Please try again in few minutes.";
|
|
88
|
+
/*
|
|
89
|
+
* The English sentences that travel, one per kind: each says what happened
|
|
90
|
+
* and what to do next, in one string, for every place that shows a message
|
|
91
|
+
* as text.
|
|
92
|
+
*/
|
|
93
|
+
exports.UNEXPLAINED_ERROR_MESSAGES = {
|
|
94
|
+
serverWithReference: (0, Translator_1.translationKey)("The server ran into a problem it could not explain, so this did not finish. Try again, and if it keeps failing, give this reference to your administrator or OneUptime support: {{reference}}."),
|
|
95
|
+
server: (0, Translator_1.translationKey)("The server ran into a problem it could not explain, so this did not finish. Try again in a moment."),
|
|
96
|
+
unreachable: (0, Translator_1.translationKey)("OneUptime could not be reached, so this did not finish. Check your internet connection, then try again."),
|
|
97
|
+
page: (0, Translator_1.translationKey)("This page ran into a problem, so this did not finish. Reload the page, then try again."),
|
|
98
|
+
};
|
|
99
|
+
/*
|
|
100
|
+
* The same, in parts, for ErrorExplanation: what happened (unless the page
|
|
101
|
+
* says what it was doing: "The monitor was not saved."), why, and what to
|
|
102
|
+
* do next - with the reference after it, and, for the person who runs a
|
|
103
|
+
* self-hosted server, where to look.
|
|
104
|
+
*/
|
|
105
|
+
exports.UnexplainedErrorWords = {
|
|
106
|
+
didNotFinish: (0, Translator_1.translationKey)("This did not finish."),
|
|
107
|
+
serverWhy: (0, Translator_1.translationKey)("The server ran into a problem it could not explain."),
|
|
108
|
+
serverDownWhy: (0, Translator_1.translationKey)("The OneUptime server did not answer."),
|
|
109
|
+
unreachableWhy: (0, Translator_1.translationKey)("OneUptime could not be reached."),
|
|
110
|
+
pageWhy: (0, Translator_1.translationKey)("This page ran into a problem."),
|
|
111
|
+
serverNextWithReferenceCloud: (0, Translator_1.translationKey)("Try again. If it keeps failing, contact OneUptime support and give them this reference:"),
|
|
112
|
+
serverNextWithReferenceSelfHosted: (0, Translator_1.translationKey)("Try again. If it keeps failing, give this reference to whoever runs your OneUptime server:"),
|
|
113
|
+
serverNext: (0, Translator_1.translationKey)("Try again in a moment."),
|
|
114
|
+
serverDownNext: (0, Translator_1.translationKey)("It may be starting or restarting. Try again in a few minutes."),
|
|
115
|
+
unreachableNext: (0, Translator_1.translationKey)("Check your internet connection, then try again."),
|
|
116
|
+
pageNext: (0, Translator_1.translationKey)("Reload the page, then try again."),
|
|
117
|
+
// For a master admin of a self-hosted server.
|
|
118
|
+
adminWhereToLookWithReference: (0, Translator_1.translationKey)("To see what failed, run npm run doctor -- --logs in the server's oneuptime folder and look for this reference."),
|
|
119
|
+
adminWhereToLook: (0, Translator_1.translationKey)("To see what failed, run npm run doctor -- --logs in the server's oneuptime folder."),
|
|
120
|
+
// For anyone on a self-hosted server: who installed it may not be signed in.
|
|
121
|
+
serverDownWhereToLook: (0, Translator_1.translationKey)("If you run this server, run npm run doctor in its oneuptime folder: it checks every container and shows the logs of any that is not running."),
|
|
122
|
+
openHealth: (0, Translator_1.translationKey)("Open OneUptime Health"),
|
|
123
|
+
createFailed: (0, Translator_1.translationKey)("The {{itemName}} was not created."),
|
|
124
|
+
saveFailed: (0, Translator_1.translationKey)("The {{itemName}} was not saved."),
|
|
125
|
+
loadFailed: (0, Translator_1.translationKey)("The {{itemName}} could not be loaded."),
|
|
126
|
+
pageDidNotLoadTitle: (0, Translator_1.translationKey)("Page Did Not Load"),
|
|
127
|
+
};
|
|
128
|
+
// The server's answer for a failure it could not explain, in English.
|
|
129
|
+
const getUnexplainedServerErrorMessage = (reference) => {
|
|
130
|
+
return (0, exports.isErrorReference)(reference)
|
|
131
|
+
? (0, Translator_1.fillTemplate)(exports.UNEXPLAINED_ERROR_MESSAGES.serverWithReference, {
|
|
132
|
+
reference: reference,
|
|
133
|
+
})
|
|
134
|
+
: exports.UNEXPLAINED_ERROR_MESSAGES.server;
|
|
135
|
+
};
|
|
136
|
+
exports.getUnexplainedServerErrorMessage = getUnexplainedServerErrorMessage;
|
|
137
|
+
// The words before and after {{reference}} in the server's sentence.
|
|
138
|
+
const REFERENCE_PLACEHOLDER = "{{reference}}";
|
|
139
|
+
const SERVER_WITH_REFERENCE_START = exports.UNEXPLAINED_ERROR_MESSAGES.serverWithReference.substring(0, exports.UNEXPLAINED_ERROR_MESSAGES.serverWithReference.indexOf(REFERENCE_PLACEHOLDER));
|
|
140
|
+
const SERVER_WITH_REFERENCE_END = exports.UNEXPLAINED_ERROR_MESSAGES.serverWithReference.substring(exports.UNEXPLAINED_ERROR_MESSAGES.serverWithReference.indexOf(REFERENCE_PLACEHOLDER) + REFERENCE_PLACEHOLDER.length);
|
|
141
|
+
/*
|
|
142
|
+
* Which unexplained error a message is, read back from its English sentence,
|
|
143
|
+
* or null for any other message - one the server or the page put into
|
|
144
|
+
* words, which is shown as it is.
|
|
145
|
+
*/
|
|
146
|
+
const readUnexplainedError = (message) => {
|
|
147
|
+
const text = (message || "").trim();
|
|
148
|
+
if (!text) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
if (text === exports.UNEXPLAINED_ERROR_MESSAGES.server) {
|
|
152
|
+
return { kind: UnexplainedErrorKind.Server, reference: null };
|
|
153
|
+
}
|
|
154
|
+
if (text === exports.SERVER_DOWN_MESSAGE) {
|
|
155
|
+
return { kind: UnexplainedErrorKind.ServerDown, reference: null };
|
|
156
|
+
}
|
|
157
|
+
if (text === exports.UNEXPLAINED_ERROR_MESSAGES.unreachable) {
|
|
158
|
+
return { kind: UnexplainedErrorKind.Unreachable, reference: null };
|
|
159
|
+
}
|
|
160
|
+
if (text === exports.UNEXPLAINED_ERROR_MESSAGES.page) {
|
|
161
|
+
return { kind: UnexplainedErrorKind.Page, reference: null };
|
|
162
|
+
}
|
|
163
|
+
if (text.length ===
|
|
164
|
+
SERVER_WITH_REFERENCE_START.length +
|
|
165
|
+
exports.ERROR_REFERENCE_LENGTH +
|
|
166
|
+
SERVER_WITH_REFERENCE_END.length &&
|
|
167
|
+
text.startsWith(SERVER_WITH_REFERENCE_START) &&
|
|
168
|
+
text.endsWith(SERVER_WITH_REFERENCE_END)) {
|
|
169
|
+
const reference = text.substring(SERVER_WITH_REFERENCE_START.length, SERVER_WITH_REFERENCE_START.length + exports.ERROR_REFERENCE_LENGTH);
|
|
170
|
+
if ((0, exports.isErrorReference)(reference)) {
|
|
171
|
+
return {
|
|
172
|
+
kind: UnexplainedErrorKind.ServerWithReference,
|
|
173
|
+
reference: reference,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return null;
|
|
178
|
+
};
|
|
179
|
+
exports.readUnexplainedError = readUnexplainedError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import commonJsModule from "./UnexplainedError.js";
|
|
2
|
+
export const ERROR_REFERENCE_FIELD = commonJsModule.ERROR_REFERENCE_FIELD;
|
|
3
|
+
export const ERROR_REFERENCE_LENGTH = commonJsModule.ERROR_REFERENCE_LENGTH;
|
|
4
|
+
export const SERVER_DOWN_MESSAGE = commonJsModule.SERVER_DOWN_MESSAGE;
|
|
5
|
+
export const UNEXPLAINED_ERROR_MESSAGES = commonJsModule.UNEXPLAINED_ERROR_MESSAGES;
|
|
6
|
+
export const UnexplainedErrorKind = commonJsModule.UnexplainedErrorKind;
|
|
7
|
+
export const UnexplainedErrorWords = commonJsModule.UnexplainedErrorWords;
|
|
8
|
+
export const getUnexplainedServerErrorMessage = commonJsModule.getUnexplainedServerErrorMessage;
|
|
9
|
+
export const isErrorReference = commonJsModule.isErrorReference;
|
|
10
|
+
export const readUnexplainedError = commonJsModule.readUnexplainedError;
|
|
11
|
+
export const toErrorReference = commonJsModule.toErrorReference;
|
package/Types/HashedString.js
CHANGED
|
@@ -8,7 +8,14 @@ const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"
|
|
|
8
8
|
const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
|
|
9
9
|
const BadOperationException_1 = __importDefault(require("./Exception/BadOperationException"));
|
|
10
10
|
const JSON_1 = require("./JSON");
|
|
11
|
-
|
|
11
|
+
/*
|
|
12
|
+
* SHA-256 alone, not crypto-js's index: every page loads this class before
|
|
13
|
+
* it draws - JSON is deserialized through it, and the User model and forms
|
|
14
|
+
* use it - and the index brings AES, Triple DES, Blowfish, RC4, Rabbit,
|
|
15
|
+
* SHA-3 and the rest: about 24 KiB gzipped of the sign-in and status pages'
|
|
16
|
+
* first load that nothing on them uses (issue #5608).
|
|
17
|
+
*/
|
|
18
|
+
const sha256_1 = __importDefault(require("crypto-js/sha256"));
|
|
12
19
|
/*
|
|
13
20
|
* SHA-256 hashing for values that are ALREADY high-entropy: session refresh
|
|
14
21
|
* tokens, email verification tokens, reset tokens, permission fingerprints.
|
|
@@ -108,7 +115,7 @@ class HashedString extends DatabaseProperty_1.default {
|
|
|
108
115
|
if (!value) {
|
|
109
116
|
return "";
|
|
110
117
|
}
|
|
111
|
-
return
|
|
118
|
+
return (0, sha256_1.default)(HashedString.buildValueToHash(value, encryptionSecret, salt || null)).toString();
|
|
112
119
|
}
|
|
113
120
|
async hashValue(encryptionSecret, salt) {
|
|
114
121
|
if (!this.value) {
|
|
@@ -241,6 +241,7 @@ declare enum IconProp {
|
|
|
241
241
|
MagnifyingGlassPlus = "MagnifyingGlassPlus",
|
|
242
242
|
Map = "Map",
|
|
243
243
|
MapPin = "MapPin",
|
|
244
|
+
Pin = "Pin",
|
|
244
245
|
Megaphone = "Megaphone",
|
|
245
246
|
Microphone = "Microphone",
|
|
246
247
|
Moon = "Moon",
|
|
@@ -339,6 +340,8 @@ declare enum IconProp {
|
|
|
339
340
|
IoT = "IoT",
|
|
340
341
|
Ceph = "Ceph",
|
|
341
342
|
StorageArray = "StorageArray",
|
|
342
|
-
Gauge = "Gauge"
|
|
343
|
+
Gauge = "Gauge",
|
|
344
|
+
SignIn = "SignIn",
|
|
345
|
+
SignOut = "SignOut"
|
|
343
346
|
}
|
|
344
347
|
export default IconProp;
|
package/Types/Icon/IconProp.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ declare enum IconProp {
|
|
|
241
241
|
MagnifyingGlassPlus = "MagnifyingGlassPlus",
|
|
242
242
|
Map = "Map",
|
|
243
243
|
MapPin = "MapPin",
|
|
244
|
+
Pin = "Pin",
|
|
244
245
|
Megaphone = "Megaphone",
|
|
245
246
|
Microphone = "Microphone",
|
|
246
247
|
Moon = "Moon",
|
|
@@ -339,6 +340,8 @@ declare enum IconProp {
|
|
|
339
340
|
IoT = "IoT",
|
|
340
341
|
Ceph = "Ceph",
|
|
341
342
|
StorageArray = "StorageArray",
|
|
342
|
-
Gauge = "Gauge"
|
|
343
|
+
Gauge = "Gauge",
|
|
344
|
+
SignIn = "SignIn",
|
|
345
|
+
SignOut = "SignOut"
|
|
343
346
|
}
|
|
344
347
|
export default IconProp;
|