0sec-cli 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/0.js +64 -60
  2. package/README.md +121 -82
  3. package/chunks/{adapt-loop-TEJPXWFG.js → adapt-loop-L2PXCD4J.js} +6 -5
  4. package/chunks/{artifact-scraper-AJZ3LOQY.js → artifact-scraper-W3LGLXBM.js} +4 -3
  5. package/chunks/{assumption-mining-EATDC4BB.js → assumption-mining-7IJ6ZWZE.js} +22 -20
  6. package/chunks/{backend-connections-QE4NASAK.js → backend-connections-MYH4QRQG.js} +5 -4
  7. package/chunks/{chunk-RBOMXUYL.js → chunk-27SXCYWH.js} +1 -1
  8. package/chunks/{chunk-E42XEJTK.js → chunk-2J3STRJT.js} +337 -257
  9. package/chunks/chunk-36J5ZLFE.js +18729 -0
  10. package/chunks/chunk-3DF55BWV.js +49 -0
  11. package/chunks/{chunk-GHEBZKUS.js → chunk-3HMO42M2.js} +1426 -321
  12. package/chunks/{chunk-BIJPMYFA.js → chunk-3T5R7P4T.js} +6 -6
  13. package/chunks/{chunk-RD4FKFWR.js → chunk-5H2PXZ7Q.js} +1 -1
  14. package/chunks/chunk-5XOYTAOK.js +1546 -0
  15. package/chunks/{chunk-QEA2VHBD.js → chunk-6TA3CWND.js} +2656 -2960
  16. package/chunks/{chunk-H76JYUPE.js → chunk-76CLUI54.js} +3 -3
  17. package/chunks/{chunk-KCA35IL3.js → chunk-7PUJI64A.js} +11 -9
  18. package/chunks/{chunk-W6IYTSZH.js → chunk-7TIWL6E5.js} +8 -10
  19. package/chunks/chunk-ABKUI3QB.js +196 -0
  20. package/chunks/{chunk-YORL5S5V.js → chunk-ACYZMJHC.js} +1 -1
  21. package/chunks/{chunk-5FHFG5P2.js → chunk-AL32F74R.js} +1 -1
  22. package/chunks/{chunk-J6G73WYF.js → chunk-B5TIXHCO.js} +1 -1
  23. package/chunks/{chunk-G2EJ3R5I.js → chunk-BWUW6ZQR.js} +2052 -1075
  24. package/chunks/{chunk-3XLEDCFX.js → chunk-C6ZMPXN2.js} +5 -50
  25. package/chunks/{chunk-4TUR47H5.js → chunk-D4IBEO2K.js} +1 -1
  26. package/chunks/{chunk-EXTN4SQV.js → chunk-DHNYJ2ML.js} +1 -1
  27. package/chunks/{chunk-Y7KV7WV6.js → chunk-DJGJECBV.js} +93 -20
  28. package/chunks/{chunk-UHUW45S3.js → chunk-DMDWIW3E.js} +5 -5
  29. package/chunks/{chunk-V5I5GAQH.js → chunk-EEP6GBUO.js} +16037 -34417
  30. package/chunks/{chunk-EYBMTELO.js → chunk-EIONVEFN.js} +208 -29
  31. package/chunks/chunk-EQBC2ZWL.js +2481 -0
  32. package/chunks/{chunk-FKGFHLLS.js → chunk-FI2H6HV2.js} +1 -1
  33. package/chunks/{chunk-4YRXIVPZ.js → chunk-FI5YL4R2.js} +3 -3
  34. package/chunks/{chunk-DNV3ZMPX.js → chunk-FOLTHXRH.js} +1 -1
  35. package/chunks/{chunk-ZPFBQ3SD.js → chunk-GOUGG7IQ.js} +3 -3
  36. package/chunks/{chunk-O3ADFN2A.js → chunk-GXSECFUE.js} +1 -1
  37. package/chunks/{chunk-YYOQADBB.js → chunk-HDJSHLRM.js} +3 -2
  38. package/chunks/{chunk-A3EKBUEM.js → chunk-HFUOUT2B.js} +61232 -30665
  39. package/chunks/chunk-HJKJ4NQP.js +196 -0
  40. package/chunks/{chunk-RPTO5FY2.js → chunk-I4VIAQHM.js} +1 -1
  41. package/chunks/{chunk-A6AZZ6XX.js → chunk-ITEMDJAB.js} +3 -3
  42. package/chunks/chunk-ITHDAIRY.js +57 -0
  43. package/chunks/{chunk-TOFIGQ63.js → chunk-JCRQV4FE.js} +2 -2
  44. package/chunks/{chunk-SQCBHFWN.js → chunk-LWMEJYCP.js} +2 -2
  45. package/chunks/{chunk-52AWIBCT.js → chunk-MY44EZKD.js} +1 -1
  46. package/chunks/{chunk-SGILXLR3.js → chunk-NBLKIQCW.js} +226 -4
  47. package/chunks/chunk-NO543ZBU.js +90 -0
  48. package/chunks/{chunk-CIMN2AO6.js → chunk-OFPF26WL.js} +333 -3
  49. package/chunks/{chunk-YERUDEXT.js → chunk-PAE7ZAV6.js} +2780 -1255
  50. package/chunks/{chunk-V4BD7GSP.js → chunk-PMAKX6KP.js} +2 -2
  51. package/chunks/{chunk-62PGWN7Y.js → chunk-RBTJYREN.js} +8 -171
  52. package/chunks/{chunk-IK27KMVV.js → chunk-RFK5F45W.js} +1 -1
  53. package/chunks/{chunk-554D4AYM.js → chunk-S2WCYEK2.js} +4 -99
  54. package/chunks/{chunk-RZR2XXAK.js → chunk-S3B6HFSM.js} +144 -14
  55. package/chunks/{chunk-WUPN3D37.js → chunk-S4DFH2FJ.js} +26 -1
  56. package/chunks/{chunk-TZRHWP7R.js → chunk-SEWZ76MN.js} +77 -13
  57. package/chunks/{chunk-HRBOZBMC.js → chunk-TFKY6D7O.js} +1 -1
  58. package/chunks/{chunk-TOAAYJVN.js → chunk-WK6VUCKK.js} +3 -333
  59. package/chunks/{chunk-IXT64DV5.js → chunk-XPDJE537.js} +97 -1
  60. package/chunks/{chunk-RCHAFSWS.js → chunk-YXTV2FRE.js} +113 -22
  61. package/chunks/{chunk-TTDFBFNZ.js → chunk-YYFODVZG.js} +6 -10
  62. package/chunks/{chunk-3XLFB46W.js → chunk-ZWAWZU6C.js} +30 -13
  63. package/chunks/{chunk-5POT5OYF.js → chunk-ZZV56ACK.js} +11 -9
  64. package/chunks/{codex-models-FQPCWRPC.js → codex-models-KCUIVS3R.js} +9 -8
  65. package/chunks/{commands-I5L3VD2A.js → commands-MPPAADGY.js} +798 -608
  66. package/chunks/dashboard-MN7GZLLX.js +75 -0
  67. package/chunks/{db-P5EIKMLP.js → db-R2AQSESC.js} +5 -4
  68. package/chunks/{deep-review-I7RD5QSS.js → deep-review-Q6BJKEV4.js} +37 -38
  69. package/chunks/{disclose-PFBWESVJ.js → disclose-GGULOW27.js} +6 -5
  70. package/chunks/{dist-AJU25UXA.js → dist-6RNAVFAY.js} +376 -333
  71. package/chunks/{dist-VK2M4HNW.js → dist-DWN7U5OV.js} +5 -2
  72. package/chunks/{dist-M2X367VW.js → dist-JAZWL3SC.js} +3 -2
  73. package/chunks/{dist-3SWWY5FZ.js → dist-OLGNKDB2.js} +4 -3
  74. package/chunks/{dist-LNXGATR2.js → dist-WNAOCQGA.js} +5 -4
  75. package/chunks/eval-runner-WCTTIYN4.js +38 -0
  76. package/chunks/{exploit-agent-A4RTIJ4J.js → exploit-agent-M3KUMZJH.js} +1 -1
  77. package/chunks/{exploit-autoclimb-ABMMBC3M.js → exploit-autoclimb-QTTWC5WM.js} +1 -1
  78. package/chunks/{exploit-climb-BQ2SVU63.js → exploit-climb-E4KDELTN.js} +4 -3
  79. package/chunks/{fix-4YCLHFDT.js → fix-U5FFJD4F.js} +9 -8
  80. package/chunks/{harness-DHWULEIZ.js → harness-FMKIMEH5.js} +5 -4
  81. package/chunks/{http-conformance-U5F6GKYG.js → http-conformance-AXMUOE6C.js} +3 -2
  82. package/chunks/hunt-scan-RYPWRUQD.js +43 -0
  83. package/chunks/{kernel-primitive-SF4NALVR.js → kernel-primitive-CVG2E7MJ.js} +4 -3
  84. package/chunks/{kernel-vm-runner-WEBEZEIC.js → kernel-vm-runner-62KISULQ.js} +4 -3
  85. package/chunks/{local-engine-XUG7XRKM.js → local-engine-WP3I7K7G.js} +7 -6
  86. package/chunks/managed-operation-642WPTLC.js +59 -0
  87. package/chunks/{memsafety-scan-L2Z7E7TE.js → memsafety-scan-Q2MBZEGJ.js} +1 -2
  88. package/chunks/{native-loop-ZNAELJGB.js → native-loop-HC77R5NQ.js} +31 -16
  89. package/chunks/operator-services-E2NONBQS.js +79 -0
  90. package/chunks/orchestrate-Z3DW265M.js +62 -0
  91. package/chunks/{prepare-SODWQN6O.js → prepare-7DTS6RJT.js} +7 -6
  92. package/chunks/{remote-workflow-runtime-XNNGI2PG.js → remote-workflow-runtime-6CEVRZXS.js} +4 -3
  93. package/chunks/routing-ITJZBJIU.js +61 -0
  94. package/chunks/{runtime-MB4GEFBY.js → runtime-PZJ77QES.js} +9 -8
  95. package/chunks/{runtime-HFFRUOPL.js → runtime-W6JNDQRO.js} +4 -3
  96. package/chunks/{scan-stream-GXBJHCDF.js → scan-stream-6VOJTHTR.js} +6 -4
  97. package/chunks/{scope-M7L3CD6X.js → scope-FHXW6EX6.js} +4 -3
  98. package/chunks/service-plugins-CN6Q2NSN.js +63 -0
  99. package/chunks/{session-store-K7I4GLNH.js → session-store-DBBI544Y.js} +8 -5
  100. package/chunks/{variant-candidates-2KSP5EHH.js → variant-candidates-DPR6DJ3N.js} +9 -8
  101. package/chunks/{web-recon-prepass-RAXXTEWH.js → web-recon-prepass-HWDHDQMN.js} +7 -6
  102. package/chunks/{workflow-runtime-V26HIJO3.js → workflow-runtime-PLB32XC3.js} +50 -49
  103. package/dashboard/assets/{abnfDiagram-VCTEODGH-CGCueOp5.js → abnfDiagram-VCTEODGH-6e39CQKz.js} +1 -1
  104. package/dashboard/assets/{arc-BjZaQcCc.js → arc-ClYun86B.js} +1 -1
  105. package/dashboard/assets/architecture-7GRP2DOG-rM-lWo7E.js +1 -0
  106. package/dashboard/assets/architectureDiagram-5GKGNRK7-C9gEGZIU.js +36 -0
  107. package/dashboard/assets/{blockDiagram-I7D4REHJ-C-byT12_.js → blockDiagram-I7D4REHJ-Dgh2n5Lf.js} +2 -2
  108. package/dashboard/assets/{c4Diagram-7LVT6UL2-DoYjz-Uv.js → c4Diagram-7LVT6UL2-CsorW08z.js} +1 -1
  109. package/dashboard/assets/channel-BBlDqIBl.js +1 -0
  110. package/dashboard/assets/{chunk-4HAMMTFA-NBNp2zdt.js → chunk-4HAMMTFA-4_b_LGGQ.js} +1 -1
  111. package/dashboard/assets/{chunk-75Z2AOVW-BHmkuP0B.js → chunk-75Z2AOVW-qzNlKGCp.js} +1 -1
  112. package/dashboard/assets/chunk-DU6HZSFF-SAPICW28.js +127 -0
  113. package/dashboard/assets/{chunk-F27PBJKO-3wwNFUgZ.js → chunk-F27PBJKO-DlLotIQx.js} +1 -1
  114. package/dashboard/assets/{chunk-FOHPRMQF-DHwB1DNv.js → chunk-FOHPRMQF-COOliuUh.js} +14 -14
  115. package/dashboard/assets/{chunk-GMAD6QVW-Btg7huZW.js → chunk-GMAD6QVW-DNnr65Nb.js} +7 -7
  116. package/dashboard/assets/{chunk-GVQU2GXP-ihCURK5O.js → chunk-GVQU2GXP-DTwv0VfU.js} +1 -1
  117. package/dashboard/assets/{chunk-IMKFNOWR-FsXj7slg.js → chunk-IMKFNOWR-B1fk1q_W.js} +1 -1
  118. package/dashboard/assets/{chunk-L3NEJ4N5-DorFIxJY.js → chunk-L3NEJ4N5-ByVjFIox.js} +1 -1
  119. package/dashboard/assets/{chunk-OSK3NFVY-DKun_KfC.js → chunk-OSK3NFVY-DUDCzjbh.js} +1 -1
  120. package/dashboard/assets/{chunk-P2QGCYS3-XGgiU1Bz.js → chunk-P2QGCYS3-D_D5qEso.js} +1 -1
  121. package/dashboard/assets/{chunk-POPQ4Y6H-BTXEnGhJ.js → chunk-POPQ4Y6H-CetM-tVm.js} +1 -1
  122. package/dashboard/assets/{chunk-PWAF6VOD-DYZcGkTL.js → chunk-PWAF6VOD-BcJX4exl.js} +1 -1
  123. package/dashboard/assets/{chunk-SHT3W25Y-C4WQfwf8.js → chunk-SHT3W25Y-BWQql238.js} +1 -1
  124. package/dashboard/assets/{chunk-SVP7TREG-C4nCh0-1.js → chunk-SVP7TREG-BSLOD1JE.js} +1 -1
  125. package/dashboard/assets/{chunk-TICWLB2K-DSB-IiGc.js → chunk-TICWLB2K-DReOl-g_.js} +2 -2
  126. package/dashboard/assets/{chunk-XXDRQBXY-CS6fjUcj.js → chunk-XXDRQBXY-DSdSMeei.js} +1 -1
  127. package/dashboard/assets/classDiagram-ZZMXUADV-CRH2kB8G.js +1 -0
  128. package/dashboard/assets/classDiagram-v2-VYDZK3BY-CRH2kB8G.js +1 -0
  129. package/dashboard/assets/common-CRRsylCH.js +5 -0
  130. package/dashboard/assets/cose-bilkent-JH36ORCC-fg-DIBqt.js +1 -0
  131. package/dashboard/assets/cynefin-OW5HDTMX-XmrbEIFh.js +1 -0
  132. package/dashboard/assets/{cynefinDiagram-5FMLGOSQ-CgDOOY67.js → cynefinDiagram-5FMLGOSQ-CoQ7QEPl.js} +1 -1
  133. package/dashboard/assets/cytoscape.esm-BbBREfsg.js +321 -0
  134. package/dashboard/assets/dagre-D7JM2Yhv.js +1 -0
  135. package/dashboard/assets/dagre-GXQ25YYZ-qtQtsg6c.js +4 -0
  136. package/dashboard/assets/{diagram-S7CK7UJ4-CrKqRXZb.js → diagram-S7CK7UJ4-B_ts4_58.js} +2 -2
  137. package/dashboard/assets/{diagram-UQ7AKVKN-Cu6Es0-v.js → diagram-UQ7AKVKN-DwHbbxFy.js} +1 -1
  138. package/dashboard/assets/{diagram-VSXAHHWV-eK4d8FwS.js → diagram-VSXAHHWV-2Tg_RG89.js} +1 -1
  139. package/dashboard/assets/{diagram-VX7I27RA-bFxeFKOc.js → diagram-VX7I27RA-BFYp-YjF.js} +1 -1
  140. package/dashboard/assets/{diagram-Z3DM3KII-C0ClmnhC.js → diagram-Z3DM3KII-DrPiS4V0.js} +1 -1
  141. package/dashboard/assets/{dist-BZh8Kb3O.js → dist-cbVssBvx.js} +1 -1
  142. package/dashboard/assets/{ebnfDiagram-PWID7BFC-CUqxFPzf.js → ebnfDiagram-PWID7BFC-DCMOZtU2.js} +1 -1
  143. package/dashboard/assets/{erDiagram-RLTQ6QDP-CcYM7pLi.js → erDiagram-RLTQ6QDP-CW4rUJGU.js} +1 -1
  144. package/dashboard/assets/eventmodeling-NTZA5JFV-C2q-Aaav.js +1 -0
  145. package/dashboard/assets/flowDiagram-HODETNUW-3NOabgG3.js +1 -0
  146. package/dashboard/assets/{ganttDiagram-EL5Y4UJY-UmZfbMyD.js → ganttDiagram-EL5Y4UJY-C1AqcwIF.js} +1 -1
  147. package/dashboard/assets/gitGraph-4MIJSDKK-DYR76gtd.js +1 -0
  148. package/dashboard/assets/{gitGraphDiagram-WWUBYQGX-CvzeCxVy.js → gitGraphDiagram-WWUBYQGX-B7hL98CE.js} +1 -1
  149. package/dashboard/assets/info-A6RAGUB7-TXB43LiH.js +1 -0
  150. package/dashboard/assets/{infoDiagram-27XIBGKW-DjkpNtVW.js → infoDiagram-27XIBGKW-Dk5dXmh_.js} +1 -1
  151. package/dashboard/assets/{ishikawaDiagram-5VMMS53U-8FhjJaWT.js → ishikawaDiagram-5VMMS53U-BQDuNMka.js} +2 -2
  152. package/dashboard/assets/{journeyDiagram-3NMN7TZE-DyNJ755f.js → journeyDiagram-3NMN7TZE-DkustddD.js} +1 -1
  153. package/dashboard/assets/{kanban-definition-UXKFOSKX-_jCmtaY1.js → kanban-definition-UXKFOSKX-BW7Ann84.js} +1 -1
  154. package/dashboard/assets/{katex-BdBmVSus.js → katex-nLxf_RlZ.js} +2 -2
  155. package/dashboard/assets/{line-Bf0nxyWf.js → line-DVxcLeru.js} +1 -1
  156. package/dashboard/assets/linear-DOM_l9bO.js +1 -0
  157. package/dashboard/assets/mermaid-parser.core-CKg9fDvJ.js +7 -0
  158. package/dashboard/assets/{mermaid.core-B4yCwiN-.js → mermaid.core-DruW_5-Y.js} +9 -9
  159. package/dashboard/assets/{mindmap-definition-YA3MSWOX-D5DjWyXj.js → mindmap-definition-YA3MSWOX-Di5W5VB3.js} +1 -1
  160. package/dashboard/assets/operations-B-t_k60U.js +194 -0
  161. package/dashboard/assets/operations-D2ZKZFOF.css +1 -0
  162. package/dashboard/assets/packet-AYTQ26CC-BABwqtNu.js +1 -0
  163. package/dashboard/assets/{pegDiagram-XKGWAZYB-Bf6a1vaf.js → pegDiagram-XKGWAZYB-Cx4ABT6q.js} +1 -1
  164. package/dashboard/assets/pie-WAS4IAKB-CNdXyrze.js +1 -0
  165. package/dashboard/assets/{pieDiagram-E7YTZNPT-D0L1qbch.js → pieDiagram-E7YTZNPT-BilfQbIs.js} +1 -1
  166. package/dashboard/assets/{quadrantDiagram-AXDQQJYC-CbFyy2Pe.js → quadrantDiagram-AXDQQJYC-BVmMQHE5.js} +1 -1
  167. package/dashboard/assets/radar-RG4KPBEZ-fKNmDeoK.js +1 -0
  168. package/dashboard/assets/railroad-74A4TZTK-DhcvDCOh.js +1 -0
  169. package/dashboard/assets/railroad-abnf-HS5TGJTU-BTRVAmf0.js +1 -0
  170. package/dashboard/assets/railroad-ebnf-LZEXJU2U-CwS8fgC_.js +1 -0
  171. package/dashboard/assets/railroad-peg-WCYAUIDC-CXuhXlNp.js +1 -0
  172. package/dashboard/assets/{railroadDiagram-O6MQD6OU-t7Gp9g2R.js → railroadDiagram-O6MQD6OU-DnBru-jf.js} +1 -1
  173. package/dashboard/assets/{requirementDiagram-BXWQKSXE-LYmqeBXi.js → requirementDiagram-BXWQKSXE-FwdvUZ7_.js} +1 -1
  174. package/dashboard/assets/{sankeyDiagram-P5KCCOFB-DnpfA_94.js → sankeyDiagram-P5KCCOFB-BQvDORai.js} +1 -1
  175. package/dashboard/assets/{sequenceDiagram-WJ2MYXX4-C8s3pTUE.js → sequenceDiagram-WJ2MYXX4-FWYQLzcY.js} +2 -2
  176. package/dashboard/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  177. package/dashboard/assets/src-BwkPhlcp.js +1 -0
  178. package/dashboard/assets/{stateDiagram-D77RDMKH-BMzm6fK1.js → stateDiagram-D77RDMKH-CjPBd_Sa.js} +1 -1
  179. package/dashboard/assets/stateDiagram-v2-MP3YSRHH-DHmenujm.js +1 -0
  180. package/dashboard/assets/swimlanes-42K2YHIH-SQLNsa4J.js +1 -0
  181. package/dashboard/assets/swimlanesDiagram-VR7AAH4N-D1bH4ETZ.js +8 -0
  182. package/dashboard/assets/{timeline-definition-24CTP7MA-BfLJMVeG.js → timeline-definition-24CTP7MA-BxCf20k1.js} +1 -1
  183. package/dashboard/assets/treeView-Q6P3EWNA-BGLYAyGp.js +1 -0
  184. package/dashboard/assets/treemap-WGGIJYW6-BlzAwncU.js +1 -0
  185. package/dashboard/assets/{vennDiagram-4TSXK5OY-BYJRHEaL.js → vennDiagram-4TSXK5OY-D76RIZLz.js} +1 -1
  186. package/dashboard/assets/wardley-WFR3VGLG-Ba_reiVw.js +1 -0
  187. package/dashboard/assets/{wardleyDiagram-VM6X3IG4-DgPN4nSe.js → wardleyDiagram-VM6X3IG4-Cux4coOD.js} +1 -1
  188. package/dashboard/assets/{xychartDiagram-S5SC5T6Z-BhkAMAOT.js → xychartDiagram-S5SC5T6Z-Ch5mvnlH.js} +1 -1
  189. package/dashboard/index.html +2 -2
  190. package/package.json +2 -5
  191. package/chunks/chunk-AV5BF4V7.js +0 -4304
  192. package/chunks/chunk-CSPF47S3.js +0 -6027
  193. package/chunks/chunk-ESM447R6.js +0 -77
  194. package/chunks/chunk-FEOPHBMY.js +0 -56
  195. package/chunks/chunk-GNR3APR6.js +0 -295
  196. package/chunks/chunk-IIBNQTOK.js +0 -1532
  197. package/chunks/chunk-JSTLXPJS.js +0 -284
  198. package/chunks/chunk-NJLKFC66.js +0 -4790
  199. package/chunks/chunk-O7Q2G2KW.js +0 -117
  200. package/chunks/chunk-VIT5ALXF.js +0 -4054
  201. package/chunks/chunk-YJU7QACE.js +0 -279
  202. package/chunks/dashboard-B2AEGCFM.js +0 -76
  203. package/chunks/eval-runner-XVRX3R2Y.js +0 -31
  204. package/chunks/hunt-scan-DXV5H6YN.js +0 -40
  205. package/chunks/managed-operation-SQFMBWHG.js +0 -60
  206. package/chunks/orchestrate-YHFJXGID.js +0 -63
  207. package/chunks/run-5T4Z3Q2D.js +0 -28242
  208. package/chunks/service-plugins-BGS6QKSZ.js +0 -64
  209. package/dashboard/assets/architecture-7GRP2DOG-hcbO-9zX.js +0 -1
  210. package/dashboard/assets/architectureDiagram-5GKGNRK7-DReOXTSq.js +0 -36
  211. package/dashboard/assets/channel-CUURBnpZ.js +0 -1
  212. package/dashboard/assets/chunk-DU6HZSFF-DgfLNaL2.js +0 -127
  213. package/dashboard/assets/classDiagram-ZZMXUADV-CD1Buc26.js +0 -1
  214. package/dashboard/assets/classDiagram-v2-VYDZK3BY-CD1Buc26.js +0 -1
  215. package/dashboard/assets/common-BMdQBwfR.js +0 -5
  216. package/dashboard/assets/cose-bilkent-JH36ORCC-CUjQHTML.js +0 -1
  217. package/dashboard/assets/cynefin-OW5HDTMX-BC7zCtFq.js +0 -1
  218. package/dashboard/assets/cytoscape.esm-CGd-uY3x.js +0 -321
  219. package/dashboard/assets/dagre-GXQ25YYZ-Dqc8FS9x.js +0 -4
  220. package/dashboard/assets/dagre-PrKaheQc.js +0 -1
  221. package/dashboard/assets/eventmodeling-NTZA5JFV-D8ZNnPkV.js +0 -1
  222. package/dashboard/assets/flowDiagram-HODETNUW-pDb1AYm8.js +0 -1
  223. package/dashboard/assets/gitGraph-4MIJSDKK-mvNUo0ZA.js +0 -1
  224. package/dashboard/assets/info-A6RAGUB7-DChKqZMi.js +0 -1
  225. package/dashboard/assets/linear-Bl6JKbf4.js +0 -1
  226. package/dashboard/assets/mermaid-parser.core-Cc6sgCzs.js +0 -7
  227. package/dashboard/assets/operations-B7JAWOi6.js +0 -130
  228. package/dashboard/assets/operations-QjKT0Hwi.css +0 -1
  229. package/dashboard/assets/packet-AYTQ26CC-bQXLDhQC.js +0 -1
  230. package/dashboard/assets/pie-WAS4IAKB-DfzoABIi.js +0 -1
  231. package/dashboard/assets/radar-RG4KPBEZ-CZ2pyeUT.js +0 -1
  232. package/dashboard/assets/railroad-74A4TZTK-CP4Jazfd.js +0 -1
  233. package/dashboard/assets/railroad-abnf-HS5TGJTU-3MvEiHwD.js +0 -1
  234. package/dashboard/assets/railroad-ebnf-LZEXJU2U-BWto6cXE.js +0 -1
  235. package/dashboard/assets/railroad-peg-WCYAUIDC-DasEjbyf.js +0 -1
  236. package/dashboard/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
  237. package/dashboard/assets/src-CaNUT1AQ.js +0 -1
  238. package/dashboard/assets/stateDiagram-v2-MP3YSRHH-B3REMjpY.js +0 -1
  239. package/dashboard/assets/swimlanes-42K2YHIH-uJE05Tt_.js +0 -1
  240. package/dashboard/assets/swimlanesDiagram-VR7AAH4N-CIaVMZEy.js +0 -8
  241. package/dashboard/assets/treeView-Q6P3EWNA-ZOE2enu2.js +0 -1
  242. package/dashboard/assets/treemap-WGGIJYW6-yIZoPBF5.js +0 -1
  243. package/dashboard/assets/wardley-WFR3VGLG-D5V-jLbB.js +0 -1
