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/index.mjs CHANGED
@@ -1350,7 +1350,7 @@ var init_getIssueType = __esm({
1350
1350
  ["Unfixable" /* Unfixable */]: "Unfixable",
1351
1351
  ["Unsupported" /* Unsupported */]: "Unsupported"
1352
1352
  };
1353
- statusZ = z.nativeEnum(Vulnerability_Report_Issue_State_Enum);
1353
+ statusZ = z.enum(Vulnerability_Report_Issue_State_Enum);
1354
1354
  issueDescription = {
1355
1355
  ["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.",
1356
1356
  ["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.",
@@ -1371,18 +1371,20 @@ var init_shared = __esm({
1371
1371
  "src/features/analysis/scm/shared/src/types/shared.ts"() {
1372
1372
  "use strict";
1373
1373
  init_client_generates();
1374
- ParsedSeverityZ = z2.nativeEnum(Vulnerability_Severity_Enum).nullish().transform((i) => i ?? "low" /* Low */);
1374
+ ParsedSeverityZ = z2.enum(Vulnerability_Severity_Enum).nullish().transform((i) => i ?? "low" /* Low */);
1375
1375
  ScmSubmitFixRequestsZ = z2.array(
1376
1376
  z2.object({
1377
1377
  scmSubmitFixRequest: z2.object({
1378
1378
  submitFixRequest: z2.object({
1379
+ // note: nullable at runtime (e.g. deleted or permission-filtered user)
1380
+ // even though the generated schema says otherwise
1379
1381
  createdByUser: z2.object({
1380
1382
  email: z2.string()
1381
- }),
1383
+ }).nullable().transform((user) => user ?? { email: "" }),
1382
1384
  targetBranchName: z2.string().default("")
1383
1385
  }),
1384
1386
  prUrl: z2.string().nullable(),
1385
- prStatus: z2.nativeEnum(Pr_Status_Enum).nullable(),
1387
+ prStatus: z2.enum(Pr_Status_Enum).nullable(),
1386
1388
  commitUrl: z2.string().nullable(),
1387
1389
  scmId: z2.string()
1388
1390
  })
@@ -1405,8 +1407,8 @@ var init_fix = __esm({
1405
1407
  envName: z3.string().nullable()
1406
1408
  });
1407
1409
  ManifestActionRequiredZ = z3.object({
1408
- action: z3.nativeEnum(ManifestAction),
1409
- language: z3.nativeEnum(Language),
1410
+ action: z3.enum(ManifestAction),
1411
+ language: z3.enum(Language),
1410
1412
  lib: PackageInfoZ,
1411
1413
  typesLib: PackageInfoZ.nullable()
1412
1414
  });
@@ -1442,7 +1444,7 @@ var init_fix = __esm({
1442
1444
  index: z3.number(),
1443
1445
  defaultValue: z3.string(),
1444
1446
  value: z3.string().nullable(),
1445
- inputType: z3.nativeEnum(FixQuestionInputType),
1447
+ inputType: z3.enum(FixQuestionInputType),
1446
1448
  options: z3.array(z3.string()),
1447
1449
  // E-2015: analyzer-served question text. default('') so a query that
1448
1450
  // omits these still parses (-> ''), while the output type stays a required
@@ -1457,7 +1459,7 @@ var init_fix = __esm({
1457
1459
  });
1458
1460
  FixRatingZ = z3.object({
1459
1461
  voteScore: z3.number(),
1460
- fixRatingTag: z3.nativeEnum(Fix_Rating_Tag_Enum).nullable().default(null),
1462
+ fixRatingTag: z3.enum(Fix_Rating_Tag_Enum).nullable().default(null),
1461
1463
  comment: z3.string().nullable().default(null),
1462
1464
  updatedDate: z3.string().nullable(),
1463
1465
  user: z3.object({
@@ -1487,7 +1489,7 @@ var init_fix = __esm({
1487
1489
  issueRatings: z3.array(IssueRatingZ).default([])
1488
1490
  }).nullable();
1489
1491
  FixSharedStateZ = z3.object({
1490
- state: z3.nativeEnum(Fix_State_Enum),
1492
+ state: z3.enum(Fix_State_Enum),
1491
1493
  isArchived: z3.boolean(),
1492
1494
  scmSubmitFixRequests: ScmSubmitFixRequestsZ,
1493
1495
  fixRatings: z3.array(FixRatingZ).default([])
@@ -1501,14 +1503,14 @@ var init_fix = __esm({
1501
1503
  );
1502
1504
  FixQueryZ = z3.object({
1503
1505
  __typename: z3.literal("fix").optional(),
1504
- id: z3.string().uuid(),
1506
+ id: z3.guid(),
1505
1507
  sharedState: FixSharedStateZ,
1506
1508
  modifiedBy: z3.string().nullable(),
1507
1509
  gitBlameLogin: z3.string().nullable(),
1508
1510
  safeIssueLanguage: z3.string(),
1509
1511
  safeIssueType: z3.string(),
1510
1512
  confidence: z3.number(),
1511
- fixReportId: z3.string().uuid(),
1513
+ fixReportId: z3.guid(),
1512
1514
  isExpired: z3.boolean().default(false),
1513
1515
  fixFiles: z3.array(
1514
1516
  z3.object({
@@ -1516,23 +1518,23 @@ var init_fix = __esm({
1516
1518
  })
1517
1519
  ),
1518
1520
  numberOfVulnerabilityIssues: z3.number(),
1519
- severityText: z3.nativeEnum(Vulnerability_Severity_Enum),
1521
+ severityText: z3.enum(Vulnerability_Severity_Enum),
1520
1522
  vulnerabilityReportIssues: z3.array(
1521
1523
  z3.object({
1522
1524
  vendorIssueId: z3.string(),
1523
1525
  issueLanguage: z3.string(),
1524
1526
  parsedSeverity: ParsedSeverityZ,
1525
1527
  sharedState: z3.object({
1526
- id: z3.string().uuid(),
1528
+ id: z3.guid(),
1527
1529
  isArchived: z3.boolean(),
1528
- ticketIntegrationId: z3.string().uuid().nullable()
1530
+ ticketIntegrationId: z3.guid().nullable()
1529
1531
  }).nullable()
1530
1532
  })
1531
1533
  ),
1532
1534
  patchAndQuestions: PatchAndQuestionsZ,
1533
- effortToApplyFix: z3.nativeEnum(Effort_To_Apply_Fix_Enum).nullable()
1535
+ effortToApplyFix: z3.enum(Effort_To_Apply_Fix_Enum).nullable()
1534
1536
  });
1535
- FixPartsForFixScreenZ = FixQueryZ.merge(
1537
+ FixPartsForFixScreenZ = FixQueryZ.extend(
1536
1538
  z3.object({
1537
1539
  vulnerabilityReportIssues: z3.array(
1538
1540
  z3.object({
@@ -1542,7 +1544,7 @@ var init_fix = __esm({
1542
1544
  sharedState: IssueSharedStateZ
1543
1545
  })
1544
1546
  )
1545
- })
1547
+ }).shape
1546
1548
  );
1547
1549
  }
1548
1550
  });
@@ -1556,10 +1558,10 @@ var init_analysis = __esm({
1556
1558
  init_client_generates();
1557
1559
  init_client_generates();
1558
1560
  FixPageFixReportZ = z4.object({
1559
- id: z4.string().uuid(),
1561
+ id: z4.guid(),
1560
1562
  analysisUrl: z4.string(),
1561
1563
  createdOn: z4.string(),
1562
- state: z4.nativeEnum(Fix_Report_State_Enum),
1564
+ state: z4.enum(Fix_Report_State_Enum),
1563
1565
  repo: z4.object({
1564
1566
  name: z4.string().nullable(),
1565
1567
  originalUrl: z4.string(),
@@ -1576,12 +1578,12 @@ var init_analysis = __esm({
1576
1578
  }
1577
1579
  ),
1578
1580
  vulnerabilityReport: z4.object({
1579
- id: z4.string().uuid(),
1580
- vendor: z4.nativeEnum(Vulnerability_Report_Vendor_Enum),
1581
- computedVendor: z4.nativeEnum(Vulnerability_Report_Vendor_Enum),
1582
- projectId: z4.string().uuid(),
1581
+ id: z4.guid(),
1582
+ vendor: z4.enum(Vulnerability_Report_Vendor_Enum),
1583
+ computedVendor: z4.enum(Vulnerability_Report_Vendor_Enum),
1584
+ projectId: z4.guid(),
1583
1585
  project: z4.object({
1584
- organizationId: z4.string().uuid()
1586
+ organizationId: z4.guid()
1585
1587
  })
1586
1588
  })
1587
1589
  });
@@ -1609,10 +1611,10 @@ var init_issue = __esm({
1609
1611
  })
1610
1612
  });
1611
1613
  VulnerabilityReportIssueSharedStateZ = z5.object({
1612
- id: z5.string().uuid(),
1614
+ id: z5.guid(),
1613
1615
  createdAt: z5.string(),
1614
1616
  isArchived: z5.boolean(),
1615
- ticketIntegrationId: z5.string().uuid().nullable(),
1617
+ ticketIntegrationId: z5.guid().nullable(),
1616
1618
  ticketIntegrations: z5.array(
1617
1619
  z5.object({
1618
1620
  url: z5.string()
@@ -1621,12 +1623,12 @@ var init_issue = __esm({
1621
1623
  issueRatings: z5.array(VulnerabilityReportIssueRatingZ).default([])
1622
1624
  }).nullish();
1623
1625
  BaseIssuePartsZ = z5.object({
1624
- id: z5.string().uuid(),
1626
+ id: z5.guid(),
1625
1627
  safeIssueType: z5.string(),
1626
1628
  safeIssueLanguage: z5.string(),
1627
1629
  createdAt: z5.string(),
1628
1630
  parsedSeverity: ParsedSeverityZ,
1629
- category: z5.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
1631
+ category: z5.enum(Vulnerability_Report_Issue_Category_Enum),
1630
1632
  extraData: z5.object({
1631
1633
  missing_files: z5.string().array().nullish(),
1632
1634
  error_files: z5.string().array().nullish(),
@@ -1634,7 +1636,7 @@ var init_issue = __esm({
1634
1636
  }),
1635
1637
  vulnerabilityReportIssueTags: z5.array(
1636
1638
  z5.object({
1637
- tag: z5.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
1639
+ tag: z5.enum(Vulnerability_Report_Issue_Tag_Enum)
1638
1640
  })
1639
1641
  ),
1640
1642
  codeNodes: z5.array(
@@ -1674,7 +1676,7 @@ var init_issue = __esm({
1674
1676
  })
1675
1677
  }).nullish(),
1676
1678
  sharedState: VulnerabilityReportIssueSharedStateZ,
1677
- unfixableId: z5.string().uuid().nullish()
1679
+ unfixableId: z5.guid().nullish()
1678
1680
  });
1679
1681
  FalsePositivePartsZ = z5.object({
1680
1682
  extraContext: z5.array(z5.object({ key: z5.string(), value: z5.string() })),
@@ -1684,20 +1686,20 @@ var init_issue = __esm({
1684
1686
  extraContext: z5.array(z5.object({ key: z5.string(), value: z5.string() })),
1685
1687
  fixDescription: z5.string()
1686
1688
  });
1687
- IssuePartsWithFixZ = BaseIssuePartsZ.merge(
1689
+ IssuePartsWithFixZ = BaseIssuePartsZ.extend(
1688
1690
  z5.object({
1689
1691
  category: z5.literal("Irrelevant" /* Irrelevant */),
1690
1692
  fix: FixPartsForFixScreenZ.nullish()
1691
- })
1693
+ }).shape
1692
1694
  );
1693
- IssuePartsFpZ = BaseIssuePartsZ.merge(
1695
+ IssuePartsFpZ = BaseIssuePartsZ.extend(
1694
1696
  z5.object({
1695
1697
  category: z5.literal("FalsePositive" /* FalsePositive */),
1696
- fpId: z5.string().uuid(),
1698
+ fpId: z5.guid(),
1697
1699
  getFalsePositive: FalsePositivePartsZ
1698
- })
1700
+ }).shape
1699
1701
  );
1700
- GeneralIssueZ = BaseIssuePartsZ.merge(
1702
+ GeneralIssueZ = BaseIssuePartsZ.extend(
1701
1703
  z5.object({
1702
1704
  category: z5.union([
1703
1705
  z5.literal("NoFix" /* NoFix */),
@@ -1707,7 +1709,7 @@ var init_issue = __esm({
1707
1709
  z5.literal("Pending" /* Pending */)
1708
1710
  ]),
1709
1711
  getUnfixable: UnfixablePartsZ.nullish()
1710
- })
1712
+ }).shape
1711
1713
  );
1712
1714
  IssuePartsZ = z5.union([
1713
1715
  IssuePartsFpZ,
@@ -1718,10 +1720,10 @@ var init_issue = __esm({
1718
1720
  currentIndex: z5.number(),
1719
1721
  totalIssues: z5.number(),
1720
1722
  nextIssue: z5.object({
1721
- id: z5.string().uuid()
1723
+ id: z5.guid()
1722
1724
  }).nullish(),
1723
1725
  prevIssue: z5.object({
1724
- id: z5.string().uuid()
1726
+ id: z5.guid()
1725
1727
  }).nullish()
1726
1728
  });
1727
1729
  GetIssueScreenDataZ = z5.object({
@@ -1805,29 +1807,29 @@ var init_types = __esm({
1805
1807
  init_issue();
1806
1808
  init_shared();
1807
1809
  OrganizationScreenQueryParamsZ = z7.object({
1808
- organizationId: z7.string().uuid()
1810
+ organizationId: z7.guid()
1809
1811
  });
1810
1812
  ProjectPageQueryParamsZ = z7.object({
1811
- organizationId: z7.string().uuid(),
1812
- projectId: z7.string().uuid()
1813
+ organizationId: z7.guid(),
1814
+ projectId: z7.guid()
1813
1815
  });
1814
1816
  AnalysisPageQueryParamsZ = ProjectPageQueryParamsZ.extend({
1815
- reportId: z7.string().uuid()
1817
+ reportId: z7.guid()
1816
1818
  });
1817
1819
  FixPageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
1818
- fixId: z7.string().uuid()
1820
+ fixId: z7.guid()
1819
1821
  });
1820
1822
  IssuePageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
1821
- issueId: z7.string().uuid()
1823
+ issueId: z7.guid()
1822
1824
  });
1823
1825
  CliLoginPageQueryParamsZ = z7.object({
1824
- loginId: z7.string().uuid()
1826
+ loginId: z7.guid()
1825
1827
  });
1826
1828
  AnalysisReportDigestedZ = z7.object({
1827
- id: z7.string().uuid(),
1828
- state: z7.nativeEnum(Fix_Report_State_Enum),
1829
+ id: z7.guid(),
1830
+ state: z7.enum(Fix_Report_State_Enum),
1829
1831
  vulnerabilityReport: z7.object({
1830
- reportSummaryUrl: z7.string().url().nullish(),
1832
+ reportSummaryUrl: z7.url().nullish(),
1831
1833
  scanDate: z7.string().nullable(),
1832
1834
  supported: z7.object({
1833
1835
  aggregate: z7.object({
@@ -1839,17 +1841,17 @@ var init_types = __esm({
1839
1841
  count: z7.number()
1840
1842
  })
1841
1843
  }),
1842
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum),
1844
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum),
1843
1845
  project: z7.object({
1844
- organizationId: z7.string().uuid()
1846
+ organizationId: z7.guid()
1845
1847
  })
1846
1848
  })
1847
1849
  });
1848
1850
  IssueSharedStateZ2 = z7.object({
1849
- id: z7.string().uuid(),
1851
+ id: z7.guid(),
1850
1852
  createdAt: z7.string(),
1851
1853
  isArchived: z7.boolean(),
1852
- ticketIntegrationId: z7.string().uuid().nullable(),
1854
+ ticketIntegrationId: z7.guid().nullable(),
1853
1855
  ticketIntegrations: z7.array(
1854
1856
  z7.object({
1855
1857
  url: z7.string()
@@ -1858,7 +1860,7 @@ var init_types = __esm({
1858
1860
  }).nullable();
1859
1861
  ReportQueryResultZ = z7.object({
1860
1862
  fixReport_by_pk: z7.object({
1861
- id: z7.string().uuid(),
1863
+ id: z7.guid(),
1862
1864
  analysisUrl: z7.string(),
1863
1865
  fixesCommitted: z7.object({
1864
1866
  aggregate: z7.object({ count: z7.number() })
@@ -1877,19 +1879,19 @@ var init_types = __esm({
1877
1879
  vulnerabilitySeverities: z7.record(z7.string(), z7.number()).nullable(),
1878
1880
  createdOn: z7.string(),
1879
1881
  expirationOn: z7.string().nullable(),
1880
- state: z7.nativeEnum(Fix_Report_State_Enum),
1882
+ state: z7.enum(Fix_Report_State_Enum),
1881
1883
  failReason: z7.string().nullable(),
1882
1884
  candidateToRerun: z7.boolean(),
1883
1885
  fixes: z7.array(
1884
1886
  z7.object({
1885
- id: z7.string().uuid(),
1887
+ id: z7.guid(),
1886
1888
  safeIssueLanguage: z7.string(),
1887
1889
  safeIssueType: z7.string(),
1888
1890
  confidence: z7.number(),
1889
- effortToApplyFix: z7.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
1891
+ effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
1890
1892
  modifiedBy: z7.string().nullable(),
1891
1893
  gitBlameLogin: z7.string().nullable(),
1892
- fixReportId: z7.string().uuid(),
1894
+ fixReportId: z7.guid(),
1893
1895
  filePaths: z7.array(
1894
1896
  z7.object({
1895
1897
  fileRepoRelativePath: z7.string()
@@ -1897,13 +1899,13 @@ var init_types = __esm({
1897
1899
  ),
1898
1900
  sharedState: FixSharedStateZ,
1899
1901
  numberOfVulnerabilityIssues: z7.number(),
1900
- severityText: z7.nativeEnum(Vulnerability_Severity_Enum),
1902
+ severityText: z7.enum(Vulnerability_Severity_Enum),
1901
1903
  vulnerabilityReportIssues: z7.array(
1902
1904
  z7.object({
1903
- id: z7.string().uuid(),
1905
+ id: z7.guid(),
1904
1906
  issueType: z7.string(),
1905
1907
  issueLanguage: z7.string(),
1906
- category: z7.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
1908
+ category: z7.enum(Vulnerability_Report_Issue_Category_Enum),
1907
1909
  sharedState: IssueSharedStateZ2
1908
1910
  })
1909
1911
  )
@@ -1930,19 +1932,19 @@ var init_types = __esm({
1930
1932
  })
1931
1933
  }),
1932
1934
  vulnerabilityReport: z7.object({
1933
- id: z7.string().uuid(),
1934
- reportSummaryUrl: z7.string().url().nullish(),
1935
- computedVendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
1936
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
1935
+ id: z7.guid(),
1936
+ reportSummaryUrl: z7.url().nullish(),
1937
+ computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
1938
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
1937
1939
  issuesWithKnownLanguage: z7.number().nullable(),
1938
1940
  scanDate: z7.string().nullable(),
1939
- vendorReportId: z7.string().uuid().nullable(),
1940
- projectId: z7.string().uuid(),
1941
+ vendorReportId: z7.guid().nullable(),
1942
+ projectId: z7.guid(),
1941
1943
  project: z7.object({
1942
- organizationId: z7.string().uuid()
1944
+ organizationId: z7.guid()
1943
1945
  }),
1944
1946
  file: z7.object({
1945
- id: z7.string().uuid(),
1947
+ id: z7.guid(),
1946
1948
  path: z7.string()
1947
1949
  }).nullable(),
1948
1950
  pending: z7.object({
@@ -1986,7 +1988,7 @@ var init_types = __esm({
1986
1988
  })
1987
1989
  }),
1988
1990
  vulnerabilityReportIssues: z7.object({
1989
- id: z7.string().uuid(),
1991
+ id: z7.guid(),
1990
1992
  extraData: z7.object({
1991
1993
  missing_files: z7.string().array().nullish(),
1992
1994
  large_files: z7.string().array().nullish(),
@@ -1998,21 +2000,21 @@ var init_types = __esm({
1998
2000
  })
1999
2001
  });
2000
2002
  ReportFixesQueryFixZ = z7.object({
2001
- id: z7.string().uuid(),
2003
+ id: z7.guid(),
2002
2004
  sharedState: FixSharedStateZ,
2003
2005
  confidence: z7.number(),
2004
2006
  gitBlameLogin: z7.string().nullable(),
2005
- effortToApplyFix: z7.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
2007
+ effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
2006
2008
  safeIssueLanguage: z7.string(),
2007
2009
  safeIssueType: z7.string(),
2008
- fixReportId: z7.string().uuid(),
2010
+ fixReportId: z7.guid(),
2009
2011
  filePaths: z7.array(
2010
2012
  z7.object({
2011
2013
  fileRepoRelativePath: z7.string()
2012
2014
  })
2013
2015
  ),
2014
2016
  numberOfVulnerabilityIssues: z7.number(),
2015
- severityText: z7.nativeEnum(Vulnerability_Severity_Enum),
2017
+ severityText: z7.enum(Vulnerability_Severity_Enum),
2016
2018
  vulnerabilityReportIssues: z7.array(
2017
2019
  z7.object({
2018
2020
  issueType: z7.string(),
@@ -2022,9 +2024,9 @@ var init_types = __esm({
2022
2024
  ).min(1)
2023
2025
  });
2024
2026
  BaseVulnerabilityReportIssueZ = z7.object({
2025
- id: z7.string().uuid(),
2027
+ id: z7.guid(),
2026
2028
  createdAt: z7.string(),
2027
- state: z7.nativeEnum(Vulnerability_Report_Issue_State_Enum),
2029
+ state: z7.enum(Vulnerability_Report_Issue_State_Enum),
2028
2030
  safeIssueType: z7.string(),
2029
2031
  safeIssueLanguage: z7.string(),
2030
2032
  extraData: z7.object({
@@ -2035,7 +2037,7 @@ var init_types = __esm({
2035
2037
  }),
2036
2038
  fix: ReportFixesQueryFixZ.nullable(),
2037
2039
  falsePositive: z7.object({
2038
- id: z7.string().uuid()
2040
+ id: z7.guid()
2039
2041
  }).nullable(),
2040
2042
  parsedSeverity: ParsedSeverityZ,
2041
2043
  severity: z7.string(),
@@ -2048,20 +2050,20 @@ var init_types = __esm({
2048
2050
  ),
2049
2051
  sharedState: VulnerabilityReportIssueSharedStateZ
2050
2052
  });
2051
- VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.merge(
2053
+ VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.extend(
2052
2054
  z7.object({
2053
2055
  codeNodes: z7.array(z7.object({ path: z7.string() }))
2054
- })
2056
+ }).shape
2055
2057
  );
2056
- VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.merge(
2058
+ VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.extend(
2057
2059
  z7.object({
2058
2060
  codeFilePath: z7.string().nullable()
2059
- })
2061
+ }).shape
2060
2062
  );
2061
2063
  GetReportIssuesQueryZ = z7.object({
2062
2064
  fixReport: z7.object({
2063
2065
  vulnerabilityReport: z7.object({
2064
- id: z7.string().uuid(),
2066
+ id: z7.guid(),
2065
2067
  lastIssueUpdatedAt: z7.string(),
2066
2068
  vulnerabilityReportIssues_aggregate: z7.object({
2067
2069
  aggregate: z7.object({ count: z7.number() })
@@ -2076,7 +2078,7 @@ var init_types = __esm({
2076
2078
  project_by_pk: z7.object({
2077
2079
  vulnerabilityReports: z7.array(
2078
2080
  z7.object({
2079
- fixReport: z7.object({ id: z7.string().uuid() }).nullable()
2081
+ fixReport: z7.object({ id: z7.guid() }).nullable()
2080
2082
  })
2081
2083
  )
2082
2084
  })
@@ -2086,8 +2088,8 @@ var init_types = __esm({
2086
2088
  fix_by_pk: FixPartsForFixScreenZ,
2087
2089
  fixesWithSameIssueType: z7.array(
2088
2090
  z7.object({
2089
- id: z7.string().uuid(),
2090
- sharedState: z7.object({ state: z7.nativeEnum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
2091
+ id: z7.guid(),
2092
+ sharedState: z7.object({ state: z7.enum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
2091
2093
  })
2092
2094
  ),
2093
2095
  relevantIssue: IssuePartsZ.nullish()
@@ -2124,8 +2126,8 @@ var init_types = __esm({
2124
2126
  }).nullish();
2125
2127
  GetFixReportStatsQueryZ = z7.object({
2126
2128
  fixReport_by_pk: z7.object({
2127
- id: z7.string().uuid(),
2128
- vulnerabilitySeverities: z7.record(z7.nativeEnum(Vulnerability_Severity_Enum), z7.number()).nullable(),
2129
+ id: z7.guid(),
2130
+ vulnerabilitySeverities: z7.partialRecord(z7.enum(Vulnerability_Severity_Enum), z7.number()).nullable(),
2129
2131
  vulnerabilityReportIrrelevantIssuesCount: z7.object({
2130
2132
  vulnerabilityReportIssues_aggregate: z7.object({
2131
2133
  aggregate: z7.object({ count: z7.number() })
@@ -2134,15 +2136,16 @@ var init_types = __esm({
2134
2136
  }).nullable()
2135
2137
  });
2136
2138
  ProjectVulnerabilityReport = z7.object({
2137
- id: z7.string().uuid(),
2139
+ id: z7.guid(),
2138
2140
  name: z7.string().nullable(),
2139
- vendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
2140
- computedVendor: z7.nativeEnum(Vulnerability_Report_Vendor_Enum).nullable(),
2141
+ vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
2142
+ computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
2141
2143
  fixReport: z7.object({
2142
- id: z7.string().uuid(),
2144
+ id: z7.guid(),
2143
2145
  createdOn: z7.string(),
2144
2146
  issueTypes: z7.record(z7.string(), z7.number()).nullable(),
2145
- issueLanguages: z7.record(z7.nativeEnum(IssueLanguage_Enum), z7.number()).nullable(),
2147
+ // reports only contain the languages actually found in the repo
2148
+ issueLanguages: z7.partialRecord(z7.enum(IssueLanguage_Enum), z7.number()).nullable(),
2146
2149
  repo: z7.object({
2147
2150
  originalUrl: z7.string(),
2148
2151
  reference: z7.string(),
@@ -2157,7 +2160,7 @@ var init_types = __esm({
2157
2160
  createdByUser: z7.object({
2158
2161
  email: z7.string()
2159
2162
  }).nullable(),
2160
- state: z7.nativeEnum(Fix_Report_State_Enum),
2163
+ state: z7.enum(Fix_Report_State_Enum),
2161
2164
  expirationOn: z7.string()
2162
2165
  })
2163
2166
  });
@@ -2166,7 +2169,7 @@ var init_types = __esm({
2166
2169
  id: z7.string(),
2167
2170
  projects: z7.array(
2168
2171
  z7.object({
2169
- id: z7.string().uuid(),
2172
+ id: z7.guid(),
2170
2173
  name: z7.string(),
2171
2174
  numberOfUniqueRepos: z7.number()
2172
2175
  })
@@ -2175,16 +2178,16 @@ var init_types = __esm({
2175
2178
  });
2176
2179
  ProjectPageQueryResultZ = z7.object({
2177
2180
  name: z7.string(),
2178
- id: z7.string().uuid(),
2181
+ id: z7.guid(),
2179
2182
  isDefault: z7.boolean().default(false),
2180
- organizationId: z7.string().uuid(),
2183
+ organizationId: z7.guid(),
2181
2184
  vulnerabilityReports: z7.array(ProjectVulnerabilityReport),
2182
2185
  autoPrIncludeAiFixes: z7.preprocess(
2183
2186
  (val) => val === null || val === void 0 ? false : val,
2184
2187
  z7.boolean()
2185
2188
  ),
2186
2189
  projectIssueTypeSettings: z7.array(
2187
- IssueTypeSettingZ.merge(z7.object({ id: z7.string() }))
2190
+ IssueTypeSettingZ.extend(z7.object({ id: z7.string() }).shape)
2188
2191
  )
2189
2192
  });
2190
2193
  GetProjectMembersDataZ = z7.object({
@@ -2195,21 +2198,21 @@ var init_types = __esm({
2195
2198
  z7.object({
2196
2199
  projectToRole: z7.object({
2197
2200
  projectRole: z7.object({
2198
- type: z7.nativeEnum(Project_Role_Type_Enum)
2201
+ type: z7.enum(Project_Role_Type_Enum)
2199
2202
  })
2200
2203
  }),
2201
2204
  user: z7.object({
2202
- id: z7.string().uuid(),
2205
+ id: z7.guid(),
2203
2206
  picture: z7.string().nullable().optional(),
2204
2207
  name: z7.string().nullish(),
2205
- email: z7.string().email()
2208
+ email: z7.email()
2206
2209
  })
2207
2210
  })
2208
2211
  )
2209
2212
  })
2210
2213
  });
2211
2214
  RepoArgsZ = z7.object({
2212
- originalUrl: z7.string().url(),
2215
+ originalUrl: z7.url(),
2213
2216
  branch: z7.string(),
2214
2217
  commitSha: z7.string()
2215
2218
  });
@@ -2914,8 +2917,8 @@ var init_gitBlameTypes = __esm({
2914
2917
  userEmail: z14.string().optional()
2915
2918
  });
2916
2919
  VulnerabilityAttributionMessageZ = z14.object({
2917
- fixReportId: z14.string().uuid(),
2918
- vulnerabilityAttributionRequestId: z14.string().uuid(),
2920
+ fixReportId: z14.guid(),
2921
+ vulnerabilityAttributionRequestId: z14.guid(),
2919
2922
  userEmail: z14.string()
2920
2923
  });
2921
2924
  }
@@ -4547,7 +4550,7 @@ var scmTypeToScmLibScmType = {
4547
4550
  var GetReferenceResultZ = z9.object({
4548
4551
  date: z9.date().optional(),
4549
4552
  sha: z9.string(),
4550
- type: z9.nativeEnum(ReferenceType)
4553
+ type: z9.enum(ReferenceType)
4551
4554
  });
4552
4555
 
4553
4556
  // src/features/analysis/scm/utils/scm.ts
@@ -4694,7 +4697,7 @@ function shouldValidateUrl(repoUrl) {
4694
4697
  return repoUrl && isUrlHasPath(repoUrl);
4695
4698
  }
4696
4699
  function isBrokerUrl(url) {
4697
- return z10.string().uuid().safeParse(new URL(url).host).success;
4700
+ return z10.guid().safeParse(new URL(url).host).success;
4698
4701
  }
4699
4702
  function buildAuthorizedRepoUrl(args) {
4700
4703
  const { url, username, password } = args;
@@ -4730,7 +4733,7 @@ function getCloudScmLibTypeFromUrl(url) {
4730
4733
  return void 0;
4731
4734
  }
4732
4735
  function getScmLibTypeFromScmType(scmType) {
4733
- const parsedScmType = z10.nativeEnum(ScmType).parse(scmType);
4736
+ const parsedScmType = z10.enum(ScmType).parse(scmType);
4734
4737
  return scmTypeToScmLibScmType[parsedScmType];
4735
4738
  }
4736
4739
  function getScmConfig({
@@ -6480,7 +6483,7 @@ function getBitbucketSdk(params) {
6480
6483
  async getDownloadUrl({ url, sha }) {
6481
6484
  this.getReferenceData({ ref: sha, url });
6482
6485
  const repoRes = await this.getRepo({ repoUrl: url });
6483
- const parsedRepoUrl = z16.string().url().parse(repoRes.links?.html?.href);
6486
+ const parsedRepoUrl = z16.url().parse(repoRes.links?.html?.href);
6484
6487
  return `${parsedRepoUrl}/get/${sha}.zip`;
6485
6488
  },
6486
6489
  async getPullRequest(params2) {
@@ -10367,7 +10370,7 @@ async function createScmLib({ url, accessToken, scmType, scmOrg }, {
10367
10370
  if (e instanceof InvalidRepoUrlError && url) {
10368
10371
  throw new RepoNoTokenAccessError(
10369
10372
  "no access to repo",
10370
- scmLibScmTypeToScmType[z20.nativeEnum(ScmLibScmType).parse(scmType)]
10373
+ scmLibScmTypeToScmType[z20.enum(ScmLibScmType).parse(scmType)]
10371
10374
  );
10372
10375
  }
10373
10376
  console.error(`error validating scm: ${scmType} `, e);
@@ -11573,11 +11576,11 @@ var VulnerabilityReportIssueCodeNodeZ = z22.object({
11573
11576
  startLine: z22.number(),
11574
11577
  vulnerabilityReportIssue: z22.object({
11575
11578
  fixId: z22.string(),
11576
- category: z22.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
11579
+ category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
11577
11580
  safeIssueType: z22.string(),
11578
11581
  vulnerabilityReportIssueTags: z22.array(
11579
11582
  z22.object({
11580
- tag: z22.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
11583
+ tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
11581
11584
  })
11582
11585
  )
11583
11586
  })
@@ -11587,9 +11590,9 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
11587
11590
  z22.object({
11588
11591
  id: z22.string(),
11589
11592
  fixId: z22.string().nullable(),
11590
- category: z22.nativeEnum(Vulnerability_Report_Issue_Category_Enum),
11593
+ category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
11591
11594
  safeIssueType: z22.string(),
11592
- fpId: z22.string().uuid().nullable(),
11595
+ fpId: z22.guid().nullable(),
11593
11596
  codeNodes: z22.array(
11594
11597
  z22.object({
11595
11598
  path: z22.string(),
@@ -11598,7 +11601,7 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
11598
11601
  ),
11599
11602
  vulnerabilityReportIssueTags: z22.array(
11600
11603
  z22.object({
11601
- tag: z22.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
11604
+ tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
11602
11605
  })
11603
11606
  )
11604
11607
  })
@@ -13792,8 +13795,8 @@ function buildFixCommentBody({
13792
13795
  const title = `# ${MobbIconMarkdown} ${issueType} fix is ready`;
13793
13796
  const validFixParseRes = z24.object({
13794
13797
  patchAndQuestions: PatchAndQuestionsZ,
13795
- safeIssueLanguage: z24.nativeEnum(IssueLanguage_Enum),
13796
- severityText: z24.nativeEnum(Vulnerability_Severity_Enum),
13798
+ safeIssueLanguage: z24.enum(IssueLanguage_Enum),
13799
+ severityText: z24.enum(Vulnerability_Severity_Enum),
13797
13800
  safeIssueType: SafeIssueTypeStringZ
13798
13801
  }).safeParse(fix);
13799
13802
  if (!validFixParseRes.success) {
@@ -15473,7 +15476,7 @@ async function waitForAnaysisAndReviewPr({
15473
15476
  polling
15474
15477
  }) {
15475
15478
  const params = z27.object({
15476
- repo: z27.string().url(),
15479
+ repo: z27.url(),
15477
15480
  githubActionToken: z27.string()
15478
15481
  }).parse({ repo, githubActionToken });
15479
15482
  const scm = await createScmLib(
@@ -15492,7 +15495,7 @@ async function waitForAnaysisAndReviewPr({
15492
15495
  analysisId: analysisId2,
15493
15496
  gqlClient,
15494
15497
  scm,
15495
- scanner: z27.nativeEnum(SCANNERS).parse(scanner)
15498
+ scanner: z27.enum(SCANNERS).parse(scanner)
15496
15499
  });
15497
15500
  };
15498
15501
  if (polling) {
@@ -15826,10 +15829,10 @@ Example:
15826
15829
  throw new CliError(formattedErrorMessage);
15827
15830
  }
15828
15831
  var UrlZ = z28.string({
15829
- invalid_type_error: `is not a valid ${Object.values(ScmType).join("/ ")} URL`
15832
+ error: (issue) => issue.code === "invalid_type" ? `is not a valid ${Object.values(ScmType).join("/ ")} URL` : void 0
15830
15833
  });
15831
15834
  function validateOrganizationId(organizationId) {
15832
- const orgIdValidation = z28.string().uuid().nullish().safeParse(organizationId);
15835
+ const orgIdValidation = z28.guid().nullish().safeParse(organizationId);
15833
15836
  if (!orgIdValidation.success) {
15834
15837
  throw new CliError(`organizationId: ${organizationId} is not a valid UUID`);
15835
15838
  }
@@ -17976,7 +17979,7 @@ function createLogger(config2) {
17976
17979
 
17977
17980
  // src/features/claude_code/hook_logger.ts
17978
17981
  var DD_RUM_TOKEN = true ? "pubf59c0182545bfb4c299175119f1abf9b" : "";
17979
- var CLI_VERSION = true ? "1.4.42" : "unknown";
17982
+ var CLI_VERSION = true ? "1.4.44" : "unknown";
17980
17983
  var NAMESPACE = "mobbdev-claude-code-hook-logs";
17981
17984
  var claudeCodeVersion;
17982
17985
  function buildDdTags() {
@@ -19512,26 +19515,26 @@ var ScanAndFixVulnerabilitiesToolSchema = z29.object({
19512
19515
  path: z29.string()
19513
19516
  });
19514
19517
  var VulnerabilityReportIssueTagSchema = z29.object({
19515
- vulnerability_report_issue_tag_value: z29.nativeEnum(
19518
+ vulnerability_report_issue_tag_value: z29.enum(
19516
19519
  Vulnerability_Report_Issue_Tag_Enum
19517
19520
  )
19518
19521
  });
19519
19522
  var VulnerabilityReportIssueSchema = z29.object({
19520
19523
  category: z29.any().optional().nullable(),
19521
19524
  parsedIssueType: SafeIssueTypeStringZ.nullable().optional(),
19522
- parsedSeverity: z29.nativeEnum(Vulnerability_Severity_Enum).nullable().optional(),
19525
+ parsedSeverity: z29.enum(Vulnerability_Severity_Enum).nullable().optional(),
19523
19526
  vulnerabilityReportIssueTags: z29.array(VulnerabilityReportIssueTagSchema)
19524
19527
  });
19525
19528
  var SharedStateSchema = z29.object({
19526
19529
  __typename: z29.literal("fix_shared_state").optional(),
19527
- id: z29.any(),
19530
+ id: z29.any().optional(),
19528
19531
  // GraphQL uses `any` type for UUID
19529
19532
  downloadedBy: z29.array(z29.any().nullable()).optional().nullable()
19530
19533
  });
19531
19534
  var UnstructuredFixExtraContextSchema = z29.object({
19532
19535
  __typename: z29.literal("UnstructuredFixExtraContext").optional(),
19533
19536
  key: z29.string(),
19534
- value: z29.any()
19537
+ value: z29.any().optional()
19535
19538
  // GraphQL JSON type
19536
19539
  });
19537
19540
  var FixExtraContextResponseSchema = z29.object({
@@ -19545,7 +19548,7 @@ var FixQuestionSchema = z29.object({
19545
19548
  name: z29.string(),
19546
19549
  defaultValue: z29.string(),
19547
19550
  value: z29.string().nullable().optional(),
19548
- inputType: z29.nativeEnum(FixQuestionInputType),
19551
+ inputType: z29.enum(FixQuestionInputType),
19549
19552
  options: z29.array(z29.string()),
19550
19553
  index: z29.number(),
19551
19554
  // E-2015: analyzer-served question text. default('') so a query that omits it
@@ -19568,7 +19571,7 @@ var GetFixNoFixErrorSchema = z29.object({
19568
19571
  var PatchAndQuestionsSchema = z29.union([FixDataSchema, GetFixNoFixErrorSchema]);
19569
19572
  var McpFixSchema = z29.object({
19570
19573
  __typename: z29.literal("fix").optional(),
19571
- id: z29.any(),
19574
+ id: z29.any().optional(),
19572
19575
  // GraphQL uses `any` type for UUID
19573
19576
  confidence: z29.number(),
19574
19577
  safeIssueType: z29.string().nullable(),
@@ -19603,13 +19606,13 @@ var RepoSchema = z29.object({
19603
19606
  originalUrl: z29.string()
19604
19607
  });
19605
19608
  var ProjectSchema = z29.object({
19606
- id: z29.any(),
19609
+ id: z29.any().optional(),
19607
19610
  // GraphQL uses `any` type for UUID
19608
- organizationId: z29.any()
19611
+ organizationId: z29.any().optional()
19609
19612
  // GraphQL uses `any` type for UUID
19610
19613
  });
19611
19614
  var VulnerabilityReportSchema = z29.object({
19612
- scanDate: z29.any().nullable(),
19615
+ scanDate: z29.any().nullish(),
19613
19616
  // GraphQL uses `any` type for timestamp
19614
19617
  vendor: z29.string(),
19615
19618
  // GraphQL generates as string, not enum
@@ -19621,12 +19624,12 @@ var VulnerabilityReportSchema = z29.object({
19621
19624
  });
19622
19625
  var FixReportSummarySchema = z29.object({
19623
19626
  __typename: z29.literal("fixReport").optional(),
19624
- id: z29.any(),
19627
+ id: z29.any().optional(),
19625
19628
  // GraphQL uses `any` type for UUID
19626
- createdOn: z29.any(),
19629
+ createdOn: z29.any().optional(),
19627
19630
  // GraphQL uses `any` type for timestamp
19628
19631
  repo: RepoSchema.nullable(),
19629
- issueTypes: z29.any().nullable(),
19632
+ issueTypes: z29.any().nullish(),
19630
19633
  // GraphQL uses `any` type for JSON
19631
19634
  CRITICAL: FixAggregateSchema,
19632
19635
  HIGH: FixAggregateSchema,
@@ -19641,9 +19644,9 @@ var FixReportSummarySchema = z29.object({
19641
19644
  });
19642
19645
  var ExpiredReportSchema = z29.object({
19643
19646
  __typename: z29.literal("fixReport").optional(),
19644
- id: z29.any(),
19647
+ id: z29.any().optional(),
19645
19648
  // GraphQL uses `any` type for UUID
19646
- expirationOn: z29.any().nullable()
19649
+ expirationOn: z29.any().nullish()
19647
19650
  // GraphQL uses `any` type for timestamp
19648
19651
  });
19649
19652
  var GetLatestReportByRepoUrlResponseSchema = z29.object({
@@ -21492,9 +21495,10 @@ var BasePrompt = class {
21492
21495
  return this.argumentsValidationSchema.parse(argsToValidate);
21493
21496
  } catch (error) {
21494
21497
  if (error instanceof z30.ZodError) {
21495
- const errorDetails = error.errors.map((e) => {
21498
+ const errorDetails = error.issues.map((e) => {
21496
21499
  const fieldPath = e.path.length > 0 ? e.path.join(".") : "root";
21497
- const message = e.message === "Required" ? `Missing required argument '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
21500
+ const isMissing = e.code === "invalid_type" && e.message.endsWith("received undefined");
21501
+ const message = isMissing ? `Missing required argument '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
21498
21502
  return message;
21499
21503
  });
21500
21504
  const errorMessage3 = `Invalid arguments: ${errorDetails.join(", ")}`;
@@ -23242,9 +23246,10 @@ var BaseTool = class {
23242
23246
  return this.inputValidationSchema.parse(args);
23243
23247
  } catch (error) {
23244
23248
  if (error instanceof z36.ZodError) {
23245
- const errorDetails = error.errors.map((e) => {
23249
+ const errorDetails = error.issues.map((e) => {
23246
23250
  const fieldPath = e.path.length > 0 ? e.path.join(".") : "root";
23247
- const message = e.message === "Required" ? `Missing required parameter '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
23251
+ const isMissing = e.code === "invalid_type" && e.message.endsWith("received undefined");
23252
+ const message = isMissing ? `Missing required parameter '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
23248
23253
  return message;
23249
23254
  });
23250
23255
  const errorMessage3 = `Invalid arguments: ${errorDetails.join(", ")}`;