cf 1.0.0-beta.15 → 1.0.0-beta.16

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 (237) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
  22. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
  24. package/dist/auth-OFqV2M4q.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  27. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
  28. package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
  29. package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
  30. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
  31. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
  32. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  33. package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
  34. package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
  35. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
  36. package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
  37. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
  38. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
  39. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
  40. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
  41. package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
  42. package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
  43. package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
  44. package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
  45. package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
  46. package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
  48. package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
  49. package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
  50. package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
  51. package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
  52. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
  53. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
  54. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
  55. package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
  56. package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
  57. package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
  58. package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
  59. package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
  60. package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
  61. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  62. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
  63. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
  64. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
  65. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
  66. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
  67. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
  68. package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
  69. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
  70. package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
  71. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
  72. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
  73. package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
  74. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
  75. package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
  76. package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
  77. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
  78. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
  79. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
  80. package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
  81. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
  82. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  83. package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
  84. package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
  85. package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
  86. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
  87. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
  88. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
  89. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
  90. package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
  91. package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
  92. package/dist/index.mjs +1 -1
  93. package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
  94. package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
  95. package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
  96. package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
  97. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
  98. package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
  99. package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
  100. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  101. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
  102. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  103. package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
  104. package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
  105. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
  106. package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
  107. package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
  108. package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
  109. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
  110. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
  111. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
  112. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
  113. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
  114. package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
  115. package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
  116. package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
  117. package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
  118. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
  119. package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
  120. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
  121. package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
  122. package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
  123. package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
  124. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
  125. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
  126. package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
  127. package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
  128. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
  129. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
  130. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
  131. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
  132. package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
  133. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
  134. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
  135. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
  136. package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
  137. package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
  138. package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
  139. package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
  140. package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
  141. package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
  142. package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
  143. package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
  144. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
  145. package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
  146. package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
  147. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
  148. package/dist/reporting-BWm9jIF8.mjs +14 -0
  149. package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  150. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
  151. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
  152. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
  153. package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
  154. package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
  155. package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
  156. package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
  157. package/dist/run-roYb_Odh.mjs +2 -0
  158. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  159. package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
  160. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
  161. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
  162. package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
  163. package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
  164. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
  165. package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
  166. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
  167. package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
  168. package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
  169. package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
  170. package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
  171. package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
  172. package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
  173. package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
  174. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  175. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  176. package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
  177. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
  178. package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
  179. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
  180. package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
  181. package/dist/update-check-BnGDxswi.mjs +2 -0
  182. package/dist/update-check-worker.mjs +1 -1
  183. package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
  184. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
  185. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
  186. package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
  187. package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
  188. package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
  189. package/dist/version-CVlh2Zaq.mjs +2 -0
  190. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
  191. package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
  192. package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
  193. package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
  194. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
  195. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
  196. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
  197. package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
  198. package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
  199. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
  200. package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
  201. package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
  202. package/package.json +3 -2
  203. package/dist/alerts-BSON-vFh.mjs +0 -2
  204. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  205. package/dist/auth-8Sm4uLGM.mjs +0 -2
  206. package/dist/autorag-kNrLiqDX.mjs +0 -2
  207. package/dist/brands-bBJgbbOH.mjs +0 -2
  208. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  209. package/dist/browser-run-CEptKZYl.mjs +0 -42
  210. package/dist/clear-BW9vLgI3.mjs +0 -2
  211. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  212. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  213. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  214. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  215. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  216. package/dist/health-CTaCeVyC.mjs +0 -2
  217. package/dist/internal-BYS7hO8c.mjs +0 -2
  218. package/dist/live-BJE_YWE1.mjs +0 -2
  219. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  220. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  221. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  222. package/dist/ready-B3pLxnjc.mjs +0 -2
  223. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  224. package/dist/refute-Dp3VodMn.mjs +0 -2
  225. package/dist/reporting-3kDVF5c8.mjs +0 -14
  226. package/dist/run-CUNhH5CQ.mjs +0 -2
  227. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  228. package/dist/scan-page-CxeudOzj.mjs +0 -2
  229. package/dist/search-B_P5ZTQj.mjs +0 -2
  230. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  231. package/dist/submission-info-_t78q2OE.mjs +0 -2
  232. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  233. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  234. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  235. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  236. package/dist/verify-5KcvRk-q.mjs +0 -2
  237. package/dist/version-B6MnUIqV.mjs +0 -2
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-BAJpE3jV.mjs";var f={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}/certificate_pack/${t.certificate_pack_id}/certificates/${t.certificate_id}`};function p(e){return e.usage(`$0 custom-hostnames certificate-pack certificates delete <certificate-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-dgLm0iFJ.mjs";var f={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}/certificate_pack/${t.certificate_pack_id}/certificates/${t.certificate_id}`};function p(e){return e.usage(`$0 custom-hostnames certificate-pack certificates delete <certificate-id>
3
3
 
4
- Delete a single custom certificate from a certificate pack that contains two bundled certificates. Deletion is subject to the following constraints. You cannot delete a certificate if it is the only remaining certificate in the pack. At least one certificate must remain in the pack.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const m={command:`delete <certificate-id>`,describe:`Delete Single Certificate And Key For Custom Hostname`,builder:p,handler:async e=>o({command:`custom-hostnames certificate-pack certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames certificate-pack certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}/certificate_pack/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(e[`custom-hostname-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``),"certificate-id":String(e[`certificate-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
4
+ Delete a single custom certificate from a certificate pack that contains two bundled certificates. Deletion is subject to the following constraints. You cannot delete a certificate if it is the only remaining certificate in the pack. At least one certificate must remain in the pack.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const m={command:`delete <certificate-id>`,describe:`Delete Single Certificate And Key For Custom Hostname`,builder:p,handler:async e=>o({command:`custom-hostnames certificate-pack certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames certificate-pack certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}/certificate_pack/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
5
5
  `);return}let c=await a(`Deleting`,async()=>o.send(f,{zone_id:s,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));r(c,{successLabel:`Deleted`})})};var h={method:`PUT`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}/certificate_pack/${t.certificate_pack_id}/certificates/${t.certificate_id}`,body:`json`};function g(e){return e.usage(`$0 custom-hostnames certificate-pack certificates update <certificate-id>
6
6
 
7
- Replace a single custom certificate within a certificate pack that contains two bundled certificates. The replacement must adhere to the following constraints. You can only replace an RSA certificate with another RSA certificate or an ECDSA certificate with another ECDSA certificate.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`update <certificate-id>`,describe:`Replace Custom Certificate and Custom Key In Custom Hostname`,builder:g,handler:async e=>o({command:`custom-hostnames certificate-pack certificates update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames certificate-pack certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}/certificate_pack/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(e[`custom-hostname-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``),"certificate-id":String(e[`certificate-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({custom_certificate:l(e[`custom-certificate`],`custom-certificate`,`text`),custom_key:l(e[`custom-key`],`custom-key`,`text`)}):s(e.body),sensitiveBodyPaths:[[`custom_key`]]});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(h,{body:t,zone_id:d,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));r(n,{successLabel:`Updated`});return}e[`custom-certificate`]===void 0&&(e[`custom-certificate`]=await u(`custom-certificate`,`If a custom uploaded certificate is used.`)),e[`custom-key`]===void 0&&(e[`custom-key`]=await u(`custom-key`,`The key for a custom uploaded certificate.`,{kind:`secret`}));let f=c({custom_certificate:l(e[`custom-certificate`],`custom-certificate`,`text`),custom_key:l(e[`custom-key`],`custom-key`,`text`)}),p=await a(`Updating`,async()=>o.send(h,{body:f,zone_id:d,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));r(p,{successLabel:`Updated`})})},v={command:`certificates`,describe:`Operations for certificate-pack.certificates`,builder:e=>e.command(m).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},y={command:`certificate-pack`,describe:`Operations for certificate-pack`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/zones/${t.zone_id}/custom_hostnames`,body:`json`};function x(e){return e.usage(`$0 custom-hostnames create
7
+ Replace a single custom certificate within a certificate pack that contains two bundled certificates. The replacement must adhere to the following constraints. You can only replace an RSA certificate with another RSA certificate or an ECDSA certificate with another ECDSA certificate.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`update <certificate-id>`,describe:`Replace Custom Certificate and Custom Key In Custom Hostname`,builder:g,handler:async e=>o({command:`custom-hostnames certificate-pack certificates update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames certificate-pack certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}/certificate_pack/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({custom_certificate:l(e[`custom-certificate`],`custom-certificate`,`text`),custom_key:l(e[`custom-key`],`custom-key`,`text`)}):s(e.body),sensitiveBodyPaths:[[`custom_key`]]});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(h,{body:t,zone_id:d,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));r(n,{successLabel:`Updated`});return}e[`custom-certificate`]===void 0&&(e[`custom-certificate`]=await u(`custom-certificate`,`If a custom uploaded certificate is used.`)),e[`custom-key`]===void 0&&(e[`custom-key`]=await u(`custom-key`,`The key for a custom uploaded certificate.`,{kind:`secret`}));let f=c({custom_certificate:l(e[`custom-certificate`],`custom-certificate`,`text`),custom_key:l(e[`custom-key`],`custom-key`,`text`)}),p=await a(`Updating`,async()=>o.send(h,{body:f,zone_id:d,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));r(p,{successLabel:`Updated`})})},v={command:`certificates`,describe:`Operations for certificate-pack.certificates`,builder:e=>e.command(m).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},y={command:`certificate-pack`,describe:`Operations for certificate-pack`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/zones/${t.zone_id}/custom_hostnames`,body:`json`};function x(e){return e.usage(`$0 custom-hostnames create
8
8
 
9
9
  Add a new custom hostname and request that an SSL certificate be issued for it. One of three validation methods—http, txt, email—should be used, with 'http' recommended if the CNAME is already in place (or will be soon). Specifying 'email' will send an email to the WHOIS contacts on file for the base domain plus hostmaster, postmaster, webmaster, admin, administrator. If http is used and the domain is not already pointing to the Managed CNAME host, the PATCH method must be used once it is (to complete validation). Enable bundling of certificates using the custom_cert_bundle field. The bundling process requires the following condition One certificate in the bundle must use an RSA, and the other must use an ECDSA.`).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`hostname`,{type:`string`,description:`The custom hostname that will point to your hostname via CNAME.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).coerce(`ssl-bundle-method`,e=>l(e,`ssl-bundle-method`,`text`)).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).coerce(`ssl-certificate-authority`,e=>l(e,`ssl-certificate-authority`,`text`)).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).coerce(`ssl-method`,e=>l(e,`ssl-method`,`text`)).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-early-hints`,e=>l(e,`ssl-settings-early-hints`,`text`)).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-http2`,e=>l(e,`ssl-settings-http2`,`text`)).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`ssl-settings-min-tls-version`,e=>l(e,`ssl-settings-min-tls-version`,`text`)).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-tls-1-3`,e=>l(e,`ssl-settings-tls-1-3`,`text`)).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).coerce(`ssl-type`,e=>l(e,`ssl-type`,`text`)).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`create`,describe:`Create Custom Hostname`,builder:x,handler:async e=>o({command:`custom-hostnames create`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),hostname:l(e.hostname,`hostname`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}):s(e.body),sensitiveBodyPaths:[[`ssl`,`custom_key`]]});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(b,{body:t,zone_id:d}));r(n,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await u(`hostname`,`The custom hostname that will point to your hostname via CNAME.`));let f=c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),hostname:l(e.hostname,`hostname`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}),p=await a(`Creating`,async()=>o.send(b,{body:f,zone_id:d}));r(p,{successLabel:`Created`})})};var C={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}`};function w(e){return e.usage(`$0 custom-hostnames delete <custom-hostname-id>
