mobbdev 1.4.41 → 1.4.43

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.
@@ -1269,7 +1269,7 @@ 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.nativeEnum(Vulnerability_Severity_Enum).nullish().transform((i) => i ?? "low" /* Low */);
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({
@@ -1280,7 +1280,7 @@ var init_shared = __esm({
1280
1280
  targetBranchName: z.string().default("")
1281
1281
  }),
1282
1282
  prUrl: z.string().nullable(),
1283
- prStatus: z.nativeEnum(Pr_Status_Enum).nullable(),
1283
+ prStatus: z.enum(Pr_Status_Enum).nullable(),
1284
1284
  commitUrl: z.string().nullable(),
1285
1285
  scmId: z.string()
1286
1286
  })
@@ -1303,8 +1303,8 @@ var init_fix = __esm({
1303
1303
  envName: z2.string().nullable()
1304
1304
  });
1305
1305
  ManifestActionRequiredZ = z2.object({
1306
- action: z2.nativeEnum(ManifestAction),
1307
- language: z2.nativeEnum(Language),
1306
+ action: z2.enum(ManifestAction),
1307
+ language: z2.enum(Language),
1308
1308
  lib: PackageInfoZ,
1309
1309
  typesLib: PackageInfoZ.nullable()
1310
1310
  });
