@oneuptime/cli 14.0.85 → 14.0.86
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/build/dist/Index.js +569 -0
- package/package.json +1 -1
package/build/dist/Index.js
CHANGED
|
@@ -148907,6 +148907,7 @@ var Project = class extends TenantModel {
|
|
|
148907
148907
|
this.planCutoffNoticeSentAt = void 0;
|
|
148908
148908
|
this.enableAutomaticIncidentInvestigation = void 0;
|
|
148909
148909
|
this.enableAutomaticAlertInvestigation = void 0;
|
|
148910
|
+
this.enableAutomaticSecurityCaseTriage = void 0;
|
|
148910
148911
|
this.enableAutomaticIncidentRemediation = void 0;
|
|
148911
148912
|
this.enableAutomaticAlertRemediation = void 0;
|
|
148912
148913
|
this.enableAutomaticPostmortemDraft = void 0;
|
|
@@ -150825,6 +150826,35 @@ __decorateClass([
|
|
|
150825
150826
|
type: ColumnType_default.Boolean
|
|
150826
150827
|
})
|
|
150827
150828
|
], Project.prototype, "enableAutomaticAlertInvestigation", 2);
|
|
150829
|
+
__decorateClass([
|
|
150830
|
+
ColumnAccessControl_default({
|
|
150831
|
+
create: [Permission_default.User],
|
|
150832
|
+
read: [
|
|
150833
|
+
Permission_default.ProjectOwner,
|
|
150834
|
+
Permission_default.ProjectAdmin,
|
|
150835
|
+
Permission_default.ProjectMember,
|
|
150836
|
+
Permission_default.Viewer,
|
|
150837
|
+
Permission_default.ReadProject,
|
|
150838
|
+
Permission_default.UnAuthorizedSsoUser,
|
|
150839
|
+
Permission_default.ProjectUser
|
|
150840
|
+
],
|
|
150841
|
+
update: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin]
|
|
150842
|
+
}),
|
|
150843
|
+
TableColumn_default({
|
|
150844
|
+
required: true,
|
|
150845
|
+
isDefaultValueColumn: true,
|
|
150846
|
+
type: TableColumnType_default.Boolean,
|
|
150847
|
+
title: "Enable Automatic Security Case Triage",
|
|
150848
|
+
description: "When enabled, OneUptime AI triages every new security case a detection opens: it posts what happened, how likely it is to be real, the priority it deserves and the playbook that fits to the case's timeline. It changes nothing: a person decides the verdict and priority and runs the playbook. On for new projects created in OneUptime; projects that existed before keep their setting. Requires AI to be enabled and an LLM provider to be configured.",
|
|
150849
|
+
defaultValue: false,
|
|
150850
|
+
example: true
|
|
150851
|
+
}),
|
|
150852
|
+
Column({
|
|
150853
|
+
nullable: false,
|
|
150854
|
+
default: false,
|
|
150855
|
+
type: ColumnType_default.Boolean
|
|
150856
|
+
})
|
|
150857
|
+
], Project.prototype, "enableAutomaticSecurityCaseTriage", 2);
|
|
150828
150858
|
__decorateClass([
|
|
150829
150859
|
ColumnAccessControl_default({
|
|
150830
150860
|
create: [Permission_default.User],
|
|
@@ -231680,6 +231710,7 @@ var OnCallDutyPolicy = class extends DatabaseBaseModel {
|
|
|
231680
231710
|
this.archivedByUserId = void 0;
|
|
231681
231711
|
this.repeatPolicyIfNoOneAcknowledges = void 0;
|
|
231682
231712
|
this.repeatPolicyIfNoOneAcknowledgesNoOfTimes = void 0;
|
|
231713
|
+
this.acknowledgementTimeoutInMinutes = void 0;
|
|
231683
231714
|
this.customFields = void 0;
|
|
231684
231715
|
this.postUpdatesToWorkspaceChannels = void 0;
|
|
231685
231716
|
}
|
|
@@ -232281,6 +232312,48 @@ __decorateClass([
|
|
|
232281
232312
|
type: ColumnType_default.Number
|
|
232282
232313
|
})
|
|
232283
232314
|
], OnCallDutyPolicy.prototype, "repeatPolicyIfNoOneAcknowledgesNoOfTimes", 2);
|
|
232315
|
+
__decorateClass([
|
|
232316
|
+
ColumnAccessControl_default({
|
|
232317
|
+
create: [
|
|
232318
|
+
Permission_default.ProjectOwner,
|
|
232319
|
+
Permission_default.ProjectAdmin,
|
|
232320
|
+
Permission_default.ProjectMember,
|
|
232321
|
+
Permission_default.OnCallAdmin,
|
|
232322
|
+
Permission_default.OnCallMember,
|
|
232323
|
+
Permission_default.CreateProjectOnCallDutyPolicy
|
|
232324
|
+
],
|
|
232325
|
+
read: [
|
|
232326
|
+
Permission_default.ProjectOwner,
|
|
232327
|
+
Permission_default.ProjectAdmin,
|
|
232328
|
+
Permission_default.ProjectMember,
|
|
232329
|
+
Permission_default.Viewer,
|
|
232330
|
+
Permission_default.OnCallAdmin,
|
|
232331
|
+
Permission_default.OnCallMember,
|
|
232332
|
+
Permission_default.OnCallViewer,
|
|
232333
|
+
Permission_default.ReadProjectOnCallDutyPolicy
|
|
232334
|
+
],
|
|
232335
|
+
update: [
|
|
232336
|
+
Permission_default.ProjectOwner,
|
|
232337
|
+
Permission_default.ProjectAdmin,
|
|
232338
|
+
Permission_default.ProjectMember,
|
|
232339
|
+
Permission_default.OnCallAdmin,
|
|
232340
|
+
Permission_default.OnCallMember,
|
|
232341
|
+
Permission_default.EditProjectOnCallDutyPolicy
|
|
232342
|
+
]
|
|
232343
|
+
}),
|
|
232344
|
+
TableColumn_default({
|
|
232345
|
+
required: false,
|
|
232346
|
+
isDefaultValueColumn: false,
|
|
232347
|
+
type: TableColumnType_default.Number,
|
|
232348
|
+
title: "Acknowledgement Timeout In Minutes",
|
|
232349
|
+
description: "Page again when something this policy paged about is acknowledged but not resolved within this many minutes (5 to 1440). Empty: never.",
|
|
232350
|
+
example: 30
|
|
232351
|
+
}),
|
|
232352
|
+
Column({
|
|
232353
|
+
nullable: true,
|
|
232354
|
+
type: ColumnType_default.Number
|
|
232355
|
+
})
|
|
232356
|
+
], OnCallDutyPolicy.prototype, "acknowledgementTimeoutInMinutes", 2);
|
|
232284
232357
|
__decorateClass([
|
|
232285
232358
|
ColumnAccessControl_default({
|
|
232286
232359
|
create: [
|
|
@@ -265438,6 +265511,7 @@ var GlobalConfig2 = class extends GlobalConfig {
|
|
|
265438
265511
|
this.telegramBotToken = void 0;
|
|
265439
265512
|
this.telegramBotUsername = void 0;
|
|
265440
265513
|
this.telegramWebhookSecretToken = void 0;
|
|
265514
|
+
this.telegramPollForUpdates = void 0;
|
|
265441
265515
|
this.emailServerType = void 0;
|
|
265442
265516
|
this.sendgridApiKey = void 0;
|
|
265443
265517
|
this.sendgridFromEmail = void 0;
|
|
@@ -266065,6 +266139,24 @@ __decorateClass([
|
|
|
266065
266139
|
unique: true
|
|
266066
266140
|
})
|
|
266067
266141
|
], GlobalConfig2.prototype, "telegramWebhookSecretToken", 2);
|
|
266142
|
+
__decorateClass([
|
|
266143
|
+
ColumnAccessControl_default({
|
|
266144
|
+
create: [],
|
|
266145
|
+
read: [],
|
|
266146
|
+
update: []
|
|
266147
|
+
}),
|
|
266148
|
+
TableColumn_default({
|
|
266149
|
+
type: TableColumnType_default.Boolean,
|
|
266150
|
+
title: "Poll Telegram for Messages",
|
|
266151
|
+
description: "When enabled, OneUptime fetches the bot's messages from Telegram over outbound HTTPS instead of waiting for Telegram to call its webhook. For servers Telegram cannot reach, such as one behind a VPN or firewall.",
|
|
266152
|
+
defaultValue: false
|
|
266153
|
+
}),
|
|
266154
|
+
Column({
|
|
266155
|
+
type: ColumnType_default.Boolean,
|
|
266156
|
+
nullable: true,
|
|
266157
|
+
default: false
|
|
266158
|
+
})
|
|
266159
|
+
], GlobalConfig2.prototype, "telegramPollForUpdates", 2);
|
|
266068
266160
|
__decorateClass([
|
|
266069
266161
|
ColumnAccessControl_default({
|
|
266070
266162
|
create: [],
|
|
@@ -282854,6 +282946,12 @@ var SecurityCase = class extends DatabaseBaseModel {
|
|
|
282854
282946
|
this.notifiedPriority = void 0;
|
|
282855
282947
|
this.incident = void 0;
|
|
282856
282948
|
this.incidentId = void 0;
|
|
282949
|
+
this.aiVerdict = void 0;
|
|
282950
|
+
this.aiSuggestedPriority = void 0;
|
|
282951
|
+
this.aiSuggestedPlaybookId = void 0;
|
|
282952
|
+
this.aiTriageReport = void 0;
|
|
282953
|
+
this.aiTriagedAt = void 0;
|
|
282954
|
+
this.aiTriagePromptInjectionSuspected = void 0;
|
|
282857
282955
|
this.labels = void 0;
|
|
282858
282956
|
this.createdByUser = void 0;
|
|
282859
282957
|
this.createdByUserId = void 0;
|
|
@@ -283403,6 +283501,87 @@ __decorateClass([
|
|
|
283403
283501
|
transformer: ObjectID.getDatabaseTransformer()
|
|
283404
283502
|
})
|
|
283405
283503
|
], SecurityCase.prototype, "incidentId", 2);
|
|
283504
|
+
__decorateClass([
|
|
283505
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283506
|
+
TableColumn_default({
|
|
283507
|
+
type: TableColumnType_default.ShortText,
|
|
283508
|
+
computed: true,
|
|
283509
|
+
title: "AI Verdict",
|
|
283510
|
+
description: "What OneUptime AI made of the case when it triaged it: Likely Malicious, Likely Benign, Likely False Positive or Inconclusive. A suggestion; a person sets the case's verdict."
|
|
283511
|
+
}),
|
|
283512
|
+
Column({
|
|
283513
|
+
nullable: true,
|
|
283514
|
+
type: ColumnType_default.ShortText,
|
|
283515
|
+
length: ColumnLength_default.ShortText
|
|
283516
|
+
})
|
|
283517
|
+
], SecurityCase.prototype, "aiVerdict", 2);
|
|
283518
|
+
__decorateClass([
|
|
283519
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283520
|
+
TableColumn_default({
|
|
283521
|
+
type: TableColumnType_default.ShortText,
|
|
283522
|
+
computed: true,
|
|
283523
|
+
title: "AI Suggested Priority",
|
|
283524
|
+
description: "The priority OneUptime AI suggested when it triaged the case. The case's own priority changes only when a person sets it."
|
|
283525
|
+
}),
|
|
283526
|
+
Column({
|
|
283527
|
+
nullable: true,
|
|
283528
|
+
type: ColumnType_default.ShortText,
|
|
283529
|
+
length: ColumnLength_default.ShortText
|
|
283530
|
+
})
|
|
283531
|
+
], SecurityCase.prototype, "aiSuggestedPriority", 2);
|
|
283532
|
+
__decorateClass([
|
|
283533
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283534
|
+
TableColumn_default({
|
|
283535
|
+
type: TableColumnType_default.ObjectID,
|
|
283536
|
+
computed: true,
|
|
283537
|
+
title: "AI Suggested Playbook ID",
|
|
283538
|
+
description: "ID of the project's playbook OneUptime AI suggested running when it triaged the case. It runs only when a person runs it."
|
|
283539
|
+
}),
|
|
283540
|
+
Column({
|
|
283541
|
+
type: ColumnType_default.ObjectID,
|
|
283542
|
+
nullable: true,
|
|
283543
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
283544
|
+
})
|
|
283545
|
+
], SecurityCase.prototype, "aiSuggestedPlaybookId", 2);
|
|
283546
|
+
__decorateClass([
|
|
283547
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283548
|
+
TableColumn_default({
|
|
283549
|
+
type: TableColumnType_default.Markdown,
|
|
283550
|
+
computed: true,
|
|
283551
|
+
title: "AI Triage Report",
|
|
283552
|
+
description: "The report OneUptime AI wrote when it last triaged the case: what happened, its read and the evidence for it, and the next steps."
|
|
283553
|
+
}),
|
|
283554
|
+
Column({
|
|
283555
|
+
nullable: true,
|
|
283556
|
+
type: ColumnType_default.Markdown
|
|
283557
|
+
})
|
|
283558
|
+
], SecurityCase.prototype, "aiTriageReport", 2);
|
|
283559
|
+
__decorateClass([
|
|
283560
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283561
|
+
TableColumn_default({
|
|
283562
|
+
type: TableColumnType_default.Date,
|
|
283563
|
+
computed: true,
|
|
283564
|
+
title: "AI Triaged At",
|
|
283565
|
+
description: "When OneUptime AI last finished triaging the case."
|
|
283566
|
+
}),
|
|
283567
|
+
Column({
|
|
283568
|
+
nullable: true,
|
|
283569
|
+
type: ColumnType_default.Date
|
|
283570
|
+
})
|
|
283571
|
+
], SecurityCase.prototype, "aiTriagedAt", 2);
|
|
283572
|
+
__decorateClass([
|
|
283573
|
+
ColumnAccessControl_default(serverWrittenColumnAccess),
|
|
283574
|
+
TableColumn_default({
|
|
283575
|
+
type: TableColumnType_default.Boolean,
|
|
283576
|
+
computed: true,
|
|
283577
|
+
title: "AI Triage Prompt Injection Suspected",
|
|
283578
|
+
description: "Whether OneUptime AI found text in the case's data written to steer an AI when it triaged the case. It then leaves the call to a person."
|
|
283579
|
+
}),
|
|
283580
|
+
Column({
|
|
283581
|
+
nullable: true,
|
|
283582
|
+
type: ColumnType_default.Boolean
|
|
283583
|
+
})
|
|
283584
|
+
], SecurityCase.prototype, "aiTriagePromptInjectionSuspected", 2);
|
|
283406
283585
|
__decorateClass([
|
|
283407
283586
|
ColumnAccessControl_default({
|
|
283408
283587
|
create: createPermissions3,
|
|
@@ -284701,6 +284880,7 @@ SecurityDetection = __decorateClass([
|
|
|
284701
284880
|
var SecurityPlaybookTrigger = /* @__PURE__ */ ((SecurityPlaybookTrigger2) => {
|
|
284702
284881
|
SecurityPlaybookTrigger2["CaseOpened"] = "Case Opened";
|
|
284703
284882
|
SecurityPlaybookTrigger2["DetectionAdded"] = "Detection Added";
|
|
284883
|
+
SecurityPlaybookTrigger2["TriagedAsLikelyMalicious"] = "Triaged as Likely Malicious";
|
|
284704
284884
|
SecurityPlaybookTrigger2["Manual"] = "Manual";
|
|
284705
284885
|
return SecurityPlaybookTrigger2;
|
|
284706
284886
|
})(SecurityPlaybookTrigger || {});
|
|
@@ -301162,6 +301342,8 @@ var OnCallDutyPolicyExecutionLog = class extends DatabaseBaseModel {
|
|
|
301162
301342
|
this.scheduleGapRetryCount = void 0;
|
|
301163
301343
|
this.pagingStartsAt = void 0;
|
|
301164
301344
|
this.pagingStartedEarlyReason = void 0;
|
|
301345
|
+
this.acknowledgementTimeoutStartedAt = void 0;
|
|
301346
|
+
this.pageAgainNumber = void 0;
|
|
301165
301347
|
this.triggeredByUser = void 0;
|
|
301166
301348
|
this.triggeredByUserId = void 0;
|
|
301167
301349
|
this.triggeredByWorkflowId = void 0;
|
|
@@ -302374,6 +302556,62 @@ __decorateClass([
|
|
|
302374
302556
|
nullable: true
|
|
302375
302557
|
})
|
|
302376
302558
|
], OnCallDutyPolicyExecutionLog.prototype, "pagingStartedEarlyReason", 2);
|
|
302559
|
+
__decorateClass([
|
|
302560
|
+
ColumnAccessControl_default({
|
|
302561
|
+
create: [],
|
|
302562
|
+
read: [
|
|
302563
|
+
Permission_default.ProjectOwner,
|
|
302564
|
+
Permission_default.ProjectAdmin,
|
|
302565
|
+
Permission_default.ProjectMember,
|
|
302566
|
+
Permission_default.Viewer,
|
|
302567
|
+
Permission_default.OnCallAdmin,
|
|
302568
|
+
Permission_default.OnCallMember,
|
|
302569
|
+
Permission_default.OnCallViewer,
|
|
302570
|
+
Permission_default.ReadProjectOnCallDutyPolicyExecutionLog
|
|
302571
|
+
],
|
|
302572
|
+
update: []
|
|
302573
|
+
}),
|
|
302574
|
+
TableColumn_default({
|
|
302575
|
+
type: TableColumnType_default.Date,
|
|
302576
|
+
required: false,
|
|
302577
|
+
title: "Acknowledgement Timeout Started At",
|
|
302578
|
+
description: "When the acknowledgement timeout started counting for this run's record: its last acknowledgement. Empty when it is not counting.",
|
|
302579
|
+
canReadOnRelationQuery: false,
|
|
302580
|
+
example: "2024-01-15T09:00:00.000Z"
|
|
302581
|
+
}),
|
|
302582
|
+
Column({
|
|
302583
|
+
type: ColumnType_default.Date,
|
|
302584
|
+
nullable: true
|
|
302585
|
+
})
|
|
302586
|
+
], OnCallDutyPolicyExecutionLog.prototype, "acknowledgementTimeoutStartedAt", 2);
|
|
302587
|
+
__decorateClass([
|
|
302588
|
+
ColumnAccessControl_default({
|
|
302589
|
+
create: [],
|
|
302590
|
+
read: [
|
|
302591
|
+
Permission_default.ProjectOwner,
|
|
302592
|
+
Permission_default.ProjectAdmin,
|
|
302593
|
+
Permission_default.ProjectMember,
|
|
302594
|
+
Permission_default.Viewer,
|
|
302595
|
+
Permission_default.OnCallAdmin,
|
|
302596
|
+
Permission_default.OnCallMember,
|
|
302597
|
+
Permission_default.OnCallViewer,
|
|
302598
|
+
Permission_default.ReadProjectOnCallDutyPolicyExecutionLog
|
|
302599
|
+
],
|
|
302600
|
+
update: []
|
|
302601
|
+
}),
|
|
302602
|
+
TableColumn_default({
|
|
302603
|
+
type: TableColumnType_default.Number,
|
|
302604
|
+
required: false,
|
|
302605
|
+
title: "Page Again Number",
|
|
302606
|
+
description: "For a run that pages again because its record stayed acknowledged without being resolved: which time, from 1. Empty for every other run.",
|
|
302607
|
+
canReadOnRelationQuery: false,
|
|
302608
|
+
example: 1
|
|
302609
|
+
}),
|
|
302610
|
+
Column({
|
|
302611
|
+
type: ColumnType_default.Number,
|
|
302612
|
+
nullable: true
|
|
302613
|
+
})
|
|
302614
|
+
], OnCallDutyPolicyExecutionLog.prototype, "pageAgainNumber", 2);
|
|
302377
302615
|
__decorateClass([
|
|
302378
302616
|
ColumnAccessControl_default({
|
|
302379
302617
|
create: [
|
|
@@ -302550,6 +302788,9 @@ OnCallDutyPolicyExecutionLog = __decorateClass([
|
|
|
302550
302788
|
Entity({
|
|
302551
302789
|
name: "OnCallDutyPolicyExecutionLog"
|
|
302552
302790
|
}),
|
|
302791
|
+
Index(["acknowledgementTimeoutStartedAt"], {
|
|
302792
|
+
where: '"acknowledgementTimeoutStartedAt" IS NOT NULL AND "deletedAt" IS NULL'
|
|
302793
|
+
}),
|
|
302553
302794
|
TableMetadata_default({
|
|
302554
302795
|
tableName: "OnCallDutyPolicyExecutionLog",
|
|
302555
302796
|
singularName: "On-Call Duty Execution Log",
|
|
@@ -321581,6 +321822,8 @@ var CodeRepository = class extends DatabaseBaseModel {
|
|
|
321581
321822
|
this.maxOpenFixPullRequests = void 0;
|
|
321582
321823
|
this.isGitHubCommandsEnabled = void 0;
|
|
321583
321824
|
this.gitHubTriggerLabel = void 0;
|
|
321825
|
+
this.isProductionReviewEnabled = void 0;
|
|
321826
|
+
this.productionReviewPullRequestContent = void 0;
|
|
321584
321827
|
this.repositoryUrl = void 0;
|
|
321585
321828
|
this.gitHubAppInstallationId = void 0;
|
|
321586
321829
|
this.gitLabProjectId = void 0;
|
|
@@ -322284,6 +322527,89 @@ __decorateClass([
|
|
|
322284
322527
|
length: ColumnLength_default.ShortText
|
|
322285
322528
|
})
|
|
322286
322529
|
], CodeRepository.prototype, "gitHubTriggerLabel", 2);
|
|
322530
|
+
__decorateClass([
|
|
322531
|
+
ColumnAccessControl_default({
|
|
322532
|
+
create: [
|
|
322533
|
+
Permission_default.ProjectOwner,
|
|
322534
|
+
Permission_default.ProjectAdmin,
|
|
322535
|
+
Permission_default.ProjectMember,
|
|
322536
|
+
Permission_default.SettingsAdmin,
|
|
322537
|
+
Permission_default.SettingsMember,
|
|
322538
|
+
Permission_default.CreateCodeRepository
|
|
322539
|
+
],
|
|
322540
|
+
read: [
|
|
322541
|
+
Permission_default.ProjectOwner,
|
|
322542
|
+
Permission_default.ProjectAdmin,
|
|
322543
|
+
Permission_default.ProjectMember,
|
|
322544
|
+
Permission_default.Viewer,
|
|
322545
|
+
Permission_default.SettingsAdmin,
|
|
322546
|
+
Permission_default.SettingsMember,
|
|
322547
|
+
Permission_default.SettingsViewer,
|
|
322548
|
+
Permission_default.ReadCodeRepository
|
|
322549
|
+
],
|
|
322550
|
+
update: [
|
|
322551
|
+
Permission_default.ProjectOwner,
|
|
322552
|
+
Permission_default.ProjectAdmin,
|
|
322553
|
+
Permission_default.ProjectMember,
|
|
322554
|
+
Permission_default.SettingsAdmin,
|
|
322555
|
+
Permission_default.SettingsMember,
|
|
322556
|
+
Permission_default.EditCodeRepository
|
|
322557
|
+
]
|
|
322558
|
+
}),
|
|
322559
|
+
TableColumn_default({
|
|
322560
|
+
required: false,
|
|
322561
|
+
type: TableColumnType_default.Boolean,
|
|
322562
|
+
title: "Review Pull Requests Against Production",
|
|
322563
|
+
description: "Whether OneUptime comments on this repository's pull requests with what production says about the code they change: the exceptions thrown in it, how busy and slow the operations it runs are, and the incidents and deploys around it. Only pull requests from people who can write to the repository are reviewed on their own.",
|
|
322564
|
+
example: true
|
|
322565
|
+
}),
|
|
322566
|
+
Column({
|
|
322567
|
+
nullable: true,
|
|
322568
|
+
type: ColumnType_default.Boolean
|
|
322569
|
+
})
|
|
322570
|
+
], CodeRepository.prototype, "isProductionReviewEnabled", 2);
|
|
322571
|
+
__decorateClass([
|
|
322572
|
+
ColumnAccessControl_default({
|
|
322573
|
+
create: [
|
|
322574
|
+
Permission_default.ProjectOwner,
|
|
322575
|
+
Permission_default.ProjectAdmin,
|
|
322576
|
+
Permission_default.ProjectMember,
|
|
322577
|
+
Permission_default.SettingsAdmin,
|
|
322578
|
+
Permission_default.SettingsMember,
|
|
322579
|
+
Permission_default.CreateCodeRepository
|
|
322580
|
+
],
|
|
322581
|
+
read: [
|
|
322582
|
+
Permission_default.ProjectOwner,
|
|
322583
|
+
Permission_default.ProjectAdmin,
|
|
322584
|
+
Permission_default.ProjectMember,
|
|
322585
|
+
Permission_default.Viewer,
|
|
322586
|
+
Permission_default.SettingsAdmin,
|
|
322587
|
+
Permission_default.SettingsMember,
|
|
322588
|
+
Permission_default.SettingsViewer,
|
|
322589
|
+
Permission_default.ReadCodeRepository
|
|
322590
|
+
],
|
|
322591
|
+
update: [
|
|
322592
|
+
Permission_default.ProjectOwner,
|
|
322593
|
+
Permission_default.ProjectAdmin,
|
|
322594
|
+
Permission_default.ProjectMember,
|
|
322595
|
+
Permission_default.SettingsAdmin,
|
|
322596
|
+
Permission_default.SettingsMember,
|
|
322597
|
+
Permission_default.EditCodeRepository
|
|
322598
|
+
]
|
|
322599
|
+
}),
|
|
322600
|
+
TableColumn_default({
|
|
322601
|
+
required: false,
|
|
322602
|
+
type: TableColumnType_default.ShortText,
|
|
322603
|
+
title: "Production Review Comment",
|
|
322604
|
+
description: "What a production review posts on a pull request. Review (the default): the review, or only a link to it in OneUptime on a public repository. Link: only a link, whatever the repository. ReviewEvenIfPublic: the review, even on a public repository.",
|
|
322605
|
+
example: "Review"
|
|
322606
|
+
}),
|
|
322607
|
+
Column({
|
|
322608
|
+
nullable: true,
|
|
322609
|
+
type: ColumnType_default.ShortText,
|
|
322610
|
+
length: ColumnLength_default.ShortText
|
|
322611
|
+
})
|
|
322612
|
+
], CodeRepository.prototype, "productionReviewPullRequestContent", 2);
|
|
322287
322613
|
__decorateClass([
|
|
322288
322614
|
ColumnAccessControl_default({
|
|
322289
322615
|
create: [
|
|
@@ -324712,8 +325038,10 @@ var AIRun = class extends DatabaseBaseModel {
|
|
|
324712
325038
|
this.triggeredByAlertId = void 0;
|
|
324713
325039
|
this.followUpForAlertId = void 0;
|
|
324714
325040
|
this.ruleWaitMinutes = void 0;
|
|
325041
|
+
this.llmProviderId = void 0;
|
|
324715
325042
|
this.triggeredByTelemetryExceptionId = void 0;
|
|
324716
325043
|
this.triggeredByAiInsightId = void 0;
|
|
325044
|
+
this.triggeredBySecurityCaseId = void 0;
|
|
324717
325045
|
this.triggeredByAutoRemediationSuggestionId = void 0;
|
|
324718
325046
|
this.monitorId = void 0;
|
|
324719
325047
|
this.aiAgentId = void 0;
|
|
@@ -325149,6 +325477,30 @@ __decorateClass([
|
|
|
325149
325477
|
nullable: true
|
|
325150
325478
|
})
|
|
325151
325479
|
], AIRun.prototype, "ruleWaitMinutes", 2);
|
|
325480
|
+
__decorateClass([
|
|
325481
|
+
ColumnAccessControl_default({
|
|
325482
|
+
create: [],
|
|
325483
|
+
read: [
|
|
325484
|
+
Permission_default.ProjectOwner,
|
|
325485
|
+
Permission_default.ProjectAdmin,
|
|
325486
|
+
Permission_default.ProjectMember,
|
|
325487
|
+
Permission_default.Viewer
|
|
325488
|
+
],
|
|
325489
|
+
update: []
|
|
325490
|
+
}),
|
|
325491
|
+
TableColumn_default({
|
|
325492
|
+
type: TableColumnType_default.ObjectID,
|
|
325493
|
+
required: false,
|
|
325494
|
+
canReadOnRelationQuery: true,
|
|
325495
|
+
title: "LLM Provider ID",
|
|
325496
|
+
description: "The LLM provider the rule that started this run picked for it. Empty when no rule picked one: the project's default provider, else the global one."
|
|
325497
|
+
}),
|
|
325498
|
+
Column({
|
|
325499
|
+
type: ColumnType_default.ObjectID,
|
|
325500
|
+
nullable: true,
|
|
325501
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
325502
|
+
})
|
|
325503
|
+
], AIRun.prototype, "llmProviderId", 2);
|
|
325152
325504
|
__decorateClass([
|
|
325153
325505
|
ColumnAccessControl_default({
|
|
325154
325506
|
create: [],
|
|
@@ -325199,6 +325551,31 @@ __decorateClass([
|
|
|
325199
325551
|
transformer: ObjectID.getDatabaseTransformer()
|
|
325200
325552
|
})
|
|
325201
325553
|
], AIRun.prototype, "triggeredByAiInsightId", 2);
|
|
325554
|
+
__decorateClass([
|
|
325555
|
+
ColumnAccessControl_default({
|
|
325556
|
+
create: [],
|
|
325557
|
+
read: [
|
|
325558
|
+
Permission_default.ProjectOwner,
|
|
325559
|
+
Permission_default.ProjectAdmin,
|
|
325560
|
+
Permission_default.ProjectMember,
|
|
325561
|
+
Permission_default.Viewer
|
|
325562
|
+
],
|
|
325563
|
+
update: []
|
|
325564
|
+
}),
|
|
325565
|
+
Index(),
|
|
325566
|
+
TableColumn_default({
|
|
325567
|
+
type: TableColumnType_default.ObjectID,
|
|
325568
|
+
required: false,
|
|
325569
|
+
canReadOnRelationQuery: true,
|
|
325570
|
+
title: "Triggered By Security Case ID",
|
|
325571
|
+
description: "The security case this run triaged (for security case triage runs)."
|
|
325572
|
+
}),
|
|
325573
|
+
Column({
|
|
325574
|
+
type: ColumnType_default.ObjectID,
|
|
325575
|
+
nullable: true,
|
|
325576
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
325577
|
+
})
|
|
325578
|
+
], AIRun.prototype, "triggeredBySecurityCaseId", 2);
|
|
325202
325579
|
__decorateClass([
|
|
325203
325580
|
ColumnAccessControl_default({
|
|
325204
325581
|
create: [],
|
|
@@ -379858,6 +380235,8 @@ var AutoRemediationRule = class extends RuleBaseModel {
|
|
|
379858
380235
|
this.runner = void 0;
|
|
379859
380236
|
this.runnerId = void 0;
|
|
379860
380237
|
this.codeRepositories = void 0;
|
|
380238
|
+
this.llmProvider = void 0;
|
|
380239
|
+
this.llmProviderId = void 0;
|
|
379861
380240
|
this.openCodeFixPullRequests = void 0;
|
|
379862
380241
|
this.openTelemetryPullRequests = void 0;
|
|
379863
380242
|
this.verificationWindowMinutes = void 0;
|
|
@@ -380778,6 +381157,80 @@ __decorateClass([
|
|
|
380778
381157
|
}
|
|
380779
381158
|
})
|
|
380780
381159
|
], AutoRemediationRule.prototype, "codeRepositories", 2);
|
|
381160
|
+
__decorateClass([
|
|
381161
|
+
ColumnAccessControl_default({
|
|
381162
|
+
create: [
|
|
381163
|
+
Permission_default.ProjectOwner,
|
|
381164
|
+
Permission_default.ProjectAdmin,
|
|
381165
|
+
Permission_default.CreateAutoRemediationRule
|
|
381166
|
+
],
|
|
381167
|
+
read: [
|
|
381168
|
+
Permission_default.ProjectOwner,
|
|
381169
|
+
Permission_default.ProjectAdmin,
|
|
381170
|
+
Permission_default.ProjectMember,
|
|
381171
|
+
Permission_default.Viewer,
|
|
381172
|
+
Permission_default.ReadAutoRemediationRule
|
|
381173
|
+
],
|
|
381174
|
+
update: [
|
|
381175
|
+
Permission_default.ProjectOwner,
|
|
381176
|
+
Permission_default.ProjectAdmin,
|
|
381177
|
+
Permission_default.EditAutoRemediationRule
|
|
381178
|
+
]
|
|
381179
|
+
}),
|
|
381180
|
+
TableColumn_default({
|
|
381181
|
+
manyToOneRelationColumn: "llmProviderId",
|
|
381182
|
+
type: TableColumnType_default.Entity,
|
|
381183
|
+
modelType: LlmProvider,
|
|
381184
|
+
title: "LLM Provider",
|
|
381185
|
+
description: "The LLM provider OneUptime AI uses for everything this rule starts: one of the project's providers or a global one. Empty: the project's default provider, else the global one."
|
|
381186
|
+
}),
|
|
381187
|
+
ManyToOne(
|
|
381188
|
+
() => {
|
|
381189
|
+
return LlmProvider;
|
|
381190
|
+
},
|
|
381191
|
+
{
|
|
381192
|
+
eager: false,
|
|
381193
|
+
nullable: true,
|
|
381194
|
+
onDelete: "SET NULL",
|
|
381195
|
+
orphanedRowAction: "nullify"
|
|
381196
|
+
}
|
|
381197
|
+
),
|
|
381198
|
+
JoinColumn({ name: "llmProviderId" })
|
|
381199
|
+
], AutoRemediationRule.prototype, "llmProvider", 2);
|
|
381200
|
+
__decorateClass([
|
|
381201
|
+
ColumnAccessControl_default({
|
|
381202
|
+
create: [
|
|
381203
|
+
Permission_default.ProjectOwner,
|
|
381204
|
+
Permission_default.ProjectAdmin,
|
|
381205
|
+
Permission_default.CreateAutoRemediationRule
|
|
381206
|
+
],
|
|
381207
|
+
read: [
|
|
381208
|
+
Permission_default.ProjectOwner,
|
|
381209
|
+
Permission_default.ProjectAdmin,
|
|
381210
|
+
Permission_default.ProjectMember,
|
|
381211
|
+
Permission_default.Viewer,
|
|
381212
|
+
Permission_default.ReadAutoRemediationRule
|
|
381213
|
+
],
|
|
381214
|
+
update: [
|
|
381215
|
+
Permission_default.ProjectOwner,
|
|
381216
|
+
Permission_default.ProjectAdmin,
|
|
381217
|
+
Permission_default.EditAutoRemediationRule
|
|
381218
|
+
]
|
|
381219
|
+
}),
|
|
381220
|
+
Index(),
|
|
381221
|
+
TableColumn_default({
|
|
381222
|
+
type: TableColumnType_default.ObjectID,
|
|
381223
|
+
required: false,
|
|
381224
|
+
canReadOnRelationQuery: true,
|
|
381225
|
+
title: "LLM Provider ID",
|
|
381226
|
+
description: "ID of the LLM provider OneUptime AI uses for everything this rule starts. Empty: the project's default provider, else the global one."
|
|
381227
|
+
}),
|
|
381228
|
+
Column({
|
|
381229
|
+
type: ColumnType_default.ObjectID,
|
|
381230
|
+
nullable: true,
|
|
381231
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
381232
|
+
})
|
|
381233
|
+
], AutoRemediationRule.prototype, "llmProviderId", 2);
|
|
380781
381234
|
__decorateClass([
|
|
380782
381235
|
ColumnAccessControl_default({
|
|
380783
381236
|
create: [
|
|
@@ -382325,6 +382778,8 @@ var AIInvestigationRule = class extends RuleBaseModel {
|
|
|
382325
382778
|
this.onlyIfOpenAfterMinutes = void 0;
|
|
382326
382779
|
this.externalMcpServers = void 0;
|
|
382327
382780
|
this.codeRepositories = void 0;
|
|
382781
|
+
this.llmProvider = void 0;
|
|
382782
|
+
this.llmProviderId = void 0;
|
|
382328
382783
|
this.createdByUser = void 0;
|
|
382329
382784
|
this.createdByUserId = void 0;
|
|
382330
382785
|
this.deletedByUser = void 0;
|
|
@@ -382807,6 +383262,62 @@ __decorateClass([
|
|
|
382807
383262
|
}
|
|
382808
383263
|
})
|
|
382809
383264
|
], AIInvestigationRule.prototype, "codeRepositories", 2);
|
|
383265
|
+
__decorateClass([
|
|
383266
|
+
ColumnAccessControl_default({
|
|
383267
|
+
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|
|
383268
|
+
read: [
|
|
383269
|
+
Permission_default.ProjectOwner,
|
|
383270
|
+
Permission_default.ProjectAdmin,
|
|
383271
|
+
Permission_default.ProjectMember,
|
|
383272
|
+
Permission_default.Viewer
|
|
383273
|
+
],
|
|
383274
|
+
update: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin]
|
|
383275
|
+
}),
|
|
383276
|
+
TableColumn_default({
|
|
383277
|
+
manyToOneRelationColumn: "llmProviderId",
|
|
383278
|
+
type: TableColumnType_default.Entity,
|
|
383279
|
+
modelType: LlmProvider,
|
|
383280
|
+
title: "LLM Provider",
|
|
383281
|
+
description: "The LLM provider OneUptime AI uses for everything this rule starts: one of the project's providers or a global one. Empty: the project's default provider, else the global one."
|
|
383282
|
+
}),
|
|
383283
|
+
ManyToOne(
|
|
383284
|
+
() => {
|
|
383285
|
+
return LlmProvider;
|
|
383286
|
+
},
|
|
383287
|
+
{
|
|
383288
|
+
eager: false,
|
|
383289
|
+
nullable: true,
|
|
383290
|
+
onDelete: "SET NULL",
|
|
383291
|
+
orphanedRowAction: "nullify"
|
|
383292
|
+
}
|
|
383293
|
+
),
|
|
383294
|
+
JoinColumn({ name: "llmProviderId" })
|
|
383295
|
+
], AIInvestigationRule.prototype, "llmProvider", 2);
|
|
383296
|
+
__decorateClass([
|
|
383297
|
+
ColumnAccessControl_default({
|
|
383298
|
+
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|
|
383299
|
+
read: [
|
|
383300
|
+
Permission_default.ProjectOwner,
|
|
383301
|
+
Permission_default.ProjectAdmin,
|
|
383302
|
+
Permission_default.ProjectMember,
|
|
383303
|
+
Permission_default.Viewer
|
|
383304
|
+
],
|
|
383305
|
+
update: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin]
|
|
383306
|
+
}),
|
|
383307
|
+
Index(),
|
|
383308
|
+
TableColumn_default({
|
|
383309
|
+
type: TableColumnType_default.ObjectID,
|
|
383310
|
+
required: false,
|
|
383311
|
+
canReadOnRelationQuery: true,
|
|
383312
|
+
title: "LLM Provider ID",
|
|
383313
|
+
description: "ID of the LLM provider OneUptime AI uses for everything this rule starts. Empty: the project's default provider, else the global one."
|
|
383314
|
+
}),
|
|
383315
|
+
Column({
|
|
383316
|
+
type: ColumnType_default.ObjectID,
|
|
383317
|
+
nullable: true,
|
|
383318
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
383319
|
+
})
|
|
383320
|
+
], AIInvestigationRule.prototype, "llmProviderId", 2);
|
|
382810
383321
|
__decorateClass([
|
|
382811
383322
|
ColumnAccessControl_default({
|
|
382812
383323
|
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|
|
@@ -382948,6 +383459,8 @@ var AIPostmortemRule = class extends RuleBaseModel {
|
|
|
382948
383459
|
this.titlePattern = void 0;
|
|
382949
383460
|
this.descriptionPattern = void 0;
|
|
382950
383461
|
this.postmortemTemplates = void 0;
|
|
383462
|
+
this.llmProvider = void 0;
|
|
383463
|
+
this.llmProviderId = void 0;
|
|
382951
383464
|
this.createdByUser = void 0;
|
|
382952
383465
|
this.createdByUserId = void 0;
|
|
382953
383466
|
this.deletedByUser = void 0;
|
|
@@ -383336,6 +383849,62 @@ __decorateClass([
|
|
|
383336
383849
|
}
|
|
383337
383850
|
})
|
|
383338
383851
|
], AIPostmortemRule.prototype, "postmortemTemplates", 2);
|
|
383852
|
+
__decorateClass([
|
|
383853
|
+
ColumnAccessControl_default({
|
|
383854
|
+
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|
|
383855
|
+
read: [
|
|
383856
|
+
Permission_default.ProjectOwner,
|
|
383857
|
+
Permission_default.ProjectAdmin,
|
|
383858
|
+
Permission_default.ProjectMember,
|
|
383859
|
+
Permission_default.Viewer
|
|
383860
|
+
],
|
|
383861
|
+
update: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin]
|
|
383862
|
+
}),
|
|
383863
|
+
TableColumn_default({
|
|
383864
|
+
manyToOneRelationColumn: "llmProviderId",
|
|
383865
|
+
type: TableColumnType_default.Entity,
|
|
383866
|
+
modelType: LlmProvider,
|
|
383867
|
+
title: "LLM Provider",
|
|
383868
|
+
description: "The LLM provider OneUptime AI uses for everything this rule drafts: one of the project's providers or a global one. Empty: the project's default provider, else the global one."
|
|
383869
|
+
}),
|
|
383870
|
+
ManyToOne(
|
|
383871
|
+
() => {
|
|
383872
|
+
return LlmProvider;
|
|
383873
|
+
},
|
|
383874
|
+
{
|
|
383875
|
+
eager: false,
|
|
383876
|
+
nullable: true,
|
|
383877
|
+
onDelete: "SET NULL",
|
|
383878
|
+
orphanedRowAction: "nullify"
|
|
383879
|
+
}
|
|
383880
|
+
),
|
|
383881
|
+
JoinColumn({ name: "llmProviderId" })
|
|
383882
|
+
], AIPostmortemRule.prototype, "llmProvider", 2);
|
|
383883
|
+
__decorateClass([
|
|
383884
|
+
ColumnAccessControl_default({
|
|
383885
|
+
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|
|
383886
|
+
read: [
|
|
383887
|
+
Permission_default.ProjectOwner,
|
|
383888
|
+
Permission_default.ProjectAdmin,
|
|
383889
|
+
Permission_default.ProjectMember,
|
|
383890
|
+
Permission_default.Viewer
|
|
383891
|
+
],
|
|
383892
|
+
update: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin]
|
|
383893
|
+
}),
|
|
383894
|
+
Index(),
|
|
383895
|
+
TableColumn_default({
|
|
383896
|
+
type: TableColumnType_default.ObjectID,
|
|
383897
|
+
required: false,
|
|
383898
|
+
canReadOnRelationQuery: true,
|
|
383899
|
+
title: "LLM Provider ID",
|
|
383900
|
+
description: "ID of the LLM provider OneUptime AI uses for everything this rule drafts. Empty: the project's default provider, else the global one."
|
|
383901
|
+
}),
|
|
383902
|
+
Column({
|
|
383903
|
+
type: ColumnType_default.ObjectID,
|
|
383904
|
+
nullable: true,
|
|
383905
|
+
transformer: ObjectID.getDatabaseTransformer()
|
|
383906
|
+
})
|
|
383907
|
+
], AIPostmortemRule.prototype, "llmProviderId", 2);
|
|
383339
383908
|
__decorateClass([
|
|
383340
383909
|
ColumnAccessControl_default({
|
|
383341
383910
|
create: [Permission_default.ProjectOwner, Permission_default.ProjectAdmin],
|