@oneuptime/common 14.0.110 → 14.1.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/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +18 -2
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/EmailLog.js +2 -2
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +4 -4
- package/Models/DatabaseModels/GlobalConfig.js +46 -45
- package/Models/DatabaseModels/Incident.js +18 -2
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +51 -17
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.js +23 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +46 -3
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
- package/Types/Date.d.mts +6 -1
- package/Types/Date.d.ts +6 -1
- package/Types/Date.js +39 -7
- package/Types/Date.mjs +1 -0
- package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.js +2 -2
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.js +374 -48
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- package/Utils/Monitor/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
- package/Utils/Project/NextNumber.js +1 -1
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- package/Utils/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import AIRun from "./AIRun.mjs";
|
|
2
|
+
import Project from "./Project.mjs";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
5
|
+
import { InvestigationRecording } from "../../Types/AI/InvestigationRecording.mjs";
|
|
6
|
+
export default class AIRunRecording extends BaseModel {
|
|
7
|
+
project?: Project;
|
|
8
|
+
projectId?: ObjectID;
|
|
9
|
+
aiRun?: AIRun;
|
|
10
|
+
aiRunId?: ObjectID;
|
|
11
|
+
recording?: InvestigationRecording;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import AIRun from "./AIRun";
|
|
2
|
+
import Project from "./Project";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID";
|
|
5
|
+
import { InvestigationRecording } from "../../Types/AI/InvestigationRecording";
|
|
6
|
+
export default class AIRunRecording extends BaseModel {
|
|
7
|
+
project?: Project;
|
|
8
|
+
projectId?: ObjectID;
|
|
9
|
+
aiRun?: AIRun;
|
|
10
|
+
aiRunId?: ObjectID;
|
|
11
|
+
recording?: InvestigationRecording;
|
|
12
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const AIRun_1 = __importDefault(require("./AIRun"));
|
|
16
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
17
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
18
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
19
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
20
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
21
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
22
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
23
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
24
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
25
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
26
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
27
|
+
const typeorm_1 = require("typeorm");
|
|
28
|
+
/*
|
|
29
|
+
* What an AI investigation saw (issue #6800): the context it started from
|
|
30
|
+
* and every tool call it made with the text it was handed back
|
|
31
|
+
* (Types/AI/InvestigationRecording), so the run can be replayed on the same
|
|
32
|
+
* data after a prompt or model change (Server/Utils/AI/Eval/
|
|
33
|
+
* ReplayInvestigation). One row per completed investigation run that kept
|
|
34
|
+
* one; deleted with its run, and after
|
|
35
|
+
* INVESTIGATION_RECORDING_RETENTION_IN_DAYS (AIRunRecordingService).
|
|
36
|
+
*
|
|
37
|
+
* The text holds telemetry the tools read as the system - more than a
|
|
38
|
+
* project member may read through the run's activity - so the table is
|
|
39
|
+
* written and read only by the server: no client can read or write a row,
|
|
40
|
+
* and it has no CRUD API.
|
|
41
|
+
*/
|
|
42
|
+
let AIRunRecording = class AIRunRecording extends DatabaseBaseModel_1.default {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.project = undefined;
|
|
46
|
+
this.projectId = undefined;
|
|
47
|
+
this.aiRun = undefined;
|
|
48
|
+
this.aiRunId = undefined;
|
|
49
|
+
this.recording = undefined;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, ColumnAccessControl_1.default)({
|
|
54
|
+
create: [],
|
|
55
|
+
read: [],
|
|
56
|
+
update: [],
|
|
57
|
+
}),
|
|
58
|
+
(0, TableColumn_1.default)({
|
|
59
|
+
manyToOneRelationColumn: "projectId",
|
|
60
|
+
type: TableColumnType_1.default.Entity,
|
|
61
|
+
modelType: Project_1.default,
|
|
62
|
+
title: "Project",
|
|
63
|
+
description: "Relation to Project Resource in which this object belongs",
|
|
64
|
+
}),
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
66
|
+
return Project_1.default;
|
|
67
|
+
}, {
|
|
68
|
+
eager: false,
|
|
69
|
+
nullable: true,
|
|
70
|
+
onDelete: "CASCADE",
|
|
71
|
+
orphanedRowAction: "nullify",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
74
|
+
__metadata("design:type", Project_1.default)
|
|
75
|
+
], AIRunRecording.prototype, "project", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, ColumnAccessControl_1.default)({
|
|
78
|
+
create: [],
|
|
79
|
+
read: [],
|
|
80
|
+
update: [],
|
|
81
|
+
}),
|
|
82
|
+
(0, typeorm_1.Index)(),
|
|
83
|
+
(0, TableColumn_1.default)({
|
|
84
|
+
type: TableColumnType_1.default.ObjectID,
|
|
85
|
+
required: true,
|
|
86
|
+
canReadOnRelationQuery: true,
|
|
87
|
+
title: "Project ID",
|
|
88
|
+
description: "ID of your OneUptime Project in which this object belongs",
|
|
89
|
+
}),
|
|
90
|
+
(0, typeorm_1.Column)({
|
|
91
|
+
type: ColumnType_1.default.ObjectID,
|
|
92
|
+
nullable: false,
|
|
93
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", ObjectID_1.default)
|
|
96
|
+
], AIRunRecording.prototype, "projectId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, ColumnAccessControl_1.default)({
|
|
99
|
+
create: [],
|
|
100
|
+
read: [],
|
|
101
|
+
update: [],
|
|
102
|
+
}),
|
|
103
|
+
(0, TableColumn_1.default)({
|
|
104
|
+
type: TableColumnType_1.default.Entity,
|
|
105
|
+
required: true,
|
|
106
|
+
modelType: AIRun_1.default,
|
|
107
|
+
manyToOneRelationColumn: "aiRunId",
|
|
108
|
+
title: "AI Run",
|
|
109
|
+
description: "The investigation run this recording belongs to.",
|
|
110
|
+
}),
|
|
111
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
112
|
+
return AIRun_1.default;
|
|
113
|
+
}, {
|
|
114
|
+
cascade: false,
|
|
115
|
+
eager: false,
|
|
116
|
+
nullable: false,
|
|
117
|
+
onDelete: "CASCADE",
|
|
118
|
+
orphanedRowAction: "nullify",
|
|
119
|
+
}),
|
|
120
|
+
(0, typeorm_1.JoinColumn)({ name: "aiRunId" }),
|
|
121
|
+
__metadata("design:type", AIRun_1.default)
|
|
122
|
+
], AIRunRecording.prototype, "aiRun", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, ColumnAccessControl_1.default)({
|
|
125
|
+
create: [],
|
|
126
|
+
read: [],
|
|
127
|
+
update: [],
|
|
128
|
+
}),
|
|
129
|
+
(0, typeorm_1.Index)(),
|
|
130
|
+
(0, TableColumn_1.default)({
|
|
131
|
+
type: TableColumnType_1.default.ObjectID,
|
|
132
|
+
required: true,
|
|
133
|
+
canReadOnRelationQuery: true,
|
|
134
|
+
title: "AI Run ID",
|
|
135
|
+
description: "ID of the investigation run this recording belongs to.",
|
|
136
|
+
}),
|
|
137
|
+
(0, typeorm_1.Column)({
|
|
138
|
+
type: ColumnType_1.default.ObjectID,
|
|
139
|
+
nullable: false,
|
|
140
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
141
|
+
}),
|
|
142
|
+
__metadata("design:type", ObjectID_1.default)
|
|
143
|
+
], AIRunRecording.prototype, "aiRunId", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, ColumnAccessControl_1.default)({
|
|
146
|
+
create: [],
|
|
147
|
+
read: [],
|
|
148
|
+
update: [],
|
|
149
|
+
}),
|
|
150
|
+
(0, TableColumn_1.default)({
|
|
151
|
+
required: true,
|
|
152
|
+
type: TableColumnType_1.default.JSON,
|
|
153
|
+
title: "Recording",
|
|
154
|
+
description: "The context the investigation started from, and every tool call it made with what it was handed back.",
|
|
155
|
+
}),
|
|
156
|
+
(0, typeorm_1.Column)({
|
|
157
|
+
nullable: false,
|
|
158
|
+
type: ColumnType_1.default.JSON,
|
|
159
|
+
}),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], AIRunRecording.prototype, "recording", void 0);
|
|
162
|
+
AIRunRecording = __decorate([
|
|
163
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
164
|
+
(0, TableAccessControl_1.default)({
|
|
165
|
+
create: [],
|
|
166
|
+
read: [],
|
|
167
|
+
delete: [],
|
|
168
|
+
update: [],
|
|
169
|
+
}),
|
|
170
|
+
(0, typeorm_1.Entity)({
|
|
171
|
+
name: "AIRunRecording",
|
|
172
|
+
}),
|
|
173
|
+
(0, TableMetadata_1.default)({
|
|
174
|
+
tableName: "AIRunRecording",
|
|
175
|
+
singularName: "AI Run Recording",
|
|
176
|
+
pluralName: "AI Run Recordings",
|
|
177
|
+
icon: IconProp_1.default.Bolt,
|
|
178
|
+
tableDescription: "Internal record of what an AI investigation saw, kept for a limited time so it can be run again on the same data after a prompt or model change.",
|
|
179
|
+
})
|
|
180
|
+
], AIRunRecording);
|
|
181
|
+
exports.default = AIRunRecording;
|
|
@@ -259,8 +259,14 @@ __decorate([
|
|
|
259
259
|
Permission_1.default.ReadAlert,
|
|
260
260
|
],
|
|
261
261
|
update: [],
|
|
262
|
-
})
|
|
263
|
-
|
|
262
|
+
})
|
|
263
|
+
/*
|
|
264
|
+
* No bare @Index() here on purpose: the composites on the class lead with
|
|
265
|
+
* this column ("projectId", "createdAt" first), and serve every read by it
|
|
266
|
+
* and the ON DELETE CASCADE of a project. Another would cost every insert
|
|
267
|
+
* and every state change one more index write for nothing.
|
|
268
|
+
*/
|
|
269
|
+
,
|
|
264
270
|
(0, TableColumn_1.default)({
|
|
265
271
|
type: TableColumnType_1.default.ObjectID,
|
|
266
272
|
required: true,
|
|
@@ -2943,6 +2949,16 @@ Alert = __decorate([
|
|
|
2943
2949
|
},
|
|
2944
2950
|
}),
|
|
2945
2951
|
(0, typeorm_1.Index)(["projectId", "currentAlertStateId"]) // Active-alert counters on dashboard
|
|
2952
|
+
/*
|
|
2953
|
+
* The Alerts list, newest first - the order every read of alerts takes
|
|
2954
|
+
* when it asks for none (DatabaseService.getReadSort): the page's ids are
|
|
2955
|
+
* read in this index's order, ten at a time, instead of sorting every
|
|
2956
|
+
* alert of the project. It also serves every read by project and
|
|
2957
|
+
* the ON DELETE CASCADE of a project, which is why the column has no bare
|
|
2958
|
+
* index of its own.
|
|
2959
|
+
*/
|
|
2960
|
+
,
|
|
2961
|
+
(0, typeorm_1.Index)(["projectId", "createdAt"])
|
|
2946
2962
|
/*
|
|
2947
2963
|
* The alerts an investigation rule makes OneUptime AI wait on: a handful at
|
|
2948
2964
|
* any moment, so the index holds only them, and the rule-wait job's "wait
|
|
@@ -1519,5 +1519,14 @@ DataStore = __decorate([
|
|
|
1519
1519
|
(0, typeorm_1.Index)(["projectId", "sensitivity"]),
|
|
1520
1520
|
(0, typeorm_1.Index)(["projectId", "kind"]),
|
|
1521
1521
|
(0, typeorm_1.Index)(["projectId", "isArchived"])
|
|
1522
|
+
/*
|
|
1523
|
+
* A probe asks for the stores whose tables it collects and whose content it
|
|
1524
|
+
* scans every five minutes (DataObservabilityProbeClaim,
|
|
1525
|
+
* DataSecurityProbeClaim): each a range of one of these, oldest first, that
|
|
1526
|
+
* stops at the claim's limit.
|
|
1527
|
+
*/
|
|
1528
|
+
,
|
|
1529
|
+
(0, typeorm_1.Index)(["scanProbeId", "nextTableHealthCollectionAt"]),
|
|
1530
|
+
(0, typeorm_1.Index)(["scanProbeId", "nextContentScanAt"])
|
|
1522
1531
|
], DataStore);
|
|
1523
1532
|
exports.default = DataStore;
|
|
@@ -270,8 +270,8 @@ __decorate([
|
|
|
270
270
|
required: true,
|
|
271
271
|
type: TableColumnType_1.default.ShortText,
|
|
272
272
|
allowedValues: Object.values(MailStatus_1.default),
|
|
273
|
-
title: "Status of the
|
|
274
|
-
description: "Status of the
|
|
273
|
+
title: "Status of the Email",
|
|
274
|
+
description: "Status of the email sent",
|
|
275
275
|
canReadOnRelationQuery: false,
|
|
276
276
|
example: "Success",
|
|
277
277
|
}),
|
|
@@ -335,7 +335,7 @@ __decorate([
|
|
|
335
335
|
type: TableColumnType_1.default.ShortText,
|
|
336
336
|
allowedValues: Object.values(FormTargetType_1.default),
|
|
337
337
|
title: "Creates",
|
|
338
|
-
description: "What each submission creates: Incident, or ScheduledMaintenance (a
|
|
338
|
+
description: "What each submission creates: Incident, or ScheduledMaintenance (a maintenance event).",
|
|
339
339
|
defaultValue: FormTargetType_1.DEFAULT_FORM_TARGET_TYPE,
|
|
340
340
|
example: FormTargetType_1.default.Incident,
|
|
341
341
|
}),
|
|
@@ -425,7 +425,7 @@ __decorate([
|
|
|
425
425
|
required: false,
|
|
426
426
|
type: TableColumnType_1.default.JSON,
|
|
427
427
|
title: "On Submit Settings",
|
|
428
|
-
description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For
|
|
428
|
+
description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For maintenance events: defaultTitle, monitorIds, statusPageIds, labelIds, ownerUserIds, ownerTeamIds, showOnStatusPages and notifySubscribers.",
|
|
429
429
|
example: {
|
|
430
430
|
incidentSeverityId: "c3d4e5f6-a7b8-4c9d-8e1f-2a3b4c5d6e7f",
|
|
431
431
|
ownerTeamIds: ["e5f6a7b8-c9d0-4e1f-8a3b-4c5d6e7f8a9b"],
|
|
@@ -702,7 +702,7 @@ Form = __decorate([
|
|
|
702
702
|
singularName: "Form",
|
|
703
703
|
pluralName: "Forms",
|
|
704
704
|
icon: IconProp_1.default.ClipboardDocumentList,
|
|
705
|
-
tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a
|
|
705
|
+
tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a maintenance event in this project.",
|
|
706
706
|
})
|
|
707
707
|
], Form);
|
|
708
708
|
exports.default = Form;
|
|
@@ -253,7 +253,7 @@ __decorate([
|
|
|
253
253
|
type: TableColumnType_1.default.ShortText,
|
|
254
254
|
allowedValues: Object.values(FormTargetType_1.default),
|
|
255
255
|
title: "Created",
|
|
256
|
-
description: "What the submission created: Incident, or ScheduledMaintenance (a
|
|
256
|
+
description: "What the submission created: Incident, or ScheduledMaintenance (a maintenance event).",
|
|
257
257
|
example: FormTargetType_1.default.Incident,
|
|
258
258
|
}),
|
|
259
259
|
(0, typeorm_1.Column)({
|
|
@@ -320,7 +320,7 @@ __decorate([
|
|
|
320
320
|
type: TableColumnType_1.default.Entity,
|
|
321
321
|
modelType: ScheduledMaintenance_1.default,
|
|
322
322
|
title: "Maintenance Event",
|
|
323
|
-
description: "The
|
|
323
|
+
description: "The maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
|
|
324
324
|
}),
|
|
325
325
|
(0, typeorm_1.ManyToOne)(() => {
|
|
326
326
|
return ScheduledMaintenance_1.default;
|
|
@@ -345,7 +345,7 @@ __decorate([
|
|
|
345
345
|
required: false,
|
|
346
346
|
canReadOnRelationQuery: true,
|
|
347
347
|
title: "Maintenance Event ID",
|
|
348
|
-
description: "ID of the
|
|
348
|
+
description: "ID of the maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
|
|
349
349
|
example: "b8c9d0e1-f2a3-4b4c-9d5e-6f7a8b9c0d1e",
|
|
350
350
|
}),
|
|
351
351
|
(0, typeorm_1.Column)({
|
|
@@ -379,7 +379,7 @@ FormSubmission = __decorate([
|
|
|
379
379
|
singularName: "Form Submission",
|
|
380
380
|
pluralName: "Form Submissions",
|
|
381
381
|
icon: IconProp_1.default.ClipboardDocumentCheck,
|
|
382
|
-
tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or
|
|
382
|
+
tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or maintenance event each one created.",
|
|
383
383
|
})
|
|
384
384
|
], FormSubmission);
|
|
385
385
|
exports.default = FormSubmission;
|
|
@@ -624,18 +624,26 @@ __decorate([
|
|
|
624
624
|
create: [],
|
|
625
625
|
read: [],
|
|
626
626
|
update: [],
|
|
627
|
-
})
|
|
627
|
+
})
|
|
628
|
+
/*
|
|
629
|
+
* Stored encrypted, as every credential column of this row is (#7739):
|
|
630
|
+
* DatabaseService encrypts it on write and decrypts it on read, so every
|
|
631
|
+
* reader gets the password as it was written. Not unique, as none of
|
|
632
|
+
* them is: each write stores a different ciphertext, and the
|
|
633
|
+
* EncryptGlobalConfigCredentials data migration encrypts a value stored
|
|
634
|
+
* before. Tests/Models/DatabaseModels/GlobalConfigCredentialColumns
|
|
635
|
+
* holds the full list, and the columns left as they are with why.
|
|
636
|
+
*/
|
|
637
|
+
,
|
|
628
638
|
(0, TableColumn_1.default)({
|
|
629
|
-
|
|
630
|
-
|
|
639
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
640
|
+
encrypted: true,
|
|
631
641
|
title: "SMTP Password",
|
|
632
642
|
description: "Password for your SMTP Server",
|
|
633
643
|
}),
|
|
634
644
|
(0, typeorm_1.Column)({
|
|
635
|
-
type: ColumnType_1.default.
|
|
636
|
-
length: ColumnLength_1.default.ShortText,
|
|
645
|
+
type: ColumnType_1.default.VeryLongText,
|
|
637
646
|
nullable: true,
|
|
638
|
-
unique: true,
|
|
639
647
|
}),
|
|
640
648
|
__metadata("design:type", String)
|
|
641
649
|
], GlobalConfig.prototype, "smtpPassword", void 0);
|
|
@@ -784,8 +792,8 @@ __decorate([
|
|
|
784
792
|
update: [],
|
|
785
793
|
}),
|
|
786
794
|
(0, TableColumn_1.default)({
|
|
787
|
-
secret: true,
|
|
788
795
|
type: TableColumnType_1.default.VeryLongText,
|
|
796
|
+
encrypted: true,
|
|
789
797
|
title: "SMTP OAuth Client Secret",
|
|
790
798
|
description: "The Client Secret from your OAuth application registration. Required for OAuth authentication. For Google service accounts, this is the private key from the JSON key file.",
|
|
791
799
|
}),
|
|
@@ -875,16 +883,14 @@ __decorate([
|
|
|
875
883
|
update: [],
|
|
876
884
|
}),
|
|
877
885
|
(0, TableColumn_1.default)({
|
|
878
|
-
|
|
879
|
-
|
|
886
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
887
|
+
encrypted: true,
|
|
880
888
|
title: "Twilio Auth Token",
|
|
881
889
|
description: "Auth Token for your Twilio Account",
|
|
882
890
|
}),
|
|
883
891
|
(0, typeorm_1.Column)({
|
|
884
|
-
type: ColumnType_1.default.
|
|
885
|
-
length: ColumnLength_1.default.ShortText,
|
|
892
|
+
type: ColumnType_1.default.VeryLongText,
|
|
886
893
|
nullable: true,
|
|
887
|
-
unique: true,
|
|
888
894
|
}),
|
|
889
895
|
__metadata("design:type", String)
|
|
890
896
|
], GlobalConfig.prototype, "twilioAuthToken", void 0);
|
|
@@ -1020,16 +1026,14 @@ __decorate([
|
|
|
1020
1026
|
update: [],
|
|
1021
1027
|
}),
|
|
1022
1028
|
(0, TableColumn_1.default)({
|
|
1023
|
-
|
|
1024
|
-
|
|
1029
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1030
|
+
encrypted: true,
|
|
1025
1031
|
title: "Gateway Signing Secret",
|
|
1026
1032
|
description: "The secret each request to your gateway is signed with, in the X-OneUptime-Signature header.",
|
|
1027
1033
|
}),
|
|
1028
1034
|
(0, typeorm_1.Column)({
|
|
1029
|
-
type: ColumnType_1.default.
|
|
1030
|
-
length: ColumnLength_1.default.ShortText,
|
|
1035
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1031
1036
|
nullable: true,
|
|
1032
|
-
unique: false,
|
|
1033
1037
|
}),
|
|
1034
1038
|
__metadata("design:type", String)
|
|
1035
1039
|
], GlobalConfig.prototype, "callAndSmsGatewaySecret", void 0);
|
|
@@ -1040,15 +1044,14 @@ __decorate([
|
|
|
1040
1044
|
update: [],
|
|
1041
1045
|
}),
|
|
1042
1046
|
(0, TableColumn_1.default)({
|
|
1043
|
-
secret: true,
|
|
1044
1047
|
type: TableColumnType_1.default.VeryLongText,
|
|
1048
|
+
encrypted: true,
|
|
1045
1049
|
title: "Meta WhatsApp Access Token",
|
|
1046
1050
|
description: "Access token generated from Meta for sending WhatsApp messages.",
|
|
1047
1051
|
}),
|
|
1048
1052
|
(0, typeorm_1.Column)({
|
|
1049
1053
|
type: ColumnType_1.default.VeryLongText,
|
|
1050
1054
|
nullable: true,
|
|
1051
|
-
unique: true,
|
|
1052
1055
|
}),
|
|
1053
1056
|
__metadata("design:type", String)
|
|
1054
1057
|
], GlobalConfig.prototype, "metaWhatsAppAccessToken", void 0);
|
|
@@ -1116,15 +1119,14 @@ __decorate([
|
|
|
1116
1119
|
update: [],
|
|
1117
1120
|
}),
|
|
1118
1121
|
(0, TableColumn_1.default)({
|
|
1119
|
-
secret: true,
|
|
1120
1122
|
type: TableColumnType_1.default.VeryLongText,
|
|
1123
|
+
encrypted: true,
|
|
1121
1124
|
title: "Meta WhatsApp App Secret",
|
|
1122
1125
|
description: "Facebook App Secret for the WhatsApp Business Platform.",
|
|
1123
1126
|
}),
|
|
1124
1127
|
(0, typeorm_1.Column)({
|
|
1125
1128
|
type: ColumnType_1.default.VeryLongText,
|
|
1126
1129
|
nullable: true,
|
|
1127
|
-
unique: true,
|
|
1128
1130
|
}),
|
|
1129
1131
|
__metadata("design:type", String)
|
|
1130
1132
|
], GlobalConfig.prototype, "metaWhatsAppAppSecret", void 0);
|
|
@@ -1135,16 +1137,14 @@ __decorate([
|
|
|
1135
1137
|
update: [],
|
|
1136
1138
|
}),
|
|
1137
1139
|
(0, TableColumn_1.default)({
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1141
|
+
encrypted: true,
|
|
1140
1142
|
title: "Meta WhatsApp Webhook Verify Token",
|
|
1141
1143
|
description: "Verify token configured in Meta to validate webhook subscriptions.",
|
|
1142
1144
|
}),
|
|
1143
1145
|
(0, typeorm_1.Column)({
|
|
1144
|
-
type: ColumnType_1.default.
|
|
1145
|
-
length: ColumnLength_1.default.ShortText,
|
|
1146
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1146
1147
|
nullable: true,
|
|
1147
|
-
unique: true,
|
|
1148
1148
|
}),
|
|
1149
1149
|
__metadata("design:type", String)
|
|
1150
1150
|
], GlobalConfig.prototype, "metaWhatsAppWebhookVerifyToken", void 0);
|
|
@@ -1155,15 +1155,14 @@ __decorate([
|
|
|
1155
1155
|
update: [],
|
|
1156
1156
|
}),
|
|
1157
1157
|
(0, TableColumn_1.default)({
|
|
1158
|
-
secret: true,
|
|
1159
1158
|
type: TableColumnType_1.default.VeryLongText,
|
|
1159
|
+
encrypted: true,
|
|
1160
1160
|
title: "Telegram Bot Token",
|
|
1161
1161
|
description: "Bot token issued by @BotFather for sending Telegram messages.",
|
|
1162
1162
|
}),
|
|
1163
1163
|
(0, typeorm_1.Column)({
|
|
1164
1164
|
type: ColumnType_1.default.VeryLongText,
|
|
1165
1165
|
nullable: true,
|
|
1166
|
-
unique: true,
|
|
1167
1166
|
}),
|
|
1168
1167
|
__metadata("design:type", String)
|
|
1169
1168
|
], GlobalConfig.prototype, "telegramBotToken", void 0);
|
|
@@ -1193,16 +1192,14 @@ __decorate([
|
|
|
1193
1192
|
update: [],
|
|
1194
1193
|
}),
|
|
1195
1194
|
(0, TableColumn_1.default)({
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1196
|
+
encrypted: true,
|
|
1198
1197
|
title: "Telegram Webhook Secret Token",
|
|
1199
1198
|
description: "Secret token passed to Telegram setWebhook. Telegram sends it back in the X-Telegram-Bot-Api-Secret-Token header.",
|
|
1200
1199
|
}),
|
|
1201
1200
|
(0, typeorm_1.Column)({
|
|
1202
|
-
type: ColumnType_1.default.
|
|
1203
|
-
length: ColumnLength_1.default.ShortText,
|
|
1201
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1204
1202
|
nullable: true,
|
|
1205
|
-
unique: true,
|
|
1206
1203
|
}),
|
|
1207
1204
|
__metadata("design:type", String)
|
|
1208
1205
|
], GlobalConfig.prototype, "telegramWebhookSecretToken", void 0);
|
|
@@ -1251,15 +1248,14 @@ __decorate([
|
|
|
1251
1248
|
update: [],
|
|
1252
1249
|
}),
|
|
1253
1250
|
(0, TableColumn_1.default)({
|
|
1254
|
-
|
|
1255
|
-
|
|
1251
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1252
|
+
encrypted: true,
|
|
1256
1253
|
title: "Sendgrid API Key",
|
|
1257
1254
|
description: "Sendgrid API Key",
|
|
1258
1255
|
}),
|
|
1259
1256
|
(0, typeorm_1.Column)({
|
|
1260
|
-
type: ColumnType_1.default.
|
|
1257
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1261
1258
|
nullable: true,
|
|
1262
|
-
unique: true,
|
|
1263
1259
|
}),
|
|
1264
1260
|
__metadata("design:type", String)
|
|
1265
1261
|
], GlobalConfig.prototype, "sendgridApiKey", void 0);
|
|
@@ -1636,7 +1632,15 @@ __decorate([
|
|
|
1636
1632
|
create: [],
|
|
1637
1633
|
read: [],
|
|
1638
1634
|
update: [],
|
|
1639
|
-
})
|
|
1635
|
+
})
|
|
1636
|
+
/*
|
|
1637
|
+
* Stored as it is, not encrypted as the credentials above are: a request
|
|
1638
|
+
* names the key, and ProjectAuthorization.isMasterApiKey finds the row
|
|
1639
|
+
* by it (WHERE "masterApiKey" = the key). An encrypted value differs on
|
|
1640
|
+
* every write, so no lookup by value could match it. It is a uuid
|
|
1641
|
+
* column, too, which holds no ciphertext.
|
|
1642
|
+
*/
|
|
1643
|
+
,
|
|
1640
1644
|
(0, TableColumn_1.default)({
|
|
1641
1645
|
secret: true,
|
|
1642
1646
|
type: TableColumnType_1.default.ObjectID,
|
|
@@ -1698,16 +1702,14 @@ __decorate([
|
|
|
1698
1702
|
update: [],
|
|
1699
1703
|
}),
|
|
1700
1704
|
(0, TableColumn_1.default)({
|
|
1701
|
-
|
|
1702
|
-
|
|
1705
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1706
|
+
encrypted: true,
|
|
1703
1707
|
title: "Enterprise License Key",
|
|
1704
1708
|
description: "Enterprise license key stored after successful validation.",
|
|
1705
1709
|
}),
|
|
1706
1710
|
(0, typeorm_1.Column)({
|
|
1707
|
-
type: ColumnType_1.default.
|
|
1708
|
-
length: ColumnLength_1.default.ShortText,
|
|
1711
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1709
1712
|
nullable: true,
|
|
1710
|
-
unique: true,
|
|
1711
1713
|
}),
|
|
1712
1714
|
__metadata("design:type", String)
|
|
1713
1715
|
], GlobalConfig.prototype, "enterpriseLicenseKey", void 0);
|
|
@@ -1736,15 +1738,14 @@ __decorate([
|
|
|
1736
1738
|
update: [],
|
|
1737
1739
|
}),
|
|
1738
1740
|
(0, TableColumn_1.default)({
|
|
1739
|
-
secret: true,
|
|
1740
1741
|
type: TableColumnType_1.default.VeryLongText,
|
|
1742
|
+
encrypted: true,
|
|
1741
1743
|
title: "Enterprise License Token",
|
|
1742
1744
|
description: "Signed JWT returned from license validation.",
|
|
1743
1745
|
}),
|
|
1744
1746
|
(0, typeorm_1.Column)({
|
|
1745
1747
|
type: ColumnType_1.default.VeryLongText,
|
|
1746
1748
|
nullable: true,
|
|
1747
|
-
unique: true,
|
|
1748
1749
|
}),
|
|
1749
1750
|
__metadata("design:type", String)
|
|
1750
1751
|
], GlobalConfig.prototype, "enterpriseLicenseToken", void 0);
|
|
@@ -393,8 +393,14 @@ __decorate([
|
|
|
393
393
|
Permission_1.default.ReadProjectIncident,
|
|
394
394
|
],
|
|
395
395
|
update: [],
|
|
396
|
-
})
|
|
397
|
-
|
|
396
|
+
})
|
|
397
|
+
/*
|
|
398
|
+
* No bare @Index() here on purpose: the composites on the class lead with
|
|
399
|
+
* this column ("projectId", "createdAt" first), and serve every read by it
|
|
400
|
+
* and the ON DELETE CASCADE of a project. Another would cost every insert
|
|
401
|
+
* and every state change one more index write for nothing.
|
|
402
|
+
*/
|
|
403
|
+
,
|
|
398
404
|
(0, TableColumn_1.default)({
|
|
399
405
|
type: TableColumnType_1.default.ObjectID,
|
|
400
406
|
required: true,
|
|
@@ -3917,6 +3923,16 @@ Incident = __decorate([
|
|
|
3917
3923
|
},
|
|
3918
3924
|
}),
|
|
3919
3925
|
(0, typeorm_1.Index)(["projectId", "currentIncidentStateId"]) // Active-incident counters on dashboard
|
|
3926
|
+
/*
|
|
3927
|
+
* The Incidents list, newest first - the order every read of incidents takes
|
|
3928
|
+
* when it asks for none (DatabaseService.getReadSort): the page's ids are
|
|
3929
|
+
* read in this index's order, ten at a time, instead of sorting every
|
|
3930
|
+
* incident of the project. It also serves every read by project and
|
|
3931
|
+
* the ON DELETE CASCADE of a project, which is why the column has no bare
|
|
3932
|
+
* index of its own.
|
|
3933
|
+
*/
|
|
3934
|
+
,
|
|
3935
|
+
(0, typeorm_1.Index)(["projectId", "createdAt"])
|
|
3920
3936
|
// The Postmortems list: its status chips and the count of each status.
|
|
3921
3937
|
,
|
|
3922
3938
|
(0, typeorm_1.Index)(["projectId", "postmortemStatusId"])
|
|
@@ -432,7 +432,7 @@ __decorate([
|
|
|
432
432
|
required: false,
|
|
433
433
|
type: TableColumnType_1.default.Number,
|
|
434
434
|
title: "Internal Note Reminder Interval (Minutes)",
|
|
435
|
-
description: "How often (in minutes) to automatically post internal notes to unresolved incidents.
|
|
435
|
+
description: "How often (in minutes) to automatically post internal notes to unresolved incidents. Only the people who can see an incident can read its internal notes. For example, set to 30 to remind your team every 30 minutes to provide an update. Leave empty to disable.",
|
|
436
436
|
canReadOnRelationQuery: true,
|
|
437
437
|
}),
|
|
438
438
|
(0, typeorm_1.Column)({
|
|
@@ -504,7 +504,7 @@ __decorate([
|
|
|
504
504
|
required: false,
|
|
505
505
|
type: TableColumnType_1.default.Markdown,
|
|
506
506
|
title: "Internal Note Reminder Template",
|
|
507
|
-
description: "The content of the automatic internal note posted
|
|
507
|
+
description: "The content of the automatic internal note posted on the incident. Use variables like {{incidentTitle}}, {{elapsedTime}}, {{slaStatus}}, {{timeToResolutionDeadline}} to include dynamic incident data. If left empty, a default template will be used.",
|
|
508
508
|
}),
|
|
509
509
|
(0, typeorm_1.Column)({
|
|
510
510
|
type: ColumnType_1.default.Markdown,
|
|
@@ -279,6 +279,7 @@ const MonitorGroupResource_1 = __importDefault(require("./MonitorGroupResource")
|
|
|
279
279
|
const MonitorOwnerTeam_1 = __importDefault(require("./MonitorOwnerTeam"));
|
|
280
280
|
const MonitorOwnerUser_1 = __importDefault(require("./MonitorOwnerUser"));
|
|
281
281
|
const MonitorProbe_1 = __importDefault(require("./MonitorProbe"));
|
|
282
|
+
const MonitorNetworkDevice_1 = __importDefault(require("./MonitorNetworkDevice"));
|
|
282
283
|
const MonitorSecret_1 = __importDefault(require("./MonitorSecret"));
|
|
283
284
|
const MonitorStatus_1 = __importDefault(require("./MonitorStatus"));
|
|
284
285
|
const MonitorStatusTimeline_1 = __importDefault(require("./MonitorStatusTimeline"));
|
|
@@ -341,6 +342,7 @@ const AIConversation_1 = __importDefault(require("./AIConversation"));
|
|
|
341
342
|
const AIConversationMessage_1 = __importDefault(require("./AIConversationMessage"));
|
|
342
343
|
const AIRun_1 = __importDefault(require("./AIRun"));
|
|
343
344
|
const AIRunEvent_1 = __importDefault(require("./AIRunEvent"));
|
|
345
|
+
const AIRunRecording_1 = __importDefault(require("./AIRunRecording"));
|
|
344
346
|
const AIInsight_1 = __importDefault(require("./AIInsight"));
|
|
345
347
|
const LlmProvider_1 = __importDefault(require("./LlmProvider"));
|
|
346
348
|
const LlmLog_1 = __importDefault(require("./LlmLog"));
|
|
@@ -964,6 +966,7 @@ const AllModelTypes = [
|
|
|
964
966
|
StatusPageOidc_1.default,
|
|
965
967
|
StatusPageSCIM_1.default,
|
|
966
968
|
MonitorProbe_1.default,
|
|
969
|
+
MonitorNetworkDevice_1.default,
|
|
967
970
|
MonitorOwnerTeam_1.default,
|
|
968
971
|
MonitorOwnerUser_1.default,
|
|
969
972
|
ScheduledMaintenanceOwnerTeam_1.default,
|
|
@@ -1066,6 +1069,7 @@ const AllModelTypes = [
|
|
|
1066
1069
|
AIConversationMessage_1.default,
|
|
1067
1070
|
AIRun_1.default,
|
|
1068
1071
|
AIRunEvent_1.default,
|
|
1072
|
+
AIRunRecording_1.default,
|
|
1069
1073
|
AIInsight_1.default,
|
|
1070
1074
|
LlmProvider_1.default,
|
|
1071
1075
|
LlmLog_1.default,
|