@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
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.MONITOR_LIST_WIDGET_SELECT = exports.getMonitorListRowStatus = exports.getMonitorListQuery = exports.MONITOR_LIST_NO_STATUS_LABEL = exports.MONITOR_LIST_MONITORING_OFF_STATUS_COLOR = exports.MONITOR_LIST_MONITORING_OFF_STATUS_LABEL = exports.MONITOR_LIST_STATUS_FILTER_VALUES = exports.MONITOR_LIST_STATUS_FILTER_NON_OPERATIONAL = exports.MONITOR_LIST_STATUS_FILTER_OPERATIONAL = void 0;
|
|
7
40
|
const Includes_1 = __importDefault(require("../../Types/BaseDatabase/Includes"));
|
|
41
|
+
const NotNull_1 = __importDefault(require("../../Types/BaseDatabase/NotNull"));
|
|
8
42
|
const BrandColors_1 = require("../../Types/BrandColors");
|
|
9
43
|
const Translator_1 = require("../../Types/Translator");
|
|
10
44
|
const MonitoringOff_1 = __importDefault(require("../Monitor/MonitoringOff"));
|
|
45
|
+
const MonitorRowStatus_1 = __importStar(require("../Monitor/MonitorRowStatus"));
|
|
11
46
|
const NotOperationalMonitorQuery_1 = __importDefault(require("../Monitor/NotOperationalMonitorQuery"));
|
|
12
47
|
/*
|
|
13
48
|
* The dashboard Monitor List widget's rules: which monitors a stored filter
|
|
@@ -27,6 +62,14 @@ const NotOperationalMonitorQuery_1 = __importDefault(require("../Monitor/NotOper
|
|
|
27
62
|
* never matches it: "non-operational" would list a monitor nobody is
|
|
28
63
|
* checking as down, and "operational" one as up. The SLO List widget treats
|
|
29
64
|
* a disabled SLO the same way (Utils/Slo/SloListWidgetFormat).
|
|
65
|
+
*
|
|
66
|
+
* A row says what the Monitors table's row says, from the one rule both
|
|
67
|
+
* read (Utils/Monitor/MonitorRowStatus): Disabled, No Probe Enabled or
|
|
68
|
+
* Probes Disconnected where nothing checks the monitor, and Waiting for
|
|
69
|
+
* data, No results yet or Paused where nothing has checked it yet and it
|
|
70
|
+
* is still in the operational status it was created in (issue #8899).
|
|
71
|
+
* "operational" lists none of those last: no check stands behind their
|
|
72
|
+
* Operational, as none stands behind a turned-off monitor's.
|
|
30
73
|
*/
|
|
31
74
|
exports.MONITOR_LIST_STATUS_FILTER_OPERATIONAL = "operational";
|
|
32
75
|
exports.MONITOR_LIST_STATUS_FILTER_NON_OPERATIONAL = "non-operational";
|
|
@@ -48,6 +91,7 @@ const getMonitorListQuery = (filter, projectId) => {
|
|
|
48
91
|
else if (filter.statusFilter === exports.MONITOR_LIST_STATUS_FILTER_OPERATIONAL) {
|
|
49
92
|
Object.assign(query, MonitoringOff_1.default.getMonitoredQuery(), {
|
|
50
93
|
currentMonitorStatus: { isOperationalState: true },
|
|
94
|
+
firstMeasuredAt: new NotNull_1.default(),
|
|
51
95
|
});
|
|
52
96
|
}
|
|
53
97
|
if (filter.monitorStatusIds && filter.monitorStatusIds.length > 0) {
|
|
@@ -58,31 +102,23 @@ const getMonitorListQuery = (filter, projectId) => {
|
|
|
58
102
|
return query;
|
|
59
103
|
};
|
|
60
104
|
exports.getMonitorListQuery = getMonitorListQuery;
|
|
61
|
-
const getMonitorListRowStatus = (monitor) => {
|
|
62
|
-
|
|
63
|
-
if (MonitoringOff_1.default.isOff(monitor)) {
|
|
64
|
-
return {
|
|
65
|
-
text: exports.MONITOR_LIST_MONITORING_OFF_STATUS_LABEL,
|
|
66
|
-
color: exports.MONITOR_LIST_MONITORING_OFF_STATUS_COLOR,
|
|
67
|
-
isMonitoringOff: true,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
105
|
+
const getMonitorListRowStatus = (monitor, now) => {
|
|
106
|
+
const status = MonitorRowStatus_1.default.getRowStatus(monitor, now);
|
|
70
107
|
return {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
isMonitoringOff: false,
|
|
108
|
+
...status,
|
|
109
|
+
isMonitoringOff: status.kind === MonitorRowStatus_1.MonitorRowStatusKind.MonitoringOff,
|
|
74
110
|
};
|
|
75
111
|
};
|
|
76
112
|
exports.getMonitorListRowStatus = getMonitorListRowStatus;
|
|
77
113
|
/*
|
|
78
|
-
* The fields a row draws
|
|
79
|
-
*
|
|
80
|
-
*
|
|
114
|
+
* The fields a row draws: everything the row rule reads
|
|
115
|
+
* (MONITOR_ROW_STATUS_SELECT), beside the name and type. The public endpoint
|
|
116
|
+
* pins this same select server-side (PublicDashboardResourceListPolicy), so
|
|
117
|
+
* a public page says what the board says of each monitor.
|
|
81
118
|
*/
|
|
82
119
|
exports.MONITOR_LIST_WIDGET_SELECT = {
|
|
83
120
|
_id: true,
|
|
84
121
|
name: true,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
currentMonitorStatus: { name: true, color: true },
|
|
122
|
+
...MonitorRowStatus_1.MONITOR_ROW_STATUS_SELECT,
|
|
123
|
+
currentMonitorStatus: { ...MonitorRowStatus_1.MONITOR_ROW_STATUS_SELECT.currentMonitorStatus },
|
|
88
124
|
};
|
|
@@ -46,6 +46,7 @@ const IncomingCallRingTime_1 = require("../../Types/IncomingCall/IncomingCallRin
|
|
|
46
46
|
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
47
47
|
const RestrictionTimes_1 = __importDefault(require("../../Types/OnCallDutyPolicy/RestrictionTimes"));
|
|
48
48
|
const PositiveNumber_1 = __importDefault(require("../../Types/PositiveNumber"));
|
|
49
|
+
const NoBreakSpaces_1 = require("../../Types/NoBreakSpaces");
|
|
49
50
|
// Helpers that keep the profiles below readable.
|
|
50
51
|
function literal(value) {
|
|
51
52
|
return { kind: "literal", value };
|
|
@@ -1128,7 +1129,7 @@ exports.DEVELOPER_DOCS_PROFILES = {
|
|
|
1128
1129
|
recipes: [
|
|
1129
1130
|
{
|
|
1130
1131
|
title: "Route calls to a schedule",
|
|
1131
|
-
description: `Rings whoever is on call in one of your schedules, for ${IncomingCallRingTime_1.DEFAULT_INCOMING_CALL_RING_SECONDS}
|
|
1132
|
+
description: `Rings whoever is on call in one of your schedules, for ${IncomingCallRingTime_1.DEFAULT_INCOMING_CALL_RING_SECONDS}${NoBreakSpaces_1.NO_BREAK_SPACE}seconds before the next rule.`,
|
|
1132
1133
|
scopes: ["view"],
|
|
1133
1134
|
blocks: [
|
|
1134
1135
|
{
|
|
@@ -142,7 +142,9 @@ const SERVER_MANAGED_COLUMN_PATTERNS = [
|
|
|
142
142
|
* configuration the dashboard writes. A column nobody may write is no
|
|
143
143
|
* attribute at all and needs no entry: an incident's or alert's episode
|
|
144
144
|
* (incidentEpisodeId, alertEpisodeId), which OneUptime sets from the
|
|
145
|
-
* episode's members, is one
|
|
145
|
+
* episode's members, is one, and so is an Incoming Request monitor's latest
|
|
146
|
+
* request (incomingMonitorRequest), which the server writes from each
|
|
147
|
+
* request the monitor receives.
|
|
146
148
|
*/
|
|
147
149
|
exports.SERVER_MANAGED_COLUMNS_BY_TABLE = {
|
|
148
150
|
Monitor: [
|
|
@@ -150,7 +152,6 @@ exports.SERVER_MANAGED_COLUMNS_BY_TABLE = {
|
|
|
150
152
|
"telemetryMonitorNextMonitorAt",
|
|
151
153
|
"telemetryMonitorLastMonitorAt",
|
|
152
154
|
"serverMonitorRequestReceivedAt",
|
|
153
|
-
"incomingMonitorRequest",
|
|
154
155
|
"serverMonitorResponse",
|
|
155
156
|
],
|
|
156
157
|
Incident: ["postmortemPostedAt"],
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* Pure: the server builds the request with it, and the tests pin it.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
26
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
27
27
|
exports.parseActionItemCodeTaskKind = parseActionItemCodeTaskKind;
|
|
28
28
|
exports.buildActionItemCodeTaskRequest = buildActionItemCodeTaskRequest;
|
|
29
29
|
exports.getPostmortemContextNote = getPostmortemContextNote;
|
|
@@ -41,6 +41,11 @@ exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = 3000;
|
|
|
41
41
|
exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = 3000;
|
|
42
42
|
// The most of the postmortem's note the request's context carries (CODE_TASK_LIMITS.maxNoteLength).
|
|
43
43
|
exports.MAX_POSTMORTEM_IN_CONTEXT = 4000;
|
|
44
|
+
/*
|
|
45
|
+
* What the request asks of the pull request for a private incident: the
|
|
46
|
+
* repository's readers are not the incident's.
|
|
47
|
+
*/
|
|
48
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = "The incident is private, and everyone with access to this repository reads the pull request: leave the incident and its postmortem out of the pull request, its commit messages and the code's comments, and name the incident only by its number.";
|
|
44
49
|
// Reads a kind off the wire: anything else is null.
|
|
45
50
|
function parseActionItemCodeTaskKind(value) {
|
|
46
51
|
if (typeof value === "string" &&
|
|
@@ -55,10 +60,15 @@ function cut(text, maxLength) {
|
|
|
55
60
|
? `${trimmed.slice(0, maxLength - 1).trimEnd()}…`
|
|
56
61
|
: trimmed;
|
|
57
62
|
}
|
|
58
|
-
|
|
63
|
+
/*
|
|
64
|
+
* "incident #42: Checkout returns 503s", or as much of it as is known - a
|
|
65
|
+
* private incident by its number alone.
|
|
66
|
+
*/
|
|
59
67
|
function describeIncident(input) {
|
|
60
68
|
const number = (input.incidentNumber || "").trim();
|
|
61
|
-
const title =
|
|
69
|
+
const title = input.incidentIsPrivate
|
|
70
|
+
? ""
|
|
71
|
+
: (input.incidentTitle || "").trim();
|
|
62
72
|
if (number && title) {
|
|
63
73
|
return `incident ${number}: ${title}`;
|
|
64
74
|
}
|
|
@@ -83,10 +93,17 @@ function buildActionItemCodeTaskRequest(input) {
|
|
|
83
93
|
}
|
|
84
94
|
lines.push("");
|
|
85
95
|
if (input.kind === ActionItemCodeTaskKind.Test) {
|
|
86
|
-
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.",
|
|
96
|
+
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.", input.incidentIsPrivate
|
|
97
|
+
? "Open a pull request with the test."
|
|
98
|
+
: "Open a pull request with the test, and say in it which incident it guards against.");
|
|
87
99
|
}
|
|
88
100
|
else {
|
|
89
|
-
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.",
|
|
101
|
+
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.", input.incidentIsPrivate
|
|
102
|
+
? "Keep the change to what the action item needs, and add or update tests that cover it."
|
|
103
|
+
: "Keep the change to what the action item needs, add or update tests that cover it, and say in the pull request which incident it is for.");
|
|
104
|
+
}
|
|
105
|
+
if (input.incidentIsPrivate) {
|
|
106
|
+
lines.push(exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION);
|
|
90
107
|
}
|
|
91
108
|
const instructions = cut(input.instructions || "", exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH);
|
|
92
109
|
if (instructions) {
|
|
@@ -5,6 +5,7 @@ export const MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = commonJsModule.MAX_ACTION_
|
|
|
5
5
|
export const MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = commonJsModule.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH;
|
|
6
6
|
export const MAX_ACTION_ITEM_REQUEST_LENGTH = commonJsModule.MAX_ACTION_ITEM_REQUEST_LENGTH;
|
|
7
7
|
export const MAX_POSTMORTEM_IN_CONTEXT = commonJsModule.MAX_POSTMORTEM_IN_CONTEXT;
|
|
8
|
+
export const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = commonJsModule.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION;
|
|
8
9
|
export const buildActionItemCodeTaskRequest = commonJsModule.buildActionItemCodeTaskRequest;
|
|
9
10
|
export const getPostmortemContextNote = commonJsModule.getPostmortemContextNote;
|
|
10
11
|
export const parseActionItemCodeTaskKind = commonJsModule.parseActionItemCodeTaskKind;
|
|
@@ -31,6 +31,7 @@ export default class LinearRegExp {
|
|
|
31
31
|
test(text: string): boolean;
|
|
32
32
|
exec(text: string, from?: number): LinearRegExpMatch | null;
|
|
33
33
|
replace(text: string, replacer: (matchedText: string) => string): string;
|
|
34
|
+
matchRanges(text: string): Array<[number, number]>;
|
|
34
35
|
matchAll(text: string): Array<LinearRegExpMatch>;
|
|
35
36
|
private forEachMatch;
|
|
36
37
|
private searchFrom;
|
|
@@ -31,6 +31,7 @@ export default class LinearRegExp {
|
|
|
31
31
|
test(text: string): boolean;
|
|
32
32
|
exec(text: string, from?: number): LinearRegExpMatch | null;
|
|
33
33
|
replace(text: string, replacer: (matchedText: string) => string): string;
|
|
34
|
+
matchRanges(text: string): Array<[number, number]>;
|
|
34
35
|
matchAll(text: string): Array<LinearRegExpMatch>;
|
|
35
36
|
private forEachMatch;
|
|
36
37
|
private searchFrom;
|
|
@@ -180,6 +180,23 @@ class LinearRegExp {
|
|
|
180
180
|
pieces.push(text.slice(copiedUpTo));
|
|
181
181
|
return pieces.join("");
|
|
182
182
|
}
|
|
183
|
+
/*
|
|
184
|
+
* Where every match is, as replace finds them - left to right, none
|
|
185
|
+
* overlapping, one code unit on after an empty match - as [start, end)
|
|
186
|
+
* pairs: for a caller that replaces each match in a text of its own
|
|
187
|
+
* making (Utils/Telemetry/ScrubJsonText.ts). Bounded the same way as
|
|
188
|
+
* replace, and as cheap: no match's text or groups are built.
|
|
189
|
+
*/
|
|
190
|
+
matchRanges(text) {
|
|
191
|
+
const ranges = [];
|
|
192
|
+
if (!this.test(text)) {
|
|
193
|
+
return ranges;
|
|
194
|
+
}
|
|
195
|
+
this.forEachMatch(text, false, (slots) => {
|
|
196
|
+
ranges.push([slots[0], slots[1]]);
|
|
197
|
+
});
|
|
198
|
+
return ranges;
|
|
199
|
+
}
|
|
183
200
|
/*
|
|
184
201
|
* Every match, as String.prototype.matchAll finds them with a global
|
|
185
202
|
* pattern; bounded the same way as replace.
|
package/Utils/LookupTable.d.mts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.lookupTable = lookupTable;
|
|
|
4
4
|
exports.readOwnValue = readOwnValue;
|
|
5
5
|
exports.writeOwnValue = writeOwnValue;
|
|
6
6
|
exports.assignOwnValues = assignOwnValues;
|
|
7
|
+
exports.mergeOwnValues = mergeOwnValues;
|
|
7
8
|
exports.copyOwnValues = copyOwnValues;
|
|
8
9
|
/*
|
|
9
10
|
* A TABLE READ BY TEXT FROM OUTSIDE ONEUPTIME.
|
|
@@ -97,6 +98,24 @@ function assignOwnValues(target, ...sources) {
|
|
|
97
98
|
}
|
|
98
99
|
return target;
|
|
99
100
|
}
|
|
101
|
+
/*
|
|
102
|
+
* Up to three records merged into a new plain object: exactly what
|
|
103
|
+
* assignOwnValues({}, first, second, third) gives - every own key of each,
|
|
104
|
+
* "__proto__" included, a later record's value winning, keys in the same
|
|
105
|
+
* order - for the attribute map of every log, span and metric point ingest
|
|
106
|
+
* stores (its resource's, its own, its scope's).
|
|
107
|
+
*
|
|
108
|
+
* By object spread, which the servers' ES2018 target leaves to the
|
|
109
|
+
* language: CopyDataProperties defines each key, so "__proto__" stays a key
|
|
110
|
+
* (Tests/Dependencies/TypeScriptTargets pins the targets, and
|
|
111
|
+
* Tests/Utils/LookupTableOwnKeys this function). It is also how V8 copies
|
|
112
|
+
* a map fastest: Object.assign stores key by key, and on ingest's many map
|
|
113
|
+
* shapes each store missed V8's inline caches - 3.7 µs to merge one
|
|
114
|
+
* record's 13 keys, against 0.17 µs by spread (#6086).
|
|
115
|
+
*/
|
|
116
|
+
function mergeOwnValues(first, second, third) {
|
|
117
|
+
return { ...first, ...second, ...third };
|
|
118
|
+
}
|
|
100
119
|
/*
|
|
101
120
|
* A new plain object with every own key of `record`, "__proto__" included:
|
|
102
121
|
* what `{ ...record }` gives on an ES2018 or later target, at any target.
|
package/Utils/LookupTable.mjs
CHANGED
|
@@ -3,5 +3,6 @@ export default commonJsModule.default;
|
|
|
3
3
|
export const assignOwnValues = commonJsModule.assignOwnValues;
|
|
4
4
|
export const copyOwnValues = commonJsModule.copyOwnValues;
|
|
5
5
|
export const lookupTable = commonJsModule.lookupTable;
|
|
6
|
+
export const mergeOwnValues = commonJsModule.mergeOwnValues;
|
|
6
7
|
export const readOwnValue = commonJsModule.readOwnValue;
|
|
7
8
|
export const writeOwnValue = commonJsModule.writeOwnValue;
|
|
@@ -14,9 +14,15 @@ export interface LinkReferenceDefinition {
|
|
|
14
14
|
end: number;
|
|
15
15
|
nested?: NestedLinkReferenceDefinition;
|
|
16
16
|
}
|
|
17
|
+
export interface LinkReferenceDefinitionsReading {
|
|
18
|
+
definitions: Array<LinkReferenceDefinition>;
|
|
19
|
+
levelsRead: number;
|
|
20
|
+
charactersRead: number;
|
|
21
|
+
}
|
|
17
22
|
export declare const MAX_DEFINITION_NESTING_DEPTH: number;
|
|
18
23
|
export declare const normalizeLinkLabel: (label: string) => string;
|
|
19
24
|
export declare const getLinkReferenceDefinitions: (text: string) => Array<LinkReferenceDefinition>;
|
|
25
|
+
export declare const readLinkReferenceDefinitions: (text: string) => LinkReferenceDefinitionsReading;
|
|
20
26
|
export declare const forEachBracketedLabel: (text: string, start: number, end: number, found: (label: string) => void) => void;
|
|
21
27
|
export declare const normalizeReferenceLabel: (label: string) => string;
|
|
22
28
|
export declare const forEachLabelMarkedLooksUp: (text: string, found: (label: string) => void) => void;
|
|
@@ -14,9 +14,15 @@ export interface LinkReferenceDefinition {
|
|
|
14
14
|
end: number;
|
|
15
15
|
nested?: NestedLinkReferenceDefinition;
|
|
16
16
|
}
|
|
17
|
+
export interface LinkReferenceDefinitionsReading {
|
|
18
|
+
definitions: Array<LinkReferenceDefinition>;
|
|
19
|
+
levelsRead: number;
|
|
20
|
+
charactersRead: number;
|
|
21
|
+
}
|
|
17
22
|
export declare const MAX_DEFINITION_NESTING_DEPTH: number;
|
|
18
23
|
export declare const normalizeLinkLabel: (label: string) => string;
|
|
19
24
|
export declare const getLinkReferenceDefinitions: (text: string) => Array<LinkReferenceDefinition>;
|
|
25
|
+
export declare const readLinkReferenceDefinitions: (text: string) => LinkReferenceDefinitionsReading;
|
|
20
26
|
export declare const forEachBracketedLabel: (text: string, start: number, end: number, found: (label: string) => void) => void;
|
|
21
27
|
export declare const normalizeReferenceLabel: (label: string) => string;
|
|
22
28
|
export declare const forEachLabelMarkedLooksUp: (text: string, found: (label: string) => void) => void;
|