@@ -1340,7 +1340,7 @@ var init_fix = __esm({
1340
1340
  index: z2.number(),
1341
1341
  defaultValue: z2.string(),
1342
1342
  value: z2.string().nullable(),
1343
- inputType: z2.nativeEnum(FixQuestionInputType),
1343
+ inputType: z2.enum(FixQuestionInputType),
1344
1344
  options: z2.array(z2.string()),
1345
1345
  // E-2015: analyzer-served question text. default('') so a query that
1346
1346
  // omits these still parses (-> ''), while the output type stays a required
@@ -1355,7 +1355,7 @@ var init_fix = __esm({
1355
1355
  });
1356
1356
  FixRatingZ = z2.object({
1357
1357
  voteScore: z2.number(),
1358
- fixRatingTag: z2.nativeEnum(Fix_Rating_Tag_Enum).nullable().default(null),
1358
+ fixRatingTag: z2.enum(Fix_Rating_Tag_Enum).nullable().default(null),
1359
1359
  comment: z2.string().nullable().default(null),
1360
1360
  updatedDate: z2.string().nullable(),
1361
1361
  user: z2.object({
@@ -1385,7 +1385,7 @@ var init_fix = __esm({
1385
1385
  issueRatings: z2.array(IssueRatingZ).default([])
1386
1386
  }).nullable();
1387
1387
  FixSharedStateZ = z2.object({
1388
- state: z2.nativeEnum(Fix_State_Enum),
1388
+ state: z2.enum(Fix_State_Enum),
1389
1389
  isArchived: z2.boolean(),
1390
1390
  scmSubmitFixRequests: ScmSubmitFixRequestsZ,
1391
1391
  fixRatings: z2.array(FixRatingZ).default([])
@@ -1399,14 +1399,14 @@ var init_fix = __esm({
1399
1399
  );
1400
1400
  FixQueryZ = z2.object({
1401
1401
  __typename: z2.literal("fix").optional(),
1402
- id: z2.string().uuid(),
1402
+ id: z2.guid(),
1403
1403
  sharedState: FixSharedStateZ,
1404
1404
  modifiedBy: z2.string().nullable(),
1405
1405
  gitBlameLogin: z2.string().nullable(),
1406
1406
  safeIssueLanguage: z2.string(),
1407
1407
  safeIssueType: z2.string(),
1408
1408
  confidence: z2.number(),
1409
- fixReportId: z2.string().uuid(),
1409
+ fixReportId: z2.guid(),
1410
1410
  isExpired: z2.boolean().default(false),
1411
1411
  fixFiles: z2.array(
1412
1412
  z2.object({
@@ -1414,23 +1414,23 @@ var init_fix = __esm({
1414
1414
  })
1415
1415
  ),
1416
1416
  numberOfVulnerabilityIssues: z2.number(),
1417
- severityText: z2.nativeEnum(Vulnerability_Severity_Enum),
1417
+ severityText: z2.enum(Vulnerability_Severity_Enum),
1418
1418
  vulnerabilityReportIssues: z2.array(
1419
1419
  z2.object({
1420
1420
  vendorIssueId: z2.string(),
1421
1421
  issueLanguage: z2.string(),
1422
1422
  parsedSeverity: ParsedSeverityZ,
1423
1423
  sharedState: z2.object({
1424
- id: z2.string().uuid(),
1424
+ id: z2.guid(),
1425
1425
  isArchived: z2.boolean(),
1426
- ticketIntegrationId: z2.string().uuid().nullable()
1426
+ ticketIntegrationId: z2.guid().nullable()
1427
1427
  }).nullable()
1428
1428
  })
1429
1429
  ),
1430
1430
  patchAndQuestions: PatchAndQuestionsZ,
1431
- effortToApplyFix: z2.nativeEnum(Effort_To_Apply_Fix_Enum).nullable()
1431
+ effortToApplyFix: z2.enum(Effort_To_Apply_Fix_Enum).nullable()
1432
1432
  });
1433
- FixPartsForFixScreenZ = FixQueryZ.merge(
1433
+ FixPartsForFixScreenZ = FixQueryZ.extend(
1434
1434
  z2.object({
1435
1435
  vulnerabilityReportIssues: z2.array(
1436
1436
  z2.object({
@@ -1440,7 +1440,7 @@ var init_fix = __esm({
1440
1440
  sharedState: IssueSharedStateZ
1441
1441
  })
1442
1442
  )
1443
- })
1443
+ }).shape
1444
1444
  );
1445
1445
  }
1446
1446
  });
@@ -1454,10 +1454,10 @@ var init_analysis = __esm({
1454
1454
  init_client_generates();
1455
1455
  init_client_generates();
1456
1456
  FixPageFixReportZ = z3.object({
1457
- id: z3.string().uuid(),
1457
+ id: z3.guid(),
1458
1458
  analysisUrl: z3.string(),
1459
1459
  createdOn: z3.string(),
1460
- state: z3.nativeEnum(Fix_Report_State_Enum),
1460
+ state: z3.enum(Fix_Report_State_Enum),
1461
1461
  repo: z3.object({
1462
1462
  name: z3.string().nullable(),
1463
1463
  originalUrl: z3.string(),
@@ -1474,12 +1474,12 @@ var init_analysis = __esm({
1474
1474
  }
1475
1475
  ),
1476
1476
  vulnerabilityReport: z3.object({
1477
- id: z3.string().uuid(),
1478
- vendor: z3.nativeEnum(Vulnerability_Report_Vendor_Enum),
1479
- computedVendor: z3.nativeEnum(Vulnerability_Report_Vendor_Enum),
1480
- projectId: z3.string().uuid(),
1477
+ id: z3.guid(),
1478
+ vendor: z3.enum(Vulnerability_Report_Vendor_Enum),
1479
+ computedVendor: z3.enum(Vulnerability_Report_Vendor_Enum),
1480
+ projectId: z3.guid(),
1481
1481
  project: z3.object({
1482
- organizationId: z3.string().uuid()
1482
+ organizationId: z3.guid()
1483
1483
  })
1484
1484
  })
1485
1485
  });
@@ -1507,10 +1507,10 @@ var init_issue = __esm({
1507
1507
  })
1508
1508
  });
1509
1509
  VulnerabilityReportIssueSharedStateZ = z4.object({
1510
- id: z4.string().uuid(),
1510
+ id: z4.guid(),
1511
1511
  createdAt: z4.string(),
1512
1512
  isArchived: z4.boolean(),
1513
- ticketIntegrationId: z4.string().uuid().nullable(),
1513
+ ticketIntegrationId: z4.guid().nullable(),
1514
1514
  ticketIntegrations: z4.array(
1515
1515
  z4.object({
1516
1516
  url: z4.string()
@@ -1519,12 +1519,12 @@ var init_issue = __esm({
1519
1519
  issueRatings: z4.array(VulnerabilityReportIssueRatingZ).default([])
1520
1520
  }).nullish();
1521
1521
  BaseIssuePartsZ = z4.object({
1522
- id: z4.string().uuid(),
1522
+ id: z4.guid(),
1523
1523
  safeIssueType: z4.string(),
1524
1524
  safeIssueLanguage: z4.string(),
1525
1525
  createdAt: z4.string(),
1526
1526
  parsedSeverity: ParsedSeverityZ,
1527
- category: z4.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
1527
+ category: z4.enum(Vulnerability_Report_Issue_Category_Enum),
1528
1528
  extraData: z4.object({
1529
1529
  missing_files: z4.string().array().nullish(),
1530
1530
  error_files: z4.string().array().nullish(),
@@ -1532,7 +1532,7 @@ var init_issue = __esm({
1532
1532
  }),
1533
1533
  vulnerabilityReportIssueTags: z4.array(
1534
1534
  z4.object({
1535
- tag: z4.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
1535
+ tag: z4.enum(Vulnerability_Report_Issue_Tag_Enum)
1536
1536
  })
1537
1537
  ),
1538
1538
  codeNodes: z4.array(
@@ -1572,7 +1572,7 @@ var init_issue = __esm({
1572
1572
  })
1573
1573
  }).nullish(),
1574
1574
  sharedState: VulnerabilityReportIssueSharedStateZ,
1575
- unfixableId: z4.string().uuid().nullish()
1575
+ unfixableId: z4.guid().nullish()
1576
1576
  });
1577
1577
  FalsePositivePartsZ = z4.object({
1578
1578
  extraContext: z4.array(z4.object({ key: z4.string(), value: z4.string() })),
@@ -1582,20 +1582,20 @@ var init_issue = __esm({
1582
1582
  extraContext: z4.array(z4.object({ key: z4.string(), value: z4.string() })),
1583
1583
  fixDescription: z4.string()
1584
1584
  });
1585
- IssuePartsWithFixZ = BaseIssuePartsZ.merge(
1585
+ IssuePartsWithFixZ = BaseIssuePartsZ.extend(
1586
1586
  z4.object({
1587
1587
  category: z4.literal("Irrelevant" /* Irrelevant */),
1588
1588
  fix: FixPartsForFixScreenZ.nullish()
1589
- })
1589
+ }).shape
1590
1590
  );
1591
- IssuePartsFpZ = BaseIssuePartsZ.merge(
1591
+ IssuePartsFpZ = BaseIssuePartsZ.extend(
1592
1592
  z4.object({
1593
1593
  category: z4.literal("FalsePositive" /* FalsePositive */),
1594
- fpId: z4.string().uuid(),
1594
+ fpId: z4.guid(),
1595
1595
  getFalsePositive: FalsePositivePartsZ
1596
- })
1596
+ }).shape
1597
1597
  );
1598
- GeneralIssueZ = BaseIssuePartsZ.merge(
1598
+ GeneralIssueZ = BaseIssuePartsZ.extend(
1599
1599
  z4.object({
1600
1600
  category: z4.union([
1601
1601
  z4.literal("NoFix" /* NoFix */),
@@ -1605,7 +1605,7 @@ var init_issue = __esm({
1605
1605
  z4.literal("Pending" /* Pending */)
1606
1606
  ]),
1607
1607
  getUnfixable: UnfixablePartsZ.nullish()
1608
- })
1608
+ }).shape
1609
1609
  );
1610
1610
  IssuePartsZ = z4.union([
1611
1611
  IssuePartsFpZ,
@@ -1616,10 +1616,10 @@ var init_issue = __esm({
1616
1616
  currentIndex: z4.number(),
1617
1617
  totalIssues: z4.number(),
1618
1618
  nextIssue: z4.object({
1619
- id: z4.string().uuid()
1619
+ id: z4.guid()
1620
1620
  }).nullish(),
1621
1621
  prevIssue: z4.object({
1622
- id: z4.string().uuid()
1622
+ id: z4.guid()
1623
1623
  }).nullish()
1624
1624
  });
1625
1625
  GetIssueScreenDataZ = z4.object({
@@ -1696,7 +1696,7 @@ var init_getIssueType = __esm({
1696
1696
  ["Unfixable" /* Unfixable */]: "Unfixable",
1697
1697
  ["Unsupported" /* Unsupported */]: "Unsupported"
1698
1698
  };
1699
- statusZ = z5.nativeEnum(Vulnerability_Report_Issue_State_Enum);
1699
+ statusZ = z5.enum(Vulnerability_Report_Issue_State_Enum);
1700
1700
  issueDescription = {
1701
1701
  ["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
1702
  ["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 +1760,29 @@ var init_types = __esm({
1760
1760
  init_issue();
1761
1761
  init_shared();
1762
1762
  OrganizationScreenQueryParamsZ = z7.object({
1763
- organizationId: z7.string().uuid()
1763
+ organizationId: z7.guid()
1764
1764
  });
1765
1765
  ProjectPageQueryParamsZ = z7.object({
1766
- organizationId: z7.string().uuid(),
1767
- projectId: z7.string().uuid()
1766
+ organizationId: z7.guid(),
1767
+ projectId: z7.guid()
1768
1768
  });
1769
1769
  AnalysisPageQueryParamsZ = ProjectPageQueryParamsZ.extend({
1770
- reportId: z7.string().uuid()
1770
+ reportId: z7.guid()
1771
1771
  });
1772
1772
  FixPageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
1773
- fixId: z7.string().uuid()
1773
+ fixId: z7.guid()
1774
1774
  });
1775
1775
  IssuePageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
1776
- issueId: z7.string().uuid()
1776
+ issueId: z7.guid()
1777
1777
  });
1778
1778
  CliLoginPageQueryParamsZ = z7.object({
1779
- loginId: z7.string().uuid()
1779
+ loginId: z7.guid()
1780
1780
  });
1781
1781
  AnalysisReportDigestedZ = z7.object({
1782
- id: z7.string().uuid(),
1783
- state: z7.nativeEnum(Fix_Report_State_Enum),
1782
+ id: z7.guid(),
1783
+ state: z7.enum(Fix_Report_State_Enum),
1784
1784
  vulnerabilityReport: z7.object({
1785
- reportSummaryUrl: z7.string().url().nullish(),
1785
+ reportSummaryUrl: z7.url().nullish(),
1786
1786
  scanDate: z7.string().nullable(),
1787
1787
  supported: z7.object({
1788
1788
  aggregate: z7.object({
@@ -1794,17 +1794,17 @@ var init_types = __esm({
1794
1794
  count: z7.number()
1795
1795
  })
1796
1796
  }),
1797
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum),
1797
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum),
1798
1798
  project: z7.object({
1799
- organizationId: z7.string().uuid()
1799
+ organizationId: z7.guid()
1800
1800
  })
1801
1801
  })
1802
1802
  });
1803
1803
  IssueSharedStateZ2 = z7.object({
1804
- id: z7.string().uuid(),
1804
+ id: z7.guid(),
1805
1805
  createdAt: z7.string(),
1806
1806
  isArchived: z7.boolean(),
1807
- ticketIntegrationId: z7.string().uuid().nullable(),
1807
+ ticketIntegrationId: z7.guid().nullable(),
1808
1808
  ticketIntegrations: z7.array(
1809
1809
  z7.object({
1810
1810
  url: z7.string()
@@ -1813,7 +1813,7 @@ var init_types = __esm({
1813
1813
  }).nullable();
1814
1814
  ReportQueryResultZ = z7.object({
1815
1815
  fixReport_by_pk: z7.object({
1816
- id: z7.string().uuid(),
1816
+ id: z7.guid(),
1817
1817
  analysisUrl: z7.string(),
1818
1818
  fixesCommitted: z7.object({
1819
1819
  aggregate: z7.object({ count: z7.number() })
@@ -1832,19 +1832,19 @@ var init_types = __esm({
1832
1832
  vulnerabilitySeverities: z7.record(z7.string(), z7.number()).nullable(),
1833
1833
  createdOn: z7.string(),
1834
1834
  expirationOn: z7.string().nullable(),
1835
- state: z7.nativeEnum(Fix_Report_State_Enum),
1835
+ state: z7.enum(Fix_Report_State_Enum),
1836
1836
  failReason: z7.string().nullable(),
1837
1837
  candidateToRerun: z7.boolean(),
1838
1838
  fixes: z7.array(
1839
1839
  z7.object({
1840
- id: z7.string().uuid(),
1840
+ id: z7.guid(),
1841
1841
  safeIssueLanguage: z7.string(),
1842
1842
  safeIssueType: z7.string(),
1843
1843
  confidence: z7.number(),
1844
- effortToApplyFix: z7.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
1844
+ effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
1845
1845
  modifiedBy: z7.string().nullable(),
1846
1846
  gitBlameLogin: z7.string().nullable(),
1847
- fixReportId: z7.string().uuid(),
1847
+ fixReportId: z7.guid(),
1848
1848
  filePaths: z7.array(
1849
1849
  z7.object({
1850
1850
  fileRepoRelativePath: z7.string()
@@ -1852,13 +1852,13 @@ var init_types = __esm({
1852
1852
  ),
1853
1853
  sharedState: FixSharedStateZ,
1854
1854
  numberOfVulnerabilityIssues: z7.number(),
1855
- severityText: z7.nativeEnum(Vulnerability_Severity_Enum),
1855
+ severityText: z7.enum(Vulnerability_Severity_Enum),
1856
1856
  vulnerabilityReportIssues: z7.array(
1857
1857
  z7.object({
1858
- id: z7.string().uuid(),
1858
+ id: z7.guid(),
1859
1859
  issueType: z7.string(),
1860
1860
  issueLanguage: z7.string(),
1861
- category: z7.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
1861
+ category: z7.enum(Vulnerability_Report_Issue_Category_Enum),
1862
1862
  sharedState: IssueSharedStateZ2
1863
1863
  })
1864
1864
  )
@@ -1885,19 +1885,19 @@ var init_types = __esm({
1885
1885
  })
1886
1886
  }),
1887
1887
  vulnerabilityReport: z7.object({
1888
- id: z7.string().uuid(),
1889
- reportSummaryUrl: z7.string().url().nullish(),
1890
- computedVendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
1891
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
1888
+ id: z7.guid(),
1889
+ reportSummaryUrl: z7.url().nullish(),
1890
+ computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
1891
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
1892
1892
  issuesWithKnownLanguage: z7.number().nullable(),
1893
1893
  scanDate: z7.string().nullable(),
1894
- vendorReportId: z7.string().uuid().nullable(),
1895
- projectId: z7.string().uuid(),
1894
+ vendorReportId: z7.guid().nullable(),
1895
+ projectId: z7.guid(),
1896
1896
  project: z7.object({
1897
- organizationId: z7.string().uuid()
1897
+ organizationId: z7.guid()
1898
1898
  }),
1899
1899
  file: z7.object({
1900
- id: z7.string().uuid(),
1900
+ id: z7.guid(),
1901
1901
  path: z7.string()
1902
1902
  }).nullable(),
1903
1903
  pending: z7.object({
@@ -1941,7 +1941,7 @@ var init_types = __esm({
1941
1941
  })
1942
1942
  }),
1943
1943
  vulnerabilityReportIssues: z7.object({
1944
- id: z7.string().uuid(),
1944
+ id: z7.guid(),
1945
1945
  extraData: z7.object({
1946
1946
  missing_files: z7.string().array().nullish(),
1947
1947
  large_files: z7.string().array().nullish(),
@@ -1953,21 +1953,21 @@ var init_types = __esm({
1953
1953
  })
1954
1954
  });
1955
1955
  ReportFixesQueryFixZ = z7.object({
1956
- id: z7.string().uuid(),
1956
+ id: z7.guid(),
1957
1957
  sharedState: FixSharedStateZ,
1958
1958
  confidence: z7.number(),
1959
1959
  gitBlameLogin: z7.string().nullable(),
1960
- effortToApplyFix: z7.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
1960
+ effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
1961
1961
  safeIssueLanguage: z7.string(),
1962
1962
  safeIssueType: z7.string(),
1963
- fixReportId: z7.string().uuid(),
1963
+ fixReportId: z7.guid(),
1964
1964
  filePaths: z7.array(
1965
1965
  z7.object({
1966
1966
  fileRepoRelativePath: z7.string()
1967
1967
  })
1968
1968
  ),
1969
1969
  numberOfVulnerabilityIssues: z7.number(),
1970
- severityText: z7.nativeEnum(Vulnerability_Severity_Enum),
1970
+ severityText: z7.enum(Vulnerability_Severity_Enum),
1971
1971
  vulnerabilityReportIssues: z7.array(
1972
1972
  z7.object({
1973
1973
  issueType: z7.string(),
@@ -1977,9 +1977,9 @@ var init_types = __esm({
1977
1977
  ).min(1)
1978
1978
  });
1979
1979
  BaseVulnerabilityReportIssueZ = z7.object({
1980
- id: z7.string().uuid(),
1980
+ id: z7.guid(),
1981
1981
  createdAt: z7.string(),
1982
- state: z7.nativeEnum(Vulnerability_Report_Issue_State_Enum),
1982
+ state: z7.enum(Vulnerability_Report_Issue_State_Enum),
1983
1983
  safeIssueType: z7.string(),
1984
1984
  safeIssueLanguage: z7.string(),
1985
1985
  extraData: z7.object({
@@ -1990,7 +1990,7 @@ var init_types = __esm({
1990
1990
  }),
1991
1991
  fix: ReportFixesQueryFixZ.nullable(),
1992
1992
  falsePositive: z7.object({
1993
- id: z7.string().uuid()
1993
+ id: z7.guid()
1994
1994
  }).nullable(),
1995
1995
  parsedSeverity: ParsedSeverityZ,
1996
1996
  severity: z7.string(),
@@ -2003,20 +2003,20 @@ var init_types = __esm({
2003
2003
  ),
2004
2004
  sharedState: VulnerabilityReportIssueSharedStateZ
2005
2005
  });
2006
- VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.merge(
2006
+ VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.extend(
2007
2007
  z7.object({
2008
2008
  codeNodes: z7.array(z7.object({ path: z7.string() }))
2009
- })
2009
+ }).shape
2010
2010
  );
2011
- VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.merge(
2011
+ VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.extend(
2012
2012
  z7.object({
2013
2013
  codeFilePath: z7.string().nullable()
2014
- })
2014
+ }).shape
2015
2015
  );
2016
2016
  GetReportIssuesQueryZ = z7.object({
2017
2017
  fixReport: z7.object({
2018
2018
  vulnerabilityReport: z7.object({
2019
- id: z7.string().uuid(),
2019
+ id: z7.guid(),
2020
2020
  lastIssueUpdatedAt: z7.string(),
2021
2021
  vulnerabilityReportIssues_aggregate: z7.object({
2022
2022
  aggregate: z7.object({ count: z7.number() })
@@ -2031,7 +2031,7 @@ var init_types = __esm({
2031
2031
  project_by_pk: z7.object({
2032
2032
  vulnerabilityReports: z7.array(
2033
2033
  z7.object({
2034
- fixReport: z7.object({ id: z7.string().uuid() }).nullable()
2034
+ fixReport: z7.object({ id: z7.guid() }).nullable()
2035
2035
  })
2036
2036
  )
2037
2037
  })
@@ -2041,8 +2041,8 @@ var init_types = __esm({
2041
2041
  fix_by_pk: FixPartsForFixScreenZ,
2042
2042
  fixesWithSameIssueType: z7.array(
2043
2043
  z7.object({
2044
- id: z7.string().uuid(),
2045
- sharedState: z7.object({ state: z7.nativeEnum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
2044
+ id: z7.guid(),
2045
+ sharedState: z7.object({ state: z7.enum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
2046
2046
  })
2047
2047
  ),
2048
2048
  relevantIssue: IssuePartsZ.nullish()
@@ -2079,8 +2079,8 @@ var init_types = __esm({
2079
2079
  }).nullish();
2080
2080
  GetFixReportStatsQueryZ = z7.object({
2081
2081
  fixReport_by_pk: z7.object({
2082
- id: z7.string().uuid(),
2083
- vulnerabilitySeverities: z7.record(z7.nativeEnum(Vulnerability_Severity_Enum), z7.number()).nullable(),
2082
+ id: z7.guid(),
2083
+ vulnerabilitySeverities: z7.partialRecord(z7.enum(Vulnerability_Severity_Enum), z7.number()).nullable(),
2084
2084
  vulnerabilityReportIrrelevantIssuesCount: z7.object({
2085
2085
  vulnerabilityReportIssues_aggregate: z7.object({
2086
2086
  aggregate: z7.object({ count: z7.number() })
@@ -2089,15 +2089,16 @@ var init_types = __esm({
2089
2089
  }).nullable()
2090
2090
  });
2091
2091
  ProjectVulnerabilityReport = z7.object({
2092
- id: z7.string().uuid(),
2092
+ id: z7.guid(),
2093
2093
  name: z7.string().nullable(),
2094
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
2095
- computedVendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
2094
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
2095
+ computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
2096
2096
  fixReport: z7.object({
2097
- id: z7.string().uuid(),
2097
+ id: z7.guid(),
2098
2098
  createdOn: z7.string(),
2099
2099
  issueTypes: z7.record(z7.string(), z7.number()).nullable(),
2100
- issueLanguages: z7.record(z7.nativeEnum(IssueLanguage_Enum), z7.number()).nullable(),
2100
+ // reports only contain the languages actually found in the repo
2101
+ issueLanguages: z7.partialRecord(z7.enum(IssueLanguage_Enum), z7.number()).nullable(),
2101
2102
  repo: z7.object({
2102
2103
  originalUrl: z7.string(),
2103
2104
  reference: z7.string(),
@@ -2112,7 +2113,7 @@ var init_types = __esm({
2112
2113
  createdByUser: z7.object({
2113
2114
  email: z7.string()
2114
2115
  }).nullable(),
2115
- state: z7.nativeEnum(Fix_Report_State_Enum),
2116
+ state: z7.enum(Fix_Report_State_Enum),
2116
2117
  expirationOn: z7.string()
2117
2118
  })
2118
2119
  });
@@ -2121,7 +2122,7 @@ var init_types = __esm({
2121
2122
  id: z7.string(),
2122
2123
  projects: z7.array(
2123
2124
  z7.object({
2124
- id: z7.string().uuid(),
2125
+ id: z7.guid(),
2125
2126
  name: z7.string(),
2126
2127
  numberOfUniqueRepos: z7.number()
2127
2128
  })
@@ -2130,16 +2131,16 @@ var init_types = __esm({
2130
2131
  });
2131
2132
  ProjectPageQueryResultZ = z7.object({
2132
2133
  name: z7.string(),
2133
- id: z7.string().uuid(),
2134
+ id: z7.guid(),
2134
2135
  isDefault: z7.boolean().default(false),
2135
- organizationId: z7.string().uuid(),
2136
+ organizationId: z7.guid(),
2136
2137
  vulnerabilityReports: z7.array(ProjectVulnerabilityReport),
2137
2138
  autoPrIncludeAiFixes: z7.preprocess(
2138
2139
  (val) => val === null || val === void 0 ? false : val,
2139
2140
  z7.boolean()
2140
2141
  ),
2141
2142
  projectIssueTypeSettings: z7.array(
2142
- IssueTypeSettingZ.merge(z7.object({ id: z7.string() }))
2143
+ IssueTypeSettingZ.extend(z7.object({ id: z7.string() }).shape)
2143
2144
  )
2144
2145
  });
2145
2146
  GetProjectMembersDataZ = z7.object({
@@ -2150,21 +2151,21 @@ var init_types = __esm({
2150
2151
  z7.object({
2151
2152
  projectToRole: z7.object({
2152
2153
  projectRole: z7.object({
2153
- type: z7.nativeEnum(Project_Role_Type_Enum)
2154
+ type: z7.enum(Project_Role_Type_Enum)
2154
2155
  })
2155
2156
  }),
2156
2157
  user: z7.object({
2157
- id: z7.string().uuid(),
2158
+ id: z7.guid(),
2158
2159
  picture: z7.string().nullable().optional(),
2159
2160
  name: z7.string().nullish(),
2160
- email: z7.string().email()
2161
+ email: z7.email()
2161
2162
  })
2162
2163
  })
2163
2164
  )
2164
2165
  })
2165
2166
  });
2166
2167
  RepoArgsZ = z7.object({
2167
- originalUrl: z7.string().url(),
2168
+ originalUrl: z7.url(),
2168
2169
  branch: z7.string(),
2169
2170
  commitSha: z7.string()
2170
2171
  });
@@ -2862,8 +2863,8 @@ var init_gitBlameTypes = __esm({
2862
2863
  userEmail: z15.string().optional()
2863
2864
  });
2864
2865
  VulnerabilityAttributionMessageZ = z15.object({
2865
- fixReportId: z15.string().uuid(),
2866
- vulnerabilityAttributionRequestId: z15.string().uuid(),
2866
+ fixReportId: z15.guid(),
2867
+ vulnerabilityAttributionRequestId: z15.guid(),
2867
2868
  userEmail: z15.string()
2868
2869
  });
2869
2870
  }
@@ -4602,6 +4603,9 @@ import pLimit from "p-limit";
4602
4603
  import debugModule from "debug";
4603
4604
  var debug3 = debugModule("mobb:shared");
4604
4605
 
4606
+ // src/features/analysis/scm/constants.ts
4607
+ var REPORT_DEFAULT_FILE_NAME = "report.json";
4608
+
4605
4609
  // src/features/analysis/scm/utils/index.ts
4606
4610
  import { z as z11 } from "zod";
4607
4611
 
@@ -4664,7 +4668,7 @@ var scmTypeToScmLibScmType = {
4664
4668
  var GetReferenceResultZ = z10.object({
4665
4669
  date: z10.date().optional(),
4666
4670
  sha: z10.string(),
4667
- type: z10.nativeEnum(ReferenceType)
4671
+ type: z10.enum(ReferenceType)
4668
4672
  });
4669
4673
 
4670
4674
  // src/features/analysis/scm/ado/constants.ts
@@ -4771,9 +4775,6 @@ var UserWorkspacePermissionsRepositoriesResponseZ = z17.object({
4771
4775
  import { setTimeout as setTimeout3 } from "timers/promises";
4772
4776
  import { z as z18 } from "zod";
4773
4777
 
4774
- // src/features/analysis/scm/constants.ts
4775
- var REPORT_DEFAULT_FILE_NAME = "report.json";
4776
-
4777
4778
  // src/features/analysis/scm/index.ts
4778
4779
  init_env();
4779
4780
 
@@ -4823,7 +4824,6 @@ var GitlabAuthResultZ = z20.object({
4823
4824
  var debug6 = Debug5("scm:gitlab");
4824
4825
 
4825
4826
  // src/features/analysis/scm/gitlab/GitlabSCMLib.ts
4826
- import pLimit5 from "p-limit";
4827
4827
  init_client_generates();
4828
4828
 
4829
4829
  // src/features/analysis/scm/scmFactory.ts
@@ -4841,11 +4841,11 @@ var VulnerabilityReportIssueCodeNodeZ = z22.object({
4841
4841
  startLine: z22.number(),
4842
4842
  vulnerabilityReportIssue: z22.object({
4843
4843
  fixId: z22.string(),
4844
- category: z22.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
4844
+ category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
4845
4845
  safeIssueType: z22.string(),
4846
4846
  vulnerabilityReportIssueTags: z22.array(
4847
4847
  z22.object({
4848
- tag: z22.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
4848
+ tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
4849
4849
  })
4850
4850
  )
4851
4851
  })
@@ -4855,9 +4855,9 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
4855
4855
  z22.object({
4856
4856
  id: z22.string(),
4857
4857
  fixId: z22.string().nullable(),
4858
- category: z22.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
4858
+ category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
4859
4859
  safeIssueType: z22.string(),
4860
- fpId: z22.string().uuid().nullable(),
4860
+ fpId: z22.guid().nullable(),
4861
4861
  codeNodes: z22.array(
4862
4862
  z22.object({
4863
4863
  path: z22.string(),
@@ -4866,7 +4866,7 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
4866
4866
  ),
4867
4867
  vulnerabilityReportIssueTags: z22.array(
4868
4868
  z22.object({
4869
- tag: z22.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
4869
+ tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
4870
4870
  })
4871
4871
  )
4872
4872
  })