mobbdev 1.4.42 → 1.4.44
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/dist/args/commands/upload_ai_blame.d.mts +22 -150
- package/dist/args/commands/upload_ai_blame.mjs +112 -109
- package/dist/index.mjs +143 -138
- package/package.json +11 -11
|
@@ -1269,18 +1269,20 @@ var init_shared = __esm({
|
|
|
1269
1269
|
"src/features/analysis/scm/shared/src/types/shared.ts"() {
|
|
1270
1270
|
"use strict";
|
|
1271
1271
|
init_client_generates();
|
|
1272
|
-
ParsedSeverityZ = z.
|
|
1272
|
+
ParsedSeverityZ = z.enum(Vulnerability_Severity_Enum).nullish().transform((i) => i ?? "low" /* Low */);
|
|
1273
1273
|
ScmSubmitFixRequestsZ = z.array(
|
|
1274
1274
|
z.object({
|
|
1275
1275
|
scmSubmitFixRequest: z.object({
|
|
1276
1276
|
submitFixRequest: z.object({
|
|
1277
|
+
// note: nullable at runtime (e.g. deleted or permission-filtered user)
|
|
1278
|
+
// even though the generated schema says otherwise
|
|
1277
1279
|
createdByUser: z.object({
|
|
1278
1280
|
email: z.string()
|
|
1279
|
-
}),
|
|
1281
|
+
}).nullable().transform((user) => user ?? { email: "" }),
|
|
1280
1282
|
targetBranchName: z.string().default("")
|
|
1281
1283
|
}),
|
|
1282
1284
|
prUrl: z.string().nullable(),
|
|
1283
|
-
prStatus: z.
|
|
1285
|
+
prStatus: z.enum(Pr_Status_Enum).nullable(),
|
|
1284
1286
|
commitUrl: z.string().nullable(),
|
|
1285
1287
|
scmId: z.string()
|
|
1286
1288
|
})
|
|
@@ -1303,8 +1305,8 @@ var init_fix = __esm({
|
|
|
1303
1305
|
envName: z2.string().nullable()
|
|
1304
1306
|
});
|
|
1305
1307
|
ManifestActionRequiredZ = z2.object({
|
|
1306
|
-
action: z2.
|
|
1307
|
-
language: z2.
|
|
1308
|
+
action: z2.enum(ManifestAction),
|
|
1309
|
+
language: z2.enum(Language),
|
|
1308
1310
|
lib: PackageInfoZ,
|
|
1309
1311
|
typesLib: PackageInfoZ.nullable()
|
|
1310
1312
|
});
|
|
@@ -1340,7 +1342,7 @@ var init_fix = __esm({
|
|
|
1340
1342
|
index: z2.number(),
|
|
1341
1343
|
defaultValue: z2.string(),
|
|
1342
1344
|
value: z2.string().nullable(),
|
|
1343
|
-
inputType: z2.
|
|
1345
|
+
inputType: z2.enum(FixQuestionInputType),
|
|
1344
1346
|
options: z2.array(z2.string()),
|
|
1345
1347
|
// E-2015: analyzer-served question text. default('') so a query that
|
|
1346
1348
|
// omits these still parses (-> ''), while the output type stays a required
|
|
@@ -1355,7 +1357,7 @@ var init_fix = __esm({
|
|
|
1355
1357
|
});
|
|
1356
1358
|
FixRatingZ = z2.object({
|
|
1357
1359
|
voteScore: z2.number(),
|
|
1358
|
-
fixRatingTag: z2.
|
|
1360
|
+
fixRatingTag: z2.enum(Fix_Rating_Tag_Enum).nullable().default(null),
|
|
1359
1361
|
comment: z2.string().nullable().default(null),
|
|
1360
1362
|
updatedDate: z2.string().nullable(),
|
|
1361
1363
|
user: z2.object({
|
|
@@ -1385,7 +1387,7 @@ var init_fix = __esm({
|
|
|
1385
1387
|
issueRatings: z2.array(IssueRatingZ).default([])
|
|
1386
1388
|
}).nullable();
|
|
1387
1389
|
FixSharedStateZ = z2.object({
|
|
1388
|
-
state: z2.
|
|
1390
|
+
state: z2.enum(Fix_State_Enum),
|
|
1389
1391
|
isArchived: z2.boolean(),
|
|
1390
1392
|
scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
1391
1393
|
fixRatings: z2.array(FixRatingZ).default([])
|
|
@@ -1399,14 +1401,14 @@ var init_fix = __esm({
|
|
|
1399
1401
|
);
|
|
1400
1402
|
FixQueryZ = z2.object({
|
|
1401
1403
|
__typename: z2.literal("fix").optional(),
|
|
1402
|
-
id: z2.
|
|
1404
|
+
id: z2.guid(),
|
|
1403
1405
|
sharedState: FixSharedStateZ,
|
|
1404
1406
|
modifiedBy: z2.string().nullable(),
|
|
1405
1407
|
gitBlameLogin: z2.string().nullable(),
|
|
1406
1408
|
safeIssueLanguage: z2.string(),
|
|
1407
1409
|
safeIssueType: z2.string(),
|
|
1408
1410
|
confidence: z2.number(),
|
|
1409
|
-
fixReportId: z2.
|
|
1411
|
+
fixReportId: z2.guid(),
|
|
1410
1412
|
isExpired: z2.boolean().default(false),
|
|
1411
1413
|
fixFiles: z2.array(
|
|
1412
1414
|
z2.object({
|
|
@@ -1414,23 +1416,23 @@ var init_fix = __esm({
|
|
|
1414
1416
|
})
|
|
1415
1417
|
),
|
|
1416
1418
|
numberOfVulnerabilityIssues: z2.number(),
|
|
1417
|
-
severityText: z2.
|
|
1419
|
+
severityText: z2.enum(Vulnerability_Severity_Enum),
|
|
1418
1420
|
vulnerabilityReportIssues: z2.array(
|
|
1419
1421
|
z2.object({
|
|
1420
1422
|
vendorIssueId: z2.string(),
|
|
1421
1423
|
issueLanguage: z2.string(),
|
|
1422
1424
|
parsedSeverity: ParsedSeverityZ,
|
|
1423
1425
|
sharedState: z2.object({
|
|
1424
|
-
id: z2.
|
|
1426
|
+
id: z2.guid(),
|
|
1425
1427
|
isArchived: z2.boolean(),
|
|
1426
|
-
ticketIntegrationId: z2.
|
|
1428
|
+
ticketIntegrationId: z2.guid().nullable()
|
|
1427
1429
|
}).nullable()
|
|
1428
1430
|
})
|
|
1429
1431
|
),
|
|
1430
1432
|
patchAndQuestions: PatchAndQuestionsZ,
|
|
1431
|
-
effortToApplyFix: z2.
|
|
1433
|
+
effortToApplyFix: z2.enum(Effort_To_Apply_Fix_Enum).nullable()
|
|
1432
1434
|
});
|
|
1433
|
-
FixPartsForFixScreenZ = FixQueryZ.
|
|
1435
|
+
FixPartsForFixScreenZ = FixQueryZ.extend(
|
|
1434
1436
|
z2.object({
|
|
1435
1437
|
vulnerabilityReportIssues: z2.array(
|
|
1436
1438
|
z2.object({
|
|
@@ -1440,7 +1442,7 @@ var init_fix = __esm({
|
|
|
1440
1442
|
sharedState: IssueSharedStateZ
|
|
1441
1443
|
})
|
|
1442
1444
|
)
|
|
1443
|
-
})
|
|
1445
|
+
}).shape
|
|
1444
1446
|
);
|
|
1445
1447
|
}
|
|
1446
1448
|
});
|
|
@@ -1454,10 +1456,10 @@ var init_analysis = __esm({
|
|
|
1454
1456
|
init_client_generates();
|
|
1455
1457
|
init_client_generates();
|
|
1456
1458
|
FixPageFixReportZ = z3.object({
|
|
1457
|
-
id: z3.
|
|
1459
|
+
id: z3.guid(),
|
|
1458
1460
|
analysisUrl: z3.string(),
|
|
1459
1461
|
createdOn: z3.string(),
|
|
1460
|
-
state: z3.
|
|
1462
|
+
state: z3.enum(Fix_Report_State_Enum),
|
|
1461
1463
|
repo: z3.object({
|
|
1462
1464
|
name: z3.string().nullable(),
|
|
1463
1465
|
originalUrl: z3.string(),
|
|
@@ -1474,12 +1476,12 @@ var init_analysis = __esm({
|
|
|
1474
1476
|
}
|
|
1475
1477
|
),
|
|
1476
1478
|
vulnerabilityReport: z3.object({
|
|
1477
|
-
id: z3.
|
|
1478
|
-
vendor: z3.
|
|
1479
|
-
computedVendor: z3.
|
|
1480
|
-
projectId: z3.
|
|
1479
|
+
id: z3.guid(),
|
|
1480
|
+
vendor: z3.enum(Vulnerability_Report_Vendor_Enum),
|
|
1481
|
+
computedVendor: z3.enum(Vulnerability_Report_Vendor_Enum),
|
|
1482
|
+
projectId: z3.guid(),
|
|
1481
1483
|
project: z3.object({
|
|
1482
|
-
organizationId: z3.
|
|
1484
|
+
organizationId: z3.guid()
|
|
1483
1485
|
})
|
|
1484
1486
|
})
|
|
1485
1487
|
});
|
|
@@ -1507,10 +1509,10 @@ var init_issue = __esm({
|
|
|
1507
1509
|
})
|
|
1508
1510
|
});
|
|
1509
1511
|
VulnerabilityReportIssueSharedStateZ = z4.object({
|
|
1510
|
-
id: z4.
|
|
1512
|
+
id: z4.guid(),
|
|
1511
1513
|
createdAt: z4.string(),
|
|
1512
1514
|
isArchived: z4.boolean(),
|
|
1513
|
-
ticketIntegrationId: z4.
|
|
1515
|
+
ticketIntegrationId: z4.guid().nullable(),
|
|
1514
1516
|
ticketIntegrations: z4.array(
|
|
1515
1517
|
z4.object({
|
|
1516
1518
|
url: z4.string()
|
|
@@ -1519,12 +1521,12 @@ var init_issue = __esm({
|
|
|
1519
1521
|
issueRatings: z4.array(VulnerabilityReportIssueRatingZ).default([])
|
|
1520
1522
|
}).nullish();
|
|
1521
1523
|
BaseIssuePartsZ = z4.object({
|
|
1522
|
-
id: z4.
|
|
1524
|
+
id: z4.guid(),
|
|
1523
1525
|
safeIssueType: z4.string(),
|
|
1524
1526
|
safeIssueLanguage: z4.string(),
|
|
1525
1527
|
createdAt: z4.string(),
|
|
1526
1528
|
parsedSeverity: ParsedSeverityZ,
|
|
1527
|
-
category: z4.
|
|
1529
|
+
category: z4.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
1528
1530
|
extraData: z4.object({
|
|
1529
1531
|
missing_files: z4.string().array().nullish(),
|
|
1530
1532
|
error_files: z4.string().array().nullish(),
|
|
@@ -1532,7 +1534,7 @@ var init_issue = __esm({
|
|
|
1532
1534
|
}),
|
|
1533
1535
|
vulnerabilityReportIssueTags: z4.array(
|
|
1534
1536
|
z4.object({
|
|
1535
|
-
tag: z4.
|
|
1537
|
+
tag: z4.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
1536
1538
|
})
|
|
1537
1539
|
),
|
|
1538
1540
|
codeNodes: z4.array(
|
|
@@ -1572,7 +1574,7 @@ var init_issue = __esm({
|
|
|
1572
1574
|
})
|
|
1573
1575
|
}).nullish(),
|
|
1574
1576
|
sharedState: VulnerabilityReportIssueSharedStateZ,
|
|
1575
|
-
unfixableId: z4.
|
|
1577
|
+
unfixableId: z4.guid().nullish()
|
|
1576
1578
|
});
|
|
1577
1579
|
FalsePositivePartsZ = z4.object({
|
|
1578
1580
|
extraContext: z4.array(z4.object({ key: z4.string(), value: z4.string() })),
|
|
@@ -1582,20 +1584,20 @@ var init_issue = __esm({
|
|
|
1582
1584
|
extraContext: z4.array(z4.object({ key: z4.string(), value: z4.string() })),
|
|
1583
1585
|
fixDescription: z4.string()
|
|
1584
1586
|
});
|
|
1585
|
-
IssuePartsWithFixZ = BaseIssuePartsZ.
|
|
1587
|
+
IssuePartsWithFixZ = BaseIssuePartsZ.extend(
|
|
1586
1588
|
z4.object({
|
|
1587
1589
|
category: z4.literal("Irrelevant" /* Irrelevant */),
|
|
1588
1590
|
fix: FixPartsForFixScreenZ.nullish()
|
|
1589
|
-
})
|
|
1591
|
+
}).shape
|
|
1590
1592
|
);
|
|
1591
|
-
IssuePartsFpZ = BaseIssuePartsZ.
|
|
1593
|
+
IssuePartsFpZ = BaseIssuePartsZ.extend(
|
|
1592
1594
|
z4.object({
|
|
1593
1595
|
category: z4.literal("FalsePositive" /* FalsePositive */),
|
|
1594
|
-
fpId: z4.
|
|
1596
|
+
fpId: z4.guid(),
|
|
1595
1597
|
getFalsePositive: FalsePositivePartsZ
|
|
1596
|
-
})
|
|
1598
|
+
}).shape
|
|
1597
1599
|
);
|
|
1598
|
-
GeneralIssueZ = BaseIssuePartsZ.
|
|
1600
|
+
GeneralIssueZ = BaseIssuePartsZ.extend(
|
|
1599
1601
|
z4.object({
|
|
1600
1602
|
category: z4.union([
|
|
1601
1603
|
z4.literal("NoFix" /* NoFix */),
|
|
@@ -1605,7 +1607,7 @@ var init_issue = __esm({
|
|
|
1605
1607
|
z4.literal("Pending" /* Pending */)
|
|
1606
1608
|
]),
|
|
1607
1609
|
getUnfixable: UnfixablePartsZ.nullish()
|
|
1608
|
-
})
|
|
1610
|
+
}).shape
|
|
1609
1611
|
);
|
|
1610
1612
|
IssuePartsZ = z4.union([
|
|
1611
1613
|
IssuePartsFpZ,
|
|
@@ -1616,10 +1618,10 @@ var init_issue = __esm({
|
|
|
1616
1618
|
currentIndex: z4.number(),
|
|
1617
1619
|
totalIssues: z4.number(),
|
|
1618
1620
|
nextIssue: z4.object({
|
|
1619
|
-
id: z4.
|
|
1621
|
+
id: z4.guid()
|
|
1620
1622
|
}).nullish(),
|
|
1621
1623
|
prevIssue: z4.object({
|
|
1622
|
-
id: z4.
|
|
1624
|
+
id: z4.guid()
|
|
1623
1625
|
}).nullish()
|
|
1624
1626
|
});
|
|
1625
1627
|
GetIssueScreenDataZ = z4.object({
|
|
@@ -1696,7 +1698,7 @@ var init_getIssueType = __esm({
|
|
|
1696
1698
|
["Unfixable" /* Unfixable */]: "Unfixable",
|
|
1697
1699
|
["Unsupported" /* Unsupported */]: "Unsupported"
|
|
1698
1700
|
};
|
|
1699
|
-
statusZ = z5.
|
|
1701
|
+
statusZ = z5.enum(Vulnerability_Report_Issue_State_Enum);
|
|
1700
1702
|
issueDescription = {
|
|
1701
1703
|
["AUTOGENERATED_CODE" /* AutogeneratedCode */]: "The flagged code is generated automatically by tools or frameworks as part of the build or runtime process. This categorization highlights that **the issue resides in non-manual code**, which often requires tool-specific solutions or exemptions.",
|
|
1702
1704
|
["AUXILIARY_CODE" /* AuxiliaryCode */]: "The flagged code is auxiliary or supporting code, such as configuration files, build scripts, or other non-application logic. This categorization indicates that the issue is not directly related to the application's core functionality.",
|
|
@@ -1760,29 +1762,29 @@ var init_types = __esm({
|
|
|
1760
1762
|
init_issue();
|
|
1761
1763
|
init_shared();
|
|
1762
1764
|
OrganizationScreenQueryParamsZ = z7.object({
|
|
1763
|
-
organizationId: z7.
|
|
1765
|
+
organizationId: z7.guid()
|
|
1764
1766
|
});
|
|
1765
1767
|
ProjectPageQueryParamsZ = z7.object({
|
|
1766
|
-
organizationId: z7.
|
|
1767
|
-
projectId: z7.
|
|
1768
|
+
organizationId: z7.guid(),
|
|
1769
|
+
projectId: z7.guid()
|
|
1768
1770
|
});
|
|
1769
1771
|
AnalysisPageQueryParamsZ = ProjectPageQueryParamsZ.extend({
|
|
1770
|
-
reportId: z7.
|
|
1772
|
+
reportId: z7.guid()
|
|
1771
1773
|
});
|
|
1772
1774
|
FixPageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
|
|
1773
|
-
fixId: z7.
|
|
1775
|
+
fixId: z7.guid()
|
|
1774
1776
|
});
|
|
1775
1777
|
IssuePageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
|
|
1776
|
-
issueId: z7.
|
|
1778
|
+
issueId: z7.guid()
|
|
1777
1779
|
});
|
|
1778
1780
|
CliLoginPageQueryParamsZ = z7.object({
|
|
1779
|
-
loginId: z7.
|
|
1781
|
+
loginId: z7.guid()
|
|
1780
1782
|
});
|
|
1781
1783
|
AnalysisReportDigestedZ = z7.object({
|
|
1782
|
-
id: z7.
|
|
1783
|
-
state: z7.
|
|
1784
|
+
id: z7.guid(),
|
|
1785
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
1784
1786
|
vulnerabilityReport: z7.object({
|
|
1785
|
-
reportSummaryUrl: z7.
|
|
1787
|
+
reportSummaryUrl: z7.url().nullish(),
|
|
1786
1788
|
scanDate: z7.string().nullable(),
|
|
1787
1789
|
supported: z7.object({
|
|
1788
1790
|
aggregate: z7.object({
|
|
@@ -1794,17 +1796,17 @@ var init_types = __esm({
|
|
|
1794
1796
|
count: z7.number()
|
|
1795
1797
|
})
|
|
1796
1798
|
}),
|
|
1797
|
-
vendor: z7.
|
|
1799
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum),
|
|
1798
1800
|
project: z7.object({
|
|
1799
|
-
organizationId: z7.
|
|
1801
|
+
organizationId: z7.guid()
|
|
1800
1802
|
})
|
|
1801
1803
|
})
|
|
1802
1804
|
});
|
|
1803
1805
|
IssueSharedStateZ2 = z7.object({
|
|
1804
|
-
id: z7.
|
|
1806
|
+
id: z7.guid(),
|
|
1805
1807
|
createdAt: z7.string(),
|
|
1806
1808
|
isArchived: z7.boolean(),
|
|
1807
|
-
ticketIntegrationId: z7.
|
|
1809
|
+
ticketIntegrationId: z7.guid().nullable(),
|
|
1808
1810
|
ticketIntegrations: z7.array(
|
|
1809
1811
|
z7.object({
|
|
1810
1812
|
url: z7.string()
|
|
@@ -1813,7 +1815,7 @@ var init_types = __esm({
|
|
|
1813
1815
|
}).nullable();
|
|
1814
1816
|
ReportQueryResultZ = z7.object({
|
|
1815
1817
|
fixReport_by_pk: z7.object({
|
|
1816
|
-
id: z7.
|
|
1818
|
+
id: z7.guid(),
|
|
1817
1819
|
analysisUrl: z7.string(),
|
|
1818
1820
|
fixesCommitted: z7.object({
|
|
1819
1821
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -1832,19 +1834,19 @@ var init_types = __esm({
|
|
|
1832
1834
|
vulnerabilitySeverities: z7.record(z7.string(), z7.number()).nullable(),
|
|
1833
1835
|
createdOn: z7.string(),
|
|
1834
1836
|
expirationOn: z7.string().nullable(),
|
|
1835
|
-
state: z7.
|
|
1837
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
1836
1838
|
failReason: z7.string().nullable(),
|
|
1837
1839
|
candidateToRerun: z7.boolean(),
|
|
1838
1840
|
fixes: z7.array(
|
|
1839
1841
|
z7.object({
|
|
1840
|
-
id: z7.
|
|
1842
|
+
id: z7.guid(),
|
|
1841
1843
|
safeIssueLanguage: z7.string(),
|
|
1842
1844
|
safeIssueType: z7.string(),
|
|
1843
1845
|
confidence: z7.number(),
|
|
1844
|
-
effortToApplyFix: z7.
|
|
1846
|
+
effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
1845
1847
|
modifiedBy: z7.string().nullable(),
|
|
1846
1848
|
gitBlameLogin: z7.string().nullable(),
|
|
1847
|
-
fixReportId: z7.
|
|
1849
|
+
fixReportId: z7.guid(),
|
|
1848
1850
|
filePaths: z7.array(
|
|
1849
1851
|
z7.object({
|
|
1850
1852
|
fileRepoRelativePath: z7.string()
|
|
@@ -1852,13 +1854,13 @@ var init_types = __esm({
|
|
|
1852
1854
|
),
|
|
1853
1855
|
sharedState: FixSharedStateZ,
|
|
1854
1856
|
numberOfVulnerabilityIssues: z7.number(),
|
|
1855
|
-
severityText: z7.
|
|
1857
|
+
severityText: z7.enum(Vulnerability_Severity_Enum),
|
|
1856
1858
|
vulnerabilityReportIssues: z7.array(
|
|
1857
1859
|
z7.object({
|
|
1858
|
-
id: z7.
|
|
1860
|
+
id: z7.guid(),
|
|
1859
1861
|
issueType: z7.string(),
|
|
1860
1862
|
issueLanguage: z7.string(),
|
|
1861
|
-
category: z7.
|
|
1863
|
+
category: z7.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
1862
1864
|
sharedState: IssueSharedStateZ2
|
|
1863
1865
|
})
|
|
1864
1866
|
)
|
|
@@ -1885,19 +1887,19 @@ var init_types = __esm({
|
|
|
1885
1887
|
})
|
|
1886
1888
|
}),
|
|
1887
1889
|
vulnerabilityReport: z7.object({
|
|
1888
|
-
id: z7.
|
|
1889
|
-
reportSummaryUrl: z7.
|
|
1890
|
-
computedVendor: z7.
|
|
1891
|
-
vendor: z7.
|
|
1890
|
+
id: z7.guid(),
|
|
1891
|
+
reportSummaryUrl: z7.url().nullish(),
|
|
1892
|
+
computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
1893
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
1892
1894
|
issuesWithKnownLanguage: z7.number().nullable(),
|
|
1893
1895
|
scanDate: z7.string().nullable(),
|
|
1894
|
-
vendorReportId: z7.
|
|
1895
|
-
projectId: z7.
|
|
1896
|
+
vendorReportId: z7.guid().nullable(),
|
|
1897
|
+
projectId: z7.guid(),
|
|
1896
1898
|
project: z7.object({
|
|
1897
|
-
organizationId: z7.
|
|
1899
|
+
organizationId: z7.guid()
|
|
1898
1900
|
}),
|
|
1899
1901
|
file: z7.object({
|
|
1900
|
-
id: z7.
|
|
1902
|
+
id: z7.guid(),
|
|
1901
1903
|
path: z7.string()
|
|
1902
1904
|
}).nullable(),
|
|
1903
1905
|
pending: z7.object({
|
|
@@ -1941,7 +1943,7 @@ var init_types = __esm({
|
|
|
1941
1943
|
})
|
|
1942
1944
|
}),
|
|
1943
1945
|
vulnerabilityReportIssues: z7.object({
|
|
1944
|
-
id: z7.
|
|
1946
|
+
id: z7.guid(),
|
|
1945
1947
|
extraData: z7.object({
|
|
1946
1948
|
missing_files: z7.string().array().nullish(),
|
|
1947
1949
|
large_files: z7.string().array().nullish(),
|
|
@@ -1953,21 +1955,21 @@ var init_types = __esm({
|
|
|
1953
1955
|
})
|
|
1954
1956
|
});
|
|
1955
1957
|
ReportFixesQueryFixZ = z7.object({
|
|
1956
|
-
id: z7.
|
|
1958
|
+
id: z7.guid(),
|
|
1957
1959
|
sharedState: FixSharedStateZ,
|
|
1958
1960
|
confidence: z7.number(),
|
|
1959
1961
|
gitBlameLogin: z7.string().nullable(),
|
|
1960
|
-
effortToApplyFix: z7.
|
|
1962
|
+
effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
1961
1963
|
safeIssueLanguage: z7.string(),
|
|
1962
1964
|
safeIssueType: z7.string(),
|
|
1963
|
-
fixReportId: z7.
|
|
1965
|
+
fixReportId: z7.guid(),
|
|
1964
1966
|
filePaths: z7.array(
|
|
1965
1967
|
z7.object({
|
|
1966
1968
|
fileRepoRelativePath: z7.string()
|
|
1967
1969
|
})
|
|
1968
1970
|
),
|
|
1969
1971
|
numberOfVulnerabilityIssues: z7.number(),
|
|
1970
|
-
severityText: z7.
|
|
1972
|
+
severityText: z7.enum(Vulnerability_Severity_Enum),
|
|
1971
1973
|
vulnerabilityReportIssues: z7.array(
|
|
1972
1974
|
z7.object({
|
|
1973
1975
|
issueType: z7.string(),
|
|
@@ -1977,9 +1979,9 @@ var init_types = __esm({
|
|
|
1977
1979
|
).min(1)
|
|
1978
1980
|
});
|
|
1979
1981
|
BaseVulnerabilityReportIssueZ = z7.object({
|
|
1980
|
-
id: z7.
|
|
1982
|
+
id: z7.guid(),
|
|
1981
1983
|
createdAt: z7.string(),
|
|
1982
|
-
state: z7.
|
|
1984
|
+
state: z7.enum(Vulnerability_Report_Issue_State_Enum),
|
|
1983
1985
|
safeIssueType: z7.string(),
|
|
1984
1986
|
safeIssueLanguage: z7.string(),
|
|
1985
1987
|
extraData: z7.object({
|
|
@@ -1990,7 +1992,7 @@ var init_types = __esm({
|
|
|
1990
1992
|
}),
|
|
1991
1993
|
fix: ReportFixesQueryFixZ.nullable(),
|
|
1992
1994
|
falsePositive: z7.object({
|
|
1993
|
-
id: z7.
|
|
1995
|
+
id: z7.guid()
|
|
1994
1996
|
}).nullable(),
|
|
1995
1997
|
parsedSeverity: ParsedSeverityZ,
|
|
1996
1998
|
severity: z7.string(),
|
|
@@ -2003,20 +2005,20 @@ var init_types = __esm({
|
|
|
2003
2005
|
),
|
|
2004
2006
|
sharedState: VulnerabilityReportIssueSharedStateZ
|
|
2005
2007
|
});
|
|
2006
|
-
VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.
|
|
2008
|
+
VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.extend(
|
|
2007
2009
|
z7.object({
|
|
2008
2010
|
codeNodes: z7.array(z7.object({ path: z7.string() }))
|
|
2009
|
-
})
|
|
2011
|
+
}).shape
|
|
2010
2012
|
);
|
|
2011
|
-
VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.
|
|
2013
|
+
VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.extend(
|
|
2012
2014
|
z7.object({
|
|
2013
2015
|
codeFilePath: z7.string().nullable()
|
|
2014
|
-
})
|
|
2016
|
+
}).shape
|
|
2015
2017
|
);
|
|
2016
2018
|
GetReportIssuesQueryZ = z7.object({
|
|
2017
2019
|
fixReport: z7.object({
|
|
2018
2020
|
vulnerabilityReport: z7.object({
|
|
2019
|
-
id: z7.
|
|
2021
|
+
id: z7.guid(),
|
|
2020
2022
|
lastIssueUpdatedAt: z7.string(),
|
|
2021
2023
|
vulnerabilityReportIssues_aggregate: z7.object({
|
|
2022
2024
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -2031,7 +2033,7 @@ var init_types = __esm({
|
|
|
2031
2033
|
project_by_pk: z7.object({
|
|
2032
2034
|
vulnerabilityReports: z7.array(
|
|
2033
2035
|
z7.object({
|
|
2034
|
-
fixReport: z7.object({ id: z7.
|
|
2036
|
+
fixReport: z7.object({ id: z7.guid() }).nullable()
|
|
2035
2037
|
})
|
|
2036
2038
|
)
|
|
2037
2039
|
})
|
|
@@ -2041,8 +2043,8 @@ var init_types = __esm({
|
|
|
2041
2043
|
fix_by_pk: FixPartsForFixScreenZ,
|
|
2042
2044
|
fixesWithSameIssueType: z7.array(
|
|
2043
2045
|
z7.object({
|
|
2044
|
-
id: z7.
|
|
2045
|
-
sharedState: z7.object({ state: z7.
|
|
2046
|
+
id: z7.guid(),
|
|
2047
|
+
sharedState: z7.object({ state: z7.enum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
|
|
2046
2048
|
})
|
|
2047
2049
|
),
|
|
2048
2050
|
relevantIssue: IssuePartsZ.nullish()
|
|
@@ -2079,8 +2081,8 @@ var init_types = __esm({
|
|
|
2079
2081
|
}).nullish();
|
|
2080
2082
|
GetFixReportStatsQueryZ = z7.object({
|
|
2081
2083
|
fixReport_by_pk: z7.object({
|
|
2082
|
-
id: z7.
|
|
2083
|
-
vulnerabilitySeverities: z7.
|
|
2084
|
+
id: z7.guid(),
|
|
2085
|
+
vulnerabilitySeverities: z7.partialRecord(z7.enum(Vulnerability_Severity_Enum), z7.number()).nullable(),
|
|
2084
2086
|
vulnerabilityReportIrrelevantIssuesCount: z7.object({
|
|
2085
2087
|
vulnerabilityReportIssues_aggregate: z7.object({
|
|
2086
2088
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -2089,15 +2091,16 @@ var init_types = __esm({
|
|
|
2089
2091
|
}).nullable()
|
|
2090
2092
|
});
|
|
2091
2093
|
ProjectVulnerabilityReport = z7.object({
|
|
2092
|
-
id: z7.
|
|
2094
|
+
id: z7.guid(),
|
|
2093
2095
|
name: z7.string().nullable(),
|
|
2094
|
-
vendor: z7.
|
|
2095
|
-
computedVendor: z7.
|
|
2096
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
2097
|
+
computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
2096
2098
|
fixReport: z7.object({
|
|
2097
|
-
id: z7.
|
|
2099
|
+
id: z7.guid(),
|
|
2098
2100
|
createdOn: z7.string(),
|
|
2099
2101
|
issueTypes: z7.record(z7.string(), z7.number()).nullable(),
|
|
2100
|
-
|
|
2102
|
+
// reports only contain the languages actually found in the repo
|
|
2103
|
+
issueLanguages: z7.partialRecord(z7.enum(IssueLanguage_Enum), z7.number()).nullable(),
|
|
2101
2104
|
repo: z7.object({
|
|
2102
2105
|
originalUrl: z7.string(),
|
|
2103
2106
|
reference: z7.string(),
|
|
@@ -2112,7 +2115,7 @@ var init_types = __esm({
|
|
|
2112
2115
|
createdByUser: z7.object({
|
|
2113
2116
|
email: z7.string()
|
|
2114
2117
|
}).nullable(),
|
|
2115
|
-
state: z7.
|
|
2118
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
2116
2119
|
expirationOn: z7.string()
|
|
2117
2120
|
})
|
|
2118
2121
|
});
|
|
@@ -2121,7 +2124,7 @@ var init_types = __esm({
|
|
|
2121
2124
|
id: z7.string(),
|
|
2122
2125
|
projects: z7.array(
|
|
2123
2126
|
z7.object({
|
|
2124
|
-
id: z7.
|
|
2127
|
+
id: z7.guid(),
|
|
2125
2128
|
name: z7.string(),
|
|
2126
2129
|
numberOfUniqueRepos: z7.number()
|
|
2127
2130
|
})
|
|
@@ -2130,16 +2133,16 @@ var init_types = __esm({
|
|
|
2130
2133
|
});
|
|
2131
2134
|
ProjectPageQueryResultZ = z7.object({
|
|
2132
2135
|
name: z7.string(),
|
|
2133
|
-
id: z7.
|
|
2136
|
+
id: z7.guid(),
|
|
2134
2137
|
isDefault: z7.boolean().default(false),
|
|
2135
|
-
organizationId: z7.
|
|
2138
|
+
organizationId: z7.guid(),
|
|
2136
2139
|
vulnerabilityReports: z7.array(ProjectVulnerabilityReport),
|
|
2137
2140
|
autoPrIncludeAiFixes: z7.preprocess(
|
|
2138
2141
|
(val) => val === null || val === void 0 ? false : val,
|
|
2139
2142
|
z7.boolean()
|
|
2140
2143
|
),
|
|
2141
2144
|
projectIssueTypeSettings: z7.array(
|
|
2142
|
-
IssueTypeSettingZ.
|
|
2145
|
+
IssueTypeSettingZ.extend(z7.object({ id: z7.string() }).shape)
|
|
2143
2146
|
)
|
|
2144
2147
|
});
|
|
2145
2148
|
GetProjectMembersDataZ = z7.object({
|
|
@@ -2150,21 +2153,21 @@ var init_types = __esm({
|
|
|
2150
2153
|
z7.object({
|
|
2151
2154
|
projectToRole: z7.object({
|
|
2152
2155
|
projectRole: z7.object({
|
|
2153
|
-
type: z7.
|
|
2156
|
+
type: z7.enum(Project_Role_Type_Enum)
|
|
2154
2157
|
})
|
|
2155
2158
|
}),
|
|
2156
2159
|
user: z7.object({
|
|
2157
|
-
id: z7.
|
|
2160
|
+
id: z7.guid(),
|
|
2158
2161
|
picture: z7.string().nullable().optional(),
|
|
2159
2162
|
name: z7.string().nullish(),
|
|
2160
|
-
email: z7.
|
|
2163
|
+
email: z7.email()
|
|
2161
2164
|
})
|
|
2162
2165
|
})
|
|
2163
2166
|
)
|
|
2164
2167
|
})
|
|
2165
2168
|
});
|
|
2166
2169
|
RepoArgsZ = z7.object({
|
|
2167
|
-
originalUrl: z7.
|
|
2170
|
+
originalUrl: z7.url(),
|
|
2168
2171
|
branch: z7.string(),
|
|
2169
2172
|
commitSha: z7.string()
|
|
2170
2173
|
});
|
|
@@ -2862,8 +2865,8 @@ var init_gitBlameTypes = __esm({
|
|
|
2862
2865
|
userEmail: z15.string().optional()
|
|
2863
2866
|
});
|
|
2864
2867
|
VulnerabilityAttributionMessageZ = z15.object({
|
|
2865
|
-
fixReportId: z15.
|
|
2866
|
-
vulnerabilityAttributionRequestId: z15.
|
|
2868
|
+
fixReportId: z15.guid(),
|
|
2869
|
+
vulnerabilityAttributionRequestId: z15.guid(),
|
|
2867
2870
|
userEmail: z15.string()
|
|
2868
2871
|
});
|
|
2869
2872
|
}
|
|
@@ -4667,7 +4670,7 @@ var scmTypeToScmLibScmType = {
|
|
|
4667
4670
|
var GetReferenceResultZ = z10.object({
|
|
4668
4671
|
date: z10.date().optional(),
|
|
4669
4672
|
sha: z10.string(),
|
|
4670
|
-
type: z10.
|
|
4673
|
+
type: z10.enum(ReferenceType)
|
|
4671
4674
|
});
|
|
4672
4675
|
|
|
4673
4676
|
// src/features/analysis/scm/ado/constants.ts
|
|
@@ -4840,11 +4843,11 @@ var VulnerabilityReportIssueCodeNodeZ = z22.object({
|
|
|
4840
4843
|
startLine: z22.number(),
|
|
4841
4844
|
vulnerabilityReportIssue: z22.object({
|
|
4842
4845
|
fixId: z22.string(),
|
|
4843
|
-
category: z22.
|
|
4846
|
+
category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
4844
4847
|
safeIssueType: z22.string(),
|
|
4845
4848
|
vulnerabilityReportIssueTags: z22.array(
|
|
4846
4849
|
z22.object({
|
|
4847
|
-
tag: z22.
|
|
4850
|
+
tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
4848
4851
|
})
|
|
4849
4852
|
)
|
|
4850
4853
|
})
|
|
@@ -4854,9 +4857,9 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
|
|
|
4854
4857
|
z22.object({
|
|
4855
4858
|
id: z22.string(),
|
|
4856
4859
|
fixId: z22.string().nullable(),
|
|
4857
|
-
category: z22.
|
|
4860
|
+
category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
4858
4861
|
safeIssueType: z22.string(),
|
|
4859
|
-
fpId: z22.
|
|
4862
|
+
fpId: z22.guid().nullable(),
|
|
4860
4863
|
codeNodes: z22.array(
|
|
4861
4864
|
z22.object({
|
|
4862
4865
|
path: z22.string(),
|
|
@@ -4865,7 +4868,7 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
|
|
|
4865
4868
|
),
|
|
4866
4869
|
vulnerabilityReportIssueTags: z22.array(
|
|
4867
4870
|
z22.object({
|
|
4868
|
-
tag: z22.
|
|
4871
|
+
tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
4869
4872
|
})
|
|
4870
4873
|
)
|
|
4871
4874
|
})
|