@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,430 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toProductEventProperties = exports.getProductEventDefinition = exports.isForbiddenPropertyName = exports.getPropertyNameWords = exports.ALLOWED_PROPERTY_NAMES_WITH_FORBIDDEN_WORDS = exports.FORBIDDEN_PROPERTY_WORDS = exports.PRODUCT_EVENTS = exports.toProductEventToken = exports.COMMON_PRODUCT_EVENT_PROPERTIES = exports.FEEDBACK_PAGE_TOKEN_MAX_LENGTH = exports.PRODUCT_EVENT_TOKEN_MAX_LENGTH = exports.SEARCH_QUERY_MAX_LENGTH = exports.ProductEventName = void 0;
|
|
4
|
+
const ProjectGoal_1 = require("../WelcomeChecklist/ProjectGoal");
|
|
5
|
+
/*
|
|
6
|
+
* The behaviour events the Dashboard sends to product analytics (issue
|
|
7
|
+
* #6830), and the one rule every event follows. Written down for people in
|
|
8
|
+
* Docs/analytics/activation.md; the tests hold that page, this file and the
|
|
9
|
+
* code to each other (Tests/Types/Analytics).
|
|
10
|
+
*
|
|
11
|
+
* THE NAMING RULE
|
|
12
|
+
*
|
|
13
|
+
* `area/thing_happened`: the product area or flow, a slash, then what
|
|
14
|
+
* happened, in the past tense, lower case with underscores -
|
|
15
|
+
* `search/no_results`, `guided_setup/finished`, `activation/
|
|
16
|
+
* first_monitor_created`. The events sent before the rule
|
|
17
|
+
* (`server/monitor_created`, `dashboard/home/search-opened`, ...) keep
|
|
18
|
+
* their names: dashboards are built on them.
|
|
19
|
+
*
|
|
20
|
+
* WHAT EVERY EVENT CARRIES
|
|
21
|
+
*
|
|
22
|
+
* project_id, plan, edition (cloud, enterprise or community), language
|
|
23
|
+
* (the Dashboard's) and is_project_creator (whether the person created
|
|
24
|
+
* the project) - added by ProductEvents.send (Common/UI/Utils) to every
|
|
25
|
+
* event below. A server event carries what the server knows of these
|
|
26
|
+
* (project_id, plan, edition).
|
|
27
|
+
*
|
|
28
|
+
* WHAT NO EVENT CARRIES
|
|
29
|
+
*
|
|
30
|
+
* A name (of a person, a project, a monitor, anything), an email or any
|
|
31
|
+
* other address, a phone number, or text somebody wrote - a message, a
|
|
32
|
+
* note, a title, a description, a question to Ask AI. The one exception
|
|
33
|
+
* is the words of a search that found nothing, on OneUptime Cloud only,
|
|
34
|
+
* cut to SEARCH_QUERY_MAX_LENGTH characters: the best sign of what people
|
|
35
|
+
* cannot find (issue #6830's decision). FORBIDDEN_PROPERTY_WORDS is the
|
|
36
|
+
* list the tests scan every event's property names with.
|
|
37
|
+
*
|
|
38
|
+
* WHERE EVENTS GO
|
|
39
|
+
*
|
|
40
|
+
* Only where product analytics is set up - ANALYTICS_KEY and
|
|
41
|
+
* ANALYTICS_HOST, which OneUptime Cloud sets and a self-hosted server
|
|
42
|
+
* does not - and in the browser only with the visitor's consent and
|
|
43
|
+
* without Global Privacy Control (Utils/Analytics). A self-hosted server
|
|
44
|
+
* sends nothing.
|
|
45
|
+
*
|
|
46
|
+
* ADDING AN EVENT
|
|
47
|
+
*
|
|
48
|
+
* A value in ProductEventName, its entry in PRODUCT_EVENTS (each property
|
|
49
|
+
* it may carry - anything else is dropped before it is sent), a row in
|
|
50
|
+
* Docs/analytics/activation.md, and the call: ProductEvents.send(
|
|
51
|
+
* ProductEventName.X, { ... }). An event a later issue will send is
|
|
52
|
+
* marked with `reservedFor` until it is sent somewhere.
|
|
53
|
+
*/
|
|
54
|
+
var ProductEventName;
|
|
55
|
+
(function (ProductEventName) {
|
|
56
|
+
// The Welcome checklist on Home, kept on the server (#6803).
|
|
57
|
+
ProductEventName["GoalsChosen"] = "home/goals_chosen";
|
|
58
|
+
ProductEventName["ChecklistStepStarted"] = "home/checklist_step_started";
|
|
59
|
+
ProductEventName["ChecklistStepCompleted"] = "home/checklist_step_completed";
|
|
60
|
+
ProductEventName["ChecklistFinished"] = "home/checklist_finished";
|
|
61
|
+
ProductEventName["ChecklistDismissed"] = "home/checklist_dismissed";
|
|
62
|
+
// An invited member's own first steps on Home (#6807).
|
|
63
|
+
ProductEventName["MemberStepStarted"] = "home/member_step_started";
|
|
64
|
+
ProductEventName["MemberStepsDismissed"] = "home/member_steps_dismissed";
|
|
65
|
+
// A product's "How it works" explanation was opened.
|
|
66
|
+
ProductEventName["HowItWorksOpened"] = "how_it_works/opened";
|
|
67
|
+
// A search in the command palette (Cmd/Ctrl+K) found nothing.
|
|
68
|
+
ProductEventName["SearchFoundNothing"] = "search/no_results";
|
|
69
|
+
// Ask AI.
|
|
70
|
+
ProductEventName["AskAiQuestionAsked"] = "ask_ai/question_asked";
|
|
71
|
+
ProductEventName["AskAiAnswerRated"] = "ask_ai/answer_rated";
|
|
72
|
+
// Ask AI sets things up (#6829): a plan proposed, approved, then tested.
|
|
73
|
+
ProductEventName["AskAiSetupProposed"] = "ask_ai/setup_proposed";
|
|
74
|
+
ProductEventName["AskAiSetupApproved"] = "ask_ai/setup_approved";
|
|
75
|
+
ProductEventName["AskAiSetupTestPageSent"] = "ask_ai/setup_test_page_sent";
|
|
76
|
+
// "Import from another tool" was opened.
|
|
77
|
+
ProductEventName["ImporterOpened"] = "importer/opened";
|
|
78
|
+
// "Was this page helpful?" on a docs page (#6822): sent by the docs server.
|
|
79
|
+
ProductEventName["DocsFeedbackGiven"] = "docs/feedback_given";
|
|
80
|
+
// The guided setups (#6804, #6805, #6806).
|
|
81
|
+
ProductEventName["GuidedSetupStarted"] = "guided_setup/started";
|
|
82
|
+
ProductEventName["GuidedSetupStepReached"] = "guided_setup/step_reached";
|
|
83
|
+
ProductEventName["GuidedSetupFinished"] = "guided_setup/finished";
|
|
84
|
+
ProductEventName["GuidedSetupLeft"] = "guided_setup/left";
|
|
85
|
+
/*
|
|
86
|
+
* Somebody told OneUptime how something went (#6832): "How easy was
|
|
87
|
+
* that?" at the end of a guided setup, Give feedback, "Was this clear?"
|
|
88
|
+
* or the first-week check-in. Never the words they wrote.
|
|
89
|
+
*/
|
|
90
|
+
ProductEventName["FeedbackGiven"] = "feedback/given";
|
|
91
|
+
// Products that fit the project: hidden, shown and pinned (#6814).
|
|
92
|
+
ProductEventName["ProductHidden"] = "products/product_hidden";
|
|
93
|
+
ProductEventName["ProductShown"] = "products/product_shown";
|
|
94
|
+
ProductEventName["AllProductsShown"] = "products/all_products_shown";
|
|
95
|
+
ProductEventName["ProductPinned"] = "products/product_pinned";
|
|
96
|
+
ProductEventName["ProductUnpinned"] = "products/product_unpinned";
|
|
97
|
+
// Setup health (#6812): what is misconfigured in the project.
|
|
98
|
+
ProductEventName["SetupHealthOpened"] = "setup_health/opened";
|
|
99
|
+
ProductEventName["SetupHealthFixOpened"] = "setup_health/fix_opened";
|
|
100
|
+
ProductEventName["SetupHealthFindingDismissed"] = "setup_health/finding_dismissed";
|
|
101
|
+
ProductEventName["SetupHealthFindingRestored"] = "setup_health/finding_restored";
|
|
102
|
+
})(ProductEventName || (exports.ProductEventName = ProductEventName = {}));
|
|
103
|
+
// The words of a search that found nothing, at most this long (Cloud only).
|
|
104
|
+
exports.SEARCH_QUERY_MAX_LENGTH = 40;
|
|
105
|
+
// A word-like value (a step's key, where something was opened from) is cut to this.
|
|
106
|
+
exports.PRODUCT_EVENT_TOKEN_MAX_LENGTH = 60;
|
|
107
|
+
// The page a feedback answer was given on: a route with no ids, cut to this.
|
|
108
|
+
exports.FEEDBACK_PAGE_TOKEN_MAX_LENGTH = 200;
|
|
109
|
+
// What ProductEvents.send adds to every event above.
|
|
110
|
+
exports.COMMON_PRODUCT_EVENT_PROPERTIES = [
|
|
111
|
+
"project_id",
|
|
112
|
+
"plan",
|
|
113
|
+
"edition",
|
|
114
|
+
"language",
|
|
115
|
+
"is_project_creator",
|
|
116
|
+
];
|
|
117
|
+
const token = (name) => {
|
|
118
|
+
return {
|
|
119
|
+
name: name,
|
|
120
|
+
isToken: true,
|
|
121
|
+
maxLength: exports.PRODUCT_EVENT_TOKEN_MAX_LENGTH,
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
const TOKEN_UNSAFE_CHARACTERS = /[^a-z0-9_./-]/g;
|
|
125
|
+
/*
|
|
126
|
+
* A value as a token property carries it (ProductEventPropertySpec.isToken):
|
|
127
|
+
* cut to the property's own length, or PRODUCT_EVENT_TOKEN_MAX_LENGTH.
|
|
128
|
+
*/
|
|
129
|
+
const toProductEventToken = (value, maxLength) => {
|
|
130
|
+
return value
|
|
131
|
+
.toLowerCase()
|
|
132
|
+
.replace(TOKEN_UNSAFE_CHARACTERS, "_")
|
|
133
|
+
.slice(0, maxLength !== null && maxLength !== void 0 ? maxLength : exports.PRODUCT_EVENT_TOKEN_MAX_LENGTH);
|
|
134
|
+
};
|
|
135
|
+
exports.toProductEventToken = toProductEventToken;
|
|
136
|
+
/*
|
|
137
|
+
* The goals a project chose (ProjectGoal values joined by ".", in order:
|
|
138
|
+
* toGoalsEventValue), on the checklist's events, so the funnel splits by
|
|
139
|
+
* goal. Long enough for every goal.
|
|
140
|
+
*/
|
|
141
|
+
const goalsProperty = {
|
|
142
|
+
name: "goals",
|
|
143
|
+
isToken: true,
|
|
144
|
+
maxLength: ProjectGoal_1.GOALS_EVENT_VALUE_MAX_LENGTH,
|
|
145
|
+
};
|
|
146
|
+
exports.PRODUCT_EVENTS = [
|
|
147
|
+
{
|
|
148
|
+
name: ProductEventName.GoalsChosen,
|
|
149
|
+
description: 'The project\'s goals were chosen on Home ("What do you want to do first?"), skipped (no goals), or changed.',
|
|
150
|
+
properties: [goalsProperty, { name: "goal_count" }, { name: "is_change" }],
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: ProductEventName.ChecklistStepStarted,
|
|
154
|
+
description: "A step of the Welcome checklist on Home was opened: its page, its guided setup, or Billing when the plan holds it back.",
|
|
155
|
+
properties: [token("step"), goalsProperty, token("needs_plan")],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: ProductEventName.ChecklistStepCompleted,
|
|
159
|
+
description: "A step of the Welcome checklist on Home was seen done for the first time.",
|
|
160
|
+
properties: [token("step"), goalsProperty],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: ProductEventName.ChecklistFinished,
|
|
164
|
+
description: "Every step of the Welcome checklist on Home was seen done for the first time.",
|
|
165
|
+
properties: [{ name: "step_count" }, goalsProperty],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: ProductEventName.ChecklistDismissed,
|
|
169
|
+
description: "Somebody hid the Welcome checklist on Home for themselves, and how far it was.",
|
|
170
|
+
properties: [{ name: "done_count" }, { name: "step_count" }, goalsProperty],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: ProductEventName.MemberStepStarted,
|
|
174
|
+
description: "An invited member opened one of their own first steps on Home: their setup checklist, a test page to themselves, their shifts or the mobile app.",
|
|
175
|
+
properties: [token("step")],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: ProductEventName.MemberStepsDismissed,
|
|
179
|
+
description: "An invited member hid their own first steps on Home, and how many were left.",
|
|
180
|
+
properties: [{ name: "open_count" }],
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: ProductEventName.HowItWorksOpened,
|
|
184
|
+
description: 'A "How it works" explanation was opened: a product\'s, from beside the page\'s title, or How OneUptime works (product "oneuptime"), from Help, Home, Search or the phone menu (source).',
|
|
185
|
+
properties: [token("product"), token("source")],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: ProductEventName.SearchFoundNothing,
|
|
189
|
+
description: "A search in the command palette settled with no result. On Cloud, with the words typed, cut short.",
|
|
190
|
+
properties: [
|
|
191
|
+
token("source"),
|
|
192
|
+
{ name: "query_length" },
|
|
193
|
+
{
|
|
194
|
+
name: "query",
|
|
195
|
+
isCloudOnly: true,
|
|
196
|
+
maxLength: exports.SEARCH_QUERY_MAX_LENGTH,
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: ProductEventName.AskAiQuestionAsked,
|
|
202
|
+
description: "A question was sent to Ask AI. Never the question: whether it started a conversation, and the permission mode.",
|
|
203
|
+
properties: [{ name: "is_new_conversation" }, token("permission_mode")],
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: ProductEventName.AskAiAnswerRated,
|
|
207
|
+
description: "An Ask AI answer was rated helpful or not helpful, or its rating was cleared.",
|
|
208
|
+
properties: [token("rating")],
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: ProductEventName.AskAiSetupProposed,
|
|
212
|
+
description: "Ask AI proposed a setup plan on one approval card: its parts (paging, website_monitor, status_page, status_page_monitors), how many, and the permission mode.",
|
|
213
|
+
properties: [
|
|
214
|
+
token("parts"),
|
|
215
|
+
{ name: "part_count" },
|
|
216
|
+
token("permission_mode"),
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: ProductEventName.AskAiSetupApproved,
|
|
221
|
+
description: "A setup plan's card was answered: the parts approved, and how many were approved and skipped.",
|
|
222
|
+
properties: [
|
|
223
|
+
token("parts"),
|
|
224
|
+
{ name: "approved_count" },
|
|
225
|
+
{ name: "skipped_count" },
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: ProductEventName.AskAiSetupTestPageSent,
|
|
230
|
+
description: "A test page was sent from under an answer that set something up: to yourself or to the policy it made (target).",
|
|
231
|
+
properties: [token("target")],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: ProductEventName.ImporterOpened,
|
|
235
|
+
description: '"Import from another tool" was opened, and from where (?from= on its address, "settings" when it says nothing).',
|
|
236
|
+
properties: [token("from")],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: ProductEventName.DocsFeedbackGiven,
|
|
240
|
+
description: 'A docs page was rated by "Was this page helpful?", on docs where product analytics is set up (OneUptime Cloud), with what went wrong when a no says (reason). Sent by the docs server (Docs/Utils/DocsFeedback).',
|
|
241
|
+
properties: [token("page"), { name: "is_helpful" }, token("reason")],
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: ProductEventName.GuidedSetupStarted,
|
|
245
|
+
description: "A guided setup was opened.",
|
|
246
|
+
properties: [token("setup")],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: ProductEventName.GuidedSetupStepReached,
|
|
250
|
+
description: "A guided setup moved on to a step.",
|
|
251
|
+
properties: [token("setup"), token("step"), { name: "step_number" }],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: ProductEventName.GuidedSetupFinished,
|
|
255
|
+
description: "A guided setup reached its end: the thing works and was tested.",
|
|
256
|
+
properties: [token("setup"), { name: "seconds_taken" }],
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: ProductEventName.GuidedSetupLeft,
|
|
260
|
+
description: "A guided setup was left before its end, and at which step.",
|
|
261
|
+
properties: [token("setup"), token("step"), { name: "step_number" }],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: ProductEventName.FeedbackGiven,
|
|
265
|
+
description: 'Somebody answered "How easy was that?" at the end of a guided setup, sent Give feedback, rated an explanation ("Was this clear?") or answered the first-week check-in: the kind, what it was about (topic), the score or thumbs, whether they wrote anything (has_details) and the page as a route with no ids. Never what they wrote.',
|
|
266
|
+
properties: [
|
|
267
|
+
token("kind"),
|
|
268
|
+
token("topic"),
|
|
269
|
+
{ name: "score" },
|
|
270
|
+
{ name: "is_positive" },
|
|
271
|
+
{ name: "has_details" },
|
|
272
|
+
{
|
|
273
|
+
name: "page",
|
|
274
|
+
isToken: true,
|
|
275
|
+
maxLength: exports.FEEDBACK_PAGE_TOKEN_MAX_LENGTH,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: ProductEventName.ProductHidden,
|
|
281
|
+
description: "A product was hidden in the project (Project Settings > Products, or Home's Keep hidden), and whether it had data.",
|
|
282
|
+
properties: [token("product"), token("source"), { name: "has_data" }],
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: ProductEventName.ProductShown,
|
|
286
|
+
description: "A hidden product was shown again in the project (Project Settings > Products, or Home's Show it).",
|
|
287
|
+
properties: [token("product"), token("source")],
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: ProductEventName.AllProductsShown,
|
|
291
|
+
description: "Every product was shown again in the project, and how many had been hidden.",
|
|
292
|
+
properties: [{ name: "hidden_count" }],
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: ProductEventName.ProductPinned,
|
|
296
|
+
description: "Somebody pinned a product to the nav bar (from the products menu or the product's page), and how many they have pinned now.",
|
|
297
|
+
properties: [token("product"), token("source"), { name: "pin_count" }],
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: ProductEventName.ProductUnpinned,
|
|
301
|
+
description: "Somebody unpinned a product from the nav bar, and how many they have pinned now.",
|
|
302
|
+
properties: [token("product"), token("source"), { name: "pin_count" }],
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: ProductEventName.SetupHealthOpened,
|
|
306
|
+
description: 'Setup health was opened, from where (?from= on its address, "direct" when it says nothing), and how many findings of each level it showed.',
|
|
307
|
+
properties: [
|
|
308
|
+
token("source"),
|
|
309
|
+
{ name: "pages_will_not_arrive_count" },
|
|
310
|
+
{ name: "worth_fixing_count" },
|
|
311
|
+
{ name: "suggestion_count" },
|
|
312
|
+
{ name: "dismissed_count" },
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: ProductEventName.SetupHealthFixOpened,
|
|
317
|
+
description: "The fix of a Setup health finding was opened: which check, at which level.",
|
|
318
|
+
properties: [token("check"), token("level")],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: ProductEventName.SetupHealthFindingDismissed,
|
|
322
|
+
description: "A Setup health finding was dismissed for everyone: which check, and whether a reason was given (never the reason).",
|
|
323
|
+
properties: [token("check"), { name: "has_reason" }],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: ProductEventName.SetupHealthFindingRestored,
|
|
327
|
+
description: "A dismissed Setup health finding was restored.",
|
|
328
|
+
properties: [token("check")],
|
|
329
|
+
},
|
|
330
|
+
];
|
|
331
|
+
/*
|
|
332
|
+
* The words a property name may not hold, split at underscores and capital
|
|
333
|
+
* letters: `project_name`, `toEmail` and `message_text` hold one each. The
|
|
334
|
+
* tests scan every event's property names - these, the server's and the
|
|
335
|
+
* ones sent before the rule - with it.
|
|
336
|
+
*/
|
|
337
|
+
exports.FORBIDDEN_PROPERTY_WORDS = [
|
|
338
|
+
"name",
|
|
339
|
+
"names",
|
|
340
|
+
"email",
|
|
341
|
+
"emails",
|
|
342
|
+
"mail",
|
|
343
|
+
"address",
|
|
344
|
+
"addresses",
|
|
345
|
+
"phone",
|
|
346
|
+
"message",
|
|
347
|
+
"messages",
|
|
348
|
+
"text",
|
|
349
|
+
"body",
|
|
350
|
+
"title",
|
|
351
|
+
"description",
|
|
352
|
+
"content",
|
|
353
|
+
"comment",
|
|
354
|
+
"note",
|
|
355
|
+
"notes",
|
|
356
|
+
"question",
|
|
357
|
+
"answer",
|
|
358
|
+
"password",
|
|
359
|
+
"token",
|
|
360
|
+
"secret",
|
|
361
|
+
"ip",
|
|
362
|
+
];
|
|
363
|
+
/*
|
|
364
|
+
* Property names that hold a forbidden word and are allowed anyway, each
|
|
365
|
+
* with why: none of them carries what the word suggests.
|
|
366
|
+
*/
|
|
367
|
+
exports.ALLOWED_PROPERTY_NAMES_WITH_FORBIDDEN_WORDS = {
|
|
368
|
+
has_password: "Whether the person signed up with a password (server/user_created): true or false.",
|
|
369
|
+
query: `The words of a search that found nothing: on Cloud only, cut to ${exports.SEARCH_QUERY_MAX_LENGTH} characters (search/no_results, issue #6830's decision).`,
|
|
370
|
+
utm_content: "The utm_content of the link a person signed up through: the ad or link variant a campaign named, not text anyone wrote.",
|
|
371
|
+
utmContent: "utm_content as the sign-up page keeps it (utm_event): the ad or link variant a campaign named.",
|
|
372
|
+
};
|
|
373
|
+
const getPropertyNameWords = (propertyName) => {
|
|
374
|
+
return propertyName
|
|
375
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1_$2")
|
|
376
|
+
.toLowerCase()
|
|
377
|
+
.split(/[^a-z0-9]+/)
|
|
378
|
+
.filter((word) => {
|
|
379
|
+
return word.length > 0;
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
exports.getPropertyNameWords = getPropertyNameWords;
|
|
383
|
+
// Whether a property name holds a word no event may carry.
|
|
384
|
+
const isForbiddenPropertyName = (propertyName) => {
|
|
385
|
+
if (exports.ALLOWED_PROPERTY_NAMES_WITH_FORBIDDEN_WORDS[propertyName]) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
return (0, exports.getPropertyNameWords)(propertyName).some((word) => {
|
|
389
|
+
return exports.FORBIDDEN_PROPERTY_WORDS.includes(word);
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.isForbiddenPropertyName = isForbiddenPropertyName;
|
|
393
|
+
const getProductEventDefinition = (name) => {
|
|
394
|
+
return (exports.PRODUCT_EVENTS.find((event) => {
|
|
395
|
+
return event.name === name;
|
|
396
|
+
}) || null);
|
|
397
|
+
};
|
|
398
|
+
exports.getProductEventDefinition = getProductEventDefinition;
|
|
399
|
+
/*
|
|
400
|
+
* The properties an event may carry, as they may be sent: only the ones its
|
|
401
|
+
* definition lists, a Cloud-only one only on Cloud, strings cut to their
|
|
402
|
+
* length, and only plain values - a string, a number or true/false. What is
|
|
403
|
+
* not listed is dropped, so a property nobody reviewed is never sent.
|
|
404
|
+
*/
|
|
405
|
+
const toProductEventProperties = (data) => {
|
|
406
|
+
const definition = (0, exports.getProductEventDefinition)(data.name);
|
|
407
|
+
const allowed = {};
|
|
408
|
+
if (!definition || !data.properties) {
|
|
409
|
+
return allowed;
|
|
410
|
+
}
|
|
411
|
+
for (const spec of definition.properties) {
|
|
412
|
+
if (spec.isCloudOnly && !data.isCloud) {
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
const value = data.properties[spec.name];
|
|
416
|
+
if (typeof value === "string") {
|
|
417
|
+
const text = spec.isToken
|
|
418
|
+
? (0, exports.toProductEventToken)(value, spec.maxLength)
|
|
419
|
+
: value;
|
|
420
|
+
allowed[spec.name] =
|
|
421
|
+
spec.maxLength !== undefined ? text.slice(0, spec.maxLength) : text;
|
|
422
|
+
}
|
|
423
|
+
else if ((typeof value === "number" && Number.isFinite(value)) ||
|
|
424
|
+
typeof value === "boolean") {
|
|
425
|
+
allowed[spec.name] = value;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return allowed;
|
|
429
|
+
};
|
|
430
|
+
exports.toProductEventProperties = toProductEventProperties;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import commonJsModule from "./ProductEvent.js";
|
|
2
|
+
export const ALLOWED_PROPERTY_NAMES_WITH_FORBIDDEN_WORDS = commonJsModule.ALLOWED_PROPERTY_NAMES_WITH_FORBIDDEN_WORDS;
|
|
3
|
+
export const COMMON_PRODUCT_EVENT_PROPERTIES = commonJsModule.COMMON_PRODUCT_EVENT_PROPERTIES;
|
|
4
|
+
export const FEEDBACK_PAGE_TOKEN_MAX_LENGTH = commonJsModule.FEEDBACK_PAGE_TOKEN_MAX_LENGTH;
|
|
5
|
+
export const FORBIDDEN_PROPERTY_WORDS = commonJsModule.FORBIDDEN_PROPERTY_WORDS;
|
|
6
|
+
export const PRODUCT_EVENTS = commonJsModule.PRODUCT_EVENTS;
|
|
7
|
+
export const PRODUCT_EVENT_TOKEN_MAX_LENGTH = commonJsModule.PRODUCT_EVENT_TOKEN_MAX_LENGTH;
|
|
8
|
+
export const ProductEventName = commonJsModule.ProductEventName;
|
|
9
|
+
export const SEARCH_QUERY_MAX_LENGTH = commonJsModule.SEARCH_QUERY_MAX_LENGTH;
|
|
10
|
+
export const getProductEventDefinition = commonJsModule.getProductEventDefinition;
|
|
11
|
+
export const getPropertyNameWords = commonJsModule.getPropertyNameWords;
|
|
12
|
+
export const isForbiddenPropertyName = commonJsModule.isForbiddenPropertyName;
|
|
13
|
+
export const toProductEventProperties = commonJsModule.toProductEventProperties;
|
|
14
|
+
export const toProductEventToken = commonJsModule.toProductEventToken;
|
|
@@ -2,6 +2,10 @@ declare enum AuditLogAction {
|
|
|
2
2
|
Create = "Create",
|
|
3
3
|
Update = "Update",
|
|
4
4
|
Delete = "Delete",
|
|
5
|
-
Download = "Download"
|
|
5
|
+
Download = "Download",
|
|
6
|
+
SignIn = "SignIn",
|
|
7
|
+
SignOut = "SignOut",
|
|
8
|
+
SessionTimeout = "SessionTimeout",
|
|
9
|
+
SessionRevoked = "SessionRevoked"
|
|
6
10
|
}
|
|
7
11
|
export default AuditLogAction;
|
|
@@ -2,6 +2,10 @@ declare enum AuditLogAction {
|
|
|
2
2
|
Create = "Create",
|
|
3
3
|
Update = "Update",
|
|
4
4
|
Delete = "Delete",
|
|
5
|
-
Download = "Download"
|
|
5
|
+
Download = "Download",
|
|
6
|
+
SignIn = "SignIn",
|
|
7
|
+
SignOut = "SignOut",
|
|
8
|
+
SessionTimeout = "SessionTimeout",
|
|
9
|
+
SessionRevoked = "SessionRevoked"
|
|
6
10
|
}
|
|
7
11
|
export default AuditLogAction;
|
|
@@ -10,5 +10,16 @@ var AuditLogAction;
|
|
|
10
10
|
* capture's pcap file. Nothing changed, but who has the traffic matters.
|
|
11
11
|
*/
|
|
12
12
|
AuditLogAction["Download"] = "Download";
|
|
13
|
+
/*
|
|
14
|
+
* A person's sessions (issue #6762): who signed in to OneUptime, how and
|
|
15
|
+
* from where, and how each session ended - signed out, timed out, or
|
|
16
|
+
* revoked because the password changed or the account was blocked. Each
|
|
17
|
+
* is filed in every project its person is a member of, as an entry about
|
|
18
|
+
* the session (Types/AuditLog/AuditLogSessionEvent).
|
|
19
|
+
*/
|
|
20
|
+
AuditLogAction["SignIn"] = "SignIn";
|
|
21
|
+
AuditLogAction["SignOut"] = "SignOut";
|
|
22
|
+
AuditLogAction["SessionTimeout"] = "SessionTimeout";
|
|
23
|
+
AuditLogAction["SessionRevoked"] = "SessionRevoked";
|
|
13
24
|
})(AuditLogAction || (AuditLogAction = {}));
|
|
14
25
|
exports.default = AuditLogAction;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getAuditLogActionLabel = exports.AUDIT_LOG_ACTION_LABELS = void 0;
|
|
7
|
+
const AuditLogAction_1 = __importDefault(require("./AuditLogAction"));
|
|
8
|
+
/*
|
|
9
|
+
* How each action reads where people read the audit log: its table, its
|
|
10
|
+
* filter and an entry's details. An entry, the API and an export carry the
|
|
11
|
+
* action itself ("SignIn"); these are its words ("Sign In").
|
|
12
|
+
*/
|
|
13
|
+
exports.AUDIT_LOG_ACTION_LABELS = {
|
|
14
|
+
[AuditLogAction_1.default.Create]: "Create",
|
|
15
|
+
[AuditLogAction_1.default.Update]: "Update",
|
|
16
|
+
[AuditLogAction_1.default.Delete]: "Delete",
|
|
17
|
+
[AuditLogAction_1.default.Download]: "Download",
|
|
18
|
+
[AuditLogAction_1.default.SignIn]: "Sign In",
|
|
19
|
+
[AuditLogAction_1.default.SignOut]: "Sign Out",
|
|
20
|
+
[AuditLogAction_1.default.SessionTimeout]: "Session Timeout",
|
|
21
|
+
[AuditLogAction_1.default.SessionRevoked]: "Session Revoked",
|
|
22
|
+
};
|
|
23
|
+
// The words of an action, or the action as it is when it is not one this release knows.
|
|
24
|
+
const getAuditLogActionLabel = (action) => {
|
|
25
|
+
if (!action) {
|
|
26
|
+
return "Unknown";
|
|
27
|
+
}
|
|
28
|
+
return exports.AUDIT_LOG_ACTION_LABELS[action] || action;
|
|
29
|
+
};
|
|
30
|
+
exports.getAuditLogActionLabel = getAuditLogActionLabel;
|
|
@@ -7,7 +7,8 @@ export declare enum AuditLogExemptionKind {
|
|
|
7
7
|
Reported = "Reported",
|
|
8
8
|
ActivityFeed = "ActivityFeed",
|
|
9
9
|
WorkingState = "WorkingState",
|
|
10
|
-
PersonalSetup = "PersonalSetup"
|
|
10
|
+
PersonalSetup = "PersonalSetup",
|
|
11
|
+
PersonalPreference = "PersonalPreference"
|
|
11
12
|
}
|
|
12
13
|
export interface AuditLogExemptionKindDescription {
|
|
13
14
|
title: string;
|
|
@@ -7,7 +7,8 @@ export declare enum AuditLogExemptionKind {
|
|
|
7
7
|
Reported = "Reported",
|
|
8
8
|
ActivityFeed = "ActivityFeed",
|
|
9
9
|
WorkingState = "WorkingState",
|
|
10
|
-
PersonalSetup = "PersonalSetup"
|
|
10
|
+
PersonalSetup = "PersonalSetup",
|
|
11
|
+
PersonalPreference = "PersonalPreference"
|
|
11
12
|
}
|
|
12
13
|
export interface AuditLogExemptionKindDescription {
|
|
13
14
|
title: string;
|
|
@@ -29,7 +29,7 @@ const TableColumnType_1 = __importDefault(require("../Database/TableColumnType")
|
|
|
29
29
|
* for the reason its kind gives (AUDIT_LOG_EXEMPTION_KINDS): what machines
|
|
30
30
|
* write and rewrite all day - logs, reports, feeds, working state - would
|
|
31
31
|
* bury every change a person made, and a person's own notification setup
|
|
32
|
-
*
|
|
32
|
+
* and preferences are theirs alone;
|
|
33
33
|
* - every other project-scoped model is audited on create, update and
|
|
34
34
|
* delete, with the configuration getDefaultAuditLogOn works out below.
|
|
35
35
|
*
|
|
@@ -44,6 +44,7 @@ var AuditLogExemptionKind;
|
|
|
44
44
|
AuditLogExemptionKind["ActivityFeed"] = "ActivityFeed";
|
|
45
45
|
AuditLogExemptionKind["WorkingState"] = "WorkingState";
|
|
46
46
|
AuditLogExemptionKind["PersonalSetup"] = "PersonalSetup";
|
|
47
|
+
AuditLogExemptionKind["PersonalPreference"] = "PersonalPreference";
|
|
47
48
|
})(AuditLogExemptionKind || (exports.AuditLogExemptionKind = AuditLogExemptionKind = {}));
|
|
48
49
|
exports.AUDIT_LOG_EXEMPTION_KINDS = {
|
|
49
50
|
[AuditLogExemptionKind.MessageLog]: {
|
|
@@ -70,6 +71,10 @@ exports.AUDIT_LOG_EXEMPTION_KINDS = {
|
|
|
70
71
|
title: "A person's own notification setup",
|
|
71
72
|
reason: "A person's own notification methods, rules and chat accounts, with addresses and numbers only they may read. An administrator changing someone else's is recorded separately, without the address or number.",
|
|
72
73
|
},
|
|
74
|
+
[AuditLogExemptionKind.PersonalPreference]: {
|
|
75
|
+
title: "A person's own preferences",
|
|
76
|
+
reason: "What a person chose for themselves in a project, such as the products they pinned to the top bar. Only they see it and only they can change it, so an entry would tell nobody anything.",
|
|
77
|
+
},
|
|
73
78
|
};
|
|
74
79
|
/*
|
|
75
80
|
* The project-scoped models that are NOT audited, by table name, each with
|
|
@@ -214,6 +219,8 @@ exports.AUDIT_LOG_EXEMPT_TABLES = {
|
|
|
214
219
|
UserWebhook: AuditLogExemptionKind.PersonalSetup,
|
|
215
220
|
UserWhatsApp: AuditLogExemptionKind.PersonalSetup,
|
|
216
221
|
WorkspaceUserAuthToken: AuditLogExemptionKind.PersonalSetup,
|
|
222
|
+
// A person's own preferences.
|
|
223
|
+
ProjectUserPreference: AuditLogExemptionKind.PersonalPreference,
|
|
217
224
|
};
|
|
218
225
|
/*
|
|
219
226
|
* The resources with an Audit Logs page of their own. A page lists the
|
|
@@ -16,8 +16,10 @@ const NumericColumnValue_1 = require("../Database/NumericColumnValue");
|
|
|
16
16
|
* (Project.auditLogsRetentionInDays): a whole number of days from 7 to 180,
|
|
17
17
|
* and 7 until someone sets another. The recorder stamps each entry with it
|
|
18
18
|
* as it records it - the entry's retentionDate, which the AuditLog table's
|
|
19
|
-
* TTL deletes it on
|
|
20
|
-
* the entries it has not sent
|
|
19
|
+
* TTL deletes it on. A failing audit log export reads those stamps back to
|
|
20
|
+
* warn a day before the first of the entries it has not sent is deleted,
|
|
21
|
+
* and reckons with the retention as it is now only when it cannot read
|
|
22
|
+
* them: a retention changed since moves no stamp (#6563).
|
|
21
23
|
*
|
|
22
24
|
* The two used to work it out each their own way, and the server took any
|
|
23
25
|
* value: the settings form checked 7 to 180, but the API took -3, 0 or 3.
|
|
@@ -32,8 +34,9 @@ const NumericColumnValue_1 = require("../Database/NumericColumnValue");
|
|
|
32
34
|
* from 7 to 180 - -3, 0 and 3 as 7, 500 as 180;
|
|
33
35
|
* - getAuditLogRetentionDate: when an entry recorded at a moment is
|
|
34
36
|
* deleted, that many calendar days later by the server's clock
|
|
35
|
-
* (OneUptimeDate.addRemoveDays) - the retentionDate the recorder stamps
|
|
36
|
-
* and the moment a failing export reckons
|
|
37
|
+
* (OneUptimeDate.addRemoveDays) - the retentionDate the recorder stamps,
|
|
38
|
+
* and the moment a failing export reckons when it cannot read the
|
|
39
|
+
* stamps;
|
|
37
40
|
* - getAuditLogRetentionError: why a value cannot be saved, which
|
|
38
41
|
* ProjectService refuses a create or an update with. The settings form
|
|
39
42
|
* checks the same range in the browser.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import AuditLogAction from "./AuditLogAction.mjs";
|
|
2
|
+
import ObjectID from "../ObjectID.mjs";
|
|
3
|
+
import { SessionEndCause } from "../UserSession/SessionEndCause.mjs";
|
|
4
|
+
import { SessionSignIn } from "../UserSession/SessionSignIn.mjs";
|
|
5
|
+
export declare const AUDIT_LOG_SESSION_RESOURCE_TYPE: string;
|
|
6
|
+
export declare const AUDIT_LOG_SESSION_ROOT_RESOURCE_TYPE: string;
|
|
7
|
+
export declare const AUDIT_LOG_SESSION_UNKNOWN_DEVICE: string;
|
|
8
|
+
export type SessionAuditLogAction = AuditLogAction.SignIn | AuditLogAction.SignOut | AuditLogAction.SessionTimeout | AuditLogAction.SessionRevoked;
|
|
9
|
+
export declare const SESSION_AUDIT_LOG_ACTIONS: ReadonlyArray<SessionAuditLogAction>;
|
|
10
|
+
export declare const isSessionAuditLogAction: (action: unknown) => action is SessionAuditLogAction;
|
|
11
|
+
export declare const getSessionEndAuditLogAction: (cause: SessionEndCause) => SessionAuditLogAction;
|
|
12
|
+
export declare const SESSION_END_CAUSE_DESCRIPTIONS: Readonly<Record<SessionEndCause, string>>;
|
|
13
|
+
export declare enum AuditLogSessionField {
|
|
14
|
+
Reason = "reason",
|
|
15
|
+
SignInMethod = "signInMethod",
|
|
16
|
+
SsoProvider = "ssoProvider",
|
|
17
|
+
SecondFactor = "secondFactor",
|
|
18
|
+
Device = "device",
|
|
19
|
+
IpAddress = "ipAddress",
|
|
20
|
+
Location = "location",
|
|
21
|
+
SignedInAt = "signedInAt",
|
|
22
|
+
LastActiveAt = "lastActiveAt",
|
|
23
|
+
EndedAt = "endedAt"
|
|
24
|
+
}
|
|
25
|
+
export declare const AUDIT_LOG_SESSION_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
26
|
+
export declare const AUDIT_LOG_SESSION_FIELD_LABELS: Readonly<Record<AuditLogSessionField, string>>;
|
|
27
|
+
export declare const AUDIT_LOG_SESSION_TIME_FIELDS: ReadonlyArray<AuditLogSessionField>;
|
|
28
|
+
export interface SessionAuditEvent {
|
|
29
|
+
action: SessionAuditLogAction;
|
|
30
|
+
userId: ObjectID;
|
|
31
|
+
sessionId: ObjectID;
|
|
32
|
+
signIn?: SessionSignIn | null | undefined;
|
|
33
|
+
device?: string | undefined;
|
|
34
|
+
ipAddress?: string | undefined;
|
|
35
|
+
location?: string | undefined;
|
|
36
|
+
signedInAt?: Date | undefined;
|
|
37
|
+
lastActiveAt?: Date | undefined;
|
|
38
|
+
endedAt?: Date | undefined;
|
|
39
|
+
endCause?: SessionEndCause | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const readSessionEntryFields: (changes: unknown) => Map<AuditLogSessionField, string>;
|
|
42
|
+
export declare const getSessionEntrySummary: (data: {
|
|
43
|
+
action: string | undefined;
|
|
44
|
+
changes: unknown;
|
|
45
|
+
}) => string;
|