10
10
 
11
- Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const T={command:`delete <custom-hostname-id>`,describe:`Delete Custom Hostname (and any issued SSL certificates)`,builder:w,handler:async e=>o({command:`custom-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(e[`custom-hostname-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
11
+ Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const T={command:`delete <custom-hostname-id>`,describe:`Delete Custom Hostname (and any issued SSL certificates)`,builder:w,handler:async e=>o({command:`custom-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
12
12
  `);return}let c=await a(`Deleting`,async()=>o.send(C,{zone_id:s,custom_hostname_id:e[`custom-hostname-id`]}));r(c,{successLabel:`Deleted`})})};var E={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}`,body:`json`};function D(e){return e.usage(`$0 custom-hostnames edit <custom-hostname-id>
13
13
 
14
- Modify SSL configuration for a custom hostname. When sent with SSL config that matches existing config, used to indicate that hostname should pass domain control validation (DCV). Can also be used to change validation type, e.g., from 'http' to 'email'. Bundle an existing certificate with another certificate by using the "custom_cert_bundle" field. The bundling process supports combining certificates as long as the following condition is met. One certificate must use the RSA algorithm, and the other must use the ECDSA algorithm.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).coerce(`ssl-bundle-method`,e=>l(e,`ssl-bundle-method`,`text`)).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).coerce(`ssl-certificate-authority`,e=>l(e,`ssl-certificate-authority`,`text`)).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).coerce(`ssl-method`,e=>l(e,`ssl-method`,`text`)).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-early-hints`,e=>l(e,`ssl-settings-early-hints`,`text`)).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-http2`,e=>l(e,`ssl-settings-http2`,`text`)).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`ssl-settings-min-tls-version`,e=>l(e,`ssl-settings-min-tls-version`,`text`)).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-tls-1-3`,e=>l(e,`ssl-settings-tls-1-3`,`text`)).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).coerce(`ssl-type`,e=>l(e,`ssl-type`,`text`)).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`edit <custom-hostname-id>`,describe:`Edit Custom Hostname`,builder:D,handler:async e=>o({command:`custom-hostnames edit`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(e[`custom-hostname-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}):s(e.body),sensitiveBodyPaths:[[`ssl`,`custom_key`]]});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(E,{body:t,zone_id:u,custom_hostname_id:e[`custom-hostname-id`]}));r(n,{successLabel:`Updated`});return}let d=c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}),f=await a(`Updating`,async()=>o.send(E,{body:d,zone_id:u,custom_hostname_id:e[`custom-hostname-id`]}));r(f,{successLabel:`Updated`})})};var k={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/fallback_origin`};function A(e){return e.usage(`$0 custom-hostnames fallback-origin delete
14
+ Modify SSL configuration for a custom hostname. When sent with SSL config that matches existing config, used to indicate that hostname should pass domain control validation (DCV). Can also be used to change validation type, e.g., from 'http' to 'email'. Bundle an existing certificate with another certificate by using the "custom_cert_bundle" field. The bundling process supports combining certificates as long as the following condition is met. One certificate must use the RSA algorithm, and the other must use the ECDSA algorithm.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).coerce(`ssl-bundle-method`,e=>l(e,`ssl-bundle-method`,`text`)).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).coerce(`ssl-certificate-authority`,e=>l(e,`ssl-certificate-authority`,`text`)).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).coerce(`ssl-method`,e=>l(e,`ssl-method`,`text`)).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-early-hints`,e=>l(e,`ssl-settings-early-hints`,`text`)).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-http2`,e=>l(e,`ssl-settings-http2`,`text`)).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`ssl-settings-min-tls-version`,e=>l(e,`ssl-settings-min-tls-version`,`text`)).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).coerce(`ssl-settings-tls-1-3`,e=>l(e,`ssl-settings-tls-1-3`,`text`)).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).coerce(`ssl-type`,e=>l(e,`ssl-type`,`text`)).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`edit <custom-hostname-id>`,describe:`Edit Custom Hostname`,builder:D,handler:async e=>o({command:`custom-hostnames edit`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}):s(e.body),sensitiveBodyPaths:[[`ssl`,`custom_key`]]});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(E,{body:t,zone_id:u,custom_hostname_id:e[`custom-hostname-id`]}));r(n,{successLabel:`Updated`});return}let d=c({custom_origin_server:l(e[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:l(e[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:e[`ssl-bundle-method`],certificate_authority:e[`ssl-certificate-authority`],cloudflare_branding:e[`ssl-cloudflare-branding`],custom_certificate:l(e[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:l(e[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:l(e[`ssl-custom-key`],`ssl-custom-key`,`text`),method:e[`ssl-method`],settings:{ciphers:e[`ssl-settings-ciphers`],early_hints:e[`ssl-settings-early-hints`],http2:e[`ssl-settings-http2`],min_tls_version:e[`ssl-settings-min-tls-version`],tls_1_3:e[`ssl-settings-tls-1-3`]},type:e[`ssl-type`],wildcard:e[`ssl-wildcard`]}}),f=await a(`Updating`,async()=>o.send(E,{body:d,zone_id:u,custom_hostname_id:e[`custom-hostname-id`]}));r(f,{successLabel:`Updated`})})};var k={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/fallback_origin`};function A(e){return e.usage(`$0 custom-hostnames fallback-origin delete
15
15
 
16
16
  Removes the fallback origin configuration for custom hostnames on a zone. Custom hostnames without specific origins will no longer have a fallback.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete`,describe:`Delete Fallback Origin for Custom Hostnames`,builder:A,handler:async e=>o({command:`custom-hostnames fallback-origin delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames fallback-origin delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/fallback_origin`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
17
17
  `);return}let c=await a(`Deleting`,async()=>o.send(k,{zone_id:s}));r(c,{successLabel:`Deleted`})})};var M={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/fallback_origin`};function N(e){return e.usage(`$0 custom-hostnames fallback-origin get
@@ -20,7 +20,7 @@ Retrieves the current fallback origin configuration for custom hostnames on a zo
20
20
 
21
21
  Updates the fallback origin configuration for custom hostnames on a zone. Sets the default origin server for custom hostname traffic.`).option(`origin`,{type:`string`,description:`Your origin hostname that requests to your custom hostnames will be sent to.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`update`,describe:`Update Fallback Origin for Custom Hostnames`,builder:I,handler:async e=>o({command:`custom-hostnames fallback-origin update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames fallback-origin update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/fallback_origin`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({origin:l(e.origin,`origin`,`text`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(F,{body:t,zone_id:d}));r(n,{successLabel:`Updated`});return}e.origin===void 0&&(e.origin=await u(`origin`,`Your origin hostname that requests to your custom hostnames will be sent to.`));let f=c({origin:l(e.origin,`origin`,`text`)}),p=await a(`Updating`,async()=>o.send(F,{body:f,zone_id:d}));r(p,{successLabel:`Updated`})})},R={command:`fallback-origin`,describe:`Operations for fallback-origin`,builder:e=>e.command(j).command(P).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}`};function B(e){return e.usage(`$0 custom-hostnames get <custom-hostname-id>
22
22
 
23
- Retrieves detailed information about a specific custom hostname, including SSL certificate status, ownership verification, and origin configuration.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`get <custom-hostname-id>`,describe:`Custom Hostname Details`,builder:B,handler:async e=>o({command:`custom-hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(e[`custom-hostname-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(z,{zone_id:s,custom_hostname_id:e[`custom-hostname-id`]}));r(c,{successLabel:`Loaded`})})};var H={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_hostnames`,query:[`hostname`,`hostname.exact`,`hostname.startsWith`,`hostname.contain`,`id`,`page`,`per_page`,`order`,`direction`,`ssl_status`,`hostname_status`,`certificate_authority`,`wildcard`,`custom_origin_server`,`ssl`]};function U(e){return e.usage(`$0 custom-hostnames list
23
+ Retrieves detailed information about a specific custom hostname, including SSL certificate status, ownership verification, and origin configuration.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`get <custom-hostname-id>`,describe:`Custom Hostname Details`,builder:B,handler:async e=>o({command:`custom-hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf custom-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(z,{zone_id:s,custom_hostname_id:e[`custom-hostname-id`]}));r(c,{successLabel:`Loaded`})})};var H={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_hostnames`,query:[`hostname`,`hostname.exact`,`hostname.startsWith`,`hostname.contain`,`id`,`page`,`per_page`,`order`,`direction`,`ssl_status`,`hostname_status`,`certificate_authority`,`wildcard`,`custom_origin_server`,`ssl`]};function U(e){return e.usage(`$0 custom-hostnames list
24
24
 
25
25
  List, search, sort, and filter all of your custom hostnames.`).option(`hostname`,{type:`string`,description:`Fully qualified domain name to match against. This parameter cannot be used with the 'id', 'hostname.exact', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`hostname-exact`,{type:`string`,description:`Fully qualified domain name to match against. This parameter cannot be used with the 'id', 'hostname', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`hostname-starts-with`,{type:`string`,description:`Filters hostnames by a prefix match on the hostname value. This parameter cannot be used with the 'id', 'hostname', 'hostname.exact', or 'hostname.contain' parameters.`}).option(`hostname-contain`,{type:`string`,description:`Filters hostnames by a substring match on the hostname value. This parameter cannot be used with the 'id', 'hostname', 'hostname.exact', or 'hostname.startsWith' parameters.`}).option(`id`,{type:`string`,description:`Hostname ID to match against. This ID was generated and returned during the initial custom_hostname creation. This parameter cannot be used with the 'hostname', 'hostname.exact', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of hostnames per page.`}).option(`order`,{type:`string`,description:`Field to order hostnames by.`,choices:[`ssl`,`ssl_status`]}).option(`direction`,{type:`string`,description:`Direction to order hostnames.`,choices:[`asc`,`desc`]}).option(`ssl-status`,{type:`string`,description:`Filter by SSL certificate status.`,choices:[`initializing`,`pending_validation`,`deleted`,`pending_issuance`,`pending_deployment`,`pending_deletion`,`pending_expiration`,`expired`,`active`,`initializing_timed_out`,`validation_timed_out`,`issuance_timed_out`,`deployment_timed_out`,`deletion_timed_out`,`pending_cleanup`,`staging_deployment`,`staging_active`,`deactivating`,`inactive`,`backup_issued`,`holding_deployment`]}).option(`hostname-status`,{type:`string`,description:`Filter by the hostname's activation status.`,choices:[`active`,`pending`,`active_redeploying`,`moved`,`pending_deletion`,`deleted`,`pending_blocked`,`pending_migration`,`pending_provisioned`,`test_pending`,`test_active`,`test_active_apex`,`test_blocked`,`test_failed`,`provisioned`,`blocked`]}).option(`certificate-authority`,{type:`string`,description:`Filter by the certificate authority that issued the SSL certificate.`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).option(`wildcard`,{type:`boolean`,description:`Filter by whether the custom hostname is a wildcard hostname.`}).option(`custom-origin-server`,{type:`string`,description:`Filter by custom origin server name.`}).option(`ssl`,{type:`string`,description:`Whether to filter hostnames based on if they have SSL enabled.`,choices:[`0`,`1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List Custom Hostnames`,builder:U,handler:async e=>o({command:`custom-hostnames list`,classification:{safeFlags:[`order`,`direction`,`ssl-status`,`hostname-status`,`certificate-authority`,`wildcard`,`ssl`,`dry-run`]}},e,async()=>{let o={hostname:e.hostname,"hostname.exact":e[`hostname-exact`],"hostname.startsWith":e[`hostname-starts-with`],"hostname.contain":e[`hostname-contain`],id:e.id,page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,ssl_status:e[`ssl-status`],hostname_status:e[`hostname-status`],certificate_authority:e[`certificate-authority`],wildcard:e.wildcard,custom_origin_server:e[`custom-origin-server`],ssl:e.ssl};if(e.dryRun){i({command:`cf custom-hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(H,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})};var G={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/quota`};function K(e){return e.usage(`$0 custom-hostnames quota get
26
26
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_ns`,body:`json`};function g(e){return e.usage(`$0 custom-nameservers create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_ns`,body:`json`};function g(e){return e.usage(`$0 custom-nameservers create
3
3
 
4
4
  Adds a custom nameserver to the account or zone for use as a vanity nameserver on zones.`).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create`,describe:`Add account or zone Custom Nameserver`,builder:g,handler:async e=>l({command:`custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_ns`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({ns_name:f(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}):u(e.body)});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,g=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=g:e.accountId=g,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(h,{body:t,account_or_zone:m,account_or_zone_id:g}));o(n,{successLabel:`Created`});return}e[`ns-name`]===void 0&&(e[`ns-name`]=await p(`ns-name`,`The FQDN of the name server.`));let _=d({ns_name:f(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}),v=await c(`Creating`,async()=>l.send(h,{body:_,account_or_zone:m,account_or_zone_id:g}));o(v,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/custom_ns/${t.custom_ns_id}`};function y(e){return e.usage(`$0 custom-nameservers delete <custom-ns-id>
5
5
 
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BAJpE3jV.mjs";var g={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/preview_tokens`,body:`json`};function _(e){return e.usage(`$0 custom-pages account-custom-pages preview-tokens create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";var g={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/preview_tokens`,body:`json`};function _(e){return e.usage(`$0 custom-pages account-custom-pages preview-tokens create
3
3
 
4
4
  Creates a signed JWT for previewing an account or zone-level custom page before it is published.`).option(`act`,{type:`string`,description:`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`}).option(`target`,{type:`string`,description:`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`}).option(`url`,{type:`string`,description:`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Create a preview token`,builder:_,handler:async e=>l({command:`custom-pages account-custom-pages preview-tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages account-custom-pages preview-tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/preview_tokens`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({act:f(e.act,`act`,`text`),target:f(e.target,`target`,`text`),url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(g,{body:t,account_or_zone:m,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e.act===void 0&&(e.act=await p(`act`,`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`)),e.target===void 0&&(e.target=await p(`target`,`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`)),e.url===void 0&&(e.url=await p(`url`,`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`));let _=d({act:f(e.act,`act`,`text`),target:f(e.target,`target`,`text`),url:f(e.url,`url`,`text`)}),v=await c(`Creating`,async()=>l.send(g,{body:_,account_or_zone:m,account_or_zone_id:h}));o(v,{successLabel:`Created`})})},y={command:`preview-tokens`,describe:`Preview tokens for account-level custom pages`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/${t.identifier}`,body:`json`};function x(e){return e.usage(`$0 custom-pages account-custom-pages update <identifier>
5
5
 
6
- Updates the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`state`,{type:`string`,description:`The custom page state.`,choices:[`default`,`customized`]}).coerce(`state`,e=>f(e,`state`,`text`)).option(`url`,{type:`string`,description:`The URL associated with the custom page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`update <identifier>`,describe:`Update a custom page`,builder:x,handler:async e=>l({command:`custom-pages account-custom-pages update`,classification:{safeFlags:[`state`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages account-custom-pages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"account-or-zone":String(n),identifier:String(e.identifier??``),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({state:e.state,url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(b,{body:t,account_or_zone:h,account_or_zone_id:g,identifier:e.identifier}));o(n,{successLabel:`Updated`});return}e.state===void 0&&(e.state=await m(`state`,`The custom page state.`,[`default`,`customized`])),e.url===void 0&&(e.url=await p(`url`,`The URL associated with the custom page.`));let _=d({state:e.state,url:f(e.url,`url`,`text`)}),v=await c(`Updating`,async()=>l.send(b,{body:_,account_or_zone:h,account_or_zone_id:g,identifier:e.identifier}));o(v,{successLabel:`Updated`})})},C={command:`account-custom-pages`,describe:`Manage account-level custom pages`,builder:e=>e.command(S).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets`,body:`json`};function T(e){return e.usage(`$0 custom-pages assets create custom asset
6
+ Updates the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`state`,{type:`string`,description:`The custom page state.`,choices:[`default`,`customized`]}).coerce(`state`,e=>f(e,`state`,`text`)).option(`url`,{type:`string`,description:`The URL associated with the custom page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`update <identifier>`,describe:`Update a custom page`,builder:x,handler:async e=>l({command:`custom-pages account-custom-pages update`,classification:{safeFlags:[`state`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages account-custom-pages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?d({state:e.state,url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(b,{body:t,account_or_zone:h,account_or_zone_id:g,identifier:e.identifier}));o(n,{successLabel:`Updated`});return}e.state===void 0&&(e.state=await m(`state`,`The custom page state.`,[`default`,`customized`])),e.url===void 0&&(e.url=await p(`url`,`The URL associated with the custom page.`));let _=d({state:e.state,url:f(e.url,`url`,`text`)}),v=await c(`Updating`,async()=>l.send(b,{body:_,account_or_zone:h,account_or_zone_id:g,identifier:e.identifier}));o(v,{successLabel:`Updated`})})},C={command:`account-custom-pages`,describe:`Manage account-level custom pages`,builder:e=>e.command(S).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets`,body:`json`};function T(e){return e.usage(`$0 custom-pages assets create custom asset
7
7
 
8
8
  Creates a custom asset for an account or zone.`).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const E={command:`asset`,describe:`Create a custom asset`,builder:T,handler:async e=>l({command:`custom-pages assets create custom asset`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets create custom asset`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`),url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(w,{body:t,account_or_zone:m,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e.description===void 0&&(e.description=await p(`description`,`A short description of the custom asset.`)),e.name===void 0&&(e.name=await p(`name`,`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`)),e.url===void 0&&(e.url=await p(`url`,`The URL where the asset content is fetched from.`));let g=d({description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`),url:f(e.url,`url`,`text`)}),_=await c(`Creating`,async()=>l.send(w,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},D={command:`custom`,describe:`Operations for assets.create.custom`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},O={command:`create`,describe:`Operations for assets.create`,builder:e=>e.command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var k={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets/${t.asset_name}`,response:!1};function A(e){return e.usage(`$0 custom-pages assets delete custom asset <asset-name>
9
9
 
10
- Deletes a custom asset from an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`asset <asset-name>`,describe:`Delete a custom asset`,builder:A,handler:async e=>l({command:`custom-pages assets delete custom asset`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets delete custom asset`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(e[`asset-name`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=d:e.accountId=d,!await h({force:!!e.force})){process.stderr.write(`Aborted.
10
+ Deletes a custom asset from an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`asset <asset-name>`,describe:`Delete a custom asset`,builder:A,handler:async e=>l({command:`custom-pages assets delete custom asset`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets delete custom asset`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"asset-name":String(e[`asset-name`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=d:e.accountId=d,!await h({force:!!e.force})){process.stderr.write(`Aborted.
11
11
  `);return}let f=await c(`Deleting`,async()=>l.send(k,{account_or_zone:u,account_or_zone_id:d,asset_name:e[`asset-name`]}));o(f,{successLabel:`Deleted`})})},M={command:`custom`,describe:`Operations for assets.delete.custom`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},N={command:`delete`,describe:`Operations for assets.delete`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets/${t.asset_name}`};function F(e){return e.usage(`$0 custom-pages assets get custom asset <asset-name>
12
12
 
13
- Returns a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`asset <asset-name>`,describe:`Get a custom asset`,builder:F,handler:async e=>l({command:`custom-pages assets get custom asset`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets get custom asset`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(e[`asset-name`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(P,{account_or_zone:u,account_or_zone_id:d,asset_name:e[`asset-name`]}));o(f,{successLabel:`Loaded`})})},L={command:`custom`,describe:`Operations for assets.get.custom`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},R={command:`get`,describe:`Operations for assets.get`,builder:e=>e.command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets`,query:[`page`,`per_page`]};function z(e){return e.usage(`$0 custom-pages assets list custom assets
13
+ Returns a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`asset <asset-name>`,describe:`Get a custom asset`,builder:F,handler:async e=>l({command:`custom-pages assets get custom asset`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets get custom asset`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"asset-name":String(e[`asset-name`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(P,{account_or_zone:u,account_or_zone_id:d,asset_name:e[`asset-name`]}));o(f,{successLabel:`Loaded`})})},L={command:`custom`,describe:`Operations for assets.get.custom`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},R={command:`get`,describe:`Operations for assets.get`,builder:e=>e.command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets`,query:[`page`,`per_page`]};function z(e){return e.usage(`$0 custom-pages assets list custom assets
14
14
 
15
15
  Lists custom assets for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom assets per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`assets`,describe:`List custom assets`,builder:z,handler:async e=>l({command:`custom-pages assets list custom assets`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets list custom assets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},query:l,bodyKind:`none`});return}let u=await n(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await a();d===`zones`?e.zoneId=f:e.accountId=f;let p=await c(`Loading`,async()=>u.send(ee,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})},V={command:`custom`,describe:`Operations for assets.list.custom`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`list`,describe:`Operations for assets.list`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets/${t.asset_name}`,body:`json`};function W(e){return e.usage(`$0 custom-pages assets update custom asset <asset-name>
16
16
 
17
- Updates a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`asset <asset-name>`,describe:`Update a custom asset`,builder:W,handler:async e=>l({command:`custom-pages assets update custom asset`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets update custom asset`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(e[`asset-name`]??``),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({description:f(e.description,`description`,`text`),url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(U,{body:t,account_or_zone:m,account_or_zone_id:h,asset_name:e[`asset-name`]}));o(n,{successLabel:`Updated`});return}e.description===void 0&&(e.description=await p(`description`,`A short description of the custom asset.`)),e.url===void 0&&(e.url=await p(`url`,`The URL where the asset content is fetched from.`));let g=d({description:f(e.description,`description`,`text`),url:f(e.url,`url`,`text`)}),_=await c(`Updating`,async()=>l.send(U,{body:g,account_or_zone:m,account_or_zone_id:h,asset_name:e[`asset-name`]}));o(_,{successLabel:`Updated`})})},K={command:`custom`,describe:`Operations for assets.update.custom`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`update`,describe:`Operations for assets.update`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},J={command:`assets`,describe:`Manage account- and zone-level custom assets`,builder:e=>e.command(O).command(N).command(R).command(H).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/${t.identifier}`};function X(e){return e.usage(`$0 custom-pages get <identifier>
17
+ Updates a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`asset <asset-name>`,describe:`Update a custom asset`,builder:W,handler:async e=>l({command:`custom-pages assets update custom asset`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages assets update custom asset`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/assets/${e[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(e[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"asset-name":String(e[`asset-name`]??``)},bodyKind:`json`,body:e.body===void 0?d({description:f(e.description,`description`,`text`),url:f(e.url,`url`,`text`)}):u(e.body)});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(U,{body:t,account_or_zone:m,account_or_zone_id:h,asset_name:e[`asset-name`]}));o(n,{successLabel:`Updated`});return}e.description===void 0&&(e.description=await p(`description`,`A short description of the custom asset.`)),e.url===void 0&&(e.url=await p(`url`,`The URL where the asset content is fetched from.`));let g=d({description:f(e.description,`description`,`text`),url:f(e.url,`url`,`text`)}),_=await c(`Updating`,async()=>l.send(U,{body:g,account_or_zone:m,account_or_zone_id:h,asset_name:e[`asset-name`]}));o(_,{successLabel:`Updated`})})},K={command:`custom`,describe:`Operations for assets.update.custom`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`update`,describe:`Operations for assets.update`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},J={command:`assets`,describe:`Manage account- and zone-level custom assets`,builder:e=>e.command(O).command(N).command(R).command(H).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/${t.identifier}`};function X(e){return e.usage(`$0 custom-pages get <identifier>
18
18
 
19
- Returns the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get <identifier>`,describe:`Get a custom page`,builder:X,handler:async e=>l({command:`custom-pages get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"account-or-zone":String(n),identifier:String(e.identifier??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(Y,{account_or_zone:u,account_or_zone_id:d,identifier:e.identifier}));o(f,{successLabel:`Loaded`})})};var Q={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages`};function $(e){return e.usage(`$0 custom-pages list
19
+ Returns the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get <identifier>`,describe:`Get a custom page`,builder:X,handler:async e=>l({command:`custom-pages get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),identifier:String(e.identifier??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(Y,{account_or_zone:u,account_or_zone_id:d,identifier:e.identifier}));o(f,{successLabel:`Loaded`})})};var Q={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages`};function $(e){return e.usage(`$0 custom-pages list
20
20
 
21
21
  Lists all custom page configurations for an account or zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`List custom pages`,builder:$,handler:async e=>l({command:`custom-pages list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf custom-pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/custom_pages`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(Q,{account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Loaded`})})},ne={command:`custom-pages`,describe:`Manage custom error and challenge pages and their assets for accounts and zones`,builder:e=>e.command(Z).command(te).command(C).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ne as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as n}from"./local-Dil4fTWX.mjs";import{n as r}from"./auth-C6u9qIGO.mjs";import{n as i}from"./resolve-C3FmNlSO.mjs";import{a,t as o}from"./context-A6T-NKPI.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-D5po7ScB.mjs";import{n as u,t as d}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as f,r as p,t as m}from"./body-parser-DkHKPkJ7.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v,t as y}from"./prompt-BAJpE3jV.mjs";import b from"node:fs";import x from"node:path";var ee={method:`POST`,path:t=>e`/accounts/${t.account_id}/d1/database`,body:`json`};function te(e){return e.usage(`$0 d1 create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as n}from"./local-Dil4fTWX.mjs";import{n as r}from"./auth-eVI_UEt8.mjs";import{n as i}from"./resolve-C3FmNlSO.mjs";import{a,t as o}from"./context-B-vEsyrK.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-R-1tIuep.mjs";import{n as u,t as d}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as f,r as p,t as m}from"./body-parser-DkHKPkJ7.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v,t as y}from"./prompt-dgLm0iFJ.mjs";import b from"node:fs";import x from"node:path";var ee={method:`POST`,path:t=>e`/accounts/${t.account_id}/d1/database`,body:`json`};function te(e){return e.usage(`$0 d1 create
3
3
 
4
4
  Create a new D1 database in your account.`).option(`jurisdiction`,{type:`string`,description:`Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored.`,choices:[`eu`,`fedramp`,`us`]}).coerce(`jurisdiction`,e=>h(e,`jurisdiction`,`text`)).option(`name`,{type:`string`,description:`D1 database name.`}).option(`primary-location-hint`,{type:`string`,description:`Specify the region to create the D1 primary, if available. If this option is omitted, the D1 will be created as close as possible to the current user.`,choices:[`wnam`,`enam`,`weur`,`eeur`,`apac`,`oc`]}).coerce(`primary-location-hint`,e=>h(e,`primary-location-hint`,`text`)).option(`read-replication-mode`,{type:`string`,description:`The read replication mode for the database. Use 'auto' to create replicas and allow D1 automatically place them around the world, or 'disabled' to not use any database replicas (it can take a few hours for all replicas to be deleted).`,choices:[`auto`,`disabled`]}).coerce(`read-replication-mode`,e=>h(e,`read-replication-mode`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`read-replication-mode`].some(t=>e[t]!==void 0)){let t=[`read-replication-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --read_replication-* flag is set`)}return!0})}const ne={command:`create`,describe:`Create D1 Database`,builder:te,handler:async e=>d({command:`d1 create`,classification:{safeFlags:[`jurisdiction`,`primary-location-hint`,`read-replication-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf d1 create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/d1/database`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({jurisdiction:e.jurisdiction,name:h(e.name,`name`,`text`),primary_location_hint:e[`primary-location-hint`],read_replication:{mode:e[`read-replication-mode`]}}):f(e.body)});return}let t=await r(e),i=e.local?n:await o();if(e.accountId=i,e.body){let n=f(e.body),r=await l(`Creating`,async()=>t.send(ee,{body:n,account_id:i}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await g(`name`,`D1 database name.`));let u=m({jurisdiction:e.jurisdiction,name:h(e.name,`name`,`text`),primary_location_hint:e[`primary-location-hint`],read_replication:{mode:e[`read-replication-mode`]}}),d=await l(`Creating`,async()=>t.send(ee,{body:u,account_id:i}));s(d,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/d1/database/${t.database_id}`};function ie(e){return e.usage(`$0 d1 delete <database-id>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";var s={method:`GET`,path:t=>e`/zones/${t.zone_id}/dcv_delegation/uuid`};function c(e){return e.usage(`$0 dcv-delegation get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";var s={method:`GET`,path:t=>e`/zones/${t.zone_id}/dcv_delegation/uuid`};function c(e){return e.usage(`$0 dcv-delegation get
3
3
 
4
4
  Retrieve the account and zone specific unique identifier used as part of the CNAME target for DCV Delegation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Retrieve the DCV Delegation unique identifier.`,builder:c,handler:async e=>o({command:`dcv-delegation get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf dcv-delegation get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dcv_delegation/uuid`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>o.send(s,{zone_id:c}));r(l,{successLabel:`Loaded`})})},u={command:`dcv-delegation`,describe:`dcv-delegation`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./shared-zNQNv1im.mjs";function n(t){return e(t).option(`provision`,{type:`boolean`,description:`Automatically provision resources for bindings that need them`,default:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of a dispatch namespace to deploy the Worker to (Workers for Platforms)`,requiresArg:!0}).option(`containers-rollout`,{description:`Rollout strategy for Container changes. Immediate rolls out to all instances in one step; none leaves deployed Containers unchanged.`,choices:[`immediate`,`gradual`,`none`]})}const r={command:`deploy`,describe:`Deploy a worker to Cloudflare`,builder:n,handler:async e=>{await t(e,{command:`Deploy`})}};export{r as default};
2
+ import{n as e,t}from"./shared-ouAF7o4S.mjs";function n(t){return e(t).option(`provision`,{type:`boolean`,description:`Automatically provision resources for bindings that need them`,default:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of a dispatch namespace to deploy the Worker to (Workers for Platforms)`,requiresArg:!0}).option(`containers-rollout`,{description:`Rollout strategy for Container changes. Immediate rolls out to all instances in one step; none leaves deployed Containers unchanged.`,choices:[`immediate`,`gradual`,`none`]})}const r={command:`deploy`,describe:`Deploy a worker to Cloudflare`,builder:n,handler:async e=>{await t(e,{command:`Deploy`})}};export{r as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{F as e,O as t,U as n,X as r,Y as i,_ as a,g as o,rt as s,tt as c,v as l}from"./dist-DZRTPMMA.mjs";import{M as u,N as d,d as f,g as p,k as m,v as h}from"./chunk-2HLTAS5V-D7COzUOd.mjs";import{t as g}from"./version-B6MnUIqV.mjs";import{n as _}from"./dist-uRuGmkMB.mjs";import{C as v,D as y,E as b,S as x,_ as S,c as C,f as w,h as ee,m as te,o as ne,u as re,v as ie,w as ae}from"./interactive-BW9T1D1q.mjs";import{n as oe,r as T,t as se}from"./dialog-D4Y9ocuF.mjs";import{createRequire as E}from"node:module";import{setTimeout as ce}from"node:timers/promises";import{existsSync as D,readFileSync as le}from"node:fs";import O,{join as k}from"node:path";import A from"node:process";import{release as ue}from"node:os";import de from"node:assert";import{createServer as fe}from"node:net";import{once as pe}from"node:events";import me,{createHash as he,randomUUID as ge}from"node:crypto";import{execFile as _e,execFileSync as ve,spawn as j}from"node:child_process";import{cleanBuildOutputDir as ye,normalizeDirectoryName as M,writeContainerConfig as be}from"@cloudflare/build-output-utils";function xe(e,t=A.stderr){t.isTTY&&(e?t.write(`\x1B[?25h`):t.write(`\x1B[?25l`))}const N=E(import.meta.url||(typeof __filename==`string`?__filename:`/`));var Se=Object.create,Ce=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyNames,Ee=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,P=(e,t)=>Ce(e,`name`,{value:t,configurable:!0}),F=/* @__PURE__ */ (e=>N===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(N===void 0?e:N)[t]}):e:N)(function(e){if(N!==void 0)return N.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),I=(e,t)=>function(){return t||(0,e[Te(e)[0]])((t={exports:{}}).exports,t),t.exports},Oe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Te(t))!De.call(e,i)&&i!==n&&Ce(e,i,{get:()=>t[i],enumerable:!(r=we(t,i))||r.enumerable});return e},L=(e,t,n)=>(n=e==null?{}:Se(Ee(e)),Oe(Ce(n,`default`,{value:e,enumerable:!0}),e)),R=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js"(e,t){var n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:/* @__PURE__ */ P(()=>{},`NOOP`)}}}),ke=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js"(e,t){var{EMPTY_BUFFER:n}=R(),r=Buffer[Symbol.species];function i(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];i.set(n,a),a+=n.length}return a<t?new r(i.buffer,i.byteOffset,a):i}P(i,`concat`);function a(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}P(a,`_mask`);function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}P(o,`_unmask`);function s(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}P(s,`toArrayBuffer`);function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new r(e):ArrayBuffer.isView(e)?t=new r(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}if(P(c,`toBuffer`),t.exports={concat:i,mask:a,toArrayBuffer:s,toBuffer:c,unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{let e=F(`bufferutil`);t.exports.mask=function(t,n,r,i,o){o<48?a(t,n,r,i,o):e.mask(t,n,r,i,o)},t.exports.unmask=function(t,n){t.length<32?o(t,n):e.unmask(t,n)}}catch{}}}),Ae=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js"(e,t){var n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{static{P(this,`Limiter`)}constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}}}),je=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js"(e,t){var n=F(`zlib`),r=ke(),i=Ae(),{kStatusCode:a}=R(),o=Buffer[Symbol.species],s=Buffer.from([0,0,255,255]),c=Symbol(`permessage-deflate`),l=Symbol(`total-length`),u=Symbol(`callback`),d=Symbol(`buffers`),f=Symbol(`error`),p;t.exports=class{static{P(this,`PerMessageDeflate`)}constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,p||=new i(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(/* @__PURE__ */ Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){p.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){p.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,i){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[d]=[],this._inflate.on(`error`,g),this._inflate.on(`data`,h)}this._inflate[u]=i,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush(()=>{let e=this._inflate[f];if(e){this._inflate.close(),this._inflate=null,i(e);return}let n=r.concat(this._inflate[d],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),i(null,n)})}_compress(e,t,i){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[d]=[],this._deflate.on(`data`,m)}this._deflate[u]=i,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=r.concat(this._deflate[d],this._deflate[l]);t&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}};function m(e){this[d].push(e),this[l]+=e.length}P(m,`deflateOnData`);function h(e){if(this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[f]=/* @__PURE__ */ RangeError(`Max payload size exceeded`),this[f].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[f][a]=1009,this.removeListener(`data`,h),this.reset()}P(h,`inflateOnData`);function g(e){if(this[c]._inflate=null,this[f]){this[u](this[f]);return}e[a]=1007,this[u](e)}P(g,`inflateOnError`)}}),z=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js"(e,t){var{isUtf8:n}=F(`buffer`),{hasBlob:r}=R(),i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function a(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}P(a,`isValidStatusCode`);function o(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}P(o,`_isValidUTF8`);function s(e){return r&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(P(s,`isBlob`),t.exports={isBlob:s,isValidStatusCode:a,isValidUTF8:o,tokenChars:i},n)t.exports.isValidUTF8=function(e){return e.length<24?o(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=F(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?o(t):e(t)}}catch{}}}),Me=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js"(e,t){var{Writable:n}=F(`stream`),r=je(),{BINARY_TYPES:i,EMPTY_BUFFER:a,kStatusCode:o,kWebSocket:s}=R(),{concat:c,toArrayBuffer:l,unmask:u}=ke(),{isValidStatusCode:d,isValidUTF8:f}=z(),p=Buffer[Symbol.species],m=0,h=1,g=2,_=3,v=4,y=5,b=6;t.exports=class extends n{static{P(this,`Receiver`)}constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0||e.allowSynchronousEvents,this._binaryType=e.binaryType||i[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[s]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=m}_write(e,t,n){if(this._opcode===8&&this._state==m)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e),new p(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new p(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case m:this.getInfo(e);break;case h:this.getPayloadLength16(e);break;case g:this.getPayloadLength64(e);break;case _:this.getMask();break;case v:this.getData(e);break;case y:case b:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[r.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=h:this._payloadLength===127?this._state=g:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._state=this._masked?_:v}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=v}getData(e){let t=a;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=y,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[r.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===m&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=m;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?c(n,t):this._binaryType===`arraybuffer`?l(c(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=m):(this._state=b,setImmediate(()=>{this.emit(`message`,r,!0),this._state=m,this.startLoop(e)}))}else{let r=c(n,t);if(!this._skipUTF8Validation&&!f(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===y||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=m):(this._state=b,setImmediate(()=>{this.emit(`message`,r,!1),this._state=m,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,a),this.end();else{let n=e.readUInt16BE(0);if(!d(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=m;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=m):(this._state=b,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=m,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}}}),Ne=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js"(e,t){var{Duplex:n}=F(`stream`),{randomFillSync:r}=F(`crypto`),{types:{isUint8Array:i}}=F(`util`),a=je(),{EMPTY_BUFFER:o,kWebSocket:s,NOOP:c}=R(),{isBlob:l,isValidStatusCode:u}=z(),{mask:d,toBuffer:f}=ke(),p=Symbol(`kByteLength`),m=Buffer.alloc(4),h=8192,g,_=h,v=0,y=1,b=2;t.exports=class e{static{P(this,`Sender`)}constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=v,this.onerror=c,this[s]=void 0}static frame(e,t){let n,i=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(_===h&&(g===void 0&&(g=Buffer.alloc(h)),r(g,0,h),_=0),n[0]=g[_++],n[1]=g[_++],n[2]=g[_++],n[3]=g[_++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[p]!==void 0?s=t[p]:(e=Buffer.from(e),s=e.length):(s=e.length,i=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(i?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:i?(d(e,n,l,a,s),[l]):(d(e,n,e,0,s),[l,e])}close(t,n,r,a){let s;if(t===void 0)s=o;else if(typeof t!=`number`||!u(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(s=Buffer.allocUnsafe(2+e),s.writeUInt16BE(t,0),typeof n==`string`)s.write(n,2);else if(i(n))s.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[p]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===v?this.sendFrame(e.frame(s,c),a):this.enqueue([this.dispatch,s,!1,c,a])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};l(t)?this._state===v?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===v?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};l(t)?this._state===v?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===v?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[a.extensionName],i=t.binary?2:1,o=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):l(e)?(s=e.size,c=!1):(e=f(e),s=e.length,c=f.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let u={[p]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:o};l(e)?this._state===v?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===v?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[p],this._state=b,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while the blob was being read`);process.nextTick(x,this,e,i);return}this._bufferedBytes-=r[p];let a=f(t);n?this.dispatch(a,n,r,i):(this._state=v,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(S,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=r[p],this._state=y,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while data was being compressed`);x(this,e,i);return}this._bufferedBytes-=r[p],this._state=v,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===v&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function x(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}P(x,`callCallbacks`);function S(e,t,n){x(e,t,n),e.onerror(t)}P(S,`onError`)}}),Pe=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js"(e,t){var{kForOnEventAttribute:n,kListener:r}=R(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`),f=class{static{P(this,`Event`)}constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{static{P(this,`CloseEvent`)}constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean!==void 0&&t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{static{P(this,`ErrorEvent`)}constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var h=class extends f{static{P(this,`MessageEvent`)}constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=/* @__PURE__ */ P(function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)},`onMessage`);else if(e===`close`)a=/* @__PURE__ */ P(function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)},`onClose`);else if(e===`error`)a=/* @__PURE__ */ P(function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)},`onError`);else if(e===`open`)a=/* @__PURE__ */ P(function(){let e=new f(`open`);e[l]=this,g(t,this,e)},`onOpen`);else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}P(g,`callListener`)}}),Fe=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js"(e,t){var{tokenChars:n}=z();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}P(r,`push`);function i(e){let t=/* @__PURE__ */ Object.create(null),i=/* @__PURE__ */ Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=/* @__PURE__ */ Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`)}else if(l===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=/* @__PURE__ */ Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s){if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=/* @__PURE__ */ Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}P(i,`parse`);function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}P(a,`format`),t.exports={format:a,parse:i}}}),Ie=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js"(e,t){var n=F(`events`),r=F(`https`),i=F(`http`),a=F(`net`),o=F(`tls`),{randomBytes:s,createHash:c}=F(`crypto`),{Duplex:l,Readable:u}=F(`stream`),{URL:d}=F(`url`),f=je(),p=Me(),m=Ne(),{isBlob:h}=z(),{BINARY_TYPES:g,CLOSE_TIMEOUT:_,EMPTY_BUFFER:v,GUID:y,kForOnEventAttribute:b,kListener:x,kStatusCode:S,kWebSocket:C,NOOP:w}=R(),{EventTarget:{addEventListener:ee,removeEventListener:te}}=Pe(),{format:ne,parse:re}=Fe(),{toBuffer:ie}=ke(),ae=Symbol(`kAborted`),oe=[8,13],T=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],se=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,E=class e extends n{static{P(this,`WebSocket`)}constructor(t,n,r){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),ce(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}
2
+ import{F as e,O as t,U as n,X as r,Y as i,_ as a,g as o,rt as s,tt as c,v as l}from"./dist-DZRTPMMA.mjs";import{M as u,N as d,d as f,g as p,k as m,v as h}from"./chunk-2HLTAS5V-D7COzUOd.mjs";import{t as g}from"./version-CVlh2Zaq.mjs";import{n as _}from"./dist-uRuGmkMB.mjs";import{C as v,D as y,E as b,S as x,_ as S,c as C,f as w,h as ee,m as te,o as ne,u as re,v as ie,w as ae}from"./interactive-BW9T1D1q.mjs";import{n as oe,r as T,t as se}from"./dialog-D4Y9ocuF.mjs";import{createRequire as E}from"node:module";import{setTimeout as ce}from"node:timers/promises";import{existsSync as D,readFileSync as le}from"node:fs";import O,{join as k}from"node:path";import A from"node:process";import{release as ue}from"node:os";import de from"node:assert";import{createServer as fe}from"node:net";import{once as pe}from"node:events";import me,{createHash as he,randomUUID as ge}from"node:crypto";import{execFile as _e,execFileSync as ve,spawn as j}from"node:child_process";import{cleanBuildOutputDir as ye,normalizeDirectoryName as M,writeContainerConfig as be}from"@cloudflare/build-output-utils";function xe(e,t=A.stderr){t.isTTY&&(e?t.write(`\x1B[?25h`):t.write(`\x1B[?25l`))}const N=E(import.meta.url||(typeof __filename==`string`?__filename:`/`));var Se=Object.create,Ce=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyNames,Ee=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,P=(e,t)=>Ce(e,`name`,{value:t,configurable:!0}),F=/* @__PURE__ */ (e=>N===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(N===void 0?e:N)[t]}):e:N)(function(e){if(N!==void 0)return N.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),I=(e,t)=>function(){return t||(0,e[Te(e)[0]])((t={exports:{}}).exports,t),t.exports},Oe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Te(t))!De.call(e,i)&&i!==n&&Ce(e,i,{get:()=>t[i],enumerable:!(r=we(t,i))||r.enumerable});return e},L=(e,t,n)=>(n=e==null?{}:Se(Ee(e)),Oe(Ce(n,`default`,{value:e,enumerable:!0}),e)),R=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js"(e,t){var n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:/* @__PURE__ */ P(()=>{},`NOOP`)}}}),ke=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js"(e,t){var{EMPTY_BUFFER:n}=R(),r=Buffer[Symbol.species];function i(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];i.set(n,a),a+=n.length}return a<t?new r(i.buffer,i.byteOffset,a):i}P(i,`concat`);function a(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}P(a,`_mask`);function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}P(o,`_unmask`);function s(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}P(s,`toArrayBuffer`);function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new r(e):ArrayBuffer.isView(e)?t=new r(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}if(P(c,`toBuffer`),t.exports={concat:i,mask:a,toArrayBuffer:s,toBuffer:c,unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{let e=F(`bufferutil`);t.exports.mask=function(t,n,r,i,o){o<48?a(t,n,r,i,o):e.mask(t,n,r,i,o)},t.exports.unmask=function(t,n){t.length<32?o(t,n):e.unmask(t,n)}}catch{}}}),Ae=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js"(e,t){var n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{static{P(this,`Limiter`)}constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}}}),je=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js"(e,t){var n=F(`zlib`),r=ke(),i=Ae(),{kStatusCode:a}=R(),o=Buffer[Symbol.species],s=Buffer.from([0,0,255,255]),c=Symbol(`permessage-deflate`),l=Symbol(`total-length`),u=Symbol(`callback`),d=Symbol(`buffers`),f=Symbol(`error`),p;t.exports=class{static{P(this,`PerMessageDeflate`)}constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,p||=new i(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(/* @__PURE__ */ Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){p.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){p.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,i){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[d]=[],this._inflate.on(`error`,g),this._inflate.on(`data`,h)}this._inflate[u]=i,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush(()=>{let e=this._inflate[f];if(e){this._inflate.close(),this._inflate=null,i(e);return}let n=r.concat(this._inflate[d],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),i(null,n)})}_compress(e,t,i){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[d]=[],this._deflate.on(`data`,m)}this._deflate[u]=i,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=r.concat(this._deflate[d],this._deflate[l]);t&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}};function m(e){this[d].push(e),this[l]+=e.length}P(m,`deflateOnData`);function h(e){if(this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[f]=/* @__PURE__ */ RangeError(`Max payload size exceeded`),this[f].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[f][a]=1009,this.removeListener(`data`,h),this.reset()}P(h,`inflateOnData`);function g(e){if(this[c]._inflate=null,this[f]){this[u](this[f]);return}e[a]=1007,this[u](e)}P(g,`inflateOnError`)}}),z=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js"(e,t){var{isUtf8:n}=F(`buffer`),{hasBlob:r}=R(),i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function a(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}P(a,`isValidStatusCode`);function o(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}P(o,`_isValidUTF8`);function s(e){return r&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(P(s,`isBlob`),t.exports={isBlob:s,isValidStatusCode:a,isValidUTF8:o,tokenChars:i},n)t.exports.isValidUTF8=function(e){return e.length<24?o(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=F(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?o(t):e(t)}}catch{}}}),Me=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js"(e,t){var{Writable:n}=F(`stream`),r=je(),{BINARY_TYPES:i,EMPTY_BUFFER:a,kStatusCode:o,kWebSocket:s}=R(),{concat:c,toArrayBuffer:l,unmask:u}=ke(),{isValidStatusCode:d,isValidUTF8:f}=z(),p=Buffer[Symbol.species],m=0,h=1,g=2,_=3,v=4,y=5,b=6;t.exports=class extends n{static{P(this,`Receiver`)}constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0||e.allowSynchronousEvents,this._binaryType=e.binaryType||i[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[s]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=m}_write(e,t,n){if(this._opcode===8&&this._state==m)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e),new p(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new p(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case m:this.getInfo(e);break;case h:this.getPayloadLength16(e);break;case g:this.getPayloadLength64(e);break;case _:this.getMask();break;case v:this.getData(e);break;case y:case b:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[r.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=h:this._payloadLength===127?this._state=g:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._state=this._masked?_:v}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=v}getData(e){let t=a;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=y,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[r.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===m&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=m;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?c(n,t):this._binaryType===`arraybuffer`?l(c(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=m):(this._state=b,setImmediate(()=>{this.emit(`message`,r,!0),this._state=m,this.startLoop(e)}))}else{let r=c(n,t);if(!this._skipUTF8Validation&&!f(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===y||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=m):(this._state=b,setImmediate(()=>{this.emit(`message`,r,!1),this._state=m,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,a),this.end();else{let n=e.readUInt16BE(0);if(!d(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=m;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=m):(this._state=b,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=m,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}}}),Ne=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js"(e,t){var{Duplex:n}=F(`stream`),{randomFillSync:r}=F(`crypto`),{types:{isUint8Array:i}}=F(`util`),a=je(),{EMPTY_BUFFER:o,kWebSocket:s,NOOP:c}=R(),{isBlob:l,isValidStatusCode:u}=z(),{mask:d,toBuffer:f}=ke(),p=Symbol(`kByteLength`),m=Buffer.alloc(4),h=8192,g,_=h,v=0,y=1,b=2;t.exports=class e{static{P(this,`Sender`)}constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=v,this.onerror=c,this[s]=void 0}static frame(e,t){let n,i=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(_===h&&(g===void 0&&(g=Buffer.alloc(h)),r(g,0,h),_=0),n[0]=g[_++],n[1]=g[_++],n[2]=g[_++],n[3]=g[_++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[p]!==void 0?s=t[p]:(e=Buffer.from(e),s=e.length):(s=e.length,i=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(i?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:i?(d(e,n,l,a,s),[l]):(d(e,n,e,0,s),[l,e])}close(t,n,r,a){let s;if(t===void 0)s=o;else if(typeof t!=`number`||!u(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(s=Buffer.allocUnsafe(2+e),s.writeUInt16BE(t,0),typeof n==`string`)s.write(n,2);else if(i(n))s.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[p]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===v?this.sendFrame(e.frame(s,c),a):this.enqueue([this.dispatch,s,!1,c,a])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};l(t)?this._state===v?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===v?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};l(t)?this._state===v?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===v?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[a.extensionName],i=t.binary?2:1,o=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):l(e)?(s=e.size,c=!1):(e=f(e),s=e.length,c=f.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let u={[p]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:o};l(e)?this._state===v?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===v?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[p],this._state=b,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while the blob was being read`);process.nextTick(x,this,e,i);return}this._bufferedBytes-=r[p];let a=f(t);n?this.dispatch(a,n,r,i):(this._state=v,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(S,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=r[p],this._state=y,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while data was being compressed`);x(this,e,i);return}this._bufferedBytes-=r[p],this._state=v,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===v&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function x(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}P(x,`callCallbacks`);function S(e,t,n){x(e,t,n),e.onerror(t)}P(S,`onError`)}}),Pe=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js"(e,t){var{kForOnEventAttribute:n,kListener:r}=R(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`),f=class{static{P(this,`Event`)}constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{static{P(this,`CloseEvent`)}constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean!==void 0&&t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{static{P(this,`ErrorEvent`)}constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var h=class extends f{static{P(this,`MessageEvent`)}constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=/* @__PURE__ */ P(function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)},`onMessage`);else if(e===`close`)a=/* @__PURE__ */ P(function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)},`onClose`);else if(e===`error`)a=/* @__PURE__ */ P(function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)},`onError`);else if(e===`open`)a=/* @__PURE__ */ P(function(){let e=new f(`open`);e[l]=this,g(t,this,e)},`onOpen`);else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}P(g,`callListener`)}}),Fe=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js"(e,t){var{tokenChars:n}=z();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}P(r,`push`);function i(e){let t=/* @__PURE__ */ Object.create(null),i=/* @__PURE__ */ Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=/* @__PURE__ */ Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`)}else if(l===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=/* @__PURE__ */ Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s){if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=/* @__PURE__ */ Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}P(i,`parse`);function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}P(a,`format`),t.exports={format:a,parse:i}}}),Ie=I({"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js"(e,t){var n=F(`events`),r=F(`https`),i=F(`http`),a=F(`net`),o=F(`tls`),{randomBytes:s,createHash:c}=F(`crypto`),{Duplex:l,Readable:u}=F(`stream`),{URL:d}=F(`url`),f=je(),p=Me(),m=Ne(),{isBlob:h}=z(),{BINARY_TYPES:g,CLOSE_TIMEOUT:_,EMPTY_BUFFER:v,GUID:y,kForOnEventAttribute:b,kListener:x,kStatusCode:S,kWebSocket:C,NOOP:w}=R(),{EventTarget:{addEventListener:ee,removeEventListener:te}}=Pe(),{format:ne,parse:re}=Fe(),{toBuffer:ie}=ke(),ae=Symbol(`kAborted`),oe=[8,13],T=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],se=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,E=class e extends n{static{P(this,`WebSocket`)}constructor(t,n,r){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),ce(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}
3
3
  /* istanbul ignore next */
4
4
  get onclose(){return null}
5
5
  /* istanbul ignore next */
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks`,body:`json`,constants:{check_type:`icmp`}};function g(e){return e.usage(`$0 diagnostics endpoint-healthchecks create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks`,body:`json`,constants:{check_type:`icmp`}};function g(e){return e.usage(`$0 diagnostics endpoint-healthchecks create
3
3
 
4
4
  Create Endpoint Health Check.`).option(`check-type`,{type:`string`,description:`type of check to perform`,choices:[`icmp`],default:`icmp`}).coerce(`check-type`,e=>d(e,`check-type`,`text`)).option(`endpoint`,{type:`string`,description:`the IP address of the host to perform checks against`}).option(`name`,{type:`string`,description:`Optional name associated with this check`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create`,describe:`Endpoint Health Check`,builder:g,handler:async e=>c({command:`diagnostics endpoint-healthchecks create`,classification:{safeFlags:[`check-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf diagnostics endpoint-healthchecks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/diagnostics/endpoint-healthchecks`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e[`check-type`]===void 0&&(e[`check-type`]=await p(`check-type`,`type of check to perform`,[`icmp`])),e.endpoint===void 0&&(e.endpoint=await f(`endpoint`,`the IP address of the host to perform checks against`));let g=u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks/${t.id}`};function y(e){return e.usage(`$0 diagnostics endpoint-healthchecks delete <id>
5
5
 
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BAJpE3jV.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 dls regional_services prefix_bindings create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 dls regional-services prefix-bindings create
3
3
 
4
- Create a DLS prefix binding`).option(`cidr`,{type:`string`,description:`IP prefix in CIDR notation to bind.`}).option(`prefix-id`,{type:`string`,description:`The ID of the parent IP prefix that contains the CIDR.`}).option(`region-key`,{type:`string`,description:`Region key from managed regions (e.g., "us", "eu").`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a DLS prefix binding`,builder:h,handler:async e=>c({command:`dls regional_services prefix_bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional_services prefix_bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await f(`cidr`,`IP prefix in CIDR notation to bind.`)),e[`prefix-id`]===void 0&&(e[`prefix-id`]=await f(`prefix-id`,`The ID of the parent IP prefix that contains the CIDR.`)),e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`Region key from managed regions (e.g., "us", "eu").`));let h=u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 dls regional_services prefix_bindings delete <binding-id>
4
+ Create a DLS prefix binding`).option(`cidr`,{type:`string`,description:`IP prefix in CIDR notation to bind.`}).option(`prefix-id`,{type:`string`,description:`The ID of the parent IP prefix that contains the CIDR.`}).option(`region-key`,{type:`string`,description:`Region key from managed regions (e.g., "us", "eu").`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a DLS prefix binding`,builder:h,handler:async e=>c({command:`dls regional-services prefix-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await f(`cidr`,`IP prefix in CIDR notation to bind.`)),e[`prefix-id`]===void 0&&(e[`prefix-id`]=await f(`prefix-id`,`The ID of the parent IP prefix that contains the CIDR.`)),e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`Region key from managed regions (e.g., "us", "eu").`));let h=u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 dls regional-services prefix-bindings delete <binding-id>
5
5
 
6
- Delete a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <binding-id>`,describe:`Delete a DLS prefix binding`,builder:v,handler:async e=>c({command:`dls regional_services prefix_bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional_services prefix_bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force})){process.stderr.write(`Aborted.
7
- `);return}let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,binding_id:e[`binding-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function x(e){return e.usage(`$0 dls regional_services prefix_bindings edit <binding-id>
6
+ Delete a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <binding-id>`,describe:`Delete a DLS prefix binding`,builder:v,handler:async e=>c({command:`dls regional-services prefix-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force})){process.stderr.write(`Aborted.
7
+ `);return}let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,binding_id:e[`binding-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function x(e){return e.usage(`$0 dls regional-services prefix-bindings edit <binding-id>
8
8
 
9
- Update a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`region-key`,{type:`string`,description:`New region key to assign (e.g., "us", "eu", "cfcanary").`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <binding-id>`,describe:`Update a DLS prefix binding`,builder:x,handler:async e=>c({command:`dls regional_services prefix_bindings edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional_services prefix_bindings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(b,{body:t,account_id:p,binding_id:e[`binding-id`]}));a(n,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`New region key to assign (e.g., "us", "eu", "cfcanary").`));let m=u({region_key:d(e[`region-key`],`region-key`,`text`)}),h=await s(`Updating`,async()=>c.send(b,{body:m,account_id:p,binding_id:e[`binding-id`]}));a(h,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function w(e){return e.usage(`$0 dls regional_services prefix_bindings get <binding-id>
9
+ Update a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`region-key`,{type:`string`,description:`New region key to assign (e.g., "us", "eu", "cfcanary").`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <binding-id>`,describe:`Update a DLS prefix binding`,builder:x,handler:async e=>c({command:`dls regional-services prefix-bindings edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(b,{body:t,account_id:p,binding_id:e[`binding-id`]}));a(n,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`New region key to assign (e.g., "us", "eu", "cfcanary").`));let m=u({region_key:d(e[`region-key`],`region-key`,`text`)}),h=await s(`Updating`,async()=>c.send(b,{body:m,account_id:p,binding_id:e[`binding-id`]}));a(h,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function w(e){return e.usage(`$0 dls regional-services prefix-bindings get <binding-id>
10
10
 
11
- Get a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <binding-id>`,describe:`Get a DLS prefix binding`,builder:w,handler:async e=>c({command:`dls regional_services prefix_bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional_services prefix_bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(C,{account_id:l,binding_id:e[`binding-id`]}));a(u,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function D(e){return e.usage(`$0 dls regional_services prefix_bindings list
11
+ Get a DLS prefix binding`).positional(`binding-id`,{type:`string`,description:`Unique identifier for the prefix binding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <binding-id>`,describe:`Get a DLS prefix binding`,builder:w,handler:async e=>c({command:`dls regional-services prefix-bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(C,{account_id:l,binding_id:e[`binding-id`]}));a(u,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function D(e){return e.usage(`$0 dls regional-services prefix-bindings list
12
12
 
13
- List DLS prefix bindings for an account`).option(`cursor`,{type:`string`,description:`Opaque token for cursor-based pagination. Omit for the first page. Pass the value from a previous response to fetch the next page.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List DLS prefix bindings for an account`,builder:D,handler:async e=>c({command:`dls regional_services prefix_bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf dls regional_services prefix_bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(E,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},k={command:`prefix_bindings`,describe:`Operations for regional_services.prefix_bindings`,builder:e=>e.command(g).command(y).command(S).command(T).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},A={command:`regional_services`,describe:`Operations for regional_services`,builder:e=>e.command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regions/${t.region_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function M(e){return e.usage(`$0 dls regions get <region-id>
13
+ List DLS prefix bindings for an account`).option(`cursor`,{type:`string`,description:`Opaque token for cursor-based pagination. Omit for the first page. Pass the value from a previous response to fetch the next page.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List DLS prefix bindings for an account`,builder:D,handler:async e=>c({command:`dls regional-services prefix-bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf dls regional-services prefix-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(E,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},k={command:`prefix-bindings`,describe:`Operations for regional-services.prefix-bindings`,builder:e=>e.command(g).command(y).command(S).command(T).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},A={command:`regional-services`,describe:`Operations for regional-services`,builder:e=>e.command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regions/${t.region_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function M(e){return e.usage(`$0 dls regions get <region-id>
14
14
 
15
15
  Get a DLS region`).positional(`region-id`,{type:`string`,description:`UUID of the region (custom or managed) or region_key of a managed region.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <region-id>`,describe:`Get a DLS region`,builder:M,handler:async e=>c({command:`dls regions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regions/${e[`region-id`]==null?`<region-id>`:encodeURIComponent(String(e[`region-id`]))}`,pathParams:{"region-id":String(e[`region-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(j,{account_id:l,region_id:e[`region-id`]}));a(u,{successLabel:`Loaded`})})};var P={method:`GET`,path:t=>e`/accounts/${t.account_id}/dls/regions`,query:[`cursor`,`per_page`,`type`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function F(e){return e.usage(`$0 dls regions list
16
16
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BAJpE3jV.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function h(e){return e.usage(`$0 dns-firewall create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function h(e){return e.usage(`$0 dns-firewall create
3
3
 
4
4
  Create a DNS Firewall cluster`).option(`attack-mitigation-enabled`,{type:`boolean`,description:`When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers`}).option(`attack-mitigation-only-when-upstream-unhealthy`,{type:`boolean`,description:`Only mitigate attacks when upstream servers seem unhealthy`}).option(`deprecate-any-requests`,{type:`boolean`,description:`Whether to refuse to answer queries for the ANY type`}).option(`ecs-fallback`,{type:`boolean`,description:`Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent`}).option(`maximum-cache-ttl`,{type:`number`,description:`By default, Cloudflare attempts to cache responses for as long as
5
5
  indicated by the TTL received from upstream nameservers. This setting