@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
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AI_ACTION_CARD_LINE_SEPARATOR = exports.AI_ACTION_TERM_WORDS = exports.AI_ACTION_RESOURCE_NOUNS = exports.AI_ACTION_PLURAL_SENTENCES = exports.AI_ACTION_SENTENCES = exports.AI_ACTION_CARD_FACTS = exports.AI_ACTION_CARD_LINES = exports.AI_ACTION_CARD_KINDS = exports.AI_ACTION_TERMS = exports.AI_ACTION_RESOURCE_BY_NAME = exports.AI_ACTION_CODE_FILE = exports.AI_ACTION_CODE_CHANGE_LINES = exports.AI_ACTION_PLURAL_LINES = exports.AI_ACTION_LINES = exports.AI_ACTION_PLURAL_TITLES = exports.AI_ACTION_TITLES = void 0;
|
|
6
|
+
exports.AI_ACTION_CARD_LINE_SEPARATOR = exports.AI_ACTION_TERM_WORDS = exports.AI_ACTION_RESOURCE_NOUNS = exports.AI_ACTION_PLURAL_SENTENCES = exports.AI_ACTION_SENTENCES = exports.AI_READ_CARD_ENTITY_TYPES = exports.AI_READ_CARD_ENTITY = exports.AI_READ_CARD_COUNTED = exports.AI_READ_CARD_NAME = exports.AI_READ_CARD_PLURAL_SENTENCES = exports.AI_READ_CARD_SENTENCES = exports.AI_READ_CARD_NOUNS = exports.AI_READ_CARD_SLO_STATUSES = exports.AI_READ_CARD_VALUES = exports.AI_READ_CARD_LINES = exports.AI_READ_CARD_FACTS = exports.AI_READ_CARD_KINDS = exports.AI_ACTION_CARD_FACTS = exports.AI_ACTION_CARD_LINES = exports.AI_ACTION_CARD_KINDS = exports.AI_ACTION_TERMS = exports.AI_ACTION_NEW_MONITOR = exports.AI_ACTION_TEAM = exports.AI_ACTION_NAME = exports.AI_ACTION_RESOURCE_BY_NAME = exports.AI_ACTION_CODE_FILE = exports.AI_ACTION_CODE_CHANGE_LINES = exports.AI_ACTION_PLURAL_LINES = exports.AI_ACTION_LINES = exports.AI_ACTION_PLURAL_TITLES = exports.AI_ACTION_TITLES = void 0;
|
|
7
|
+
exports.getAIReadCardMonitorTypeTerms = getAIReadCardMonitorTypeTerms;
|
|
4
8
|
exports.aiActionSentence = aiActionSentence;
|
|
5
9
|
exports.aiActionPluralSentence = aiActionPluralSentence;
|
|
6
10
|
exports.aiActionTerm = aiActionTerm;
|
|
7
11
|
exports.aiActionList = aiActionList;
|
|
8
12
|
exports.aiActionResourceByName = aiActionResourceByName;
|
|
9
13
|
exports.aiActionCardFact = aiActionCardFact;
|
|
14
|
+
exports.aiActionFigure = aiActionFigure;
|
|
15
|
+
exports.aiActionMoment = aiActionMoment;
|
|
10
16
|
exports.isAIActionTerm = isAIActionTerm;
|
|
11
17
|
exports.isAIActionList = isAIActionList;
|
|
18
|
+
exports.isAIActionFigure = isAIActionFigure;
|
|
19
|
+
exports.isAIActionMoment = isAIActionMoment;
|
|
12
20
|
exports.getAIActionPluralTemplate = getAIActionPluralTemplate;
|
|
13
21
|
exports.isKnownAIActionSentence = isKnownAIActionSentence;
|
|
14
22
|
exports.isKnownAIActionWords = isKnownAIActionWords;
|
|
15
23
|
exports.isKnownAIActionCardWords = isKnownAIActionCardWords;
|
|
24
|
+
exports.describeAIActionFigure = describeAIActionFigure;
|
|
25
|
+
exports.describeAIActionCardLabel = describeAIActionCardLabel;
|
|
16
26
|
exports.describeAIActionSentence = describeAIActionSentence;
|
|
17
27
|
exports.describeAIActionCardValue = describeAIActionCardValue;
|
|
18
28
|
exports.describeAIActionCardWords = describeAIActionCardWords;
|
|
@@ -25,6 +35,10 @@ exports.getAIActionSentenceShownValues = getAIActionSentenceShownValues;
|
|
|
25
35
|
const Translator_1 = require("../Translator");
|
|
26
36
|
const ReadingDirection_1 = require("../ReadingDirection");
|
|
27
37
|
const AiAffectedResources_1 = require("./AiAffectedResources");
|
|
38
|
+
const MonitorType_1 = require("../Monitor/MonitorType");
|
|
39
|
+
const SloStatus_1 = __importDefault(require("../ServiceLevelObjective/SloStatus"));
|
|
40
|
+
const SecurityEntity_1 = require("../SecurityCase/SecurityEntity");
|
|
41
|
+
const SloWidgetFormat_1 = require("../../Utils/Slo/SloWidgetFormat");
|
|
28
42
|
/*
|
|
29
43
|
* ---------------------------------------------------------------------------
|
|
30
44
|
* The titles. Each names what it acts on by the number or the name the
|
|
@@ -75,6 +89,16 @@ exports.AI_ACTION_TITLES = {
|
|
|
75
89
|
createWorkflow: (0, Translator_1.translationKey)("Create workflow: {{name}}"),
|
|
76
90
|
updateWorkflow: (0, Translator_1.translationKey)("Update workflow {{workflow}}"),
|
|
77
91
|
updateWorkflowUnnamed: (0, Translator_1.translationKey)("Update workflow"),
|
|
92
|
+
/*
|
|
93
|
+
* Ask AI's setup actions (#6829): what each part of a plan makes, by
|
|
94
|
+
* the address, the name or the status page the person knows it by.
|
|
95
|
+
*/
|
|
96
|
+
setUpWebsiteMonitoring: (0, Translator_1.translationKey)("Set up monitoring for {{address}}"),
|
|
97
|
+
setUpWebsiteMonitoringUnnamed: (0, Translator_1.translationKey)("Set up monitoring for a website"),
|
|
98
|
+
createOnCallPolicy: (0, Translator_1.translationKey)("Create on-call policy {{policy}}"),
|
|
99
|
+
publishStatusPage: (0, Translator_1.translationKey)("Publish status page {{name}}"),
|
|
100
|
+
addMonitorsToStatusPage: (0, Translator_1.translationKey)("Add monitors to status page {{statusPage}}"),
|
|
101
|
+
addMonitorsToStatusPageUnnamed: (0, Translator_1.translationKey)("Add monitors to a status page"),
|
|
78
102
|
};
|
|
79
103
|
exports.AI_ACTION_PLURAL_TITLES = {
|
|
80
104
|
commitFiles: {
|
|
@@ -121,6 +145,44 @@ exports.AI_ACTION_LINES = {
|
|
|
121
145
|
// Ask AI never saw the workflow's steps, and the change touches some of them.
|
|
122
146
|
workflowNotRead: (0, Translator_1.translationKey)("Ask AI wrote this change without reading the workflow's steps, so it may remove or change steps it has not seen."),
|
|
123
147
|
workflowIsOn: (0, Translator_1.translationKey)("This workflow is on, so its next run uses the change."),
|
|
148
|
+
/*
|
|
149
|
+
* set_up_website_monitoring (#6829): what the monitor does when the
|
|
150
|
+
* address goes down - the words of the website guided setup's summary
|
|
151
|
+
* (#6804), so the setup and Ask AI say it alike - and who is emailed.
|
|
152
|
+
*/
|
|
153
|
+
monitorOpensIncident: (0, Translator_1.translationKey)("If it does not answer, or answers with an error, OneUptime opens an incident ({{severity}})."),
|
|
154
|
+
monitorGoesOffline: (0, Translator_1.translationKey)("If it does not answer, or answers with an error, its status changes to Offline."),
|
|
155
|
+
monitorOwnerEmailed: (0, Translator_1.translationKey)("You own this monitor, so you are emailed when its status changes."),
|
|
156
|
+
// The project adds no probe to a new monitor: nothing would check it.
|
|
157
|
+
monitorNoLocations: (0, Translator_1.translationKey)("No location checks {{host}} yet. Probes are added under Monitors > Settings > Probes."),
|
|
158
|
+
/*
|
|
159
|
+
* set_up_paging (#6829): who the project's first on-call policy pages,
|
|
160
|
+
* by name ({{others}} and {{responders}}: lists of AI_ACTION_NAME and
|
|
161
|
+
* AI_ACTION_TEAM), with the two catch-all rules that run it.
|
|
162
|
+
*/
|
|
163
|
+
pagesYouForEveryNewEvent: (0, Translator_1.translationKey)("Pages you for every new incident and alert."),
|
|
164
|
+
pagesYouAndOthersForEveryNewEvent: (0, Translator_1.translationKey)("Pages you and {{others}} for every new incident and alert."),
|
|
165
|
+
pagesOthersForEveryNewEvent: (0, Translator_1.translationKey)("Pages {{responders}} for every new incident and alert."),
|
|
166
|
+
respondersNotFound: (0, Translator_1.translationKey)("Not in this project, so not paged: {{names}}."),
|
|
167
|
+
/*
|
|
168
|
+
* What the person asked to be reached by and cannot be yet: Ask AI
|
|
169
|
+
* never adds a phone number or the app - the person verifies them -
|
|
170
|
+
* so the card says what is missing and where it is added.
|
|
171
|
+
*/
|
|
172
|
+
noVerifiedPhoneForSms: (0, Translator_1.translationKey)("You have no verified phone number for texts yet. Add one in Notification Methods, and pages reach you by SMS too."),
|
|
173
|
+
noVerifiedPhoneForCalls: (0, Translator_1.translationKey)("You have no verified phone number for calls yet. Add one in Notification Methods, and pages can call you too."),
|
|
174
|
+
noMobileApp: (0, Translator_1.translationKey)("The mobile app is not set up for you yet. Set it up from Notification Methods to get push notifications."),
|
|
175
|
+
nothingReachesYou: (0, Translator_1.translationKey)("Nothing reaches you yet. Add a notification method in Notification Methods."),
|
|
176
|
+
/*
|
|
177
|
+
* publish_status_page and add_monitors_to_status_page (#6829): a page
|
|
178
|
+
* is public from the moment it exists, so the card says so before it
|
|
179
|
+
* is approved, and what it shows ({{monitors}}: AI_ACTION_NAME and
|
|
180
|
+
* AI_ACTION_NEW_MONITOR).
|
|
181
|
+
*/
|
|
182
|
+
statusPageIsPublic: (0, Translator_1.translationKey)("It is public as soon as it is created: anyone with its link sees the status of the monitors it shows."),
|
|
183
|
+
statusPageShows: (0, Translator_1.translationKey)("It shows {{monitors}}."),
|
|
184
|
+
monitorsNotFound: (0, Translator_1.translationKey)("Not in this project, so not shown: {{names}}."),
|
|
185
|
+
alreadyOnStatusPage: (0, Translator_1.translationKey)("Already on it: {{monitors}}."),
|
|
124
186
|
};
|
|
125
187
|
/*
|
|
126
188
|
* The lines that count: a code change's files Ask AI never saw as the
|
|
@@ -128,8 +190,10 @@ exports.AI_ACTION_LINES = {
|
|
|
128
190
|
* read_code_file showed it, so a commit - on a branch, or a pull request's
|
|
129
191
|
* - would undo what was pushed to a file since, or replace a file Ask AI
|
|
130
192
|
* read on another branch, or never read, or read only part of (issue
|
|
131
|
-
* #6330), or read only in an earlier answer (issue #6365)
|
|
132
|
-
*
|
|
193
|
+
* #6330), or read only in an earlier answer (issue #6365), or read earlier
|
|
194
|
+
* in this answer and no longer has (issue #6570), or read all of and no
|
|
195
|
+
* longer has part of (issue #6984) - or write placeholders where values
|
|
196
|
+
* were hidden from Ask AI (issue #6364). Each
|
|
133
197
|
* names the files, as {{files}}: a list of AI_ACTION_CODE_FILE, the first
|
|
134
198
|
* few written out and the rest counted (moreFiles). {{count}} is how many
|
|
135
199
|
* files it names.
|
|
@@ -172,6 +236,26 @@ exports.AI_ACTION_PLURAL_LINES = {
|
|
|
172
236
|
one: (0, Translator_1.translationKey)("Ask AI read this file in an earlier answer and no longer has its text, and its version replaces all of it: {{files}}."),
|
|
173
237
|
other: (0, Translator_1.translationKey)("Ask AI read these {{count}} files in an earlier answer and no longer has their text, and its versions replace all of them: {{files}}."),
|
|
174
238
|
},
|
|
239
|
+
/*
|
|
240
|
+
* Ask AI read the version on the branch earlier in this answer, and no
|
|
241
|
+
* longer has its text (issue #6570): a long answer leaves out its oldest
|
|
242
|
+
* results once it outgrows what the model can take, so it writes the
|
|
243
|
+
* file whole from memory.
|
|
244
|
+
*/
|
|
245
|
+
codeFilesReadEarlierInThisAnswer: {
|
|
246
|
+
one: (0, Translator_1.translationKey)("Ask AI read this file earlier in this answer and no longer has its text, and its version replaces all of it: {{files}}."),
|
|
247
|
+
other: (0, Translator_1.translationKey)("Ask AI read these {{count}} files earlier in this answer and no longer has their text, and its versions replace all of them: {{files}}."),
|
|
248
|
+
},
|
|
249
|
+
/*
|
|
250
|
+
* Ask AI read every line of the version on the branch, in parts, and no
|
|
251
|
+
* longer has some of them (issue #6984): a part read in an earlier
|
|
252
|
+
* answer, or earlier in this answer and left out since. It writes those
|
|
253
|
+
* lines from memory - read, so never "read only part of".
|
|
254
|
+
*/
|
|
255
|
+
codeFilesPartNoLongerInHand: {
|
|
256
|
+
one: (0, Translator_1.translationKey)("Ask AI read this file and no longer has part of its text, and its version replaces all of it: {{files}}."),
|
|
257
|
+
other: (0, Translator_1.translationKey)("Ask AI read these {{count}} files and no longer has part of their text, and its versions replace all of them: {{files}}."),
|
|
258
|
+
},
|
|
175
259
|
// The branch could not be read: never said to be unchanged.
|
|
176
260
|
codeFilesNotChecked: {
|
|
177
261
|
one: (0, Translator_1.translationKey)("OneUptime could not check this file on {{branch}} against what Ask AI read: {{files}}."),
|
|
@@ -193,6 +277,27 @@ exports.AI_ACTION_PLURAL_LINES = {
|
|
|
193
277
|
one: (0, Translator_1.translationKey)("{{count}} more file"),
|
|
194
278
|
other: (0, Translator_1.translationKey)("{{count}} more files"),
|
|
195
279
|
},
|
|
280
|
+
/*
|
|
281
|
+
* set_up_website_monitoring (#6829): what is checked and how often, in
|
|
282
|
+
* minutes ({{count}}), and from how many of the project's locations.
|
|
283
|
+
*/
|
|
284
|
+
websiteMonitorChecks: {
|
|
285
|
+
one: (0, Translator_1.translationKey)("A website monitor checks {{url}} every minute."),
|
|
286
|
+
other: (0, Translator_1.translationKey)("A website monitor checks {{url}} every {{count}} minutes."),
|
|
287
|
+
},
|
|
288
|
+
apiMonitorChecks: {
|
|
289
|
+
one: (0, Translator_1.translationKey)("An API monitor checks {{url}} every minute."),
|
|
290
|
+
other: (0, Translator_1.translationKey)("An API monitor checks {{url}} every {{count}} minutes."),
|
|
291
|
+
},
|
|
292
|
+
checkedFromLocations: {
|
|
293
|
+
one: (0, Translator_1.translationKey)("It is checked from {{count}} location."),
|
|
294
|
+
other: (0, Translator_1.translationKey)("It is checked from {{count}} locations."),
|
|
295
|
+
},
|
|
296
|
+
// The line of the card a new monitor leaves: how often it is checked.
|
|
297
|
+
checkedEveryMinutes: {
|
|
298
|
+
one: (0, Translator_1.translationKey)("Checked every minute"),
|
|
299
|
+
other: (0, Translator_1.translationKey)("Checked every {{count}} minutes"),
|
|
300
|
+
},
|
|
196
301
|
};
|
|
197
302
|
/*
|
|
198
303
|
* The lines a code change's card says which files it would write over
|
|
@@ -206,6 +311,8 @@ exports.AI_ACTION_CODE_CHANGE_LINES = [
|
|
|
206
311
|
exports.AI_ACTION_PLURAL_LINES.codeFilesNotRead.other,
|
|
207
312
|
exports.AI_ACTION_PLURAL_LINES.codeFilesReadInPart.other,
|
|
208
313
|
exports.AI_ACTION_PLURAL_LINES.codeFilesReadInEarlierAnswer.other,
|
|
314
|
+
exports.AI_ACTION_PLURAL_LINES.codeFilesReadEarlierInThisAnswer.other,
|
|
315
|
+
exports.AI_ACTION_PLURAL_LINES.codeFilesPartNoLongerInHand.other,
|
|
209
316
|
exports.AI_ACTION_PLURAL_LINES.codeFilesNotChecked.other,
|
|
210
317
|
exports.AI_ACTION_PLURAL_LINES.codeFilesValuesHidden.other,
|
|
211
318
|
];
|
|
@@ -222,6 +329,19 @@ exports.AI_ACTION_CODE_FILE = "{{file}}";
|
|
|
222
329
|
* the kind in every language.
|
|
223
330
|
*/
|
|
224
331
|
exports.AI_ACTION_RESOURCE_BY_NAME = "{{kind}} {{name}}";
|
|
332
|
+
/*
|
|
333
|
+
* One name in a list, as written: a person a policy pages, a monitor a
|
|
334
|
+
* status page shows (in quotes, written as a JSON string, as a resource's
|
|
335
|
+
* name is). No words of its own: the name is data, in every language.
|
|
336
|
+
*/
|
|
337
|
+
exports.AI_ACTION_NAME = "{{name}}";
|
|
338
|
+
// A team a policy pages, by its name.
|
|
339
|
+
exports.AI_ACTION_TEAM = (0, Translator_1.translationKey)("the {{name}} team");
|
|
340
|
+
/*
|
|
341
|
+
* A monitor a status page will show that the same plan sets up first: it
|
|
342
|
+
* does not exist until the plan is approved.
|
|
343
|
+
*/
|
|
344
|
+
exports.AI_ACTION_NEW_MONITOR = (0, Translator_1.translationKey)("{{name}} (new)");
|
|
225
345
|
/*
|
|
226
346
|
* ---------------------------------------------------------------------------
|
|
227
347
|
* Terms: words a sentence takes, translated with it.
|
|
@@ -260,6 +380,8 @@ exports.AI_ACTION_CARD_KINDS = {
|
|
|
260
380
|
runbook: (0, Translator_1.translationKey)("Runbook"),
|
|
261
381
|
securityCase: (0, Translator_1.translationKey)("Security case"),
|
|
262
382
|
workflow: (0, Translator_1.translationKey)("Workflow"),
|
|
383
|
+
monitor: (0, Translator_1.translationKey)("Monitor"),
|
|
384
|
+
statusPage: (0, Translator_1.translationKey)("Status page"),
|
|
263
385
|
};
|
|
264
386
|
// The line under a card's heading: what happened to the record.
|
|
265
387
|
exports.AI_ACTION_CARD_LINES = {
|
|
@@ -301,6 +423,12 @@ exports.AI_ACTION_CARD_LINES = {
|
|
|
301
423
|
* approved, and the change was made on top of that save (issue #6274).
|
|
302
424
|
*/
|
|
303
425
|
workflowSavedSinceKept: (0, Translator_1.translationKey)("Changes saved after this was proposed were kept"),
|
|
426
|
+
// What a setup action made (#6829): who a new policy pages, no full stop.
|
|
427
|
+
pagesYouForEveryNewEvent: (0, Translator_1.translationKey)("Pages you for every new incident and alert"),
|
|
428
|
+
pagesYouAndOthersForEveryNewEvent: (0, Translator_1.translationKey)("Pages you and {{others}} for every new incident and alert"),
|
|
429
|
+
pagesOthersForEveryNewEvent: (0, Translator_1.translationKey)("Pages {{responders}} for every new incident and alert"),
|
|
430
|
+
statusPagePublished: (0, Translator_1.translationKey)("Published, public at its link"),
|
|
431
|
+
monitorsAdded: (0, Translator_1.translationKey)("Added {{monitors}}"),
|
|
304
432
|
};
|
|
305
433
|
// The names of a card's facts.
|
|
306
434
|
exports.AI_ACTION_CARD_FACTS = {
|
|
@@ -312,7 +440,201 @@ exports.AI_ACTION_CARD_FACTS = {
|
|
|
312
440
|
// Which steps a workflow has, by name: never how many (a count says little).
|
|
313
441
|
workflowSteps: (0, Translator_1.translationKey)("Workflow steps"),
|
|
314
442
|
toFillIn: (0, Translator_1.translationKey)("Still to fill in"),
|
|
443
|
+
// What a setup action made (#6829): a monitor's address, a page's link.
|
|
444
|
+
address: (0, Translator_1.translationKey)("Address"),
|
|
445
|
+
publicLink: (0, Translator_1.translationKey)("Public link"),
|
|
446
|
+
shows: (0, Translator_1.translationKey)("It shows"),
|
|
447
|
+
notAdded: (0, Translator_1.translationKey)("Not added"),
|
|
315
448
|
};
|
|
449
|
+
/*
|
|
450
|
+
* ---------------------------------------------------------------------------
|
|
451
|
+
* The card a read leaves under the answer (issue #7175).
|
|
452
|
+
*
|
|
453
|
+
* A read tool leaves a card that shows a record as it is - a monitor read
|
|
454
|
+
* by id, an SLO, a team, an on-call policy or schedule, a status page, a
|
|
455
|
+
* runbook, a workflow, a security case - drawn plain (issue #6968). It was
|
|
456
|
+
* the server's English in every language: "MONITOR", "Type: Website",
|
|
457
|
+
* "Last status", "Off - not checked", "Disabled". Its words are this
|
|
458
|
+
* module's now, as a write's card's are (WidgetBuilder.resourceCard): the
|
|
459
|
+
* kind and each fact's name a term, the line a sentence or data, and a
|
|
460
|
+
* fact's value data as written (a monitor's name, a status name the
|
|
461
|
+
* project chose, a URL), a word of OneUptime's (a term), a sentence, a
|
|
462
|
+
* figure or a moment. Words the Dashboard already says elsewhere are its
|
|
463
|
+
* own keys ("Type", "Window", "Calendar Month", a monitor type's name), so
|
|
464
|
+
* the card says them as those pages do.
|
|
465
|
+
* ---------------------------------------------------------------------------
|
|
466
|
+
*/
|
|
467
|
+
// The kinds of record a read's card shows, besides AI_ACTION_CARD_KINDS'.
|
|
468
|
+
exports.AI_READ_CARD_KINDS = {
|
|
469
|
+
monitor: (0, Translator_1.translationKey)("Monitor"),
|
|
470
|
+
slo: (0, Translator_1.translationKey)("SLO"),
|
|
471
|
+
team: (0, Translator_1.translationKey)("Team"),
|
|
472
|
+
onCallSchedule: (0, Translator_1.translationKey)("On-call schedule"),
|
|
473
|
+
statusPage: (0, Translator_1.translationKey)("Status page"),
|
|
474
|
+
};
|
|
475
|
+
// The names of a read's card's facts, besides AI_ACTION_CARD_FACTS'.
|
|
476
|
+
exports.AI_READ_CARD_FACTS = {
|
|
477
|
+
type: (0, Translator_1.translationKey)("Type"),
|
|
478
|
+
status: (0, Translator_1.translationKey)("Status"),
|
|
479
|
+
// A monitor whose monitoring is off: the status its last check saw.
|
|
480
|
+
lastStatus: (0, Translator_1.translationKey)("Last status"),
|
|
481
|
+
archived: (0, Translator_1.translationKey)("Archived"),
|
|
482
|
+
monitoring: (0, Translator_1.translationKey)("Monitoring"),
|
|
483
|
+
ownerTeams: (0, Translator_1.translationKey)("Owner teams"),
|
|
484
|
+
ownerUsers: (0, Translator_1.translationKey)("Owner users"),
|
|
485
|
+
target: (0, Translator_1.translationKey)("Target"),
|
|
486
|
+
window: (0, Translator_1.translationKey)("Window"),
|
|
487
|
+
sliType: (0, Translator_1.translationKey)("SLI type"),
|
|
488
|
+
currentSli: (0, Translator_1.translationKey)("Current SLI"),
|
|
489
|
+
errorBudgetLeft: (0, Translator_1.translationKey)("Error budget left"),
|
|
490
|
+
burnRate: (0, Translator_1.translationKey)("Burn rate"),
|
|
491
|
+
monitors: (0, Translator_1.translationKey)("Monitors"),
|
|
492
|
+
monitorRules: (0, Translator_1.translationKey)("Monitor rules"),
|
|
493
|
+
burnRateRules: (0, Translator_1.translationKey)("Burn-rate rules"),
|
|
494
|
+
errorBudgetPolicyTier: (0, Translator_1.translationKey)("Error budget policy tier"),
|
|
495
|
+
deployments: (0, Translator_1.translationKey)("Deployments"),
|
|
496
|
+
escalationRules: (0, Translator_1.translationKey)("Escalation rules"),
|
|
497
|
+
onCallSince: (0, Translator_1.translationKey)("On call since"),
|
|
498
|
+
handsOffAt: (0, Translator_1.translationKey)("Hands off at"),
|
|
499
|
+
nextUp: (0, Translator_1.translationKey)("Next up"),
|
|
500
|
+
nextShiftStarts: (0, Translator_1.translationKey)("Next shift starts"),
|
|
501
|
+
visibility: (0, Translator_1.translationKey)("Visibility"),
|
|
502
|
+
publicUrl: (0, Translator_1.translationKey)("Public URL"),
|
|
503
|
+
resourcesShown: (0, Translator_1.translationKey)("Resources shown"),
|
|
504
|
+
activeSubscribers: (0, Translator_1.translationKey)("Active subscribers"),
|
|
505
|
+
steps: (0, Translator_1.translationKey)("Steps"),
|
|
506
|
+
enabled: (0, Translator_1.translationKey)("Enabled"),
|
|
507
|
+
recentRuns: (0, Translator_1.translationKey)("Recent runs"),
|
|
508
|
+
detections: (0, Translator_1.translationKey)("Detections"),
|
|
509
|
+
entities: (0, Translator_1.translationKey)("Entities"),
|
|
510
|
+
};
|
|
511
|
+
// The line under a read's card's heading, when OneUptime writes it.
|
|
512
|
+
exports.AI_READ_CARD_LINES = {
|
|
513
|
+
// A monitor whose monitoring is off, as the Monitors table says it; a runbook turned off.
|
|
514
|
+
disabled: (0, Translator_1.translationKey)("Disabled"),
|
|
515
|
+
enabled: (0, Translator_1.translationKey)("Enabled"),
|
|
516
|
+
noMembers: (0, Translator_1.translationKey)("No members"),
|
|
517
|
+
noOneOnCall: (0, Translator_1.translationKey)("No one is on call"),
|
|
518
|
+
// Who an on-call schedule has on call now, by name.
|
|
519
|
+
onCallNow: (0, Translator_1.translationKey)("On call now: {{name}}"),
|
|
520
|
+
};
|
|
521
|
+
/*
|
|
522
|
+
* A read's card's values that are OneUptime's words, each said as a term:
|
|
523
|
+
* what being archived means for the record, a figure not worked out yet,
|
|
524
|
+
* a rule table the reader may not read.
|
|
525
|
+
*/
|
|
526
|
+
exports.AI_READ_CARD_VALUES = {
|
|
527
|
+
yes: (0, Translator_1.translationKey)("Yes"),
|
|
528
|
+
no: (0, Translator_1.translationKey)("No"),
|
|
529
|
+
public: (0, Translator_1.translationKey)("Public"),
|
|
530
|
+
private: (0, Translator_1.translationKey)("Private"),
|
|
531
|
+
monitorArchived: (0, Translator_1.translationKey)("Yes - not monitored"),
|
|
532
|
+
monitoringOff: (0, Translator_1.translationKey)("Off - not checked"),
|
|
533
|
+
onCallPolicyArchived: (0, Translator_1.translationKey)("Yes - pages no one"),
|
|
534
|
+
statusPageArchived: (0, Translator_1.translationKey)("Yes - offline, sends nothing"),
|
|
535
|
+
workflowArchived: (0, Translator_1.translationKey)("Yes - does not run"),
|
|
536
|
+
noEscalationRules: (0, Translator_1.translationKey)("None configured"),
|
|
537
|
+
/*
|
|
538
|
+
* Each value starts with a capital, as the card's other values do
|
|
539
|
+
* ("Rolling 30-day window", "Yes - not monitored"): a fact list read
|
|
540
|
+
* "Deployments: frozen by the error budget policy" under "Status: At
|
|
541
|
+
* Risk". Not evaluated yet, None and Allowed are the Dashboard's own
|
|
542
|
+
* words for them elsewhere.
|
|
543
|
+
*/
|
|
544
|
+
// An SLO's figures before the worker first evaluates it.
|
|
545
|
+
notEvaluatedYet: (0, Translator_1.translationKey)("Not evaluated yet"),
|
|
546
|
+
none: (0, Translator_1.translationKey)("None"),
|
|
547
|
+
monitorsPickedByHand: (0, Translator_1.translationKey)("None - monitors are picked by hand"),
|
|
548
|
+
notVisible: (0, Translator_1.translationKey)("Not visible to you"),
|
|
549
|
+
noErrorBudgetPolicy: (0, Translator_1.translationKey)("No error budget policy"),
|
|
550
|
+
aboveEveryTier: (0, Translator_1.translationKey)("None - the budget is above every tier"),
|
|
551
|
+
deploymentsFrozen: (0, Translator_1.translationKey)("Frozen by the error budget policy"),
|
|
552
|
+
deploymentsAllowed: (0, Translator_1.translationKey)("Allowed"),
|
|
553
|
+
// An SLO's window and SLI, as its Settings and Overview name them.
|
|
554
|
+
calendarMonth: (0, Translator_1.translationKey)("Calendar Month"),
|
|
555
|
+
monitorUptime: (0, Translator_1.translationKey)("Monitor uptime"),
|
|
556
|
+
metric: (0, Translator_1.translationKey)("Metric"),
|
|
557
|
+
// An SLO's status, as its list says it, before the worker's.
|
|
558
|
+
archived: (0, Translator_1.translationKey)("Archived"),
|
|
559
|
+
disabled: (0, Translator_1.translationKey)("Disabled"),
|
|
560
|
+
};
|
|
561
|
+
// An SLO's status, as the SLO list names it.
|
|
562
|
+
exports.AI_READ_CARD_SLO_STATUSES = {
|
|
563
|
+
[SloStatus_1.default.Healthy]: (0, Translator_1.translationKey)("Healthy"),
|
|
564
|
+
[SloStatus_1.default.AtRisk]: (0, Translator_1.translationKey)("At Risk"),
|
|
565
|
+
[SloStatus_1.default.BudgetExhausted]: (0, Translator_1.translationKey)("Budget Exhausted"),
|
|
566
|
+
[SloStatus_1.default.Misconfigured]: (0, Translator_1.translationKey)("Misconfigured"),
|
|
567
|
+
[SloStatus_1.default.Paused]: (0, Translator_1.translationKey)("Paused"),
|
|
568
|
+
};
|
|
569
|
+
// What an escalation rule pages, by kind: 'user "Ana"', 'team "SRE"'.
|
|
570
|
+
exports.AI_READ_CARD_NOUNS = {
|
|
571
|
+
user: (0, Translator_1.translationKey)("user"),
|
|
572
|
+
team: (0, Translator_1.translationKey)("team"),
|
|
573
|
+
onCallSchedule: (0, Translator_1.translationKey)("on-call schedule"),
|
|
574
|
+
};
|
|
575
|
+
// A read's card's sentences: an escalation rule's name and what it pages, a status page's resource.
|
|
576
|
+
exports.AI_READ_CARD_SENTENCES = {
|
|
577
|
+
rule: (0, Translator_1.translationKey)("Rule {{order}}"),
|
|
578
|
+
ruleNamed: (0, Translator_1.translationKey)("Rule {{order}} — {{name}}"),
|
|
579
|
+
// {{targets}} is a list of AI_ACTION_RESOURCE_BY_NAME, by AI_READ_CARD_NOUNS.
|
|
580
|
+
pages: (0, Translator_1.translationKey)("Pages {{targets}}"),
|
|
581
|
+
pagesNoOne: (0, Translator_1.translationKey)("Pages no one"),
|
|
582
|
+
// A resource the page names its own way, and the monitor or group it shows.
|
|
583
|
+
resourceFromMonitor: (0, Translator_1.translationKey)("{{name}} (monitor: {{monitor}})"),
|
|
584
|
+
resourceFromMonitorGroup: (0, Translator_1.translationKey)("{{name}} (monitor group: {{group}})"),
|
|
585
|
+
// The page draws it as Not monitored: its monitoring is off.
|
|
586
|
+
resourceNotMonitored: (0, Translator_1.translationKey)("{{resource}} - not monitored"),
|
|
587
|
+
};
|
|
588
|
+
exports.AI_READ_CARD_PLURAL_SENTENCES = {
|
|
589
|
+
// An SLO's rolling window, as its Settings page says it.
|
|
590
|
+
rollingWindow: {
|
|
591
|
+
one: (0, Translator_1.translationKey)("Rolling {{count}}-day window"),
|
|
592
|
+
other: (0, Translator_1.translationKey)("Rolling {{count}}-day window"),
|
|
593
|
+
},
|
|
594
|
+
// {{enabled}} is a figure: how many of the {{count}} rules are on.
|
|
595
|
+
rulesEnabled: {
|
|
596
|
+
one: (0, Translator_1.translationKey)("{{enabled}} of {{count}} enabled"),
|
|
597
|
+
other: (0, Translator_1.translationKey)("{{enabled}} of {{count}} enabled"),
|
|
598
|
+
},
|
|
599
|
+
// {{count}} is minutes.
|
|
600
|
+
pagesThenEscalates: {
|
|
601
|
+
one: (0, Translator_1.translationKey)("Pages {{targets}}, then escalates after {{count}} minute"),
|
|
602
|
+
other: (0, Translator_1.translationKey)("Pages {{targets}}, then escalates after {{count}} minutes"),
|
|
603
|
+
},
|
|
604
|
+
pagesNoOneThenEscalates: {
|
|
605
|
+
one: (0, Translator_1.translationKey)("Pages no one, then escalates after {{count}} minute"),
|
|
606
|
+
other: (0, Translator_1.translationKey)("Pages no one, then escalates after {{count}} minutes"),
|
|
607
|
+
},
|
|
608
|
+
};
|
|
609
|
+
/*
|
|
610
|
+
* Sentences with no words of their own, which take the reader's: a name
|
|
611
|
+
* alone - one of a status page's resources - and a count before what it
|
|
612
|
+
* counts ("2: Checkout, Payments").
|
|
613
|
+
*/
|
|
614
|
+
exports.AI_READ_CARD_NAME = "{{name}}";
|
|
615
|
+
exports.AI_READ_CARD_COUNTED = "{{count}}: {{items}}";
|
|
616
|
+
/*
|
|
617
|
+
* One of a security case's entities: its kind, a word the Dashboard says
|
|
618
|
+
* on the case's page ("IP Address"), then its value, which is data
|
|
619
|
+
* ("10.0.0.7"). No words of its own either.
|
|
620
|
+
*/
|
|
621
|
+
exports.AI_READ_CARD_ENTITY = "{{type}}: {{value}}";
|
|
622
|
+
// The kinds of entity a security case names, by the Dashboard's words for them.
|
|
623
|
+
exports.AI_READ_CARD_ENTITY_TYPES = Object.values(SecurityEntity_1.SecurityEntityType);
|
|
624
|
+
let monitorTypeTerms = null;
|
|
625
|
+
/*
|
|
626
|
+
* Every monitor type's name, as the type picker and the Monitors list
|
|
627
|
+
* write it ("Website", "Docker Container"): a monitor's card says its type
|
|
628
|
+
* by the same word, in the reader's language where the Dashboard has one.
|
|
629
|
+
*/
|
|
630
|
+
function getAIReadCardMonitorTypeTerms() {
|
|
631
|
+
if (!monitorTypeTerms) {
|
|
632
|
+
monitorTypeTerms = MonitorType_1.MonitorTypeHelper.getAllMonitorTypeProps().map((props) => {
|
|
633
|
+
return props.title;
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
return monitorTypeTerms;
|
|
637
|
+
}
|
|
316
638
|
/*
|
|
317
639
|
* ---------------------------------------------------------------------------
|
|
318
640
|
* Every sentence and term a stored action may name.
|
|
@@ -324,10 +646,19 @@ exports.AI_ACTION_SENTENCES = [
|
|
|
324
646
|
...Object.values(exports.AI_ACTION_CARD_LINES),
|
|
325
647
|
exports.AI_ACTION_RESOURCE_BY_NAME,
|
|
326
648
|
exports.AI_ACTION_CODE_FILE,
|
|
649
|
+
exports.AI_ACTION_NAME,
|
|
650
|
+
exports.AI_ACTION_TEAM,
|
|
651
|
+
exports.AI_ACTION_NEW_MONITOR,
|
|
652
|
+
...Object.values(exports.AI_READ_CARD_LINES),
|
|
653
|
+
...Object.values(exports.AI_READ_CARD_SENTENCES),
|
|
654
|
+
exports.AI_READ_CARD_NAME,
|
|
655
|
+
exports.AI_READ_CARD_COUNTED,
|
|
656
|
+
exports.AI_READ_CARD_ENTITY,
|
|
327
657
|
];
|
|
328
658
|
exports.AI_ACTION_PLURAL_SENTENCES = [
|
|
329
659
|
...Object.values(exports.AI_ACTION_PLURAL_TITLES),
|
|
330
660
|
...Object.values(exports.AI_ACTION_PLURAL_LINES),
|
|
661
|
+
...Object.values(exports.AI_READ_CARD_PLURAL_SENTENCES),
|
|
331
662
|
];
|
|
332
663
|
// The kinds of resource, by the nouns the server names them by.
|
|
333
664
|
exports.AI_ACTION_RESOURCE_NOUNS = AiAffectedResources_1.AI_AFFECTED_RESOURCE_KINDS.map((info) => {
|
|
@@ -338,6 +669,12 @@ exports.AI_ACTION_TERM_WORDS = [
|
|
|
338
669
|
...exports.AI_ACTION_RESOURCE_NOUNS,
|
|
339
670
|
...Object.values(exports.AI_ACTION_CARD_KINDS),
|
|
340
671
|
...Object.values(exports.AI_ACTION_CARD_FACTS),
|
|
672
|
+
...Object.values(exports.AI_READ_CARD_KINDS),
|
|
673
|
+
...Object.values(exports.AI_READ_CARD_FACTS),
|
|
674
|
+
...Object.values(exports.AI_READ_CARD_VALUES),
|
|
675
|
+
...Object.values(exports.AI_READ_CARD_SLO_STATUSES),
|
|
676
|
+
...Object.values(exports.AI_READ_CARD_NOUNS),
|
|
677
|
+
...exports.AI_READ_CARD_ENTITY_TYPES,
|
|
341
678
|
];
|
|
342
679
|
/*
|
|
343
680
|
* ---------------------------------------------------------------------------
|
|
@@ -373,6 +710,14 @@ function aiActionResourceByName(data) {
|
|
|
373
710
|
function aiActionCardFact(label, value) {
|
|
374
711
|
return { label: aiActionTerm(label), value };
|
|
375
712
|
}
|
|
713
|
+
// A figure, written the reader's way (AIActionFigure).
|
|
714
|
+
function aiActionFigure(figure, options) {
|
|
715
|
+
return (options === null || options === void 0 ? void 0 : options.isPercent) ? { figure, isPercent: true } : { figure };
|
|
716
|
+
}
|
|
717
|
+
// A moment, written in the reader's language and time zone (AIActionMoment).
|
|
718
|
+
function aiActionMoment(moment) {
|
|
719
|
+
return { moment: moment.toISOString() };
|
|
720
|
+
}
|
|
376
721
|
/*
|
|
377
722
|
* ---------------------------------------------------------------------------
|
|
378
723
|
* Reading a stored sentence (the Dashboard).
|
|
@@ -392,6 +737,25 @@ function isAIActionTerm(value) {
|
|
|
392
737
|
function isAIActionList(value) {
|
|
393
738
|
return isPlainObject(value) && Array.isArray(value["list"]);
|
|
394
739
|
}
|
|
740
|
+
function isAIActionFigure(value) {
|
|
741
|
+
return isPlainObject(value) && typeof value["figure"] === "number";
|
|
742
|
+
}
|
|
743
|
+
function isAIActionMoment(value) {
|
|
744
|
+
return isPlainObject(value) && typeof value["moment"] === "string";
|
|
745
|
+
}
|
|
746
|
+
// A stored figure the Dashboard can write: a finite number, a share or not.
|
|
747
|
+
const isKnownFigure = (value) => {
|
|
748
|
+
return (Number.isFinite(value.figure) &&
|
|
749
|
+
(value.isPercent === undefined || typeof value.isPercent === "boolean"));
|
|
750
|
+
};
|
|
751
|
+
// The longest moment a stored card may hold: an ISO 8601 date and time is 24.
|
|
752
|
+
const MAX_MOMENT_LENGTH = 40;
|
|
753
|
+
// A stored moment the Dashboard can write: a date it can read.
|
|
754
|
+
const isKnownMoment = (value) => {
|
|
755
|
+
return (value.moment.length > 0 &&
|
|
756
|
+
value.moment.length <= MAX_MOMENT_LENGTH &&
|
|
757
|
+
!isNaN(new Date(value.moment).getTime()));
|
|
758
|
+
};
|
|
395
759
|
// The plural template whose "other" form is `template`, if it is one.
|
|
396
760
|
function getAIActionPluralTemplate(template) {
|
|
397
761
|
return exports.AI_ACTION_PLURAL_SENTENCES.find((plural) => {
|
|
@@ -416,6 +780,9 @@ const isKnownValue = (value, depth) => {
|
|
|
416
780
|
return isKnownSentence(item, depth + 1);
|
|
417
781
|
}));
|
|
418
782
|
}
|
|
783
|
+
if (isAIActionFigure(value)) {
|
|
784
|
+
return isKnownFigure(value);
|
|
785
|
+
}
|
|
419
786
|
return false;
|
|
420
787
|
};
|
|
421
788
|
const isKnownSentence = (value, depth) => {
|
|
@@ -478,33 +845,82 @@ function isKnownAIActionWords(value) {
|
|
|
478
845
|
}
|
|
479
846
|
// How many facts a stored card may hold.
|
|
480
847
|
const MAX_CARD_FACTS = 20;
|
|
481
|
-
|
|
482
|
-
|
|
848
|
+
/*
|
|
849
|
+
* The kinds and the names of facts a card may hold: a write's card the
|
|
850
|
+
* write cards' own, a read's card those and the read cards' (issue #7175).
|
|
851
|
+
* A write's card saved with a name only a read's card has - "Steps", a
|
|
852
|
+
* playbook's step count of before - reads as the English it stores.
|
|
853
|
+
*/
|
|
854
|
+
const WRITE_CARD_KIND_TERMS = Object.values(exports.AI_ACTION_CARD_KINDS);
|
|
855
|
+
const READ_CARD_KIND_TERMS = [
|
|
856
|
+
...WRITE_CARD_KIND_TERMS,
|
|
857
|
+
...Object.values(exports.AI_READ_CARD_KINDS),
|
|
858
|
+
];
|
|
859
|
+
const WRITE_CARD_FACT_TERMS = Object.values(exports.AI_ACTION_CARD_FACTS);
|
|
860
|
+
const READ_CARD_FACT_TERMS = [
|
|
861
|
+
...WRITE_CARD_FACT_TERMS,
|
|
862
|
+
...Object.values(exports.AI_READ_CARD_FACTS),
|
|
863
|
+
];
|
|
864
|
+
/*
|
|
865
|
+
* A word a card's fact may hold as its value: one of the module's terms, or
|
|
866
|
+
* a monitor type's name (getAIReadCardMonitorTypeTerms).
|
|
867
|
+
*/
|
|
868
|
+
const isKnownCardValueTerm = (value) => {
|
|
869
|
+
return ((exports.AI_ACTION_TERM_WORDS.includes(value.term) ||
|
|
870
|
+
getAIReadCardMonitorTypeTerms().includes(value.term)) &&
|
|
871
|
+
(value.inSentence === undefined || typeof value.inSentence === "boolean"));
|
|
872
|
+
};
|
|
483
873
|
const isKnownCardTerm = (value, terms) => {
|
|
484
874
|
return (isAIActionTerm(value) &&
|
|
485
875
|
terms.includes(value.term) &&
|
|
486
876
|
(value.inSentence === undefined || typeof value.inSentence === "boolean"));
|
|
487
877
|
};
|
|
488
|
-
|
|
878
|
+
/*
|
|
879
|
+
* A fact's value: data as written, a word of the module, one of its
|
|
880
|
+
* sentences or a list of them, a figure or a moment.
|
|
881
|
+
*/
|
|
489
882
|
const isKnownCardFactValue = (value) => {
|
|
490
883
|
if (typeof value === "string") {
|
|
491
884
|
return true;
|
|
492
885
|
}
|
|
886
|
+
if (isAIActionTerm(value)) {
|
|
887
|
+
return isKnownCardValueTerm(value);
|
|
888
|
+
}
|
|
493
889
|
if (isAIActionList(value)) {
|
|
494
890
|
return isKnownValue(value, 0);
|
|
495
891
|
}
|
|
892
|
+
if (isAIActionFigure(value)) {
|
|
893
|
+
return isKnownFigure(value);
|
|
894
|
+
}
|
|
895
|
+
if (isAIActionMoment(value)) {
|
|
896
|
+
return isKnownMoment(value);
|
|
897
|
+
}
|
|
496
898
|
return isKnownAIActionSentence(value);
|
|
497
899
|
};
|
|
900
|
+
/*
|
|
901
|
+
* A fact's name: one of the module's names - and on a read's card, a
|
|
902
|
+
* sentence of it ("Rule {{order}}").
|
|
903
|
+
*/
|
|
904
|
+
const isKnownCardFactLabel = (value, isRead) => {
|
|
905
|
+
return isRead
|
|
906
|
+
? isKnownCardTerm(value, READ_CARD_FACT_TERMS) ||
|
|
907
|
+
isKnownAIActionSentence(value)
|
|
908
|
+
: isKnownCardTerm(value, WRITE_CARD_FACT_TERMS);
|
|
909
|
+
};
|
|
498
910
|
/*
|
|
499
911
|
* Whether a stored card's words are this module's: only then does the
|
|
500
912
|
* Dashboard draw the card in the reader's language. A card is read from a
|
|
501
913
|
* conversation's saved JSON, so anything else - another kind, a fact named
|
|
502
914
|
* otherwise, a value of another shape, a card saved before it had words -
|
|
503
|
-
* reads as the English the card stores.
|
|
915
|
+
* reads as the English the card stores. `isRead` is whether a read left
|
|
916
|
+
* the card (AIChatTypes' isAIChatReadResourceCard): a read's card may name
|
|
917
|
+
* the kinds and facts only reads show, and hold data in its line - a
|
|
918
|
+
* status name the project chose.
|
|
504
919
|
*/
|
|
505
|
-
function isKnownAIActionCardWords(value) {
|
|
920
|
+
function isKnownAIActionCardWords(value, options) {
|
|
921
|
+
const isRead = (options === null || options === void 0 ? void 0 : options.isRead) === true;
|
|
506
922
|
if (!isPlainObject(value) ||
|
|
507
|
-
!isKnownCardTerm(value["kind"],
|
|
923
|
+
!isKnownCardTerm(value["kind"], isRead ? READ_CARD_KIND_TERMS : WRITE_CARD_KIND_TERMS)) {
|
|
508
924
|
return false;
|
|
509
925
|
}
|
|
510
926
|
const line = value["line"];
|
|
@@ -512,15 +928,17 @@ function isKnownAIActionCardWords(value) {
|
|
|
512
928
|
return ((line === undefined ||
|
|
513
929
|
(Array.isArray(line) &&
|
|
514
930
|
line.length <= MAX_SENTENCE_VALUES &&
|
|
515
|
-
line.every((
|
|
516
|
-
|
|
931
|
+
line.every((part) => {
|
|
932
|
+
// One of the module's sentences, or on a read's card data as written.
|
|
933
|
+
return ((isRead && typeof part === "string") ||
|
|
934
|
+
isKnownAIActionSentence(part));
|
|
517
935
|
}))) &&
|
|
518
936
|
(facts === undefined ||
|
|
519
937
|
(Array.isArray(facts) &&
|
|
520
938
|
facts.length <= MAX_CARD_FACTS &&
|
|
521
939
|
facts.every((fact) => {
|
|
522
940
|
return (isPlainObject(fact) &&
|
|
523
|
-
|
|
941
|
+
isKnownCardFactLabel(fact["label"], isRead) &&
|
|
524
942
|
isKnownCardFactValue(fact["value"]));
|
|
525
943
|
}))));
|
|
526
944
|
}
|
|
@@ -553,9 +971,35 @@ const toTemplateValues = (values, options) => {
|
|
|
553
971
|
}), sentenceTranslator);
|
|
554
972
|
});
|
|
555
973
|
}
|
|
974
|
+
else if (isAIActionFigure(value)) {
|
|
975
|
+
// Written the way the sentence's language writes a figure.
|
|
976
|
+
result[name] = (0, Translator_1.composedValue)((sentenceTranslator) => {
|
|
977
|
+
return describeAIActionFigure(value, sentenceTranslator);
|
|
978
|
+
});
|
|
979
|
+
}
|
|
556
980
|
}
|
|
557
981
|
return result;
|
|
558
982
|
};
|
|
983
|
+
// The most decimals a card's figure is written with: what the server rounds it to.
|
|
984
|
+
const FIGURE_DECIMALS = 2;
|
|
985
|
+
/*
|
|
986
|
+
* A figure as the translator's language writes it, as the SLO pages write
|
|
987
|
+
* theirs: "99.95%" and "1234" in English, as the card always said them;
|
|
988
|
+
* "99,95 %" and "1.234" in German; "۹۹٫۹۵٪" in Persian; Latin digits in
|
|
989
|
+
* Arabic.
|
|
990
|
+
*/
|
|
991
|
+
function describeAIActionFigure(value, translator = getEnglishTranslator()) {
|
|
992
|
+
const written = value.isPercent
|
|
993
|
+
? (0, SloWidgetFormat_1.formatSloPercent)(value.figure, FIGURE_DECIMALS, translator)
|
|
994
|
+
: (0, SloWidgetFormat_1.formatSloNumber)(value.figure, FIGURE_DECIMALS, translator);
|
|
995
|
+
return written !== null && written !== void 0 ? written : `${value.figure}${value.isPercent ? "%" : ""}`;
|
|
996
|
+
}
|
|
997
|
+
// A fact's name in the translator's language: a term, or a sentence with its data.
|
|
998
|
+
function describeAIActionCardLabel(label, translator = getEnglishTranslator(), options) {
|
|
999
|
+
return isAIActionTerm(label)
|
|
1000
|
+
? translator.translateTerm(label.term)
|
|
1001
|
+
: describeAIActionSentence(label, translator, options);
|
|
1002
|
+
}
|
|
559
1003
|
/*
|
|
560
1004
|
* A sentence in the translator's language: the reader's on the Dashboard
|
|
561
1005
|
* (with setsValuesApart, so a value in Latin letters keeps its place in a
|
|
@@ -576,13 +1020,24 @@ function describeAIActionSentence(sentence, translator = getEnglishTranslator(),
|
|
|
576
1020
|
}
|
|
577
1021
|
/*
|
|
578
1022
|
* A card fact's value in the translator's language: data as written, a
|
|
579
|
-
* sentence,
|
|
580
|
-
* list.
|
|
1023
|
+
* word, a sentence, a list of sentences joined the way the language joins
|
|
1024
|
+
* a list, or a figure. A moment is its ISO text here, as the English the
|
|
1025
|
+
* card stores it: the Dashboard writes it in the reader's language and
|
|
1026
|
+
* time zone itself (ResourceCardWords).
|
|
581
1027
|
*/
|
|
582
1028
|
function describeAIActionCardValue(value, translator = getEnglishTranslator(), options) {
|
|
583
1029
|
if (typeof value === "string") {
|
|
584
1030
|
return value;
|
|
585
1031
|
}
|
|
1032
|
+
if (isAIActionTerm(value)) {
|
|
1033
|
+
return translator.translateTerm(value.term);
|
|
1034
|
+
}
|
|
1035
|
+
if (isAIActionFigure(value)) {
|
|
1036
|
+
return describeAIActionFigure(value, translator);
|
|
1037
|
+
}
|
|
1038
|
+
if (isAIActionMoment(value)) {
|
|
1039
|
+
return value.moment;
|
|
1040
|
+
}
|
|
586
1041
|
if (isAIActionList(value)) {
|
|
587
1042
|
return (0, Translator_1.formatList)(value.list.map((item) => {
|
|
588
1043
|
return describeAIActionSentence(item, translator, options);
|
|
@@ -598,8 +1053,10 @@ exports.AI_ACTION_CARD_LINE_SEPARATOR = " · ";
|
|
|
598
1053
|
*/
|
|
599
1054
|
function describeAIActionCardWords(words, translator = getEnglishTranslator()) {
|
|
600
1055
|
const line = (words.line || [])
|
|
601
|
-
.map((
|
|
602
|
-
return
|
|
1056
|
+
.map((part) => {
|
|
1057
|
+
return typeof part === "string"
|
|
1058
|
+
? part
|
|
1059
|
+
: describeAIActionSentence(part, translator);
|
|
603
1060
|
})
|
|
604
1061
|
.filter((text) => {
|
|
605
1062
|
return Boolean(text);
|
|
@@ -607,7 +1064,7 @@ function describeAIActionCardWords(words, translator = getEnglishTranslator()) {
|
|
|
607
1064
|
.join(exports.AI_ACTION_CARD_LINE_SEPARATOR);
|
|
608
1065
|
return Object.assign(Object.assign({ kind: translator.translateTerm(words.kind.term) }, (line ? { line } : {})), { facts: (words.facts || []).map((fact) => {
|
|
609
1066
|
return {
|
|
610
|
-
label:
|
|
1067
|
+
label: describeAIActionCardLabel(fact.label, translator),
|
|
611
1068
|
value: describeAIActionCardValue(fact.value, translator),
|
|
612
1069
|
};
|
|
613
1070
|
}) });
|