@oneuptime/common 14.0.108 → 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/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 +7 -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/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/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 +19 -1
- package/Types/AI/AIChatTypes.d.ts +19 -1
- package/Types/AI/AIChatTypes.js +44 -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 +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/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/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/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/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/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 +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/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/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/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 +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/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/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/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/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/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/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/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 +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,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = exports.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT = void 0;
|
|
4
|
+
exports.readLLMProviderExchanges = readLLMProviderExchanges;
|
|
5
|
+
// The most exchanges one test reports: the rest are dropped.
|
|
6
|
+
exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT = 10;
|
|
7
|
+
// The longest a body is kept, in characters of its JSON.
|
|
8
|
+
exports.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = 16000;
|
|
9
|
+
exports.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = "… (cut: the rest was longer than OneUptime shows)";
|
|
10
|
+
function readHeaders(value) {
|
|
11
|
+
const headers = {};
|
|
12
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
13
|
+
return headers;
|
|
14
|
+
}
|
|
15
|
+
for (const [key, raw] of Object.entries(value)) {
|
|
16
|
+
if (typeof raw === "string") {
|
|
17
|
+
headers[key] = raw;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return headers;
|
|
21
|
+
}
|
|
22
|
+
/*
|
|
23
|
+
* The exchanges a server's answer carries, read defensively: anything not
|
|
24
|
+
* shaped like one is skipped, so an older or odd answer shows none rather
|
|
25
|
+
* than breaking the dialog.
|
|
26
|
+
*/
|
|
27
|
+
function readLLMProviderExchanges(value) {
|
|
28
|
+
if (!Array.isArray(value)) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
const exchanges = [];
|
|
32
|
+
for (const item of value) {
|
|
33
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const raw = item;
|
|
37
|
+
if (typeof raw["method"] !== "string" || typeof raw["url"] !== "string") {
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
const exchange = {
|
|
41
|
+
method: raw["method"],
|
|
42
|
+
url: raw["url"],
|
|
43
|
+
requestHeaders: readHeaders(raw["requestHeaders"]),
|
|
44
|
+
durationMs: typeof raw["durationMs"] === "number" &&
|
|
45
|
+
Number.isFinite(raw["durationMs"])
|
|
46
|
+
? raw["durationMs"]
|
|
47
|
+
: 0,
|
|
48
|
+
};
|
|
49
|
+
if (raw["requestBody"] !== undefined && raw["requestBody"] !== null) {
|
|
50
|
+
exchange.requestBody = raw["requestBody"];
|
|
51
|
+
}
|
|
52
|
+
if (typeof raw["statusCode"] === "number") {
|
|
53
|
+
exchange.statusCode = raw["statusCode"];
|
|
54
|
+
}
|
|
55
|
+
if (raw["responseHeaders"] !== undefined) {
|
|
56
|
+
exchange.responseHeaders = readHeaders(raw["responseHeaders"]);
|
|
57
|
+
}
|
|
58
|
+
if (raw["responseBody"] !== undefined && raw["responseBody"] !== null) {
|
|
59
|
+
exchange.responseBody = raw["responseBody"];
|
|
60
|
+
}
|
|
61
|
+
if (typeof raw["error"] === "string" && raw["error"]) {
|
|
62
|
+
exchange.error = raw["error"];
|
|
63
|
+
}
|
|
64
|
+
exchanges.push(exchange);
|
|
65
|
+
if (exchanges.length >= exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return exchanges;
|
|
70
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import commonJsModule from "./LLMProviderExchange.js";
|
|
2
|
+
export const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = commonJsModule.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH;
|
|
3
|
+
export const LLM_PROVIDER_EXCHANGE_MAX_COUNT = commonJsModule.LLM_PROVIDER_EXCHANGE_MAX_COUNT;
|
|
4
|
+
export const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = commonJsModule.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX;
|
|
5
|
+
export const readLLMProviderExchanges = commonJsModule.readLLMProviderExchanges;
|
|
@@ -34,6 +34,7 @@ export declare enum CheckOn {
|
|
|
34
34
|
IsExpiredCertificate = "Is Expired Certificate",
|
|
35
35
|
IsValidCertificate = "Is Valid Certificate",
|
|
36
36
|
IsNotAValidCertificate = "Is Not A Valid Certificate",
|
|
37
|
+
IsRevokedCertificate = "Is Revoked Certificate",
|
|
37
38
|
IsRequestTimeout = "Is Request Timeout",
|
|
38
39
|
ResultValue = "Result Value",
|
|
39
40
|
Error = "Error",
|
|
@@ -34,6 +34,7 @@ export declare enum CheckOn {
|
|
|
34
34
|
IsExpiredCertificate = "Is Expired Certificate",
|
|
35
35
|
IsValidCertificate = "Is Valid Certificate",
|
|
36
36
|
IsNotAValidCertificate = "Is Not A Valid Certificate",
|
|
37
|
+
IsRevokedCertificate = "Is Revoked Certificate",
|
|
37
38
|
IsRequestTimeout = "Is Request Timeout",
|
|
38
39
|
ResultValue = "Result Value",
|
|
39
40
|
Error = "Error",
|
|
@@ -39,6 +39,7 @@ var CheckOn;
|
|
|
39
39
|
CheckOn["IsExpiredCertificate"] = "Is Expired Certificate";
|
|
40
40
|
CheckOn["IsValidCertificate"] = "Is Valid Certificate";
|
|
41
41
|
CheckOn["IsNotAValidCertificate"] = "Is Not A Valid Certificate";
|
|
42
|
+
CheckOn["IsRevokedCertificate"] = "Is Revoked Certificate";
|
|
42
43
|
CheckOn["IsRequestTimeout"] = "Is Request Timeout";
|
|
43
44
|
// Custom code or synthetic monitor.
|
|
44
45
|
CheckOn["ResultValue"] = "Result Value";
|
|
@@ -439,7 +440,8 @@ class CriteriaFilterUtil {
|
|
|
439
440
|
if (checkOn === CheckOn.IsValidCertificate ||
|
|
440
441
|
checkOn === CheckOn.IsSelfSignedCertificate ||
|
|
441
442
|
checkOn === CheckOn.IsExpiredCertificate ||
|
|
442
|
-
checkOn === CheckOn.IsNotAValidCertificate
|
|
443
|
+
checkOn === CheckOn.IsNotAValidCertificate ||
|
|
444
|
+
checkOn === CheckOn.IsRevokedCertificate) {
|
|
443
445
|
return false;
|
|
444
446
|
}
|
|
445
447
|
if (FilterType.IsEmpty === data.filterType ||
|
|
@@ -49,6 +49,7 @@ exports.CHECK_ON_TERMS = {
|
|
|
49
49
|
[CriteriaFilter_1.CheckOn.IsExpiredCertificate]: (0, Translator_1.translationKey)("Is Expired Certificate"),
|
|
50
50
|
[CriteriaFilter_1.CheckOn.IsValidCertificate]: (0, Translator_1.translationKey)("Is Valid Certificate"),
|
|
51
51
|
[CriteriaFilter_1.CheckOn.IsNotAValidCertificate]: (0, Translator_1.translationKey)("Is Not A Valid Certificate"),
|
|
52
|
+
[CriteriaFilter_1.CheckOn.IsRevokedCertificate]: (0, Translator_1.translationKey)("Is Revoked Certificate"),
|
|
52
53
|
[CriteriaFilter_1.CheckOn.IsRequestTimeout]: (0, Translator_1.translationKey)("Is Request Timeout"),
|
|
53
54
|
[CriteriaFilter_1.CheckOn.ResultValue]: (0, Translator_1.translationKey)("Result Value"),
|
|
54
55
|
[CriteriaFilter_1.CheckOn.Error]: (0, Translator_1.translationKey)("Error"),
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import FilterCondition from "../Filter/FilterCondition.mjs";
|
|
2
2
|
import { JSONObject } from "../JSON.mjs";
|
|
3
3
|
import { CheckOn, EvaluateOverTimeType, FilterType, NoDataPolicy } from "./CriteriaFilter.mjs";
|
|
4
|
+
export type CriteriaFilterValueField = "filterType" | "checkOn" | "filterCondition" | "evaluateOverTimeType" | "noDataPolicy";
|
|
4
5
|
export default class CriteriaFilterValues {
|
|
5
6
|
static readFilterType(value: unknown): FilterType | null;
|
|
6
7
|
static readCheckOn(value: unknown): CheckOn | null;
|
|
7
8
|
static readFilterCondition(value: unknown): FilterCondition | null;
|
|
8
9
|
static readEvaluateOverTimeType(value: unknown): EvaluateOverTimeType | null;
|
|
9
10
|
static readNoDataPolicy(value: unknown): NoDataPolicy | null;
|
|
11
|
+
static getNamesRead(field: CriteriaFilterValueField): Array<string>;
|
|
10
12
|
static readFilter(filter: JSONObject): JSONObject;
|
|
11
13
|
static getUnreadableErrors(data: {
|
|
12
14
|
criteriaName: string;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import FilterCondition from "../Filter/FilterCondition";
|
|
2
2
|
import { JSONObject } from "../JSON";
|
|
3
3
|
import { CheckOn, EvaluateOverTimeType, FilterType, NoDataPolicy } from "./CriteriaFilter";
|
|
4
|
+
export type CriteriaFilterValueField = "filterType" | "checkOn" | "filterCondition" | "evaluateOverTimeType" | "noDataPolicy";
|
|
4
5
|
export default class CriteriaFilterValues {
|
|
5
6
|
static readFilterType(value: unknown): FilterType | null;
|
|
6
7
|
static readCheckOn(value: unknown): CheckOn | null;
|
|
7
8
|
static readFilterCondition(value: unknown): FilterCondition | null;
|
|
8
9
|
static readEvaluateOverTimeType(value: unknown): EvaluateOverTimeType | null;
|
|
9
10
|
static readNoDataPolicy(value: unknown): NoDataPolicy | null;
|
|
11
|
+
static getNamesRead(field: CriteriaFilterValueField): Array<string>;
|
|
10
12
|
static readFilter(filter: JSONObject): JSONObject;
|
|
11
13
|
static getUnreadableErrors(data: {
|
|
12
14
|
criteriaName: string;
|
|
@@ -48,6 +48,11 @@ const makeValueSet = (data) => {
|
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
50
|
values: data.values,
|
|
51
|
+
names: [
|
|
52
|
+
...data.values,
|
|
53
|
+
...Object.keys(data.otherNames || {}),
|
|
54
|
+
...Object.keys(data.symbols || {}),
|
|
55
|
+
],
|
|
51
56
|
byLettersAndDigits,
|
|
52
57
|
bySymbol: new Map(Object.entries(data.symbols || {})),
|
|
53
58
|
};
|
|
@@ -143,6 +148,13 @@ const EVALUATE_OVER_TIME_TYPES = makeValueSet({
|
|
|
143
148
|
const NO_DATA_POLICIES = makeValueSet({
|
|
144
149
|
values: Object.values(CriteriaFilter_1.NoDataPolicy),
|
|
145
150
|
});
|
|
151
|
+
const VALUE_SETS = {
|
|
152
|
+
filterType: FILTER_TYPES,
|
|
153
|
+
checkOn: CHECK_ONS,
|
|
154
|
+
filterCondition: FILTER_CONDITIONS,
|
|
155
|
+
evaluateOverTimeType: EVALUATE_OVER_TIME_TYPES,
|
|
156
|
+
noDataPolicy: NO_DATA_POLICIES,
|
|
157
|
+
};
|
|
146
158
|
// The longest part of a written value an error quotes back.
|
|
147
159
|
const MAX_QUOTED_LENGTH = 64;
|
|
148
160
|
const asObject = (value) => {
|
|
@@ -211,6 +223,16 @@ class CriteriaFilterValues {
|
|
|
211
223
|
static readNoDataPolicy(value) {
|
|
212
224
|
return readValue(NO_DATA_POLICIES, value);
|
|
213
225
|
}
|
|
226
|
+
/*
|
|
227
|
+
* Every name a field's value is read by, as it is written here: the
|
|
228
|
+
* values, their other names ("avg", "gte") and their symbols (">="). For
|
|
229
|
+
* a reader that must read them exactly as this one does - the Terraform
|
|
230
|
+
* provider's, which is checked against cases built from these
|
|
231
|
+
* (Scripts/TerraformProvider/Core/MonitorStepsValuesCases.ts).
|
|
232
|
+
*/
|
|
233
|
+
static getNamesRead(field) {
|
|
234
|
+
return [...VALUE_SETS[field].names];
|
|
235
|
+
}
|
|
214
236
|
/*
|
|
215
237
|
* A filter as stored, with each value written another way read as the
|
|
216
238
|
* one it means: what it checks, its condition, its metric options'
|
|
@@ -29,6 +29,7 @@ export interface WordEvaluationSentenceOptions {
|
|
|
29
29
|
export declare function wordEvaluationSentence(sentence: EvaluationSentence, translator: Translator, options?: WordEvaluationSentenceOptions): string;
|
|
30
30
|
export declare function englishOfEvaluationSentence(sentence: EvaluationSentence): string;
|
|
31
31
|
export declare function isWhollyWorded(sentence: EvaluationSentence, translator: Translator): boolean;
|
|
32
|
+
export declare function withCurrentTemplates(sentence: EvaluationSentence): EvaluationSentence;
|
|
32
33
|
export declare function wordStoredEvaluationText(data: {
|
|
33
34
|
english: string;
|
|
34
35
|
sentence: unknown;
|
|
@@ -29,6 +29,7 @@ export interface WordEvaluationSentenceOptions {
|
|
|
29
29
|
export declare function wordEvaluationSentence(sentence: EvaluationSentence, translator: Translator, options?: WordEvaluationSentenceOptions): string;
|
|
30
30
|
export declare function englishOfEvaluationSentence(sentence: EvaluationSentence): string;
|
|
31
31
|
export declare function isWhollyWorded(sentence: EvaluationSentence, translator: Translator): boolean;
|
|
32
|
+
export declare function withCurrentTemplates(sentence: EvaluationSentence): EvaluationSentence;
|
|
32
33
|
export declare function wordStoredEvaluationText(data: {
|
|
33
34
|
english: string;
|
|
34
35
|
sentence: unknown;
|
|
@@ -7,9 +7,11 @@ exports.isEvaluationSentence = exports.isEvaluationTime = exports.isEvaluationTe
|
|
|
7
7
|
exports.wordEvaluationSentence = wordEvaluationSentence;
|
|
8
8
|
exports.englishOfEvaluationSentence = englishOfEvaluationSentence;
|
|
9
9
|
exports.isWhollyWorded = isWhollyWorded;
|
|
10
|
+
exports.withCurrentTemplates = withCurrentTemplates;
|
|
10
11
|
exports.wordStoredEvaluationText = wordStoredEvaluationText;
|
|
11
12
|
const Date_1 = __importDefault(require("../Date"));
|
|
12
13
|
const DateLanguage_1 = require("../DateLanguage");
|
|
14
|
+
const RetiredEvaluationTemplates_1 = require("./RetiredEvaluationTemplates");
|
|
13
15
|
const Translator_1 = require("../Translator");
|
|
14
16
|
// How deep parts may nest, and how many values a sentence may hold.
|
|
15
17
|
const MAX_DEPTH = 8;
|
|
@@ -272,25 +274,54 @@ function isWhollyWorded(sentence, translator) {
|
|
|
272
274
|
return isWhollyWorded(value, translator);
|
|
273
275
|
});
|
|
274
276
|
}
|
|
277
|
+
/*
|
|
278
|
+
* A stored sentence as this build words it: each template the engine has
|
|
279
|
+
* since reworded - in the sentence and in every part of it - replaced by
|
|
280
|
+
* the one in its place (RetiredEvaluationTemplates), its values as stored.
|
|
281
|
+
* A sentence with no retired template is returned as it is.
|
|
282
|
+
*/
|
|
283
|
+
function withCurrentTemplates(sentence) {
|
|
284
|
+
const template = (0, RetiredEvaluationTemplates_1.currentEvaluationTemplate)(sentence.template);
|
|
285
|
+
let values = sentence.values;
|
|
286
|
+
for (const key of Object.keys(sentence.values || {})) {
|
|
287
|
+
const value = (sentence.values || {})[key];
|
|
288
|
+
if (typeof value === "string" ||
|
|
289
|
+
typeof value === "number" ||
|
|
290
|
+
(0, exports.isEvaluationTerm)(value) ||
|
|
291
|
+
(0, exports.isEvaluationTime)(value)) {
|
|
292
|
+
continue;
|
|
293
|
+
}
|
|
294
|
+
const current = withCurrentTemplates(value);
|
|
295
|
+
if (current !== value) {
|
|
296
|
+
values = Object.assign(Object.assign({}, (values || {})), { [key]: current });
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (template === sentence.template && values === sentence.values) {
|
|
300
|
+
return sentence;
|
|
301
|
+
}
|
|
302
|
+
return Object.assign(Object.assign({}, sentence), { template: template, values: values });
|
|
303
|
+
}
|
|
275
304
|
/*
|
|
276
305
|
* A stored sentence in the reader's language, or `english` - the text
|
|
277
306
|
* stored beside it - when there is none, or none this build can read. A
|
|
278
307
|
* sentence the reader's language words only in part reads in English,
|
|
279
|
-
* whole (isWhollyWorded).
|
|
308
|
+
* whole (isWhollyWorded). One written before a template it holds was
|
|
309
|
+
* reworded reads in the current words (withCurrentTemplates).
|
|
280
310
|
*/
|
|
281
311
|
function wordStoredEvaluationText(data) {
|
|
282
312
|
if (!(0, exports.isEvaluationSentence)(data.sentence)) {
|
|
283
313
|
return data.english;
|
|
284
314
|
}
|
|
285
315
|
try {
|
|
316
|
+
const sentence = withCurrentTemplates(data.sentence);
|
|
286
317
|
/*
|
|
287
318
|
* English, when the reader's language does not word all of it - with
|
|
288
319
|
* its times still written where it is read (the reader's time zone).
|
|
289
320
|
*/
|
|
290
|
-
const translator = isWhollyWorded(
|
|
321
|
+
const translator = isWhollyWorded(sentence, data.translator)
|
|
291
322
|
? data.translator
|
|
292
323
|
: getEnglishTranslator();
|
|
293
|
-
return wordEvaluationSentence(
|
|
324
|
+
return wordEvaluationSentence(sentence, translator, data.options || {});
|
|
294
325
|
}
|
|
295
326
|
catch (_a) {
|
|
296
327
|
return data.english;
|
|
@@ -8,5 +8,6 @@ export const isEvaluationTime = commonJsModule.isEvaluationTime;
|
|
|
8
8
|
export const isWhollyWorded = commonJsModule.isWhollyWorded;
|
|
9
9
|
export const translatablePluralSentence = commonJsModule.translatablePluralSentence;
|
|
10
10
|
export const translatableSentence = commonJsModule.translatableSentence;
|
|
11
|
+
export const withCurrentTemplates = commonJsModule.withCurrentTemplates;
|
|
11
12
|
export const wordEvaluationSentence = commonJsModule.wordEvaluationSentence;
|
|
12
13
|
export const wordStoredEvaluationText = commonJsModule.wordStoredEvaluationText;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.currentEvaluationTemplate = exports.RETIRED_EVALUATION_TEMPLATES = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* SENTENCES THE MONITOR ENGINE NO LONGER WRITES, AND THE ONES IN THEIR PLACE.
|
|
6
|
+
*
|
|
7
|
+
* A finding is stored as the sentence it was filled from (EvaluationSentence):
|
|
8
|
+
* its English template, which is the key the Dashboard's locale files word
|
|
9
|
+
* it under, and its values. When a template is reworded, the old key leaves
|
|
10
|
+
* the locale files, but incidents, alerts and evaluation logs written before
|
|
11
|
+
* still hold it. Each retired template is listed here with the one that took
|
|
12
|
+
* its place - the same placeholders, saying the same thing - and a stored
|
|
13
|
+
* sentence is read through its current template (wordStoredEvaluationText),
|
|
14
|
+
* so an old finding reads in the reader's language, in the new words, like a
|
|
15
|
+
* new one. The English stored beside it, which emails, chat messages and the
|
|
16
|
+
* API read, stays as it was written.
|
|
17
|
+
*
|
|
18
|
+
* Add a line when you reword a template the engine stores; never remove one
|
|
19
|
+
* while records written with it may still be read. A retired template is not
|
|
20
|
+
* a locale key, and the template in its place must be one
|
|
21
|
+
* (RetiredEvaluationTemplates.test.ts holds both).
|
|
22
|
+
*/
|
|
23
|
+
exports.RETIRED_EVALUATION_TEMPLATES = new Map([
|
|
24
|
+
/*
|
|
25
|
+
* Issue #6581: "which is contains" and its kin, a comma short of a whole
|
|
26
|
+
* sentence (CompareCriteria.getCompareSentence).
|
|
27
|
+
*/
|
|
28
|
+
[
|
|
29
|
+
"{{subject}} is {{values}} which is greater than {{threshold}}.",
|
|
30
|
+
"{{subject}} is {{values}}, which is greater than {{threshold}}.",
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"{{subject}} is {{values}} which is greater than or equal to {{threshold}}.",
|
|
34
|
+
"{{subject}} is {{values}}, which is greater than or equal to {{threshold}}.",
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"{{subject}} is {{values}} which is less than {{threshold}}.",
|
|
38
|
+
"{{subject}} is {{values}}, which is less than {{threshold}}.",
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"{{subject}} is {{values}} which is less than or equal to {{threshold}}.",
|
|
42
|
+
"{{subject}} is {{values}}, which is less than or equal to {{threshold}}.",
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"{{subject}} is {{values}} which is not equal to {{threshold}}.",
|
|
46
|
+
"{{subject}} is {{values}}, which is not equal to {{threshold}}.",
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"{{subject}} is {{values}} which is equal to {{threshold}}.",
|
|
50
|
+
"{{subject}} is {{values}}, which is equal to {{threshold}}.",
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"{{subject}} is {{values}} which is contains {{threshold}}.",
|
|
54
|
+
"{{subject}} is {{values}}, which contains {{threshold}}.",
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"{{subject}} is {{values}} which is does not contain {{threshold}}.",
|
|
58
|
+
"{{subject}} is {{values}}, which does not contain {{threshold}}.",
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"{{subject}} is {{values}} which is starts with {{threshold}}.",
|
|
62
|
+
"{{subject}} is {{values}}, which starts with {{threshold}}.",
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"{{subject}} is {{values}} which is ends with {{threshold}}.",
|
|
66
|
+
"{{subject}} is {{values}}, which ends with {{threshold}}.",
|
|
67
|
+
],
|
|
68
|
+
["{{subject}} is {{values}} which is", "{{subject}} is {{values}}."],
|
|
69
|
+
/*
|
|
70
|
+
* Issue #6581: the response headers' findings, which read alike for a
|
|
71
|
+
* header's name and a header's value (APIRequestCriteria).
|
|
72
|
+
*/
|
|
73
|
+
[
|
|
74
|
+
"Response header contains {{text}}.",
|
|
75
|
+
"The response has the header {{text}}.",
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
"Response header does not contain {{text}}.",
|
|
79
|
+
"The response does not have the header {{text}}.",
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
"Response header threshold contains {{text}}.",
|
|
83
|
+
"A response header has the value {{text}}.",
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
"Response header threshold does not contain {{text}}.",
|
|
87
|
+
"No response header has the value {{text}}.",
|
|
88
|
+
],
|
|
89
|
+
]);
|
|
90
|
+
// The template a stored sentence is read with: its current one.
|
|
91
|
+
const currentEvaluationTemplate = (template) => {
|
|
92
|
+
var _a;
|
|
93
|
+
return (_a = exports.RETIRED_EVALUATION_TEMPLATES.get(template)) !== null && _a !== void 0 ? _a : template;
|
|
94
|
+
};
|
|
95
|
+
exports.currentEvaluationTemplate = currentEvaluationTemplate;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Where the probe got the answer to "has the issuer revoked this
|
|
5
|
+
* certificate?". English values, shown as they are.
|
|
6
|
+
*/
|
|
7
|
+
var CertificateRevocationCheckMethod;
|
|
8
|
+
(function (CertificateRevocationCheckMethod) {
|
|
9
|
+
/*
|
|
10
|
+
* The OCSP response the server sent with its certificate in the TLS
|
|
11
|
+
* handshake ("OCSP stapling"), signed by the issuer. Checking it costs no
|
|
12
|
+
* extra request.
|
|
13
|
+
*/
|
|
14
|
+
CertificateRevocationCheckMethod["StapledOcsp"] = "Stapled OCSP";
|
|
15
|
+
// The issuer's OCSP responder, named in the certificate.
|
|
16
|
+
CertificateRevocationCheckMethod["Ocsp"] = "OCSP";
|
|
17
|
+
// The issuer's certificate revocation list, named in the certificate.
|
|
18
|
+
CertificateRevocationCheckMethod["Crl"] = "CRL";
|
|
19
|
+
})(CertificateRevocationCheckMethod || (CertificateRevocationCheckMethod = {}));
|
|
20
|
+
exports.default = CertificateRevocationCheckMethod;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Whether the issuer of a certificate has revoked it, as the probe found out
|
|
5
|
+
* from the issuer itself: an OCSP response or a certificate revocation list
|
|
6
|
+
* (CRL) the issuer signed.
|
|
7
|
+
*
|
|
8
|
+
* A certificate can pass every check a TLS library makes - a trusted issuer,
|
|
9
|
+
* a matching host name, dates that include today - and still be one its
|
|
10
|
+
* issuer has withdrawn. Node (OpenSSL) never asks the issuer, so before the
|
|
11
|
+
* probe asked, a revoked certificate read as valid while browsers refused it
|
|
12
|
+
* with SEC_ERROR_REVOKED_CERTIFICATE / NET::ERR_CERT_REVOKED.
|
|
13
|
+
*
|
|
14
|
+
* The values are English, like CheckOn's, because they are shown as they are.
|
|
15
|
+
*/
|
|
16
|
+
var CertificateRevocationStatus;
|
|
17
|
+
(function (CertificateRevocationStatus) {
|
|
18
|
+
// The issuer's signed answer says the certificate is not revoked.
|
|
19
|
+
CertificateRevocationStatus["NotRevoked"] = "Not Revoked";
|
|
20
|
+
// The issuer's signed answer says the certificate is revoked.
|
|
21
|
+
CertificateRevocationStatus["Revoked"] = "Revoked";
|
|
22
|
+
/*
|
|
23
|
+
* No signed answer could be had: the certificate names no OCSP responder
|
|
24
|
+
* and no CRL, none answered in time, or what came back could not be
|
|
25
|
+
* verified. Like a browser, the probe does not treat this as revoked.
|
|
26
|
+
*/
|
|
27
|
+
CertificateRevocationStatus["Unknown"] = "Unknown";
|
|
28
|
+
})(CertificateRevocationStatus || (CertificateRevocationStatus = {}));
|
|
29
|
+
exports.default = CertificateRevocationStatus;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import CertificateRevocationCheckMethod from "./CertificateRevocationCheckMethod.mjs";
|
|
2
|
+
import CertificateRevocationStatus from "./CertificateRevocationStatus.mjs";
|
|
1
3
|
export default interface SslMonitorResponse {
|
|
2
4
|
isValidCertificate?: boolean | undefined;
|
|
3
5
|
certificateValidationError?: string | undefined;
|
|
4
6
|
certificateValidationErrorCode?: string | undefined;
|
|
5
7
|
isSelfSigned?: boolean | undefined;
|
|
8
|
+
revocationStatus?: CertificateRevocationStatus | undefined;
|
|
9
|
+
revocationCheckMethod?: CertificateRevocationCheckMethod | undefined;
|
|
10
|
+
revokedAt?: Date | undefined;
|
|
11
|
+
revocationReason?: string | undefined;
|
|
12
|
+
revocationCheckError?: string | undefined;
|
|
6
13
|
createdAt?: Date | undefined;
|
|
7
14
|
expiresAt?: Date | undefined;
|
|
8
15
|
commonName?: string | undefined;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import CertificateRevocationCheckMethod from "./CertificateRevocationCheckMethod";
|
|
2
|
+
import CertificateRevocationStatus from "./CertificateRevocationStatus";
|
|
1
3
|
export default interface SslMonitorResponse {
|
|
2
4
|
isValidCertificate?: boolean | undefined;
|
|
3
5
|
certificateValidationError?: string | undefined;
|
|
4
6
|
certificateValidationErrorCode?: string | undefined;
|
|
5
7
|
isSelfSigned?: boolean | undefined;
|
|
8
|
+
revocationStatus?: CertificateRevocationStatus | undefined;
|
|
9
|
+
revocationCheckMethod?: CertificateRevocationCheckMethod | undefined;
|
|
10
|
+
revokedAt?: Date | undefined;
|
|
11
|
+
revocationReason?: string | undefined;
|
|
12
|
+
revocationCheckError?: string | undefined;
|
|
6
13
|
createdAt?: Date | undefined;
|
|
7
14
|
expiresAt?: Date | undefined;
|
|
8
15
|
commonName?: string | undefined;
|