@oneuptime/common 14.3.0 → 16.0.0
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/DatabaseModels/AIAgent.js +7 -1
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.mts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.ts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +62 -0
- package/Models/DatabaseModels/AIRun.d.mts +2 -0
- package/Models/DatabaseModels/AIRun.d.ts +2 -0
- package/Models/DatabaseModels/AIRun.js +63 -0
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DataProduct.js +3 -2
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +187 -11
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
- package/Models/DatabaseModels/Monitor.d.mts +5 -0
- package/Models/DatabaseModels/Monitor.d.ts +5 -0
- package/Models/DatabaseModels/Monitor.js +204 -26
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +59 -20
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
- package/Models/DatabaseModels/Probe.js +7 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSCIM.d.mts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.d.ts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.js +21 -9
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/Runbook.js +3 -2
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +52 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +33 -13
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSCIM.d.mts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.d.ts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.js +17 -8
- package/Models/DatabaseModels/StatusPageSubscriber.js +40 -19
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +36 -1
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +39 -22
- package/Models/DatabaseModels/WebhookLog.js +27 -5
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/Workflow.d.mts +3 -0
- package/Models/DatabaseModels/Workflow.d.ts +3 -0
- package/Models/DatabaseModels/Workflow.js +70 -1
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +78 -39
- package/Server/Services/DatabaseService.d.ts +78 -39
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CarriedRecords.d.mts +35 -0
- package/Types/AI/CarriedRecords.d.ts +35 -0
- package/Types/AI/CarriedRecords.js +211 -0
- package/Types/AI/CarriedRecords.mjs +3 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SetPasswordLink.d.mts +6 -0
- package/Types/Accounts/SetPasswordLink.d.ts +6 -0
- package/Types/Accounts/SetPasswordLink.js +47 -0
- package/Types/Accounts/SetPasswordLink.mjs +7 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CodeRepository/ProductionReview.d.mts +5 -0
- package/Types/CodeRepository/ProductionReview.d.ts +5 -0
- package/Types/CodeRepository/ProductionReview.js +108 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -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/Database/DatabaseProperty.d.mts +1 -0
- package/Types/Database/DatabaseProperty.d.ts +1 -0
- package/Types/Database/DatabaseProperty.js +27 -0
- package/Types/Database/EncryptedValue.d.mts +2 -0
- package/Types/Database/EncryptedValue.d.ts +2 -0
- package/Types/Database/EncryptedValue.js +27 -0
- package/Types/Database/EncryptedValue.mjs +3 -0
- package/Types/Database/TableColumn.d.mts +4 -0
- package/Types/Database/TableColumn.d.ts +4 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailSendFailure.d.mts +20 -0
- package/Types/Email/EmailSendFailure.d.ts +20 -0
- package/Types/Email/EmailSendFailure.js +244 -0
- package/Types/Email/EmailSendFailure.mjs +3 -0
- package/Types/Email/EmailTemplateType.d.mts +3 -1
- package/Types/Email/EmailTemplateType.d.ts +3 -1
- package/Types/Email/EmailTemplateType.js +10 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +16 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +16 -0
- package/Types/Runner/RunnerCodeFixCapability.js +121 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +8 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/ServerSending/ServerSendingStatus.d.mts +23 -2
- package/Types/ServerSending/ServerSendingStatus.d.ts +23 -2
- package/Types/ServerSending/ServerSendingStatus.js +208 -10
- package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +5 -0
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageMagicLink.js +1 -1
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/StatusPageSignInMessages.d.mts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.d.ts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.js +16 -0
- package/Types/StatusPage/StatusPageSignInMessages.mjs +4 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.mts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.ts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.js +63 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.mjs +8 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.mts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.ts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.js +91 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.mjs +10 -0
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/ConnectCallback.d.mts +2 -1
- package/Types/Workspace/ConnectCallback.d.ts +2 -1
- package/Types/Workspace/ConnectCallback.js +8 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.js +6 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +22 -5
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/LookupTable.d.mts +1 -0
- package/Utils/LookupTable.d.ts +1 -0
- package/Utils/LookupTable.js +19 -0
- package/Utils/LookupTable.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.js +19 -99
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +5 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +5 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +128 -10
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorTypeFamily.d.mts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.d.ts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.js +105 -0
- package/Utils/Monitor/MonitorTypeFamily.mjs +3 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/Monitor/StoredCheckEvidence.d.mts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.d.ts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.js +53 -0
- package/Utils/Monitor/StoredCheckEvidence.mjs +5 -0
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +9 -1
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/HistoryWindow.d.mts +3 -0
- package/Utils/StatusPage/HistoryWindow.d.ts +3 -0
- package/Utils/StatusPage/HistoryWindow.js +24 -0
- package/Utils/StatusPage/HistoryWindow.mjs +4 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Suggestions/CodeFixSuggestion.d.mts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.d.ts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.js +9 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +24 -3
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.js +16 -4
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.mts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.ts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.js +17 -5
- package/Utils/Suggestions/TelemetryAiFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +16 -7
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/Utils/WebhookAddressMask.d.mts +9 -0
- package/Utils/WebhookAddressMask.d.ts +9 -0
- package/Utils/WebhookAddressMask.js +66 -0
- package/Utils/WebhookAddressMask.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -6,8 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SyslogHeaderFormat = void 0;
|
|
7
7
|
exports.getSyslogHeaderFormat = getSyslogHeaderFormat;
|
|
8
8
|
exports.parseSyslogMessage = parseSyslogMessage;
|
|
9
|
+
exports.readSyslogStructuredData = readSyslogStructuredData;
|
|
10
|
+
exports.escapeSyslogStructuredDataValue = escapeSyslogStructuredDataValue;
|
|
9
11
|
exports.sanitizeSyslogAttributeKey = sanitizeSyslogAttributeKey;
|
|
12
|
+
exports.syslogStructuredDataAttributeKey = syslogStructuredDataAttributeKey;
|
|
10
13
|
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
14
|
+
const SyslogAttribute_1 = require("../../Types/Syslog/SyslogAttribute");
|
|
11
15
|
const LookupTable_1 = require("../LookupTable");
|
|
12
16
|
// The header a message came with, for callers that treat the two apart.
|
|
13
17
|
var SyslogHeaderFormat;
|
|
@@ -37,6 +41,9 @@ const WORD_WITH_PROCESS_ID = /^([^[]+)\[(.+)\]$/;
|
|
|
37
41
|
const CEF_START = /^CEF:\d+\|/;
|
|
38
42
|
const UNSAFE_KEY_CHARACTER = /[^A-Za-z0-9_.-]/g;
|
|
39
43
|
const BYTE_ORDER_MARK = /^\uFEFF/;
|
|
44
|
+
const WHITESPACE = /\s/;
|
|
45
|
+
// What RFC 5424 escapes in a parameter's value: '"', '\' and ']'.
|
|
46
|
+
const ESCAPED_IN_PARAM_VALUE = /["\\\]]/g;
|
|
40
47
|
function getSyslogHeaderFormat(parsed) {
|
|
41
48
|
if (parsed.version !== undefined) {
|
|
42
49
|
return SyslogHeaderFormat.Rfc5424;
|
|
@@ -56,6 +63,8 @@ function parseSyslogMessage(raw) {
|
|
|
56
63
|
return null;
|
|
57
64
|
}
|
|
58
65
|
let remaining = trimmed;
|
|
66
|
+
// Where `remaining` starts in the line.
|
|
67
|
+
let offset = 0;
|
|
59
68
|
let priority;
|
|
60
69
|
let severity;
|
|
61
70
|
let facility;
|
|
@@ -66,15 +75,18 @@ function parseSyslogMessage(raw) {
|
|
|
66
75
|
severity = priority % 8;
|
|
67
76
|
facility = Math.floor(priority / 8);
|
|
68
77
|
}
|
|
69
|
-
|
|
78
|
+
offset = priorityMatch[0].length;
|
|
79
|
+
remaining = remaining.slice(offset);
|
|
70
80
|
}
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
|
|
81
|
+
const rfc5424Reading = parseRfc5424(remaining);
|
|
82
|
+
if (rfc5424Reading) {
|
|
83
|
+
const rfc5424Parsed = rfc5424Reading.fields;
|
|
84
|
+
const message = stripBom((_a = rfc5424Parsed.message) !== null && _a !== void 0 ? _a : "");
|
|
85
|
+
return withLayout({
|
|
74
86
|
raw: trimmed,
|
|
75
87
|
priority,
|
|
76
|
-
severity: (
|
|
77
|
-
facility: (
|
|
88
|
+
severity: (_b = rfc5424Parsed.severity) !== null && _b !== void 0 ? _b : severity,
|
|
89
|
+
facility: (_c = rfc5424Parsed.facility) !== null && _c !== void 0 ? _c : facility,
|
|
78
90
|
version: rfc5424Parsed.version,
|
|
79
91
|
timestamp: rfc5424Parsed.timestamp,
|
|
80
92
|
hostname: rfc5424Parsed.hostname,
|
|
@@ -83,13 +95,14 @@ function parseSyslogMessage(raw) {
|
|
|
83
95
|
msgId: rfc5424Parsed.msgId,
|
|
84
96
|
structuredDataRaw: rfc5424Parsed.structuredDataRaw,
|
|
85
97
|
structuredData: rfc5424Parsed.structuredData,
|
|
86
|
-
message:
|
|
87
|
-
};
|
|
98
|
+
message: message,
|
|
99
|
+
}, rfc5424Reading.spans, offset);
|
|
88
100
|
}
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
101
|
+
const rfc3164Reading = parseRfc3164(remaining);
|
|
102
|
+
if (rfc3164Reading) {
|
|
103
|
+
const rfc3164Parsed = rfc3164Reading.fields;
|
|
91
104
|
const message = stripBom((_d = rfc3164Parsed.message) !== null && _d !== void 0 ? _d : "");
|
|
92
|
-
return {
|
|
105
|
+
return withLayout({
|
|
93
106
|
raw: trimmed,
|
|
94
107
|
priority,
|
|
95
108
|
severity,
|
|
@@ -103,33 +116,87 @@ function parseSyslogMessage(raw) {
|
|
|
103
116
|
rfc3164Parsed.content !== message
|
|
104
117
|
? { content: rfc3164Parsed.content }
|
|
105
118
|
: {}),
|
|
106
|
-
};
|
|
119
|
+
}, rfc3164Reading.spans, offset);
|
|
107
120
|
}
|
|
108
|
-
return {
|
|
121
|
+
return withLayout({
|
|
109
122
|
raw: trimmed,
|
|
110
123
|
priority,
|
|
111
124
|
severity,
|
|
112
125
|
facility,
|
|
113
126
|
message: stripBom(remaining.trim()),
|
|
127
|
+
}, {}, offset);
|
|
128
|
+
}
|
|
129
|
+
/*
|
|
130
|
+
* The parsed line with where each of its parts sits in it. `spans` are in
|
|
131
|
+
* the text after the priority, which starts at `offset`. The message is
|
|
132
|
+
* what ends the line: every reading takes it from the end, and only cuts
|
|
133
|
+
* from its start.
|
|
134
|
+
*
|
|
135
|
+
* Each span is checked against the text it names, and a reading whose
|
|
136
|
+
* parts are not where it says has no layout at all: a copy of the line is
|
|
137
|
+
* then never put together from parts that may not be its own.
|
|
138
|
+
*/
|
|
139
|
+
function withLayout(parsed, spans, offset) {
|
|
140
|
+
const line = parsed.raw;
|
|
141
|
+
if (!line.endsWith(parsed.message)) {
|
|
142
|
+
return parsed;
|
|
143
|
+
}
|
|
144
|
+
const layout = {
|
|
145
|
+
message: {
|
|
146
|
+
start: line.length - parsed.message.length,
|
|
147
|
+
end: line.length,
|
|
148
|
+
},
|
|
114
149
|
};
|
|
150
|
+
const expected = [
|
|
151
|
+
["hostname", parsed.hostname],
|
|
152
|
+
["appName", parsed.appName],
|
|
153
|
+
["procId", parsed.procId],
|
|
154
|
+
["msgId", parsed.msgId],
|
|
155
|
+
["structuredData", parsed.structuredDataRaw],
|
|
156
|
+
];
|
|
157
|
+
let previousEnd = 0;
|
|
158
|
+
for (const [part, value] of expected) {
|
|
159
|
+
const span = spans[part];
|
|
160
|
+
if (value === undefined && span === undefined) {
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
if (value === undefined || span === undefined) {
|
|
164
|
+
return parsed;
|
|
165
|
+
}
|
|
166
|
+
const inLine = {
|
|
167
|
+
start: span.start + offset,
|
|
168
|
+
end: span.end + offset,
|
|
169
|
+
};
|
|
170
|
+
// Each part in the order a header writes them, none over another.
|
|
171
|
+
if (inLine.start < previousEnd ||
|
|
172
|
+
inLine.end > layout.message.start ||
|
|
173
|
+
line.slice(inLine.start, inLine.end) !== value) {
|
|
174
|
+
return parsed;
|
|
175
|
+
}
|
|
176
|
+
layout[part] = inLine;
|
|
177
|
+
previousEnd = inLine.end;
|
|
178
|
+
}
|
|
179
|
+
return { ...parsed, layout: layout };
|
|
115
180
|
}
|
|
116
181
|
function parseRfc5424(payload) {
|
|
117
|
-
var _a;
|
|
182
|
+
var _a, _b, _c;
|
|
118
183
|
const tokens = splitTokens(payload, 7);
|
|
119
184
|
if (tokens.length < 7) {
|
|
120
185
|
return null;
|
|
121
186
|
}
|
|
122
|
-
const versionToken = tokens[0];
|
|
187
|
+
const versionToken = tokens[0].text;
|
|
123
188
|
if (!VERSION.test(versionToken)) {
|
|
124
189
|
return null;
|
|
125
190
|
}
|
|
126
191
|
const version = parseInt(versionToken, 10);
|
|
127
|
-
const timestampToken = tokens[1].
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const
|
|
192
|
+
const timestampToken = tokens[1].text
|
|
193
|
+
.trim()
|
|
194
|
+
.replace(NIL_TIMESTAMP, "-");
|
|
195
|
+
const hostnameToken = tokens[2].text;
|
|
196
|
+
const appNameToken = tokens[3].text;
|
|
197
|
+
const procIdToken = tokens[4].text;
|
|
198
|
+
const msgIdToken = tokens[5].text;
|
|
199
|
+
const structuredDataAndMessage = tokens[6].text;
|
|
133
200
|
const timestamp = timestampToken && timestampToken !== "-"
|
|
134
201
|
? Date_1.default.parseRfc5424Timestamp(timestampToken)
|
|
135
202
|
: undefined;
|
|
@@ -138,17 +205,40 @@ function parseRfc5424(payload) {
|
|
|
138
205
|
const procId = procIdToken && procIdToken !== "-" ? procIdToken : undefined;
|
|
139
206
|
const msgId = msgIdToken && msgIdToken !== "-" ? msgIdToken : undefined;
|
|
140
207
|
const structuredDataParsed = extractStructuredData(structuredDataAndMessage);
|
|
208
|
+
const tokenSpan = (token, value) => {
|
|
209
|
+
return value === undefined
|
|
210
|
+
? undefined
|
|
211
|
+
: { start: token.start, end: token.start + token.text.length };
|
|
212
|
+
};
|
|
213
|
+
const structuredDataRaw = structuredDataParsed.structuredDataRaw;
|
|
141
214
|
return {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
215
|
+
fields: {
|
|
216
|
+
raw: payload,
|
|
217
|
+
version,
|
|
218
|
+
timestamp,
|
|
219
|
+
hostname,
|
|
220
|
+
appName,
|
|
221
|
+
procId,
|
|
222
|
+
msgId,
|
|
223
|
+
structuredDataRaw: structuredDataRaw,
|
|
224
|
+
structuredData: structuredDataParsed.structuredData,
|
|
225
|
+
message: (_a = structuredDataParsed.message) !== null && _a !== void 0 ? _a : "",
|
|
226
|
+
},
|
|
227
|
+
spans: {
|
|
228
|
+
hostname: tokenSpan(tokens[2], hostname),
|
|
229
|
+
appName: tokenSpan(tokens[3], appName),
|
|
230
|
+
procId: tokenSpan(tokens[4], procId),
|
|
231
|
+
msgId: tokenSpan(tokens[5], msgId),
|
|
232
|
+
structuredData: structuredDataRaw === undefined
|
|
233
|
+
? undefined
|
|
234
|
+
: {
|
|
235
|
+
start: tokens[6].start +
|
|
236
|
+
((_b = structuredDataParsed.structuredDataStart) !== null && _b !== void 0 ? _b : 0),
|
|
237
|
+
end: tokens[6].start +
|
|
238
|
+
((_c = structuredDataParsed.structuredDataStart) !== null && _c !== void 0 ? _c : 0) +
|
|
239
|
+
structuredDataRaw.length,
|
|
240
|
+
},
|
|
241
|
+
},
|
|
152
242
|
};
|
|
153
243
|
}
|
|
154
244
|
function parseRfc3164(payload) {
|
|
@@ -160,6 +250,9 @@ function parseRfc3164(payload) {
|
|
|
160
250
|
const timestampToken = match[1];
|
|
161
251
|
let hostname = match[2];
|
|
162
252
|
let rest = (_a = match[3]) !== null && _a !== void 0 ? _a : "";
|
|
253
|
+
// The header starts the text, and the rest ends it.
|
|
254
|
+
const hostStart = payload.indexOf(hostname, timestampToken.length);
|
|
255
|
+
const restStart = payload.length - rest.length;
|
|
163
256
|
const timestamp = Date_1.default.parseRfc3164Timestamp(timestampToken);
|
|
164
257
|
let appName;
|
|
165
258
|
let procId;
|
|
@@ -172,38 +265,57 @@ function parseRfc3164(payload) {
|
|
|
172
265
|
const tagInPlaceOfHost = hostname.match(TAG_IN_PLACE_OF_HOST);
|
|
173
266
|
if (CEF_START.test(hostname)) {
|
|
174
267
|
return {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
268
|
+
fields: {
|
|
269
|
+
raw: payload,
|
|
270
|
+
timestamp,
|
|
271
|
+
// Everything after the timestamp, as written.
|
|
272
|
+
message: payload
|
|
273
|
+
.slice(payload.indexOf(hostname, timestampToken.length))
|
|
274
|
+
.trim(),
|
|
275
|
+
},
|
|
276
|
+
spans: {},
|
|
181
277
|
};
|
|
182
278
|
}
|
|
183
279
|
if (tagInPlaceOfHost) {
|
|
184
280
|
appName = (_b = tagInPlaceOfHost[1]) === null || _b === void 0 ? void 0 : _b.trim();
|
|
185
281
|
procId = ((_c = tagInPlaceOfHost[2]) === null || _c === void 0 ? void 0 : _c.trim()) || undefined;
|
|
282
|
+
const tag = tagSpans(hostStart, tagInPlaceOfHost);
|
|
186
283
|
hostname = undefined;
|
|
187
284
|
return {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
285
|
+
fields: {
|
|
286
|
+
raw: payload,
|
|
287
|
+
timestamp,
|
|
288
|
+
appName,
|
|
289
|
+
procId,
|
|
290
|
+
message: rest.trim(),
|
|
291
|
+
content: payload
|
|
292
|
+
.slice(payload.indexOf(match[2], timestampToken.length))
|
|
293
|
+
.trim(),
|
|
294
|
+
},
|
|
295
|
+
spans: {
|
|
296
|
+
appName: appName === undefined ? undefined : tag.appName,
|
|
297
|
+
procId: procId === undefined ? undefined : tag.procId,
|
|
298
|
+
},
|
|
196
299
|
};
|
|
197
300
|
}
|
|
301
|
+
const hostSpan = {
|
|
302
|
+
start: hostStart,
|
|
303
|
+
end: hostStart + hostname.length,
|
|
304
|
+
};
|
|
198
305
|
let message = rest.trim();
|
|
199
306
|
const content = message;
|
|
307
|
+
// Where the trimmed rest - its tag first - starts in the text.
|
|
308
|
+
const contentStart = restStart + (rest.length - rest.trimStart().length);
|
|
200
309
|
// "CEF:0|Vendor|..." is the message itself, not a tag named CEF.
|
|
201
310
|
if (CEF_START.test(message)) {
|
|
202
311
|
return {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
312
|
+
fields: {
|
|
313
|
+
raw: payload,
|
|
314
|
+
timestamp,
|
|
315
|
+
hostname,
|
|
316
|
+
message,
|
|
317
|
+
},
|
|
318
|
+
spans: { hostname: hostSpan },
|
|
207
319
|
};
|
|
208
320
|
}
|
|
209
321
|
/*
|
|
@@ -215,10 +327,15 @@ function parseRfc3164(payload) {
|
|
|
215
327
|
*/
|
|
216
328
|
rest = message;
|
|
217
329
|
const tagMatch = rest.match(RFC3164_TAG_WITH_COLON);
|
|
330
|
+
let appNameSpan;
|
|
331
|
+
let procIdSpan;
|
|
218
332
|
if (tagMatch) {
|
|
219
333
|
appName = (_d = tagMatch[1]) === null || _d === void 0 ? void 0 : _d.trim();
|
|
220
334
|
procId = ((_e = tagMatch[2]) === null || _e === void 0 ? void 0 : _e.trim()) || undefined;
|
|
221
335
|
message = rest.slice(tagMatch[0].length).trim();
|
|
336
|
+
const tag = tagSpans(contentStart, tagMatch);
|
|
337
|
+
appNameSpan = tag.appName;
|
|
338
|
+
procIdSpan = procId === undefined ? undefined : tag.procId;
|
|
222
339
|
}
|
|
223
340
|
else {
|
|
224
341
|
const firstTokenMatch = rest.match(FIRST_WORD);
|
|
@@ -233,46 +350,94 @@ function parseRfc3164(payload) {
|
|
|
233
350
|
if (procMatch) {
|
|
234
351
|
appName = (_f = procMatch[1]) === null || _f === void 0 ? void 0 : _f.trim();
|
|
235
352
|
procId = (_g = procMatch[2]) === null || _g === void 0 ? void 0 : _g.trim();
|
|
353
|
+
// A word has no spaces, so neither part has any to trim.
|
|
354
|
+
appNameSpan = {
|
|
355
|
+
start: contentStart,
|
|
356
|
+
end: contentStart + procMatch[1].length,
|
|
357
|
+
};
|
|
358
|
+
procIdSpan = {
|
|
359
|
+
start: contentStart + procMatch[1].length + 1,
|
|
360
|
+
end: contentStart + procMatch[1].length + 1 + procMatch[2].length,
|
|
361
|
+
};
|
|
236
362
|
}
|
|
237
363
|
else {
|
|
238
364
|
appName = firstToken.trim();
|
|
365
|
+
appNameSpan = {
|
|
366
|
+
start: contentStart,
|
|
367
|
+
end: contentStart + firstToken.length,
|
|
368
|
+
};
|
|
239
369
|
}
|
|
240
370
|
message = rest.slice(firstToken.length).trim();
|
|
241
371
|
}
|
|
242
372
|
}
|
|
243
373
|
return {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
374
|
+
fields: {
|
|
375
|
+
raw: payload,
|
|
376
|
+
timestamp,
|
|
377
|
+
hostname,
|
|
378
|
+
appName,
|
|
379
|
+
procId,
|
|
380
|
+
message,
|
|
381
|
+
content,
|
|
382
|
+
},
|
|
383
|
+
spans: {
|
|
384
|
+
hostname: hostSpan,
|
|
385
|
+
appName: appNameSpan,
|
|
386
|
+
procId: procIdSpan,
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
/*
|
|
391
|
+
* Where a tag's name and process id sit, for a match of "name[pid]:" that
|
|
392
|
+
* starts at `start`: the name is one word, and the process id is what is
|
|
393
|
+
* between the brackets, its spaces trimmed off as the reading trims them.
|
|
394
|
+
*/
|
|
395
|
+
function tagSpans(start, tag) {
|
|
396
|
+
const name = tag[1];
|
|
397
|
+
const inBrackets = tag[2];
|
|
398
|
+
if (inBrackets === undefined) {
|
|
399
|
+
return {
|
|
400
|
+
appName: { start: start, end: start + name.length },
|
|
401
|
+
procId: undefined,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
const leading = inBrackets.length - inBrackets.trimStart().length;
|
|
405
|
+
const procIdStart = start + name.length + 1 + leading;
|
|
406
|
+
return {
|
|
407
|
+
appName: { start: start, end: start + name.length },
|
|
408
|
+
procId: {
|
|
409
|
+
start: procIdStart,
|
|
410
|
+
end: procIdStart + inBrackets.trim().length,
|
|
411
|
+
},
|
|
251
412
|
};
|
|
252
413
|
}
|
|
414
|
+
// The first words of `source` and what is left after them, with where each starts.
|
|
253
415
|
function splitTokens(source, expected) {
|
|
254
416
|
const tokens = [];
|
|
255
417
|
let remaining = source.trimStart();
|
|
256
418
|
for (let i = 0; i < expected - 1; i++) {
|
|
419
|
+
// `remaining` is always what ends `source`.
|
|
420
|
+
const start = source.length - remaining.length;
|
|
257
421
|
if (!remaining) {
|
|
258
|
-
tokens.push("");
|
|
422
|
+
tokens.push({ text: "", start: start });
|
|
259
423
|
continue;
|
|
260
424
|
}
|
|
261
425
|
const match = remaining.match(FIRST_WORD);
|
|
262
426
|
if (!match) {
|
|
263
|
-
tokens.push("");
|
|
427
|
+
tokens.push({ text: "", start: start });
|
|
264
428
|
remaining = "";
|
|
265
429
|
continue;
|
|
266
430
|
}
|
|
267
431
|
const token = match[1];
|
|
268
|
-
tokens.push(token);
|
|
432
|
+
tokens.push({ text: token, start: start });
|
|
269
433
|
remaining = remaining.slice(token.length).trimStart();
|
|
270
434
|
}
|
|
271
|
-
tokens.push(remaining);
|
|
435
|
+
tokens.push({ text: remaining, start: source.length - remaining.length });
|
|
272
436
|
return tokens;
|
|
273
437
|
}
|
|
274
438
|
function extractStructuredData(value) {
|
|
275
439
|
const trimmed = value.trimStart();
|
|
440
|
+
const start = value.length - trimmed.length;
|
|
276
441
|
if (!trimmed) {
|
|
277
442
|
return { message: "" };
|
|
278
443
|
}
|
|
@@ -282,49 +447,200 @@ function extractStructuredData(value) {
|
|
|
282
447
|
if (!trimmed.startsWith("[")) {
|
|
283
448
|
return { message: trimmed };
|
|
284
449
|
}
|
|
450
|
+
const reading = readStructuredDataElements(trimmed);
|
|
451
|
+
// Never closed: all of it is the structured data, and there is no message.
|
|
452
|
+
if (reading.close === -1) {
|
|
453
|
+
return {
|
|
454
|
+
structuredDataRaw: trimmed.trim(),
|
|
455
|
+
structuredDataStart: start,
|
|
456
|
+
structuredData: structuredDataOf(reading.elements),
|
|
457
|
+
message: "",
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
structuredDataRaw: trimmed.slice(0, reading.close + 1),
|
|
462
|
+
structuredDataStart: start,
|
|
463
|
+
structuredData: structuredDataOf(reading.elements),
|
|
464
|
+
message: trimmed.slice(reading.close + 1).trimStart(),
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
/*
|
|
468
|
+
* Reads RFC 5424 structured data - the text that starts with its first
|
|
469
|
+
* "[", the message after it or not - into its parameters: each one's SD-ID
|
|
470
|
+
* and name as written, its value with the escapes read, and where that
|
|
471
|
+
* value sits in `structuredData`.
|
|
472
|
+
*
|
|
473
|
+
* The same reading the line's own gets, so it finds the same parameters in
|
|
474
|
+
* a line's `structuredDataRaw` that parseSyslogMessage found in the line.
|
|
475
|
+
*/
|
|
476
|
+
function readSyslogStructuredData(structuredData) {
|
|
477
|
+
if (!structuredData.startsWith("[")) {
|
|
478
|
+
return { structuredData: {}, params: [] };
|
|
479
|
+
}
|
|
480
|
+
const elements = readStructuredDataElements(structuredData).elements;
|
|
481
|
+
return {
|
|
482
|
+
structuredData: structuredDataOf(elements),
|
|
483
|
+
params: elements.flatMap((element) => {
|
|
484
|
+
return element.params;
|
|
485
|
+
}),
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
/*
|
|
489
|
+
* RFC 5424 structured data is one element after another: "[", an SD-ID,
|
|
490
|
+
* name="value" parameters each after a space, "]". In a value, '"', '\'
|
|
491
|
+
* and ']' are written '\"', '\\' and '\]', and a backslash before any
|
|
492
|
+
* other character is a backslash (RFC 5424 6.3.3).
|
|
493
|
+
*
|
|
494
|
+
* Devices get it wrong, and a line is read as well as it can be:
|
|
495
|
+
*
|
|
496
|
+
* - A "]" inside a quoted value does not end its element, escaped or not.
|
|
497
|
+
* - An element that does not read with its escapes - a Windows path that
|
|
498
|
+
* ends in a backslash, path="C:\" - is read as written, a value ending
|
|
499
|
+
* at the next quote, as before escapes were read.
|
|
500
|
+
* - An element that reads neither way keeps no parameters, and ends where
|
|
501
|
+
* its brackets close, counted as before.
|
|
502
|
+
* - Elements may have spaces between them.
|
|
503
|
+
*
|
|
504
|
+
* `text` starts with "[". `close` is where the last element's "]" is, or
|
|
505
|
+
* -1 when an element never closes: then everything is the structured data.
|
|
506
|
+
* Each element is read once, so this takes time in line with the text.
|
|
507
|
+
*/
|
|
508
|
+
function readStructuredDataElements(text) {
|
|
509
|
+
const elements = [];
|
|
510
|
+
let open = 0;
|
|
511
|
+
for (;;) {
|
|
512
|
+
const element = readStructuredDataElement(text, open, true) ||
|
|
513
|
+
readStructuredDataElement(text, open, false);
|
|
514
|
+
let close;
|
|
515
|
+
if (element) {
|
|
516
|
+
elements.push(element);
|
|
517
|
+
close = element.close;
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
close = closingBracketByDepth(text, open);
|
|
521
|
+
if (close === -1) {
|
|
522
|
+
return { elements: elements, close: -1 };
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
let next = close + 1;
|
|
526
|
+
while (next < text.length && text[next] === " ") {
|
|
527
|
+
next++;
|
|
528
|
+
}
|
|
529
|
+
if (text[next] !== "[") {
|
|
530
|
+
return { elements: elements, close: close };
|
|
531
|
+
}
|
|
532
|
+
open = next;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/*
|
|
536
|
+
* One element, at the "[" at `open`: "[" SD-ID, then each parameter after
|
|
537
|
+
* one or more spaces, then "]" - exactly as the pattern
|
|
538
|
+
* \[([^\s\]]+)((?:\s+[^\s=]+="VALUE")*)\] reads it, where a VALUE is
|
|
539
|
+
* (?:[^"\\]|\\[\s\S])* with its escapes read, or [^"]* without. Null when
|
|
540
|
+
* the element does not read so.
|
|
541
|
+
*/
|
|
542
|
+
function readStructuredDataElement(text, open, withEscapes) {
|
|
543
|
+
let position = open + 1;
|
|
544
|
+
while (position < text.length &&
|
|
545
|
+
text[position] !== "]" &&
|
|
546
|
+
!isWhitespace(text[position])) {
|
|
547
|
+
position++;
|
|
548
|
+
}
|
|
549
|
+
if (position === open + 1) {
|
|
550
|
+
return null;
|
|
551
|
+
}
|
|
552
|
+
const sdId = text.slice(open + 1, position);
|
|
553
|
+
const params = [];
|
|
554
|
+
for (;;) {
|
|
555
|
+
if (position >= text.length) {
|
|
556
|
+
return null;
|
|
557
|
+
}
|
|
558
|
+
if (text[position] === "]") {
|
|
559
|
+
return { sdId: sdId, params: params, close: position };
|
|
560
|
+
}
|
|
561
|
+
if (!isWhitespace(text[position])) {
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
while (position < text.length && isWhitespace(text[position])) {
|
|
565
|
+
position++;
|
|
566
|
+
}
|
|
567
|
+
const nameStart = position;
|
|
568
|
+
while (position < text.length &&
|
|
569
|
+
text[position] !== "=" &&
|
|
570
|
+
!isWhitespace(text[position])) {
|
|
571
|
+
position++;
|
|
572
|
+
}
|
|
573
|
+
if (position === nameStart || text[position] !== "=") {
|
|
574
|
+
return null;
|
|
575
|
+
}
|
|
576
|
+
const name = text.slice(nameStart, position);
|
|
577
|
+
if (text[position + 1] !== '"') {
|
|
578
|
+
return null;
|
|
579
|
+
}
|
|
580
|
+
position += 2;
|
|
581
|
+
const valueStart = position;
|
|
582
|
+
let value = "";
|
|
583
|
+
let unread = position;
|
|
584
|
+
for (;;) {
|
|
585
|
+
if (position >= text.length) {
|
|
586
|
+
return null;
|
|
587
|
+
}
|
|
588
|
+
const character = text[position];
|
|
589
|
+
if (character === '"') {
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
if (withEscapes && character === "\\") {
|
|
593
|
+
if (position + 1 >= text.length) {
|
|
594
|
+
return null;
|
|
595
|
+
}
|
|
596
|
+
const escaped = text[position + 1];
|
|
597
|
+
if (escaped === '"' || escaped === "\\" || escaped === "]") {
|
|
598
|
+
value += text.slice(unread, position) + escaped;
|
|
599
|
+
unread = position + 2;
|
|
600
|
+
}
|
|
601
|
+
// Any other character after it: both are kept as they are.
|
|
602
|
+
position += 2;
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
position++;
|
|
606
|
+
}
|
|
607
|
+
value += text.slice(unread, position);
|
|
608
|
+
params.push({
|
|
609
|
+
sdId: sdId,
|
|
610
|
+
name: name,
|
|
611
|
+
value: value,
|
|
612
|
+
valueSpan: { start: valueStart, end: position },
|
|
613
|
+
});
|
|
614
|
+
// Past the closing quote.
|
|
615
|
+
position++;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
// The "]" that closes the element at `open`, its brackets counted; -1 if none.
|
|
619
|
+
function closingBracketByDepth(text, open) {
|
|
285
620
|
let depth = 0;
|
|
286
|
-
for (let i =
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
621
|
+
for (let i = open; i < text.length; i++) {
|
|
622
|
+
const character = text[i];
|
|
623
|
+
if (character === "[") {
|
|
289
624
|
depth++;
|
|
290
625
|
}
|
|
291
|
-
else if (
|
|
626
|
+
else if (character === "]") {
|
|
292
627
|
depth--;
|
|
293
628
|
if (depth === 0) {
|
|
294
|
-
|
|
295
|
-
while (peekIndex < trimmed.length && trimmed[peekIndex] === " ") {
|
|
296
|
-
peekIndex++;
|
|
297
|
-
}
|
|
298
|
-
if (trimmed[peekIndex] === "[") {
|
|
299
|
-
i = peekIndex - 1;
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
const structuredDataRaw = trimmed.slice(0, i + 1).trimEnd();
|
|
303
|
-
const message = trimmed.slice(i + 1).trimStart();
|
|
304
|
-
return {
|
|
305
|
-
structuredDataRaw,
|
|
306
|
-
structuredData: parseStructuredData(structuredDataRaw),
|
|
307
|
-
message,
|
|
308
|
-
};
|
|
629
|
+
return i;
|
|
309
630
|
}
|
|
310
631
|
}
|
|
311
632
|
}
|
|
312
|
-
|
|
313
|
-
return {
|
|
314
|
-
structuredDataRaw,
|
|
315
|
-
structuredData: parseStructuredData(structuredDataRaw),
|
|
316
|
-
message: "",
|
|
317
|
-
};
|
|
633
|
+
return -1;
|
|
318
634
|
}
|
|
319
|
-
|
|
320
|
-
|
|
635
|
+
/*
|
|
636
|
+
* The elements as the record keeps them, one entry per SD-ID - two
|
|
637
|
+
* elements with one SD-ID share it - each parameter under its name, made
|
|
638
|
+
* safe for an attribute key.
|
|
639
|
+
*/
|
|
640
|
+
function structuredDataOf(elements) {
|
|
321
641
|
const result = {};
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
while ((match = sdRegex.exec(raw)) !== null) {
|
|
325
|
-
const sdIdRaw = match[1];
|
|
326
|
-
const params = (_a = match[2]) !== null && _a !== void 0 ? _a : "";
|
|
327
|
-
const sdId = sanitizeKey(sdIdRaw);
|
|
642
|
+
for (const element of elements) {
|
|
643
|
+
const sdId = sanitizeKey(element.sdId);
|
|
328
644
|
/*
|
|
329
645
|
* The element's own entry only, written as the result's own key. An
|
|
330
646
|
* SD-ID and a parameter name are whatever the sender wrote, and a
|
|
@@ -339,20 +655,32 @@ function parseStructuredData(raw) {
|
|
|
339
655
|
entry = {};
|
|
340
656
|
(0, LookupTable_1.writeOwnValue)(result, sdId, entry);
|
|
341
657
|
}
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
while ((paramMatch = paramRegex.exec(params)) !== null) {
|
|
345
|
-
const keyRaw = paramMatch[1];
|
|
346
|
-
const value = (_b = paramMatch[2]) !== null && _b !== void 0 ? _b : "";
|
|
347
|
-
const key = sanitizeKey(keyRaw);
|
|
348
|
-
(0, LookupTable_1.writeOwnValue)(entry, key, value);
|
|
658
|
+
for (const param of element.params) {
|
|
659
|
+
(0, LookupTable_1.writeOwnValue)(entry, sanitizeKey(param.name), param.value);
|
|
349
660
|
}
|
|
350
661
|
}
|
|
351
662
|
return result;
|
|
352
663
|
}
|
|
664
|
+
function isWhitespace(character) {
|
|
665
|
+
return WHITESPACE.test(character);
|
|
666
|
+
}
|
|
667
|
+
/*
|
|
668
|
+
* A parameter's value as RFC 5424 writes it between its quotes: '"', '\'
|
|
669
|
+
* and ']' escaped with a backslash.
|
|
670
|
+
*/
|
|
671
|
+
function escapeSyslogStructuredDataValue(value) {
|
|
672
|
+
return value.replace(ESCAPED_IN_PARAM_VALUE, "\\$&");
|
|
673
|
+
}
|
|
353
674
|
function sanitizeSyslogAttributeKey(key) {
|
|
354
675
|
return key.replace(UNSAFE_KEY_CHARACTER, "_");
|
|
355
676
|
}
|
|
677
|
+
/*
|
|
678
|
+
* The attribute a structured-data parameter is kept as, whichever way the
|
|
679
|
+
* line arrived: syslog.structured.<SD-ID>.<name>, each made safe.
|
|
680
|
+
*/
|
|
681
|
+
function syslogStructuredDataAttributeKey(sdId, name) {
|
|
682
|
+
return `${SyslogAttribute_1.SYSLOG_STRUCTURED_ATTRIBUTE_PREFIX}${sanitizeSyslogAttributeKey(sdId)}.${sanitizeSyslogAttributeKey(name)}`;
|
|
683
|
+
}
|
|
356
684
|
function sanitizeKey(key) {
|
|
357
685
|
return sanitizeSyslogAttributeKey(key);
|
|
358
686
|
}
|