@@ -0,0 +1,1546 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __0CreateRequire } from "node:module";
3
+ const require = __0CreateRequire(import.meta.url);
4
+ import {
5
+ $ZodLazy,
6
+ $brand,
7
+ $input,
8
+ $output,
9
+ INVALID,
10
+ NEVER,
11
+ TimePrecision,
12
+ ZodAny,
13
+ ZodArray,
14
+ ZodBase64,
15
+ ZodBase64URL,
16
+ ZodBigInt,
17
+ ZodBigIntFormat,
18
+ ZodBoolean,
19
+ ZodCIDRv4,
20
+ ZodCIDRv6,
21
+ ZodCUID,
22
+ ZodCUID2,
23
+ ZodCatch,
24
+ ZodCodec,
25
+ ZodCompileAsyncError,
26
+ ZodCompileUnsupportedError,
27
+ ZodCreditCard,
28
+ ZodCustom,
29
+ ZodCustomStringFormat,
30
+ ZodDate,
31
+ ZodDefault,
32
+ ZodDiscriminatedUnion,
33
+ ZodE164,
34
+ ZodEmail,
35
+ ZodEmoji,
36
+ ZodEnum,
37
+ ZodError,
38
+ ZodExactOptional,
39
+ ZodFile,
40
+ ZodFunction,
41
+ ZodGUID,
42
+ ZodIBAN,
43
+ ZodIPv4,
44
+ ZodIPv6,
45
+ ZodISODate,
46
+ ZodISODateTime,
47
+ ZodISODuration,
48
+ ZodISOTime,
49
+ ZodInstanceOf,
50
+ ZodIntersection,
51
+ ZodJWT,
52
+ ZodKSUID,
53
+ ZodLazy,
54
+ ZodLiteral,
55
+ ZodMAC,
56
+ ZodMap,
57
+ ZodNaN,
58
+ ZodNanoID,
59
+ ZodNever,
60
+ ZodNonOptional,
61
+ ZodNull,
62
+ ZodNullable,
63
+ ZodNumber,
64
+ ZodNumberFormat,
65
+ ZodObject,
66
+ ZodOptional,
67
+ ZodPipe,
68
+ ZodPrefault,
69
+ ZodPreprocess,
70
+ ZodPromise,
71
+ ZodReadonly,
72
+ ZodRealError,
73
+ ZodRecord,
74
+ ZodSet,
75
+ ZodString,
76
+ ZodStringFormat,
77
+ ZodSuccess,
78
+ ZodSymbol,
79
+ ZodTemplateLiteral,
80
+ ZodTransform,
81
+ ZodTuple,
82
+ ZodType,
83
+ ZodULID,
84
+ ZodURL,
85
+ ZodUUID,
86
+ ZodUndefined,
87
+ ZodUnion,
88
+ ZodUnknown,
89
+ ZodVoid,
90
+ ZodXID,
91
+ ZodXor,
92
+ _ZodString,
93
+ _catch,
94
+ _coercedBigint,
95
+ _coercedBoolean,
96
+ _coercedDate,
97
+ _coercedNumber,
98
+ _coercedString,
99
+ _default,
100
+ _endsWith,
101
+ _enum,
102
+ _function,
103
+ _gt,
104
+ _gte,
105
+ _includes,
106
+ _instanceof,
107
+ _isoDate,
108
+ _isoDateTime,
109
+ _isoDuration,
110
+ _isoTime,
111
+ _length,
112
+ _lowercase,
113
+ _lt,
114
+ _lte,
115
+ _maxLength,
116
+ _maxSize,
117
+ _mime,
118
+ _minLength,
119
+ _minSize,
120
+ _multipleOf,
121
+ _negative,
122
+ _nonnegative,
123
+ _nonpositive,
124
+ _normalize,
125
+ _null,
126
+ _overwrite,
127
+ _positive,
128
+ _properties,
129
+ _property,
130
+ _regex,
131
+ _size,
132
+ _slugify,
133
+ _startsWith,
134
+ _toLowerCase,
135
+ _toUpperCase,
136
+ _trim,
137
+ _undefined,
138
+ _uppercase,
139
+ _void,
140
+ any,
141
+ array,
142
+ assignProp,
143
+ base64,
144
+ base64url,
145
+ bigint,
146
+ boolean,
147
+ check,
148
+ checks_exports,
149
+ cidrv4,
150
+ cidrv6,
151
+ clone,
152
+ codec,
153
+ compile,
154
+ config,
155
+ core_exports,
156
+ creditCard,
157
+ cuid,
158
+ cuid2,
159
+ currencyCode,
160
+ custom,
161
+ date,
162
+ decode,
163
+ decodeAsync,
164
+ describe,
165
+ discriminatedUnion,
166
+ e164,
167
+ email,
168
+ emoji,
169
+ encode,
170
+ encodeAsync,
171
+ exactOptional,
172
+ file,
173
+ flattenError,
174
+ float32,
175
+ float64,
176
+ formatError,
177
+ getDiscriminatedOption,
178
+ globalRegistry,
179
+ guid,
180
+ hash,
181
+ hex,
182
+ hostname,
183
+ httpUrl,
184
+ iban,
185
+ int,
186
+ int32,
187
+ int64,
188
+ intersection,
189
+ invertCodec,
190
+ ipv4,
191
+ ipv6,
192
+ isPlainObject,
193
+ json,
194
+ jwt,
195
+ keyof,
196
+ ksuid,
197
+ lazy,
198
+ literal,
199
+ locales_exports,
200
+ looseObject,
201
+ looseRecord,
202
+ mac,
203
+ map,
204
+ memoizer,
205
+ mergeDefs,
206
+ meta,
207
+ nan,
208
+ nanoid,
209
+ nativeEnum,
210
+ never,
211
+ nonoptional,
212
+ nullable,
213
+ nullish,
214
+ number,
215
+ object,
216
+ optional,
217
+ parse2 as parse,
218
+ parseAsync2 as parseAsync,
219
+ partialRecord,
220
+ pipe,
221
+ prefault,
222
+ preprocess,
223
+ prettifyError,
224
+ promise,
225
+ readonly,
226
+ record,
227
+ refine,
228
+ regexes_exports,
229
+ registry,
230
+ safeDecode,
231
+ safeDecodeAsync,
232
+ safeEncode,
233
+ safeEncodeAsync,
234
+ safeParse2 as safeParse,
235
+ safeParseAsync2 as safeParseAsync,
236
+ schemas_exports,
237
+ set,
238
+ strictObject,
239
+ string,
240
+ stringFormat,
241
+ stringbool,
242
+ success,
243
+ superRefine,
244
+ symbol,
245
+ templateLiteral,
246
+ toJSONSchema,
247
+ toZod,
248
+ transform,
249
+ treeifyError,
250
+ tuple,
251
+ uint32,
252
+ uint64,
253
+ ulid,
254
+ union,
255
+ unknown,
256
+ url,
257
+ util_exports,
258
+ uuid,
259
+ uuidv4,
260
+ uuidv6,
261
+ uuidv7,
262
+ validate,
263
+ validateAsync,
264
+ withParser,
265
+ xid,
266
+ xor
267
+ } from "./chunk-36J5ZLFE.js";
268
+ import {
269
+ __export
270
+ } from "./chunk-VCSFCHAJ.js";
271
+
272
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/external.js
273
+ var external_exports = {};
274
+ __export(external_exports, {
275
+ $brand: () => $brand,
276
+ $input: () => $input,
277
+ $output: () => $output,
278
+ INVALID: () => INVALID,
279
+ NEVER: () => NEVER,
280
+ TimePrecision: () => TimePrecision,
281
+ ZodAny: () => ZodAny,
282
+ ZodArray: () => ZodArray,
283
+ ZodBase64: () => ZodBase64,
284
+ ZodBase64URL: () => ZodBase64URL,
285
+ ZodBigInt: () => ZodBigInt,
286
+ ZodBigIntFormat: () => ZodBigIntFormat,
287
+ ZodBoolean: () => ZodBoolean,
288
+ ZodCIDRv4: () => ZodCIDRv4,
289
+ ZodCIDRv6: () => ZodCIDRv6,
290
+ ZodCUID: () => ZodCUID,
291
+ ZodCUID2: () => ZodCUID2,
292
+ ZodCatch: () => ZodCatch,
293
+ ZodCodec: () => ZodCodec,
294
+ ZodCompileAsyncError: () => ZodCompileAsyncError,
295
+ ZodCompileUnsupportedError: () => ZodCompileUnsupportedError,
296
+ ZodCreditCard: () => ZodCreditCard,
297
+ ZodCustom: () => ZodCustom,
298
+ ZodCustomStringFormat: () => ZodCustomStringFormat,
299
+ ZodDate: () => ZodDate,
300
+ ZodDefault: () => ZodDefault,
301
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
302
+ ZodE164: () => ZodE164,
303
+ ZodEmail: () => ZodEmail,
304
+ ZodEmoji: () => ZodEmoji,
305
+ ZodEnum: () => ZodEnum,
306
+ ZodError: () => ZodError,
307
+ ZodExactOptional: () => ZodExactOptional,
308
+ ZodFile: () => ZodFile,
309
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
310
+ ZodFunction: () => ZodFunction,
311
+ ZodGUID: () => ZodGUID,
312
+ ZodIBAN: () => ZodIBAN,
313
+ ZodIPv4: () => ZodIPv4,
314
+ ZodIPv6: () => ZodIPv6,
315
+ ZodISODate: () => ZodISODate,
316
+ ZodISODateTime: () => ZodISODateTime,
317
+ ZodISODuration: () => ZodISODuration,
318
+ ZodISOTime: () => ZodISOTime,
319
+ ZodInstanceOf: () => ZodInstanceOf,
320
+ ZodIntersection: () => ZodIntersection,
321
+ ZodIssueCode: () => ZodIssueCode,
322
+ ZodJWT: () => ZodJWT,
323
+ ZodKSUID: () => ZodKSUID,
324
+ ZodLazy: () => ZodLazy,
325
+ ZodLiteral: () => ZodLiteral,
326
+ ZodMAC: () => ZodMAC,
327
+ ZodMap: () => ZodMap,
328
+ ZodNaN: () => ZodNaN,
329
+ ZodNanoID: () => ZodNanoID,
330
+ ZodNever: () => ZodNever,
331
+ ZodNonOptional: () => ZodNonOptional,
332
+ ZodNull: () => ZodNull,
333
+ ZodNullable: () => ZodNullable,
334
+ ZodNumber: () => ZodNumber,
335
+ ZodNumberFormat: () => ZodNumberFormat,
336
+ ZodObject: () => ZodObject,
337
+ ZodOptional: () => ZodOptional,
338
+ ZodPipe: () => ZodPipe,
339
+ ZodPrefault: () => ZodPrefault,
340
+ ZodPreprocess: () => ZodPreprocess,
341
+ ZodPromise: () => ZodPromise,
342
+ ZodReadonly: () => ZodReadonly,
343
+ ZodRealError: () => ZodRealError,
344
+ ZodRecord: () => ZodRecord,
345
+ ZodSet: () => ZodSet,
346
+ ZodString: () => ZodString,
347
+ ZodStringFormat: () => ZodStringFormat,
348
+ ZodSuccess: () => ZodSuccess,
349
+ ZodSymbol: () => ZodSymbol,
350
+ ZodTemplateLiteral: () => ZodTemplateLiteral,
351
+ ZodTransform: () => ZodTransform,
352
+ ZodTuple: () => ZodTuple,
353
+ ZodType: () => ZodType,
354
+ ZodULID: () => ZodULID,
355
+ ZodURL: () => ZodURL,
356
+ ZodUUID: () => ZodUUID,
357
+ ZodUndefined: () => ZodUndefined,
358
+ ZodUnion: () => ZodUnion,
359
+ ZodUnknown: () => ZodUnknown,
360
+ ZodVoid: () => ZodVoid,
361
+ ZodXID: () => ZodXID,
362
+ ZodXor: () => ZodXor,
363
+ _ZodString: () => _ZodString,
364
+ _default: () => _default,
365
+ _function: () => _function,
366
+ any: () => any,
367
+ array: () => array,
368
+ base64: () => base64,
369
+ base64url: () => base64url,
370
+ bigint: () => bigint,
371
+ boolean: () => boolean,
372
+ catch: () => _catch,
373
+ check: () => check,
374
+ cidrv4: () => cidrv4,
375
+ cidrv6: () => cidrv6,
376
+ clone: () => clone,
377
+ codec: () => codec,
378
+ coerce: () => coerce_exports,
379
+ compile: () => compile,
380
+ config: () => config,
381
+ core: () => core_exports,
382
+ creditCard: () => creditCard,
383
+ cuid: () => cuid,
384
+ cuid2: () => cuid2,
385
+ currencyCode: () => currencyCode,
386
+ custom: () => custom,
387
+ date: () => date,
388
+ decode: () => decode,
389
+ decodeAsync: () => decodeAsync,
390
+ deepPartial: () => deepPartial,
391
+ describe: () => describe,
392
+ discriminatedUnion: () => discriminatedUnion,
393
+ e164: () => e164,
394
+ email: () => email,
395
+ emoji: () => emoji,
396
+ encode: () => encode,
397
+ encodeAsync: () => encodeAsync,
398
+ endsWith: () => _endsWith,
399
+ enum: () => _enum,
400
+ exactOptional: () => exactOptional,
401
+ file: () => file,
402
+ flattenError: () => flattenError,
403
+ float32: () => float32,
404
+ float64: () => float64,
405
+ formatError: () => formatError,
406
+ fromJSONSchema: () => fromJSONSchema,
407
+ function: () => _function,
408
+ getDiscriminatedOption: () => getDiscriminatedOption,
409
+ getErrorMap: () => getErrorMap,
410
+ globalRegistry: () => globalRegistry,
411
+ gt: () => _gt,
412
+ gte: () => _gte,
413
+ guid: () => guid,
414
+ hash: () => hash,
415
+ hex: () => hex,
416
+ hostname: () => hostname,
417
+ httpUrl: () => httpUrl,
418
+ iban: () => iban,
419
+ includes: () => _includes,
420
+ input: () => input,
421
+ instanceof: () => _instanceof,
422
+ int: () => int,
423
+ int32: () => int32,
424
+ int64: () => int64,
425
+ intersection: () => intersection,
426
+ invertCodec: () => invertCodec,
427
+ ipv4: () => ipv4,
428
+ ipv6: () => ipv6,
429
+ iso: () => iso_exports,
430
+ json: () => json,
431
+ jwt: () => jwt,
432
+ keyof: () => keyof,
433
+ ksuid: () => ksuid,
434
+ lazy: () => lazy,
435
+ length: () => _length,
436
+ literal: () => literal,
437
+ locales: () => locales_exports,
438
+ looseObject: () => looseObject,
439
+ looseRecord: () => looseRecord,
440
+ lowercase: () => _lowercase,
441
+ lt: () => _lt,
442
+ lte: () => _lte,
443
+ mac: () => mac,
444
+ map: () => map,
445
+ maxLength: () => _maxLength,
446
+ maxSize: () => _maxSize,
447
+ memoizer: () => memoizer,
448
+ meta: () => meta,
449
+ mime: () => _mime,
450
+ minLength: () => _minLength,
451
+ minSize: () => _minSize,
452
+ multipleOf: () => _multipleOf,
453
+ nan: () => nan,
454
+ nanoid: () => nanoid,
455
+ nativeEnum: () => nativeEnum,
456
+ negative: () => _negative,
457
+ never: () => never,
458
+ nonnegative: () => _nonnegative,
459
+ nonoptional: () => nonoptional,
460
+ nonpositive: () => _nonpositive,
461
+ normalize: () => _normalize,
462
+ null: () => _null,
463
+ nullable: () => nullable,
464
+ nullish: () => nullish,
465
+ number: () => number,
466
+ object: () => object,
467
+ optional: () => optional,
468
+ output: () => output,
469
+ overwrite: () => _overwrite,
470
+ parse: () => parse,
471
+ parseAsync: () => parseAsync,
472
+ partialRecord: () => partialRecord,
473
+ pipe: () => pipe,
474
+ positive: () => _positive,
475
+ prefault: () => prefault,
476
+ preprocess: () => preprocess,
477
+ prettifyError: () => prettifyError,
478
+ promise: () => promise,
479
+ properties: () => _properties,
480
+ property: () => _property,
481
+ readonly: () => readonly,
482
+ record: () => record,
483
+ refine: () => refine,
484
+ regex: () => _regex,
485
+ regexes: () => regexes_exports,
486
+ registry: () => registry,
487
+ safeDecode: () => safeDecode,
488
+ safeDecodeAsync: () => safeDecodeAsync,
489
+ safeEncode: () => safeEncode,
490
+ safeEncodeAsync: () => safeEncodeAsync,
491
+ safeParse: () => safeParse,
492
+ safeParseAsync: () => safeParseAsync,
493
+ set: () => set,
494
+ setErrorMap: () => setErrorMap,
495
+ size: () => _size,
496
+ slugify: () => _slugify,
497
+ startsWith: () => _startsWith,
498
+ strictObject: () => strictObject,
499
+ string: () => string,
500
+ stringFormat: () => stringFormat,
501
+ stringbool: () => stringbool,
502
+ success: () => success,
503
+ superRefine: () => superRefine,
504
+ symbol: () => symbol,
505
+ templateLiteral: () => templateLiteral,
506
+ toJSONSchema: () => toJSONSchema,
507
+ toLowerCase: () => _toLowerCase,
508
+ toUpperCase: () => _toUpperCase,
509
+ toZod: () => toZod,
510
+ transform: () => transform,
511
+ treeifyError: () => treeifyError,
512
+ trim: () => _trim,
513
+ tuple: () => tuple,
514
+ uint32: () => uint32,
515
+ uint64: () => uint64,
516
+ ulid: () => ulid,
517
+ undefined: () => _undefined,
518
+ union: () => union,
519
+ unknown: () => unknown,
520
+ uppercase: () => _uppercase,
521
+ url: () => url,
522
+ util: () => util_exports,
523
+ uuid: () => uuid,
524
+ uuidv4: () => uuidv4,
525
+ uuidv6: () => uuidv6,
526
+ uuidv7: () => uuidv7,
527
+ validate: () => validate,
528
+ validateAsync: () => validateAsync,
529
+ void: () => _void,
530
+ withParser: () => withParser,
531
+ xid: () => xid,
532
+ xor: () => xor
533
+ });
534
+
535
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/compat.js
536
+ var ZodIssueCode = {
537
+ invalid_type: "invalid_type",
538
+ too_big: "too_big",
539
+ too_small: "too_small",
540
+ invalid_format: "invalid_format",
541
+ not_multiple_of: "not_multiple_of",
542
+ unrecognized_keys: "unrecognized_keys",
543
+ invalid_union: "invalid_union",
544
+ invalid_key: "invalid_key",
545
+ invalid_element: "invalid_element",
546
+ invalid_value: "invalid_value",
547
+ custom: "custom"
548
+ };
549
+ function setErrorMap(map2) {
550
+ config({
551
+ customError: map2
552
+ });
553
+ }
554
+ function getErrorMap() {
555
+ return config().customError;
556
+ }
557
+ var ZodFirstPartyTypeKind;
558
+ /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
559
+ })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
560
+
561
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/iso.js
562
+ var iso_exports = {};
563
+ __export(iso_exports, {
564
+ ZodISODate: () => ZodISODate,
565
+ ZodISODateTime: () => ZodISODateTime,
566
+ ZodISODuration: () => ZodISODuration,
567
+ ZodISOTime: () => ZodISOTime,
568
+ date: () => date2,
569
+ datetime: () => datetime,
570
+ duration: () => duration,
571
+ time: () => time
572
+ });
573
+ function datetime(params) {
574
+ return _isoDateTime(ZodISODateTime, params);
575
+ }
576
+ function date2(params) {
577
+ return _isoDate(ZodISODate, params);
578
+ }
579
+ function time(params) {
580
+ return _isoTime(ZodISOTime, params);
581
+ }
582
+ function duration(params) {
583
+ return _isoDuration(ZodISODuration, params);
584
+ }
585
+
586
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/from-json-schema.js
587
+ var z = {
588
+ ...schemas_exports,
589
+ ...checks_exports,
590
+ iso: iso_exports
591
+ };
592
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
593
+ // Schema identification
594
+ "$schema",
595
+ "$ref",
596
+ "$defs",
597
+ "definitions",
598
+ // Core schema keywords
599
+ "$id",
600
+ "id",
601
+ "$comment",
602
+ "$anchor",
603
+ "$vocabulary",
604
+ "$dynamicRef",
605
+ "$dynamicAnchor",
606
+ // Type
607
+ "type",
608
+ "enum",
609
+ "const",
610
+ // Composition
611
+ "anyOf",
612
+ "oneOf",
613
+ "allOf",
614
+ "not",
615
+ // Object
616
+ "properties",
617
+ "required",
618
+ "additionalProperties",
619
+ "patternProperties",
620
+ "propertyNames",
621
+ "minProperties",
622
+ "maxProperties",
623
+ // Array
624
+ "items",
625
+ "prefixItems",
626
+ "additionalItems",
627
+ "minItems",
628
+ "maxItems",
629
+ "uniqueItems",
630
+ "contains",
631
+ "minContains",
632
+ "maxContains",
633
+ // String
634
+ "minLength",
635
+ "maxLength",
636
+ "pattern",
637
+ "format",
638
+ // Number
639
+ "minimum",
640
+ "maximum",
641
+ "exclusiveMinimum",
642
+ "exclusiveMaximum",
643
+ "multipleOf",
644
+ // Already handled metadata
645
+ "description",
646
+ "default",
647
+ // Content
648
+ "contentEncoding",
649
+ "contentMediaType",
650
+ "contentSchema",
651
+ // Unsupported (error-throwing)
652
+ "unevaluatedItems",
653
+ "unevaluatedProperties",
654
+ "if",
655
+ "then",
656
+ "else",
657
+ "dependentSchemas",
658
+ "dependentRequired",
659
+ // OpenAPI
660
+ "nullable",
661
+ "readOnly"
662
+ ]);
663
+ function detectVersion(schema, defaultTarget) {
664
+ const $schema = schema.$schema;
665
+ if ($schema === "https://json-schema.org/draft/2020-12/schema") {
666
+ return "draft-2020-12";
667
+ }
668
+ if ($schema === "http://json-schema.org/draft-07/schema#") {
669
+ return "draft-7";
670
+ }
671
+ if ($schema === "http://json-schema.org/draft-04/schema#") {
672
+ return "draft-4";
673
+ }
674
+ return defaultTarget ?? "draft-2020-12";
675
+ }
676
+ function applyMinItems(items, minItems) {
677
+ return items.map((item, index) => index < minItems ? item : item.optional());
678
+ }
679
+ function decodeJSONPointerSegment(segment) {
680
+ return segment.replace(/~1/g, "/").replace(/~0/g, "~");
681
+ }
682
+ function resolveRef(ref, ctx) {
683
+ if (!ref.startsWith("#")) {
684
+ throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
685
+ }
686
+ const path = ref.slice(1).split("/").filter(Boolean);
687
+ if (path.length === 0) {
688
+ return ctx.rootSchema;
689
+ }
690
+ const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
691
+ if (path[0] === defsKey) {
692
+ const key = path[1] === void 0 ? void 0 : decodeJSONPointerSegment(path[1]);
693
+ if (!key || !ctx.defs[key]) {
694
+ throw new Error(`Reference not found: ${ref}`);
695
+ }
696
+ return ctx.defs[key];
697
+ }
698
+ throw new Error(`Reference not found: ${ref}`);
699
+ }
700
+ function checkObjectGuards(objectSchema, guards) {
701
+ const guard = z.transform((value) => value).check((payload) => {
702
+ const value = payload.value;
703
+ if (typeof value !== "object" || value === null || Array.isArray(value))
704
+ return;
705
+ const keys = Object.getOwnPropertyNames(value);
706
+ if (guards.minProperties !== void 0 && keys.length < guards.minProperties) {
707
+ payload.issues.push({
708
+ origin: "object",
709
+ code: "too_small",
710
+ minimum: guards.minProperties,
711
+ inclusive: true,
712
+ message: `Too small: expected object to have >=${guards.minProperties} properties`,
713
+ input: value,
714
+ inst: objectSchema,
715
+ continue: true
716
+ });
717
+ }
718
+ if (guards.maxProperties !== void 0 && keys.length > guards.maxProperties) {
719
+ payload.issues.push({
720
+ origin: "object",
721
+ code: "too_big",
722
+ maximum: guards.maxProperties,
723
+ inclusive: true,
724
+ message: `Too big: expected object to have <=${guards.maxProperties} properties`,
725
+ input: value,
726
+ inst: objectSchema,
727
+ continue: true
728
+ });
729
+ }
730
+ if (guards.keySchema) {
731
+ for (const key of keys) {
732
+ const result = guards.keySchema.safeParse(key);
733
+ if (result.success)
734
+ continue;
735
+ payload.issues.push({
736
+ code: "invalid_key",
737
+ origin: "record",
738
+ issues: result.error.issues,
739
+ input: key,
740
+ path: [key],
741
+ continue: true
742
+ });
743
+ }
744
+ }
745
+ });
746
+ return guard.pipe(objectSchema);
747
+ }
748
+ function canonicalKey(value, seen) {
749
+ if (value === null)
750
+ return "z";
751
+ const type = typeof value;
752
+ if (type !== "object") {
753
+ if (type === "number" && Number.isNaN(value))
754
+ return null;
755
+ const raw = String(value);
756
+ return `${type[0]}${raw.length}:${raw}`;
757
+ }
758
+ if (seen.has(value))
759
+ return null;
760
+ seen.add(value);
761
+ try {
762
+ if (Array.isArray(value)) {
763
+ const parts2 = [];
764
+ for (const item of value) {
765
+ const key = canonicalKey(item, seen);
766
+ if (key === null)
767
+ return null;
768
+ parts2.push(key);
769
+ }
770
+ return `a${parts2.length}:[${parts2.join(",")}]`;
771
+ }
772
+ const keys = Object.keys(value).sort();
773
+ const parts = [];
774
+ for (const k of keys) {
775
+ const key = canonicalKey(value[k], seen);
776
+ if (key === null)
777
+ return null;
778
+ parts.push(`${k.length}:${k}=${key}`);
779
+ }
780
+ return `o${parts.length}:{${parts.join(",")}}`;
781
+ } finally {
782
+ seen.delete(value);
783
+ }
784
+ }
785
+ var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
786
+ "items",
787
+ "prefixItems",
788
+ "additionalItems",
789
+ "additionalProperties",
790
+ "contains",
791
+ "propertyNames",
792
+ "not",
793
+ "if",
794
+ "then",
795
+ "else",
796
+ "allOf",
797
+ "anyOf",
798
+ "oneOf",
799
+ "unevaluatedItems",
800
+ "unevaluatedProperties",
801
+ "contentSchema"
802
+ ]);
803
+ var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
804
+ "properties",
805
+ "patternProperties",
806
+ "dependentSchemas",
807
+ "dependencies",
808
+ "$defs",
809
+ "definitions"
810
+ ]);
811
+ function containsRef(value) {
812
+ if (typeof value !== "object" || value === null)
813
+ return false;
814
+ if (Array.isArray(value))
815
+ return value.some(containsRef);
816
+ if (typeof value.$ref === "string")
817
+ return true;
818
+ return Object.entries(value).some(([key, sub]) => {
819
+ if (SCHEMA_KEYWORDS.has(key))
820
+ return containsRef(sub);
821
+ if (!SCHEMA_MAP_KEYWORDS.has(key) || typeof sub !== "object" || sub === null)
822
+ return false;
823
+ return Object.values(sub).some(containsRef);
824
+ });
825
+ }
826
+ function plural(n) {
827
+ return n === 1 ? "element" : "elements";
828
+ }
829
+ function checkArrayGuards(arraySchema, guards) {
830
+ const guard = z.transform((value) => value).check((payload) => {
831
+ const items = payload.value;
832
+ if (!Array.isArray(items))
833
+ return;
834
+ if (guards.uniqueItems === true) {
835
+ const firstSeen = /* @__PURE__ */ new Map();
836
+ for (let i = 0; i < items.length; i++) {
837
+ const key = canonicalKey(items[i], /* @__PURE__ */ new Set());
838
+ if (key === null)
839
+ continue;
840
+ const first = firstSeen.get(key);
841
+ if (first === void 0) {
842
+ firstSeen.set(key, i);
843
+ continue;
844
+ }
845
+ payload.issues.push({
846
+ code: "custom",
847
+ message: `Array items must be unique: element at index ${i} duplicates the one at index ${first}`,
848
+ input: items,
849
+ path: [i],
850
+ continue: true
851
+ });
852
+ }
853
+ }
854
+ if (guards.containsSchema) {
855
+ const minContains = guards.minContains ?? 1;
856
+ const ceiling = guards.maxContains !== void 0 ? guards.maxContains + 1 : Number.POSITIVE_INFINITY;
857
+ let matches = 0;
858
+ for (const item of items) {
859
+ if (guards.containsSchema.safeParse(item).success && ++matches >= ceiling)
860
+ break;
861
+ }
862
+ if (matches < minContains) {
863
+ payload.issues.push({
864
+ code: "custom",
865
+ message: `Array must contain at least ${minContains} matching ${plural(minContains)}; found ${matches}`,
866
+ input: items,
867
+ continue: true
868
+ });
869
+ }
870
+ if (guards.maxContains !== void 0 && matches > guards.maxContains) {
871
+ payload.issues.push({
872
+ code: "custom",
873
+ message: `Array must contain at most ${guards.maxContains} matching ${plural(guards.maxContains)}`,
874
+ input: items,
875
+ continue: true
876
+ });
877
+ }
878
+ }
879
+ });
880
+ return guard.pipe(arraySchema);
881
+ }
882
+ function getTupleRest(restSchema, ctx) {
883
+ if (restSchema === false) {
884
+ return void 0;
885
+ }
886
+ if (restSchema === void 0 || restSchema === true) {
887
+ return z.any();
888
+ }
889
+ return convertSchema(restSchema, ctx);
890
+ }
891
+ var fullTime = /^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;
892
+ function convertBaseSchema(schema, ctx) {
893
+ if (schema.not !== void 0) {
894
+ if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
895
+ return z.never();
896
+ }
897
+ throw new Error("not is not supported in Zod (except { not: {} } for never)");
898
+ }
899
+ if (schema.unevaluatedItems !== void 0) {
900
+ throw new Error("unevaluatedItems is not supported");
901
+ }
902
+ if (schema.unevaluatedProperties !== void 0) {
903
+ throw new Error("unevaluatedProperties is not supported");
904
+ }
905
+ if (schema.if !== void 0 || schema.then !== void 0 || schema.else !== void 0) {
906
+ throw new Error("Conditional schemas (if/then/else) are not supported");
907
+ }
908
+ if (schema.dependentSchemas !== void 0 || schema.dependentRequired !== void 0) {
909
+ throw new Error("dependentSchemas and dependentRequired are not supported");
910
+ }
911
+ if (schema.$ref) {
912
+ const refPath = schema.$ref;
913
+ if (ctx.refs.has(refPath)) {
914
+ return ctx.refs.get(refPath);
915
+ }
916
+ if (ctx.processing.has(refPath)) {
917
+ return z.lazy(() => {
918
+ if (!ctx.refs.has(refPath)) {
919
+ throw new Error(`Circular reference not resolved: ${refPath}`);
920
+ }
921
+ return ctx.refs.get(refPath);
922
+ });
923
+ }
924
+ ctx.processing.add(refPath);
925
+ const resolved = resolveRef(refPath, ctx);
926
+ const zodSchema2 = convertSchema(resolved, ctx);
927
+ ctx.refs.set(refPath, zodSchema2);
928
+ ctx.processing.delete(refPath);
929
+ return zodSchema2;
930
+ }
931
+ if (schema.enum !== void 0) {
932
+ const enumValues = schema.enum;
933
+ if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
934
+ return z.null();
935
+ }
936
+ if (enumValues.length === 0) {
937
+ return z.never();
938
+ }
939
+ if (enumValues.length === 1) {
940
+ return z.literal(enumValues[0]);
941
+ }
942
+ if (enumValues.every((v) => typeof v === "string")) {
943
+ return z.enum(enumValues);
944
+ }
945
+ const literalSchemas = enumValues.map((v) => z.literal(v));
946
+ if (literalSchemas.length < 2) {
947
+ return literalSchemas[0];
948
+ }
949
+ return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
950
+ }
951
+ if (schema.const !== void 0) {
952
+ return z.literal(schema.const);
953
+ }
954
+ const type = schema.type;
955
+ if (Array.isArray(type)) {
956
+ const typeSchemas = type.map((t) => {
957
+ const typeSchema = { ...schema, type: t };
958
+ return convertBaseSchema(typeSchema, ctx);
959
+ });
960
+ if (typeSchemas.length === 0) {
961
+ return z.never();
962
+ }
963
+ if (typeSchemas.length === 1) {
964
+ return typeSchemas[0];
965
+ }
966
+ return z.union(typeSchemas);
967
+ }
968
+ if (!type) {
969
+ return z.any();
970
+ }
971
+ let zodSchema;
972
+ switch (type) {
973
+ case "string": {
974
+ let stringSchema = z.string();
975
+ if (schema.format) {
976
+ const format = schema.format;
977
+ if (format === "email") {
978
+ stringSchema = stringSchema.check(z.email());
979
+ } else if (format === "uri" || format === "uri-reference") {
980
+ stringSchema = stringSchema.check(z.url());
981
+ } else if (format === "uuid" || format === "guid") {
982
+ stringSchema = stringSchema.check(z.uuid());
983
+ } else if (format === "date-time") {
984
+ stringSchema = stringSchema.check(z.iso.datetime({ offset: true }));
985
+ } else if (format === "date") {
986
+ stringSchema = stringSchema.check(z.iso.date());
987
+ } else if (format === "time") {
988
+ stringSchema = stringSchema.check(z.regex(fullTime));
989
+ } else if (format === "duration") {
990
+ stringSchema = stringSchema.check(z.iso.duration());
991
+ } else if (format === "hostname") {
992
+ stringSchema = stringSchema.check(z.hostname());
993
+ } else if (format === "ipv4") {
994
+ stringSchema = stringSchema.check(z.ipv4());
995
+ } else if (format === "ipv6") {
996
+ stringSchema = stringSchema.check(z.ipv6());
997
+ } else if (format === "mac") {
998
+ stringSchema = stringSchema.check(z.mac());
999
+ } else if (format === "cidr") {
1000
+ stringSchema = stringSchema.check(z.cidrv4());
1001
+ } else if (format === "cidr-v6") {
1002
+ stringSchema = stringSchema.check(z.cidrv6());
1003
+ } else if (format === "base64") {
1004
+ stringSchema = stringSchema.check(z.base64());
1005
+ } else if (format === "base64url") {
1006
+ stringSchema = stringSchema.check(z.base64url());
1007
+ } else if (format === "e164") {
1008
+ stringSchema = stringSchema.check(z.e164());
1009
+ } else if (format === "credit_card") {
1010
+ stringSchema = stringSchema.check(z.creditCard());
1011
+ } else if (format === "iban") {
1012
+ stringSchema = stringSchema.check(z.iban());
1013
+ } else if (format === "jwt") {
1014
+ stringSchema = stringSchema.check(z.jwt());
1015
+ } else if (format === "emoji") {
1016
+ stringSchema = stringSchema.check(z.emoji());
1017
+ } else if (format === "nanoid") {
1018
+ stringSchema = stringSchema.check(z.nanoid());
1019
+ } else if (format === "cuid") {
1020
+ stringSchema = stringSchema.check(z.cuid());
1021
+ } else if (format === "cuid2") {
1022
+ stringSchema = stringSchema.check(z.cuid2());
1023
+ } else if (format === "ulid") {
1024
+ stringSchema = stringSchema.check(z.ulid());
1025
+ } else if (format === "xid") {
1026
+ stringSchema = stringSchema.check(z.xid());
1027
+ } else if (format === "ksuid") {
1028
+ stringSchema = stringSchema.check(z.ksuid());
1029
+ }
1030
+ }
1031
+ if (typeof schema.minLength === "number") {
1032
+ stringSchema = stringSchema.min(schema.minLength);
1033
+ }
1034
+ if (typeof schema.maxLength === "number") {
1035
+ stringSchema = stringSchema.max(schema.maxLength);
1036
+ }
1037
+ if (schema.pattern) {
1038
+ stringSchema = stringSchema.regex(new RegExp(schema.pattern));
1039
+ }
1040
+ zodSchema = stringSchema;
1041
+ break;
1042
+ }
1043
+ case "number":
1044
+ case "integer": {
1045
+ let numberSchema = type === "integer" ? z.number().int() : z.number();
1046
+ if (typeof schema.minimum === "number" && schema.exclusiveMinimum !== true) {
1047
+ numberSchema = numberSchema.min(schema.minimum);
1048
+ }
1049
+ if (typeof schema.maximum === "number" && schema.exclusiveMaximum !== true) {
1050
+ numberSchema = numberSchema.max(schema.maximum);
1051
+ }
1052
+ if (typeof schema.exclusiveMinimum === "number") {
1053
+ numberSchema = numberSchema.gt(schema.exclusiveMinimum);
1054
+ } else if (schema.exclusiveMinimum === true && typeof schema.minimum === "number") {
1055
+ numberSchema = numberSchema.gt(schema.minimum);
1056
+ }
1057
+ if (typeof schema.exclusiveMaximum === "number") {
1058
+ numberSchema = numberSchema.lt(schema.exclusiveMaximum);
1059
+ } else if (schema.exclusiveMaximum === true && typeof schema.maximum === "number") {
1060
+ numberSchema = numberSchema.lt(schema.maximum);
1061
+ }
1062
+ if (typeof schema.multipleOf === "number") {
1063
+ numberSchema = numberSchema.multipleOf(schema.multipleOf);
1064
+ }
1065
+ zodSchema = numberSchema;
1066
+ break;
1067
+ }
1068
+ case "boolean": {
1069
+ zodSchema = z.boolean();
1070
+ break;
1071
+ }
1072
+ case "null": {
1073
+ zodSchema = z.null();
1074
+ break;
1075
+ }
1076
+ case "object": {
1077
+ const shape = {};
1078
+ const properties = schema.properties || {};
1079
+ const requiredSet = new Set(schema.required || []);
1080
+ const additionalSchema = typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : void 0;
1081
+ for (const [key, propSchema] of Object.entries(properties)) {
1082
+ const propZodSchema = convertSchema(propSchema, ctx);
1083
+ assignProp(shape, key, requiredSet.has(key) ? propZodSchema : propZodSchema.optional());
1084
+ }
1085
+ if (schema.patternProperties) {
1086
+ const patternProps = schema.patternProperties;
1087
+ const patternKeys = Object.keys(patternProps);
1088
+ const looseRecords = [];
1089
+ for (const pattern of patternKeys) {
1090
+ const patternValue = convertSchema(patternProps[pattern], ctx);
1091
+ const keySchema = z.string().regex(new RegExp(pattern));
1092
+ looseRecords.push(z.looseRecord(keySchema, patternValue));
1093
+ }
1094
+ const schemasToIntersect = [];
1095
+ if (Object.keys(shape).length > 0) {
1096
+ schemasToIntersect.push(z.object(shape).passthrough());
1097
+ }
1098
+ schemasToIntersect.push(...looseRecords);
1099
+ if (schemasToIntersect.length === 0) {
1100
+ zodSchema = z.object({}).passthrough();
1101
+ } else if (schemasToIntersect.length === 1) {
1102
+ zodSchema = schemasToIntersect[0];
1103
+ } else {
1104
+ let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]);
1105
+ for (let i = 2; i < schemasToIntersect.length; i++) {
1106
+ result = z.intersection(result, schemasToIntersect[i]);
1107
+ }
1108
+ zodSchema = result;
1109
+ }
1110
+ if (schema.additionalProperties === false) {
1111
+ const propertyKeys = Object.keys(shape);
1112
+ const patterns = patternKeys.map((p) => new RegExp(p));
1113
+ const basePatternSchema = zodSchema;
1114
+ zodSchema = zodSchema.check((payload) => {
1115
+ if (!isPlainObject(payload.value))
1116
+ return;
1117
+ const unrecognized = [];
1118
+ for (const key of Object.keys(payload.value)) {
1119
+ if (propertyKeys.includes(key))
1120
+ continue;
1121
+ if (patterns.some((regex) => regex.test(key)))
1122
+ continue;
1123
+ unrecognized.push(key);
1124
+ }
1125
+ if (unrecognized.length) {
1126
+ payload.issues.push({
1127
+ code: "unrecognized_keys",
1128
+ keys: unrecognized,
1129
+ input: payload.value,
1130
+ inst: basePatternSchema
1131
+ });
1132
+ }
1133
+ });
1134
+ }
1135
+ } else {
1136
+ const objectSchema = z.object(shape);
1137
+ if (schema.additionalProperties === false) {
1138
+ zodSchema = objectSchema.strict();
1139
+ } else if (additionalSchema) {
1140
+ zodSchema = objectSchema.catchall(additionalSchema);
1141
+ } else {
1142
+ zodSchema = objectSchema.passthrough();
1143
+ }
1144
+ }
1145
+ const hasKeyGuard = schema.propertyNames !== void 0 && schema.propertyNames !== true;
1146
+ const minProperties = typeof schema.minProperties === "number" ? schema.minProperties : void 0;
1147
+ const maxProperties = typeof schema.maxProperties === "number" ? schema.maxProperties : void 0;
1148
+ if (hasKeyGuard || minProperties !== void 0 || maxProperties !== void 0) {
1149
+ let keySchema;
1150
+ if (hasKeyGuard) {
1151
+ const keyJSONSchema = typeof schema.propertyNames === "object" && schema.propertyNames.type === void 0 ? { type: "string", ...schema.propertyNames } : schema.propertyNames;
1152
+ keySchema = convertSchema(keyJSONSchema, ctx);
1153
+ }
1154
+ zodSchema = checkObjectGuards(zodSchema, { keySchema, minProperties, maxProperties });
1155
+ }
1156
+ break;
1157
+ }
1158
+ case "array": {
1159
+ const prefixItems = schema.prefixItems;
1160
+ const items = schema.items;
1161
+ if (prefixItems && Array.isArray(prefixItems)) {
1162
+ const minItems = typeof schema.minItems === "number" ? schema.minItems : 0;
1163
+ const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
1164
+ const positionalItems = applyMinItems(tupleItems, minItems);
1165
+ const rest = !Array.isArray(items) ? getTupleRest(items, ctx) : void 0;
1166
+ const tupleSchema = z.tuple(positionalItems);
1167
+ zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema;
1168
+ if (typeof schema.minItems === "number") {
1169
+ zodSchema = zodSchema.check(z.minLength(schema.minItems));
1170
+ }
1171
+ if (typeof schema.maxItems === "number") {
1172
+ zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
1173
+ }
1174
+ } else if (Array.isArray(items)) {
1175
+ const minItems = typeof schema.minItems === "number" ? schema.minItems : 0;
1176
+ const tupleItems = items.map((item) => convertSchema(item, ctx));
1177
+ const positionalItems = applyMinItems(tupleItems, minItems);
1178
+ const rest = getTupleRest(schema.additionalItems, ctx);
1179
+ const tupleSchema = z.tuple(positionalItems);
1180
+ zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema;
1181
+ if (typeof schema.minItems === "number") {
1182
+ zodSchema = zodSchema.check(z.minLength(schema.minItems));
1183
+ }
1184
+ if (typeof schema.maxItems === "number") {
1185
+ zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
1186
+ }
1187
+ } else if (items !== void 0) {
1188
+ const element = convertSchema(items, ctx);
1189
+ let arraySchema = z.array(element);
1190
+ if (typeof schema.minItems === "number") {
1191
+ arraySchema = arraySchema.min(schema.minItems);
1192
+ }
1193
+ if (typeof schema.maxItems === "number") {
1194
+ arraySchema = arraySchema.max(schema.maxItems);
1195
+ }
1196
+ zodSchema = arraySchema;
1197
+ } else {
1198
+ zodSchema = z.array(z.any());
1199
+ }
1200
+ if (schema.uniqueItems === true || schema.contains !== void 0) {
1201
+ zodSchema = checkArrayGuards(zodSchema, {
1202
+ uniqueItems: schema.uniqueItems === true,
1203
+ containsSchema: schema.contains !== void 0 ? convertSchema(schema.contains, ctx) : void 0,
1204
+ minContains: typeof schema.minContains === "number" ? schema.minContains : void 0,
1205
+ maxContains: typeof schema.maxContains === "number" ? schema.maxContains : void 0
1206
+ });
1207
+ }
1208
+ break;
1209
+ }
1210
+ default:
1211
+ throw new Error(`Unsupported type: ${type}`);
1212
+ }
1213
+ return zodSchema;
1214
+ }
1215
+ function convertSchema(schema, ctx) {
1216
+ if (typeof schema === "boolean") {
1217
+ return schema ? z.any() : z.never();
1218
+ }
1219
+ let baseSchema = convertBaseSchema(schema, ctx);
1220
+ const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
1221
+ if (schema.anyOf && Array.isArray(schema.anyOf)) {
1222
+ const options = schema.anyOf.map((s) => convertSchema(s, ctx));
1223
+ const anyOfUnion = z.union(options);
1224
+ baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
1225
+ }
1226
+ if (schema.oneOf && Array.isArray(schema.oneOf)) {
1227
+ const options = schema.oneOf.map((s) => convertSchema(s, ctx));
1228
+ const oneOfUnion = z.xor(options);
1229
+ baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
1230
+ }
1231
+ if (schema.allOf && Array.isArray(schema.allOf)) {
1232
+ if (schema.allOf.length === 0) {
1233
+ baseSchema = hasExplicitType ? baseSchema : z.any();
1234
+ } else {
1235
+ let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
1236
+ const startIdx = hasExplicitType ? 0 : 1;
1237
+ for (let i = startIdx; i < schema.allOf.length; i++) {
1238
+ result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
1239
+ }
1240
+ baseSchema = result;
1241
+ }
1242
+ }
1243
+ if (schema.nullable === true && ctx.version === "openapi-3.0") {
1244
+ baseSchema = z.nullable(baseSchema);
1245
+ }
1246
+ if (schema.readOnly === true) {
1247
+ baseSchema = z.readonly(baseSchema);
1248
+ }
1249
+ if (schema.default !== void 0) {
1250
+ baseSchema = baseSchema.default(schema.default);
1251
+ }
1252
+ const extraMeta = {};
1253
+ const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
1254
+ for (const key of coreMetadataKeys) {
1255
+ if (key in schema) {
1256
+ extraMeta[key] = schema[key];
1257
+ }
1258
+ }
1259
+ const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
1260
+ for (const key of contentMetadataKeys) {
1261
+ if (key in schema) {
1262
+ extraMeta[key] = schema[key];
1263
+ }
1264
+ }
1265
+ if (schema.type === "object" && schema.$ref === void 0) {
1266
+ if (schema.propertyNames !== void 0 && !containsRef(schema.propertyNames)) {
1267
+ extraMeta.propertyNames = schema.propertyNames;
1268
+ }
1269
+ for (const key of ["minProperties", "maxProperties"]) {
1270
+ if (schema[key] !== void 0)
1271
+ extraMeta[key] = schema[key];
1272
+ }
1273
+ }
1274
+ if (schema.type === "array" && schema.$ref === void 0) {
1275
+ if (schema.contains !== void 0 && !containsRef(schema.contains)) {
1276
+ extraMeta.contains = schema.contains;
1277
+ }
1278
+ for (const key of ["uniqueItems", "minContains", "maxContains"]) {
1279
+ if (schema[key] !== void 0)
1280
+ extraMeta[key] = schema[key];
1281
+ }
1282
+ }
1283
+ for (const key of Object.keys(schema)) {
1284
+ if (!RECOGNIZED_KEYS.has(key)) {
1285
+ assignProp(extraMeta, key, schema[key]);
1286
+ }
1287
+ }
1288
+ if (Object.keys(extraMeta).length > 0) {
1289
+ ctx.registry.add(baseSchema, extraMeta);
1290
+ }
1291
+ if (schema.description) {
1292
+ baseSchema = baseSchema.describe(schema.description);
1293
+ }
1294
+ return baseSchema;
1295
+ }
1296
+ function fromJSONSchema(schema, params) {
1297
+ if (typeof schema === "boolean") {
1298
+ return schema ? z.any() : z.never();
1299
+ }
1300
+ let normalized;
1301
+ try {
1302
+ normalized = JSON.parse(JSON.stringify(schema));
1303
+ } catch {
1304
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
1305
+ }
1306
+ const version = detectVersion(normalized, params?.defaultTarget);
1307
+ const defs = normalized.$defs || normalized.definitions || {};
1308
+ const ctx = {
1309
+ version,
1310
+ defs,
1311
+ refs: /* @__PURE__ */ new Map(),
1312
+ processing: /* @__PURE__ */ new Set(),
1313
+ rootSchema: normalized,
1314
+ registry: params?.registry ?? globalRegistry
1315
+ };
1316
+ return convertSchema(normalized, ctx);
1317
+ }
1318
+
1319
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/visit.js
1320
+ var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
1321
+ function visit(schema, fnOrHandlers) {
1322
+ const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node, rewritten) => {
1323
+ const h = fnOrHandlers[node._zod.def.type];
1324
+ return h ? h(node, rewritten) : node;
1325
+ };
1326
+ const cache = /* @__PURE__ */ new Map();
1327
+ function run(s) {
1328
+ const cached = cache.get(s);
1329
+ if (cached === RESOLVING) {
1330
+ return new $ZodLazy({
1331
+ type: "lazy",
1332
+ getter: () => cache.get(s)
1333
+ });
1334
+ }
1335
+ if (cached !== void 0)
1336
+ return cached;
1337
+ cache.set(s, RESOLVING);
1338
+ const inner = mapInner(s);
1339
+ const mapped = fn(inner, inner !== s);
1340
+ cache.set(s, mapped);
1341
+ return mapped;
1342
+ }
1343
+ function mapInner(s) {
1344
+ const def = s._zod.def;
1345
+ const kind = def.type;
1346
+ switch (kind) {
1347
+ case "object": {
1348
+ const oldShape = def.shape;
1349
+ const keys = Object.keys(oldShape);
1350
+ let changed = false;
1351
+ const newShape = {};
1352
+ for (const k of keys) {
1353
+ const mapped = run(oldShape[k]);
1354
+ if (mapped !== oldShape[k])
1355
+ changed = true;
1356
+ newShape[k] = mapped;
1357
+ }
1358
+ let newCatchall = def.catchall;
1359
+ if (def.catchall) {
1360
+ newCatchall = run(def.catchall);
1361
+ if (newCatchall !== def.catchall)
1362
+ changed = true;
1363
+ }
1364
+ return changed ? clone(s, { ...def, shape: newShape, catchall: newCatchall }) : s;
1365
+ }
1366
+ case "array": {
1367
+ const mapped = run(def.element);
1368
+ return mapped === def.element ? s : clone(s, { ...def, element: mapped });
1369
+ }
1370
+ case "tuple": {
1371
+ const oldItems = def.items;
1372
+ let changed = false;
1373
+ const newItems = [];
1374
+ for (const item of oldItems) {
1375
+ const mapped = run(item);
1376
+ if (mapped !== item)
1377
+ changed = true;
1378
+ newItems.push(mapped);
1379
+ }
1380
+ let newRest = def.rest;
1381
+ if (def.rest) {
1382
+ newRest = run(def.rest);
1383
+ if (newRest !== def.rest)
1384
+ changed = true;
1385
+ }
1386
+ return changed ? clone(s, { ...def, items: newItems, rest: newRest }) : s;
1387
+ }
1388
+ case "record":
1389
+ case "map": {
1390
+ const newKey = run(def.keyType);
1391
+ const newVal = run(def.valueType);
1392
+ return newKey === def.keyType && newVal === def.valueType ? s : clone(s, { ...def, keyType: newKey, valueType: newVal });
1393
+ }
1394
+ case "set": {
1395
+ const newVal = run(def.valueType);
1396
+ return newVal === def.valueType ? s : clone(s, { ...def, valueType: newVal });
1397
+ }
1398
+ case "union": {
1399
+ const oldOptions = def.options;
1400
+ let changed = false;
1401
+ const newOptions = [];
1402
+ for (const opt of oldOptions) {
1403
+ const mapped = run(opt);
1404
+ if (mapped !== opt)
1405
+ changed = true;
1406
+ newOptions.push(mapped);
1407
+ }
1408
+ return changed ? clone(s, { ...def, options: newOptions }) : s;
1409
+ }
1410
+ case "intersection": {
1411
+ const newLeft = run(def.left);
1412
+ const newRight = run(def.right);
1413
+ return newLeft === def.left && newRight === def.right ? s : clone(s, { ...def, left: newLeft, right: newRight });
1414
+ }
1415
+ case "optional":
1416
+ case "nullable":
1417
+ case "default":
1418
+ case "prefault":
1419
+ case "catch":
1420
+ case "readonly":
1421
+ case "nonoptional":
1422
+ case "promise":
1423
+ case "success": {
1424
+ const newInner = run(def.innerType);
1425
+ return newInner === def.innerType ? s : clone(s, { ...def, innerType: newInner });
1426
+ }
1427
+ case "pipe": {
1428
+ const newIn = run(def.in);
1429
+ const newOut = run(def.out);
1430
+ return newIn === def.in && newOut === def.out ? s : clone(s, { ...def, in: newIn, out: newOut });
1431
+ }
1432
+ case "function": {
1433
+ const newInput = run(def.input);
1434
+ const newOutput = run(def.output);
1435
+ return newInput === def.input && newOutput === def.output ? s : clone(s, { ...def, input: newInput, output: newOutput });
1436
+ }
1437
+ case "lazy": {
1438
+ const original = def.getter;
1439
+ const { _cachedInner, ...rest } = def;
1440
+ return clone(s, { ...rest, getter: () => run(original()) });
1441
+ }
1442
+ // A leaf by choice: `parts` are regex fragments, not data positions.
1443
+ case "template_literal":
1444
+ // Leaves.
1445
+ case "string":
1446
+ case "number":
1447
+ case "int":
1448
+ case "boolean":
1449
+ case "bigint":
1450
+ case "symbol":
1451
+ case "undefined":
1452
+ case "null":
1453
+ case "void":
1454
+ case "never":
1455
+ case "any":
1456
+ case "unknown":
1457
+ case "date":
1458
+ case "nan":
1459
+ case "enum":
1460
+ case "literal":
1461
+ case "file":
1462
+ case "transform":
1463
+ case "custom":
1464
+ return s;
1465
+ default: {
1466
+ kind;
1467
+ return s;
1468
+ }
1469
+ }
1470
+ }
1471
+ return run(schema);
1472
+ }
1473
+
1474
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/deep-partial.js
1475
+ function deepPartial(schema) {
1476
+ return visit(schema, {
1477
+ object: (s) => s.partial(),
1478
+ // Every partialed option now admits `undefined`, which the constructor rejects as a duplicate.
1479
+ union: (s) => {
1480
+ const def = s._zod.def;
1481
+ return def.discriminator === void 0 ? s : union(def.options);
1482
+ }
1483
+ });
1484
+ }
1485
+
1486
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/in-out.js
1487
+ function withChecks(side, checks) {
1488
+ if (!checks?.length)
1489
+ return side;
1490
+ const def = side._zod.def;
1491
+ return clone(side, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true });
1492
+ }
1493
+ function outSide(def) {
1494
+ return withChecks(def.out, def.checks);
1495
+ }
1496
+ function inSide(def) {
1497
+ return def.in._zod.traits.has("$ZodTransform") ? outSide(def) : def.in;
1498
+ }
1499
+ function input(schema) {
1500
+ return visit(schema, {
1501
+ pipe: (s) => inSide(s._zod.def),
1502
+ // A default value belongs to the output side, so a rewritten inner type leaves it stranded. `.default()` widens the declared input type with `undefined`, and `optional` is what carries that across.
1503
+ default: (s, rewritten) => rewritten ? optional(s._zod.def.innerType) : s,
1504
+ // A catch value is output-side too, but `.catch()` leaves the declared input type alone, so the inner schema stands on its own.
1505
+ catch: (s, rewritten) => rewritten ? s._zod.def.innerType : s
1506
+ });
1507
+ }
1508
+ function output(schema) {
1509
+ return visit(schema, {
1510
+ pipe: (s) => outSide(s._zod.def),
1511
+ // A prefault value is fed through the schema, which makes it input-side, so a rewritten inner type leaves it stranded.
1512
+ prefault: (s, rewritten) => rewritten ? s._zod.def.innerType : s
1513
+ });
1514
+ }
1515
+
1516
+ // node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/coerce.js
1517
+ var coerce_exports = {};
1518
+ __export(coerce_exports, {
1519
+ bigint: () => bigint2,
1520
+ boolean: () => boolean2,
1521
+ date: () => date3,
1522
+ number: () => number2,
1523
+ string: () => string2
1524
+ });
1525
+ function string2(params) {
1526
+ return _coercedString(ZodString, params);
1527
+ }
1528
+ function number2(params) {
1529
+ return _coercedNumber(ZodNumber, params);
1530
+ }
1531
+ function boolean2(params) {
1532
+ return _coercedBoolean(ZodBoolean, params);
1533
+ }
1534
+ function bigint2(params) {
1535
+ return _coercedBigint(ZodBigInt, params);
1536
+ }
1537
+ function date3(params) {
1538
+ return _coercedDate(ZodDate, params);
1539
+ }
1540
+
1541
+ export {
1542
+ ZodIssueCode,
1543
+ iso_exports,
1544
+ coerce_exports,
1545
+ external_exports
1546
+ };