cf 1.0.0-beta.23 → 1.0.0-beta.25

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 (244) hide show
  1. package/dist/_meta/commands.json +547 -150
  2. package/dist/_meta/hand-written-commands.json +46 -2
  3. package/dist/_meta/schemas.json +277 -2
  4. package/dist/{abuse-reports-SaxhQy6n.mjs → abuse-reports-BIS9MZn7.mjs} +3 -3
  5. package/dist/{access-BI_7K9ye.mjs → access-__sFDSFL.mjs} +1 -1
  6. package/dist/{accounts-yCqYkAyG.mjs → accounts-CmggwRjh.mjs} +36 -34
  7. package/dist/{acm-Cyvj0TLt.mjs → acm-AAhRZUAU.mjs} +1 -1
  8. package/dist/{addressing-CPjDXCGE.mjs → addressing-DVeJNPZc.mjs} +1 -1
  9. package/dist/{agent-memory-EoP2Uwo7.mjs → agent-memory-DQhWO6sc.mjs} +1 -1
  10. package/dist/{ai-DU5T7Rw7.mjs → ai-CULO9sno.mjs} +3 -3
  11. package/dist/{ai-audit-DVT8qGLn.mjs → ai-audit-udn4HF34.mjs} +1 -1
  12. package/dist/{ai-gateway-BYtptiIM.mjs → ai-gateway-Bm2MMdec.mjs} +3 -3
  13. package/dist/{ai-search-CJJ5XZTd.mjs → ai-search-GRN_gXgU.mjs} +1 -1
  14. package/dist/{ai-security-CidIWQ2m.mjs → ai-security-DXy9ht-9.mjs} +2 -2
  15. package/dist/{alerting-CVatzxaS.mjs → alerting-CssnaN2i.mjs} +1 -1
  16. package/dist/{analytics-BWJAOVxo.mjs → analytics-BVo7Ax0w.mjs} +1 -1
  17. package/dist/{analytics-engine-CZgKAEo0.mjs → analytics-engine-BBd0Bydx.mjs} +1 -1
  18. package/dist/{api-security-CAeFfkOp.mjs → api-security-C-D9OKtH.mjs} +3 -3
  19. package/dist/{argo-YKMl_X-Q.mjs → argo-DSziwzvA.mjs} +1 -1
  20. package/dist/{artifacts-CrWK_jdk.mjs → artifacts-nVMgn4dn.mjs} +1 -1
  21. package/dist/{audit-logs-C7Z4o6lL.mjs → audit-logs-DIZ5oA_y.mjs} +1 -1
  22. package/dist/auth-Bls_1yRW.mjs +2 -0
  23. package/dist/{auth-DkPhAgZv.mjs → auth-CB9wjyad.mjs} +1 -1
  24. package/dist/auth-JsvLULHA.mjs +7 -0
  25. package/dist/{auth-token-C-ushV4K.mjs → auth-token-BAgw7kYP.mjs} +1 -1
  26. package/dist/{autoconfig-CwWsgTP2.mjs → autoconfig-CajkMb3B.mjs} +19 -11
  27. package/dist/{basin-catalog-Df0BLUfb.mjs → basin-catalog-BRvGeKm3.mjs} +9 -9
  28. package/dist/{billing-C7qD2cBJ.mjs → billing-BhPoqyKC.mjs} +1 -1
  29. package/dist/{blocks-hVx18MUM.mjs → blocks-D2tE8dp2.mjs} +1 -1
  30. package/dist/{bot-management-Dv2tluEZ.mjs → bot-management-BfjX5DuH.mjs} +1 -1
  31. package/dist/{botnet-feed-DrIY4gpG.mjs → botnet-feed-VOL5P4s3.mjs} +1 -1
  32. package/dist/{brand-protection-of9uwStG.mjs → brand-protection-CSVHQ9Pt.mjs} +2 -2
  33. package/dist/{browser-run-CbMV-Pf5.mjs → browser-run-cxOd2cZE.mjs} +1 -1
  34. package/dist/{build-Yf5bvUk2.mjs → build-BfkzV5_c.mjs} +1 -1
  35. package/dist/build-DCdLWwOg.mjs +2 -0
  36. package/dist/{builds-DQrlz2-K.mjs → builds-y5BQCJ81.mjs} +1 -1
  37. package/dist/{cache-suoMuQMh.mjs → cache-Bvr988Hj.mjs} +1 -1
  38. package/dist/cf-DgLg6Hop.mjs +18 -0
  39. package/dist/{chunk-3PJ54H4K-C8sxQzhB.mjs → chunk-3PJ54H4K-CbRAWQWI.mjs} +1 -1
  40. package/dist/{chunk-DSGVRFIS-CP2xC0bc.mjs → chunk-DSGVRFIS-Dq2PrGsi.mjs} +1 -1
  41. package/dist/{cli-BjAkPFKt.mjs → cli-BTxJfFus.mjs} +1 -1
  42. package/dist/{client-side-security-lh4tvRH8.mjs → client-side-security-CFmO0uz9.mjs} +1 -1
  43. package/dist/{cloud-connector-C65g5ddh.mjs → cloud-connector-CtwPdFBa.mjs} +1 -1
  44. package/dist/{cloudflared-FEg1GxHT.mjs → cloudflared-DPkNN1Qv.mjs} +1 -1
  45. package/dist/{cloudforce-one-C2K8Sbji.mjs → cloudforce-one-DHrMaxnU.mjs} +59 -59
  46. package/dist/{command-BfoLlrr1.mjs → command-6_Ms3TZv.mjs} +1 -1
  47. package/dist/{command-DrdxR1tJ.mjs → command-BWyx7dNO.mjs} +1 -1
  48. package/dist/{command-DCJgoFz9.mjs → command-BXCk1OsI.mjs} +1 -1
  49. package/dist/{command-BqEoltQG.mjs → command-CCDzJjIB.mjs} +1 -1
  50. package/dist/{command-CKXrXY0q.mjs → command-CDYTsmxe.mjs} +1 -1
  51. package/dist/{command-CBQp3Znu.mjs → command-CXwKBbj9.mjs} +1 -1
  52. package/dist/{command-DRBtP4R8.mjs → command-ClneauMx.mjs} +1 -1
  53. package/dist/{command-Cby3gjqh.mjs → command-CmK8-DJ9.mjs} +1 -1
  54. package/dist/{command-BaIY4UuC.mjs → command-Ct3tf-P5.mjs} +1 -1
  55. package/dist/{command-CszTdUQV.mjs → command-DPOjEs1B.mjs} +1 -1
  56. package/dist/{command-D3E7d8E7.mjs → command-DqWBPiew.mjs} +1 -1
  57. package/dist/{command-C2ZXXZI4.mjs → command-YFWLEK8W.mjs} +1 -1
  58. package/dist/{command-BHJu931_.mjs → command-ckixJeTm.mjs} +1 -1
  59. package/dist/{command-C5465_vZ.mjs → command-lJJ7sEZe.mjs} +1 -1
  60. package/dist/{completions-DIIrktem.mjs → completions-B1rYgw_a.mjs} +1 -1
  61. package/dist/{connector-interrupts-B4xZTu7K.mjs → connector-interrupts-DecTdK6X.mjs} +1 -1
  62. package/dist/{connector-telemetry-events-DtTO6KCB.mjs → connector-telemetry-events-wePxPACj.mjs} +1 -1
  63. package/dist/{connector-telemetry-snapshots-BS1Cq8v_.mjs → connector-telemetry-snapshots-D8sXR1qx.mjs} +1 -1
  64. package/dist/{connectors-CUywNbTu.mjs → connectors-C-6RQ_Q1.mjs} +1 -1
  65. package/dist/{containers-DCL31jYE.mjs → containers-C_byVTZF.mjs} +193 -193
  66. package/dist/{containers-CQxEk5xO.mjs → containers-D65Gpj9Q.mjs} +2 -2
  67. package/dist/{content-scan-6BGlT-em.mjs → content-scan-DbIDQ-Yu.mjs} +1 -1
  68. package/dist/{context-DoGlohS-.mjs → context-DCon1tRZ.mjs} +1 -1
  69. package/dist/{cps-BoQ1alPM.mjs → cps-DGLmzCzp.mjs} +1 -1
  70. package/dist/{csam-scanner-OFnvPsqP.mjs → csam-scanner-R7Ih-Dnw.mjs} +1 -1
  71. package/dist/{custom-csrs-BT-kjyPt.mjs → custom-csrs-D0RnVoJ7.mjs} +1 -1
  72. package/dist/{custom-hostnames-ItOUZwKc.mjs → custom-hostnames-BFWR-tR_.mjs} +1 -1
  73. package/dist/{custom-nameservers-BZ1SzRQI.mjs → custom-nameservers-Dn_9Ssti.mjs} +1 -1
  74. package/dist/{custom-pages-rIzNbxrh.mjs → custom-pages-HqIQcb77.mjs} +1 -1
  75. package/dist/{d1-DtEeX2ua.mjs → d1-CopIY9RT.mjs} +2 -2
  76. package/dist/{delegate-3IgxBeFH.mjs → delegate-CTj0dYET.mjs} +1 -1
  77. package/dist/delegate.mjs +1 -1
  78. package/dist/{deploy-CvIiOhGj.mjs → deploy-BVTA83rN.mjs} +1 -1
  79. package/dist/{deploy-context-CCahKKFs.mjs → deploy-context-CO8ZSRwx.mjs} +1 -1
  80. package/dist/{deploy-input-BusFZFqu.mjs → deploy-input-PhKRxa_2.mjs} +1 -1
  81. package/dist/dev-CM5GLHNn.mjs +4 -0
  82. package/dist/{diagnostics-Di6xJHuC.mjs → diagnostics-DPjl0aCm.mjs} +1 -1
  83. package/dist/{dist-D5YYi2LO.mjs → dist-ataVE8ob.mjs} +3 -3
  84. package/dist/{dls-CAlQiQv4.mjs → dls-BLTIVlbh.mjs} +1 -1
  85. package/dist/{dns-BzxLC4D1.mjs → dns-DkqVq-nB.mjs} +60 -58
  86. package/dist/{dns-firewall-CHVL95X_.mjs → dns-firewall-D1bb1byu.mjs} +1 -1
  87. package/dist/{docs-SWvG8lKe.mjs → docs-tOv_OllI.mjs} +1 -1
  88. package/dist/{durable-objects-DZl4seSi.mjs → durable-objects-OJhns_to.mjs} +1 -1
  89. package/dist/{email-auth-hHJQmtYR.mjs → email-auth-BbsIBNlu.mjs} +1 -1
  90. package/dist/{email-domains-BBFPOLQx.mjs → email-domains-pWZi1M4q.mjs} +1 -1
  91. package/dist/{email-routing-Cimk4lg2.mjs → email-routing-DnitWE1A.mjs} +1 -1
  92. package/dist/{email-security-DiNFIpmg.mjs → email-security-DiWtb7cx.mjs} +2 -2
  93. package/dist/{email-sending-yIqoikwn.mjs → email-sending-DuDjXykw.mjs} +1 -1
  94. package/dist/{errors-d_Ld5w3d.mjs → errors-CCFmptqJ.mjs} +1 -1
  95. package/dist/{field-extractors-CiuZnMX2.mjs → field-extractors-DNNnkBZH.mjs} +1 -1
  96. package/dist/{firewall-B8QK0M1Y.mjs → firewall-C7eZRNVF.mjs} +22 -16
  97. package/dist/{flagship-Dh0-PZgv.mjs → flagship-BczjsrJ5.mjs} +1 -1
  98. package/dist/{fraud-DDebasT8.mjs → fraud-wE0UM2SM.mjs} +1 -1
  99. package/dist/{google-tag-gateway-BPrh4DbT.mjs → google-tag-gateway-6mvtxcJK.mjs} +1 -1
  100. package/dist/{healthchecks-CF8SJ-wN.mjs → healthchecks-aIB3DebS.mjs} +1 -1
  101. package/dist/{hyperdrive-B9uPSMiW.mjs → hyperdrive-DHRP8SJS.mjs} +1 -1
  102. package/dist/{iam-g9EBjHMK.mjs → iam-6t7-ScrS.mjs} +1 -1
  103. package/dist/{images-BqSlZF88.mjs → images-CLgvxd0t.mjs} +1 -1
  104. package/dist/index.mjs +1 -1
  105. package/dist/{init-CIfT7Qx1.mjs → init-B_DBTMXU.mjs} +1 -1
  106. package/dist/{intel-D8nT11Y4.mjs → intel-jnoIVlYG.mjs} +2 -2
  107. package/dist/{interactive-DOWEcR6_.mjs → interactive-1g0dnrA8.mjs} +1 -1
  108. package/dist/{internal-C7zUQ4fS.mjs → internal-Ba3b-Z8J.mjs} +1 -1
  109. package/dist/{ips-DwrIBecV.mjs → ips-CQ4gFfex.mjs} +1 -1
  110. package/dist/{k2-7r63P37v.mjs → k2-Bsm6rzNX.mjs} +1 -1
  111. package/dist/{kv-BQSq0aQ5.mjs → kv-DQfnNE-w.mjs} +1 -1
  112. package/dist/{lazy-command-JgUZQW-c.mjs → lazy-command-DjGzxiUT.mjs} +1 -1
  113. package/dist/{leaked-credential-checks-Bu2NYq31.mjs → leaked-credential-checks-CaqjG3Oz.mjs} +1 -1
  114. package/dist/list-4MfEFwJN.mjs +2 -0
  115. package/dist/list-ByCv9-Fl.mjs +2 -0
  116. package/dist/{live-ZSukf_dI.mjs → live-BfobGv8W.mjs} +1 -1
  117. package/dist/{load-balancers-CthmhsmC.mjs → load-balancers-BzSCp2Uh.mjs} +1 -1
  118. package/dist/{local-Y4rIAAtA.mjs → local-BNmz58v4.mjs} +1 -1
  119. package/dist/local-ChR3YIMU.mjs +2 -0
  120. package/dist/local-runtime-DvH92pV8.mjs +2 -0
  121. package/dist/{login-lXb4Sqs9.mjs → login-B9wYab6S.mjs} +2 -2
  122. package/dist/login-ierSCYE6.mjs +2 -0
  123. package/dist/{logpush-Mw2VklWj.mjs → logpush-DgfiSd1b.mjs} +2 -2
  124. package/dist/{logs-DQrNjo77.mjs → logs-Dan7xU-k.mjs} +1 -1
  125. package/dist/{magic-cloud-networking-D8s1hN3K.mjs → magic-cloud-networking-DP8fWC4a.mjs} +3 -3
  126. package/dist/{magic-network-monitoring-f0ccLJlt.mjs → magic-network-monitoring-TAjt04vN.mjs} +1 -1
  127. package/dist/{magic-transit-7WpZJc0a.mjs → magic-transit-BSuLHnQ5.mjs} +1 -1
  128. package/dist/{managed-defense-QLYmbNgC.mjs → managed-defense-CTnIZLg4.mjs} +1 -1
  129. package/dist/{managed-transforms-CkaQn7tC.mjs → managed-transforms-BETvesjp.mjs} +1 -1
  130. package/dist/{mcp-Di1X9Amj.mjs → mcp-DhjMGaKc.mjs} +1 -1
  131. package/dist/{mesh-CkvqQb6B.mjs → mesh-jxLLG3t4.mjs} +1 -1
  132. package/dist/{migrate-KOhIz9fX.mjs → migrate-Bkhk38nJ.mjs} +1 -1
  133. package/dist/{monetization-C9c2OCag.mjs → monetization-BqDgHlPv.mjs} +1 -1
  134. package/dist/{network-0PlPsgfJ.mjs → network-D6BRpgOv.mjs} +2 -2
  135. package/dist/{network-interconnects-BeiuYp7F.mjs → network-interconnects-tP41GbnL.mjs} +1 -1
  136. package/dist/{o11y-Ys4wGQJ8.mjs → o11y-h4cIC_1T.mjs} +1 -1
  137. package/dist/{oauth-BX5dMp7e.mjs → oauth-CuM12iNb.mjs} +1 -1
  138. package/dist/{oauth-clients-DhVG_Upv.mjs → oauth-clients-B0voUiXM.mjs} +1 -1
  139. package/dist/{oauth-BL039mqa.mjs → oauth-nDH3nTCa.mjs} +2 -2
  140. package/dist/oauth-scopes-Bhns1ZHW.mjs +4 -0
  141. package/dist/{organization-8ateLjgl.mjs → organization-Cy55HoRR.mjs} +4 -4
  142. package/dist/organizations-7Q3d9vcW.mjs +4 -0
  143. package/dist/{origin-post-quantum-encryption-D9qT0WUV.mjs → origin-post-quantum-encryption-XBMPCdSL.mjs} +1 -1
  144. package/dist/package-DK3JX4I3.mjs +2 -0
  145. package/dist/{page-rules-DlOky6Zl.mjs → page-rules-BlT5xlhH.mjs} +1 -1
  146. package/dist/{pages-BcqYjzyx.mjs → pages-CIbL62L2.mjs} +3 -3
  147. package/dist/{pay-per-crawl-DtYmYcHH.mjs → pay-per-crawl-BzsBqo_m.mjs} +1 -1
  148. package/dist/{pay-per-use-DOUCWPNy.mjs → pay-per-use-DtejLYJ8.mjs} +1 -1
  149. package/dist/{pipelines-8yHQduBt.mjs → pipelines-LjLb8jq6.mjs} +1 -1
  150. package/dist/{precursor-CX7gjIRG.mjs → precursor-BKp5_Ag4.mjs} +1 -1
  151. package/dist/{previews-WL-CudUP.mjs → previews-zRYO9uO9.mjs} +1 -1
  152. package/dist/{progress-D2_AF54c.mjs → progress-_Jux05O5.mjs} +1 -1
  153. package/dist/{prompt-BBR19lgj.mjs → prompt-SNVLBS1b.mjs} +1 -1
  154. package/dist/{queues-BDNnjJ5M.mjs → queues-Ci4rGGC4.mjs} +1 -1
  155. package/dist/{r2-B9b18zom.mjs → r2-qm2hgS43.mjs} +1 -1
  156. package/dist/radar-C_ydbJe_.mjs +300 -0
  157. package/dist/{raw-fetch-BFcMz5hY.mjs → raw-fetch-D3ydyJYW.mjs} +1 -1
  158. package/dist/{ready-C8zZ63yB.mjs → ready-hk-_B8z3.mjs} +1 -1
  159. package/dist/{realtime-C8z8iTs4.mjs → realtime-BAvjYmYw.mjs} +2 -2
  160. package/dist/{registrar-BTMp4ivm.mjs → registrar-DD7WZaP2.mjs} +10 -10
  161. package/dist/{registrar-sandbox-C2PG_Alv.mjs → registrar-sandbox-DbxloH5s.mjs} +2 -2
  162. package/dist/{reporting-BQY6_uXf.mjs → reporting-CRVg3J1C.mjs} +1 -1
  163. package/dist/{request-headers-_yTB3kAw.mjs → request-headers-Cn01EsbI.mjs} +1 -1
  164. package/dist/{request-tracers-Dijdzs6y.mjs → request-tracers-BWs0rdFS.mjs} +1 -1
  165. package/dist/{resource-sharing-DYaOk_EC.mjs → resource-sharing-yipIkdbd.mjs} +2 -2
  166. package/dist/{rules-TsOBYamD.mjs → rules-CCtaBLiN.mjs} +1 -1
  167. package/dist/{rulesets-BICRAp0v.mjs → rulesets-DBEvCNDS.mjs} +1 -1
  168. package/dist/{rum-wY_8vewy.mjs → rum-gDOKylu_.mjs} +1 -1
  169. package/dist/{run-C2-1SFrS.mjs → run-Br8sYjNF.mjs} +1 -1
  170. package/dist/run-LOgTLpob.mjs +2 -0
  171. package/dist/schema-cache-Cb64Nqbt.mjs +3 -0
  172. package/dist/schema-flags-BcbbCWR5.mjs +4 -0
  173. package/dist/{scim-BCB-RVUX.mjs → scim-CM8Xah56.mjs} +1 -1
  174. package/dist/{secrets-store-BR-h9nxX.mjs → secrets-store-BEnXiYCC.mjs} +2 -2
  175. package/dist/{security-insights-C3pM4_QG.mjs → security-insights-Be5GvdBA.mjs} +5 -5
  176. package/dist/{security-txt-BYeDQJyf.mjs → security-txt-BF0PWAEW.mjs} +1 -1
  177. package/dist/{session-CG79ZLE9.mjs → session-B7vOqdZU.mjs} +1 -1
  178. package/dist/shared-CBMFY1VY.mjs +2 -0
  179. package/dist/{signed-url-BWwUnIl-.mjs → signed-url-VDDQlllt.mjs} +1 -1
  180. package/dist/{smart-shield-Dlsh9Xdx.mjs → smart-shield-DQku_wYi.mjs} +1 -1
  181. package/dist/{snippets-DWTJdzIF.mjs → snippets-B3FCEMuh.mjs} +1 -1
  182. package/dist/spawn-9sE67p7c.mjs +5 -0
  183. package/dist/{spectrum-RbNSnJya.mjs → spectrum-nLirlVue.mjs} +5 -5
  184. package/dist/{speed-Bh18cP0e.mjs → speed-C1hCyMPy.mjs} +1 -1
  185. package/dist/{sql-BKjCDDS-.mjs → sql-DVQOKThL.mjs} +1 -1
  186. package/dist/src-Bh2gHpI7.mjs +131 -0
  187. package/dist/{ssl-BHMbK4Be.mjs → ssl-CYDRgr24.mjs} +2 -2
  188. package/dist/{startup-profile-B7yHR_YB.mjs → startup-profile-BLvw_Wmc.mjs} +1 -1
  189. package/dist/startup-profile-ByxSdhEl.mjs +2 -0
  190. package/dist/{state-DNuVv5i-.mjs → state-B8n0QU04.mjs} +1 -1
  191. package/dist/state-BTOzaT5L.mjs +2 -0
  192. package/dist/{stream-BFs1vbTA.mjs → stream-DHyejrI6.mjs} +1 -1
  193. package/dist/{tags-ACINMEUC.mjs → tags-DOL6dKQE.mjs} +2 -2
  194. package/dist/{telemetry-Da9TmAgm.mjs → telemetry-DJ8-Q2pU.mjs} +1 -1
  195. package/dist/telemetry-kjElc1zT.mjs +2 -0
  196. package/dist/{tenant-Decq0ghq.mjs → tenant-2EdATz2Y.mjs} +1 -1
  197. package/dist/{tenant-custom-nameservers-CGcqESj5.mjs → tenant-custom-nameservers-DhEpJNST.mjs} +1 -1
  198. package/dist/{tunnels-ff1a_ucB.mjs → tunnels-CMAmH4Vh.mjs} +3 -3
  199. package/dist/{turnstile-BmJeENqH.mjs → turnstile-DTJjDMFp.mjs} +1 -1
  200. package/dist/ui-7zujR-O7.mjs +2 -0
  201. package/dist/{update-check-imcniBzu.mjs → update-check-BkCdHK-3.mjs} +1 -1
  202. package/dist/{update-check-BjlU_02g.mjs → update-check-DDGKWkmi.mjs} +1 -1
  203. package/dist/update-check-worker.mjs +1 -1
  204. package/dist/{url-normalization-DPqqTNzy.mjs → url-normalization-BbWOra1u.mjs} +1 -1
  205. package/dist/{url-scanner-SmzhVLS-.mjs → url-scanner-Bj-eS_3C.mjs} +2 -2
  206. package/dist/{user-LDJcWt0X.mjs → user-CMzTHHVX.mjs} +1 -1
  207. package/dist/{vectorize-D57FE9YT.mjs → vectorize-D4H7_KPs.mjs} +1 -1
  208. package/dist/version-DIIJ2ixL.mjs +2 -0
  209. package/dist/{waiting-rooms-Bp5glzYE.mjs → waiting-rooms-CqMbVu9s.mjs} +1 -1
  210. package/dist/{web-assets-BzSBU057.mjs → web-assets-BgfzyF8t.mjs} +5 -5
  211. package/dist/{web3-DmeS2XCY.mjs → web3-ByCe47FI.mjs} +1 -1
  212. package/dist/{workers-BUmSAYvI.mjs → workers-BiLsPkYD.mjs} +2 -2
  213. package/dist/{workers-builds-BRRyYyDr.mjs → workers-builds-2N71_8MZ.mjs} +1 -1
  214. package/dist/{workers-for-platforms-Bq5hpU-X.mjs → workers-for-platforms-BMN4QXgT.mjs} +1 -1
  215. package/dist/{workers-vpc-Dn83sJ0S.mjs → workers-vpc-3o7dMg7-.mjs} +1 -1
  216. package/dist/{workflows-BI1Oqr1y.mjs → workflows-COiyqt-B.mjs} +1 -1
  217. package/dist/{wrangler-migration-DHfxfsd8.mjs → wrangler-migration-CqSg8IDj.mjs} +5 -5
  218. package/dist/{zaraz-eWdwn_FV.mjs → zaraz-DjwhCH8A.mjs} +2 -2
  219. package/dist/{zero-trust-Dj_s_8u8.mjs → zero-trust-BmpuDOmH.mjs} +68 -62
  220. package/dist/{zones-D7J5AMUO.mjs → zones-XYQiz5kF.mjs} +2 -2
  221. package/package.json +12 -12
  222. package/dist/auth-0yg8UHy1.mjs +0 -2
  223. package/dist/auth-DCnxMUAZ.mjs +0 -2
  224. package/dist/build-DHPdqjpj.mjs +0 -2
  225. package/dist/cf-CInFH4Ng.mjs +0 -18
  226. package/dist/dev-2hNwTy0s.mjs +0 -4
  227. package/dist/local-CxTyXQlK.mjs +0 -2
  228. package/dist/local-runtime-Crs0aOFO.mjs +0 -2
  229. package/dist/login-C_gOc9pk.mjs +0 -2
  230. package/dist/oauth-scopes-B1n8hUMj.mjs +0 -4
  231. package/dist/organizations-DdQAC66Z.mjs +0 -4
  232. package/dist/package-C4H_6MHV.mjs +0 -2
  233. package/dist/radar-BCxOSIwx.mjs +0 -300
  234. package/dist/registry-DpNVjLuS.mjs +0 -2
  235. package/dist/run-C9r-Beel.mjs +0 -2
  236. package/dist/schema-flags-DHP8ll5_.mjs +0 -5
  237. package/dist/shared-Z4B68uro.mjs +0 -2
  238. package/dist/spawn-DdvGNWEs.mjs +0 -5
  239. package/dist/src-BZtxQa8v.mjs +0 -131
  240. package/dist/startup-profile-zt6cFnBn.mjs +0 -2
  241. package/dist/state-C5mQ9At8.mjs +0 -2
  242. package/dist/telemetry-Q7QghPwV.mjs +0 -2
  243. package/dist/ui-C1y5cXUM.mjs +0 -2
  244. package/dist/version-CbBZJTiB.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function g(e){return e.usage(`$0 dns-firewall create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-SNVLBS1b.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function g(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
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{n as e}from"./request-headers-_yTB3kAw.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./run-C2-1SFrS.mjs";const r=`https://developers.cloudflare.com`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return i(e)?e.success===!1?e.error===void 0||typeof e.error==`string`:e.success===!0&&i(e.result)&&Array.isArray(e.result.chunks)&&e.result.chunks.every(e=>{if(!i(e)||!i(e.item)||typeof e.item.key!=`string`||e.item.key.length===0)return!1;let t=e.item.metadata;return t===void 0||i(t)&&(t.title===void 0||typeof t.title==`string`)&&(t.description===void 0||typeof t.description==`string`)}):!1}function o(e){let t;try{t=new URL(e,`${r}/`)}catch{throw Error(`Cloudflare docs search returned an invalid URL.`)}if(t.origin!==r||t.username||t.password)throw Error(`Cloudflare docs search returned an invalid URL.`);return t.href}async function s(t){let n=AbortSignal.timeout(3e4),r;try{r=await fetch(`https://ai-search.developers.cloudflare.com/api/ai-search/search`,{method:`POST`,headers:{...e(),"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({messages:[{role:`user`,content:t}],stream:!1,ai_search_options:{retrieval:{metadata_only:!0,max_num_results:5}}}),signal:n})}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Unable to reach Cloudflare docs search. Check your connection and try again.`,{cause:e})}if(!r.ok)throw Error(`Cloudflare docs search failed (HTTP ${r.status}).`);let i;try{i=await r.json()}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Cloudflare docs search returned an invalid JSON response.`,{cause:e})}if(!a(i))throw Error(`Cloudflare docs search returned an invalid response.`);if(!i.success)throw Error(`Cloudflare docs search failed: ${i.error??`Unknown error`}`);return i.result.chunks.slice(0,5).map(({item:e})=>({title:e.metadata?.title??`Untitled`,description:e.metadata?.description??``,url:o(e.key)}))}const c={command:`search <query>`,describe:`Search live Cloudflare documentation, guides, tutorials, and examples`,builder:e=>e.positional(`query`,{describe:`Search terms or a question about Cloudflare`,type:`string`,demandOption:!0,coerce:e=>{let t=e.trim();if(!t)throw Error(`query must not be empty.`);return t}}).example(`cf docs search "schedule a worker"`,`Find guides and examples`).epilogue(`Returns up to five ranked JSON results with title, description, and url. No Cloudflare login is required.
2
+ import{n as e}from"./request-headers-Cn01EsbI.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./run-Br8sYjNF.mjs";const r=`https://developers.cloudflare.com`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return i(e)?e.success===!1?e.error===void 0||typeof e.error==`string`:e.success===!0&&i(e.result)&&Array.isArray(e.result.chunks)&&e.result.chunks.every(e=>{if(!i(e)||!i(e.item)||typeof e.item.key!=`string`||e.item.key.length===0)return!1;let t=e.item.metadata;return t===void 0||i(t)&&(t.title===void 0||typeof t.title==`string`)&&(t.description===void 0||typeof t.description==`string`)}):!1}function o(e){let t;try{t=new URL(e,`${r}/`)}catch{throw Error(`Cloudflare docs search returned an invalid URL.`)}if(t.origin!==r||t.username||t.password)throw Error(`Cloudflare docs search returned an invalid URL.`);return t.href}async function s(t){let n=AbortSignal.timeout(3e4),r;try{r=await fetch(`https://ai-search.developers.cloudflare.com/api/ai-search/search`,{method:`POST`,headers:{...e(),"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({messages:[{role:`user`,content:t}],stream:!1,ai_search_options:{retrieval:{metadata_only:!0,max_num_results:5}}}),signal:n})}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Unable to reach Cloudflare docs search. Check your connection and try again.`,{cause:e})}if(!r.ok)throw Error(`Cloudflare docs search failed (HTTP ${r.status}).`);let i;try{i=await r.json()}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Cloudflare docs search returned an invalid JSON response.`,{cause:e})}if(!a(i))throw Error(`Cloudflare docs search returned an invalid response.`);if(!i.success)throw Error(`Cloudflare docs search failed: ${i.error??`Unknown error`}`);return i.result.chunks.slice(0,5).map(({item:e})=>({title:e.metadata?.title??`Untitled`,description:e.metadata?.description??``,url:o(e.key)}))}const c={command:`search <query>`,describe:`Search live Cloudflare documentation, guides, tutorials, and examples`,builder:e=>e.positional(`query`,{describe:`Search terms or a question about Cloudflare`,type:`string`,demandOption:!0,coerce:e=>{let t=e.trim();if(!t)throw Error(`query must not be empty.`);return t}}).example(`cf docs search "schedule a worker"`,`Find guides and examples`).epilogue(`Returns up to five ranked JSON results with title, description, and url. No Cloudflare login is required.
3
3
  Fetch a result's URL with Accept: text/markdown to read the full page as Markdown.`),handler:e=>n({command:`docs search`,recordArgs:!1,searchQuery:e.query},e,async()=>{t(await s(e.query))})},l={command:`docs`,describe:`Search live Cloudflare documentation`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{l as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces`,query:[`page`,`per_page`]};function u(e){return e.usage(`$0 durable-objects namespaces list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces`,query:[`page`,`per_page`]};function u(e){return e.usage(`$0 durable-objects namespaces list
3
3
 
4
4
  Returns the Durable Object namespaces owned by an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Durable Object Namespaces`,builder:u,handler:async e=>c({command:`durable-objects namespaces list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf durable-objects namespaces list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/durable_objects/namespaces`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces/${t.id}/objects`,query:[`limit`,`cursor`]};function p(e){return e.usage(`$0 durable-objects namespaces objects list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";var l={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`,body:`json`};function u(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const d={command:`edit`,describe:`Configure DMARC Reports`,builder:u,handler:async e=>o({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}):s(e.body)});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(l,{body:t,zone_id:u}));r(n,{successLabel:`Updated`});return}let d=c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}),f=await a(`Updating`,async()=>o.send(l,{body:d,zone_id:u}));r(f,{successLabel:`Updated`})})};var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`};function p(e){return e.usage(`$0 email-auth dmarc-reports get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{i as n}from"./context-DCon1tRZ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-_Jux05O5.mjs";import{t as o}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";var l={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`,body:`json`};function u(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const d={command:`edit`,describe:`Configure DMARC Reports`,builder:u,handler:async e=>o({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}):s(e.body)});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(l,{body:t,zone_id:u}));r(n,{successLabel:`Updated`});return}let d=c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}),f=await a(`Updating`,async()=>o.send(l,{body:d,zone_id:u}));r(f,{successLabel:`Updated`})})};var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`};function p(e){return e.usage(`$0 email-auth dmarc-reports get
3
3
 
4
4
  Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get DMARC Report Status`,builder:p,handler:async e=>o({command:`email-auth dmarc-reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,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});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(f,{zone_id:s}));r(c,{successLabel:`Loaded`})})},h={command:`dmarc-reports`,describe:`Operations for dmarc-reports`,builder:e=>e.command(d).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var g={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/spf/inspect`,query:[`id`]};function _(e){return e.usage(`$0 email-auth spf inspect
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BBR19lgj.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/domains`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function h(e){return e.usage(`$0 email-domains create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-SNVLBS1b.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/domains`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function h(e){return e.usage(`$0 email-domains create
3
3
 
4
4
  Creates a candidate and four DNS instructions. Rejects hostnames whose assigned Return-Path exceeds 201 ASCII characters. Creation follows read-only checks of the saved provider bundle and published exclusion. Hostnames inside an active full Cloudflare DNS zone return the generic hostname conflict error 2083. No per-domain provider DNS writes occur. Customer DNS observations remain pending and mail remains inactive. Unverified candidates may share a hostname. Supply an account-unique client_reference to retry the same enrollment safely; reuse with a different hostname returns error 2083. Final public-DNS, namespace protection and runtime readiness are separate gates. Available only to the configured OpenAI pilot account behind a default-off gate. Authentication failures may use the gateway error envelope.`).option(`client-reference`,{type:`string`,description:`Opaque reference for one customer enrollment. Reuse it with the same hostname to retry Create safely. Distinct references can enroll the same unverified hostname; a hostname alone never identifies a customer.`}).option(`hostname`,{type:`string`,description:`Exact external hostname to enroll. After ASCII conversion, the assigned Return-Path hostname must be at most 201 characters (191 for the current cf-bounce. prefix). Wildcards, provider-zone names, and hostnames inside an existing Cloudflare-managed DNS zone are rejected.`}).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 an Email Domain`,builder:h,handler:async e=>c({command:`email-domains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/domains`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({client_reference:d(e[`client-reference`],`client-reference`,`text`),hostname:d(e.hostname,`hostname`,`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.hostname===void 0&&(e.hostname=await f(`hostname`,`Exact external hostname to enroll. After ASCII conversion, the assigned Return-Path hostname must be at most 201 characters (191 for the current cf-bounce. prefix). Wildcards, provider-zone names, and hostnames inside an existing Cloudflare-managed DNS zone are rejected.`));let h=u({client_reference:d(e[`client-reference`],`client-reference`,`text`),hostname:d(e.hostname,`hostname`,`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}/email/domains/${t.email_domain_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function v(e){return e.usage(`$0 email-domains delete <email-domain-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,body:`json`,errors:{422:`UnprocessableEntityError`}};function v(e){return e.usage(`$0 email-routing addresses create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-SNVLBS1b.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,body:`json`,errors:{422:`UnprocessableEntityError`}};function v(e){return e.usage(`$0 email-routing addresses create
3
3
 
4
4
  Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).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 y={command:`create`,describe:`Create a destination address`,builder:v,handler:async e=>l({command:`email-routing addresses create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({email:p(e.email,`email`,`text`)}):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(_,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.email===void 0&&(e.email=await m(`email`,`The contact email address of the user.`));let u=f({email:p(e.email,`email`,`text`)}),h=await c(`Creating`,async()=>i.send(_,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 email-routing addresses delete <destination-address-identifier>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/email-security/settings/allow_policies/batch`,body:`json`};function ee(e){return e.usage(`$0 email-security allow-policies batch
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-SNVLBS1b.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/email-security/settings/allow_policies/batch`,body:`json`};function ee(e){return e.usage(`$0 email-security allow-policies batch
3
3
 
4
4
  Executes multiple allow policy operations atomically: delete, partially update, replace, and create allow policies in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the allow policies to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the policy's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Allow policies to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the policy's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`batch`,describe:`Batch allow policy operations`,builder:ee,handler:async e=>c({command:`email-security allow-policies batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-security allow-policies batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email-security/settings/allow_policies/batch`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({deletes:l(e.deletes,`deletes`),patches:l(e.patches,`patches`),posts:l(e.posts,`posts`),puts:l(e.puts,`puts`)}):u(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,!await h({force:!!e.force,message:`This operation may delete the selected allow policies and restore normal security scanning and disposition actions for matching emails.`}))return;if(e.body){let t=u(e.body),n=await s(`Deleting`,async()=>c.send(g,{body:t,account_id:f}));a(n,{successLabel:`Deleted`});return}if(e.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(e.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(e.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(e.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=d({deletes:l(e.deletes,`deletes`),patches:l(e.patches,`patches`),posts:l(e.posts,`posts`),puts:l(e.puts,`puts`)}),m=await s(`Deleting`,async()=>c.send(g,{body:p,account_id:f}));a(m,{successLabel:`Deleted`})})};var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email-security/settings/allow_policies`,body:`json`};function ne(e){return e.usage(`$0 email-security allow-policies create
5
5
 
@@ -63,7 +63,7 @@ Updates configuration for a protected email domain. Only provided fields will be
63
63
 
64
64
  Retrieves detailed information for a specific protected email domain including its delivery configuration, SPF/DMARC status, and authorization state.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`get <domain-id>`,describe:`Get an email domain`,builder:Et,handler:async e=>c({command:`email-security domains get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-security domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email-security/settings/domains/${e[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(e[`domain-id`]))}`,pathParams:{"domain-id":String(e[`domain-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(Tt,{account_id:l,domain_id:e[`domain-id`]}));a(u,{successLabel:`Loaded`})})};var Ot={method:`GET`,path:t=>e`/accounts/${t.account_id}/email-security/settings/domains`,query:[`page`,`per_page`,`search`,`order`,`direction`,`allowed_delivery_mode`,`domain`,`active_delivery_mode`,`integration_id`,`status`]};function kt(e){return e.usage(`$0 email-security domains list
65
65
 
66
- Returns a paginated list of email domains protected by Email Security. Includes domain configuration, delivery modes, and authorization status. Supports filtering by delivery mode and integration ID.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`domain`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`allowed-delivery-mode`,{type:`string`,description:`Delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`domain`,{type:`string`,description:`Domain names to filter by.`}).option(`active-delivery-mode`,{type:`string`,description:`Currently active delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`integration-id`,{type:`string`,description:`Integration ID to filter by.`}).option(`status`,{type:`string`,description:`Filters response to domains with the provided status.`,choices:[`PENDING`,`ACTIVE`,`FAILED`,`TIMEOUT`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const At={command:`list`,describe:`List protected email domains`,builder:kt,handler:async e=>c({command:`email-security domains list`,classification:{safeFlags:[`order`,`direction`,`allowed-delivery-mode`,`active-delivery-mode`,`status`,`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`],search:e.search,order:e.order,direction:e.direction,allowed_delivery_mode:e[`allowed-delivery-mode`],domain:e.domain,active_delivery_mode:e[`active-delivery-mode`],integration_id:e[`integration-id`],status:e.status};if(e.dryRun){let e=await r();o({command:`cf email-security domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email-security/settings/domains`,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(Ot,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var L={method:`PUT`,path:t=>e`/accounts/${t.account_id}/email-security/settings/domains/${t.domain_id}`,body:`json`};function jt(e){return e.usage(`$0 email-security domains update <domain-id>
66
+ Returns a paginated list of email domains protected by Email Security. Includes domain configuration, delivery modes, and authorization status. Supports filtering by delivery mode and integration ID.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`domain`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`allowed-delivery-mode`,{type:`string`,description:`Delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`domain`,{type:`string`,array:!0,description:`Domain names to filter by.`}).option(`active-delivery-mode`,{type:`string`,description:`Currently active delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`integration-id`,{type:`string`,description:`Integration ID to filter by.`}).option(`status`,{type:`string`,description:`Filters response to domains with the provided status.`,choices:[`PENDING`,`ACTIVE`,`FAILED`,`TIMEOUT`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const At={command:`list`,describe:`List protected email domains`,builder:kt,handler:async e=>c({command:`email-security domains list`,classification:{safeFlags:[`order`,`direction`,`allowed-delivery-mode`,`active-delivery-mode`,`status`,`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`],search:e.search,order:e.order,direction:e.direction,allowed_delivery_mode:e[`allowed-delivery-mode`],domain:e.domain,active_delivery_mode:e[`active-delivery-mode`],integration_id:e[`integration-id`],status:e.status};if(e.dryRun){let e=await r();o({command:`cf email-security domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email-security/settings/domains`,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(Ot,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var L={method:`PUT`,path:t=>e`/accounts/${t.account_id}/email-security/settings/domains/${t.domain_id}`,body:`json`};function jt(e){return e.usage(`$0 email-security domains update <domain-id>
67
67
 
68
68
  Replaces all mutable fields of a protected email domain in a single atomic operation. Unlike PATCH, all non-computed fields are required.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`allowed-delivery-modes`,{type:`string`,array:!0,description:`Delivery modes to onboard the domain through.`}).option(`drop-dispositions`,{type:`string`,array:!0,description:'Dispositions to drop instead of delivering, e.g. `["MALICIOUS", "SPAM"]`.'}).option(`folder`,{type:`string`,description:`The mailbox folder to scan, for API-scanning domains.`,choices:[`AllItems`,`Inbox`]}).coerce(`folder`,e=>f(e,`folder`,`text`)).option(`integration-id`,{type:`string`,description:`Identifier of the CASB integration that authorizes this domain. The integration also enables API scanning, post-delivery actions, and directory sync.`}).option(`ip-restrictions`,{type:`string`,array:!0,description:`Source IP ranges mail is accepted from. Any other source is rejected.`}).option(`lookback-hops`,{type:`number`,description:`Number of hops to trace back through received headers when reconstructing the original message (1-20).`}).option(`regions`,{type:`string`,array:!0,description:'Regions that process messages for this domain, e.g. `["GLOBAL"]` or `["US"]`.'}).option(`require-tls-inbound`,{type:`boolean`,description:`Require TLS on inbound connections.`}).option(`require-tls-outbound`,{type:`boolean`,description:`Require TLS on outbound connections.`}).option(`transport`,{type:`string`,description:"The mail transport hostname for MX/Inline delivery — the MX record Cloudflare delivers email to (e.g. `mx.example.com`)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request body for replacing an email domain. The `domain` field is intentionally absent — the domain name is immutable after creation. "})}const Mt={command:`update <domain-id>`,describe:`Replace an email domain`,builder:jt,handler:async e=>c({command:`email-security domains update`,classification:{safeFlags:[`folder`,`require-tls-inbound`,`require-tls-outbound`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-security domains update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email-security/settings/domains/${e[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(e[`domain-id`]))}`,pathParams:{"domain-id":String(e[`domain-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({allowed_delivery_modes:e[`allowed-delivery-modes`],drop_dispositions:e[`drop-dispositions`],folder:e.folder,integration_id:f(e[`integration-id`],`integration-id`,`text`),ip_restrictions:e[`ip-restrictions`],lookback_hops:e[`lookback-hops`],regions:e.regions,require_tls_inbound:e[`require-tls-inbound`],require_tls_outbound:e[`require-tls-outbound`],transport:f(e.transport,`transport`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Updating`,async()=>c.send(L,{body:t,account_id:l,domain_id:e[`domain-id`]}));a(n,{successLabel:`Updated`});return}if(e[`allowed-delivery-modes`]===void 0)throw Error(`--allowed-delivery-modes is required (or pass --body with this field set).`);if(e[`drop-dispositions`]===void 0)throw Error(`--drop-dispositions is required (or pass --body with this field set).`);if(e[`ip-restrictions`]===void 0)throw Error(`--ip-restrictions is required (or pass --body with this field set).`);if(e.regions===void 0)throw Error(`--regions is required (or pass --body with this field set).`);let p=d({allowed_delivery_modes:e[`allowed-delivery-modes`],drop_dispositions:e[`drop-dispositions`],folder:e.folder,integration_id:f(e[`integration-id`],`integration-id`,`text`),ip_restrictions:e[`ip-restrictions`],lookback_hops:e[`lookback-hops`],regions:e.regions,require_tls_inbound:e[`require-tls-inbound`],require_tls_outbound:e[`require-tls-outbound`],transport:f(e.transport,`transport`,`text`)}),m=await s(`Updating`,async()=>c.send(L,{body:p,account_id:l,domain_id:e[`domain-id`]}));a(m,{successLabel:`Updated`})})};var Nt={method:`GET`,path:t=>e`/accounts/${t.account_id}/email-security/settings/domains/${t.domain_id}/verification`};function Pt(e){return e.usage(`$0 email-security domains verification get <domain-id>
69
69
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/sending/messages/${t.message_id}`,response:`binary-response`,errors:{404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 email-sending get <message-id>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-SNVLBS1b.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/sending/messages/${t.message_id}`,response:`binary-response`,errors:{404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 email-sending get <message-id>
3
3
 
4
4
  Returns the raw RFC 5322 MIME message for the given account and message id.`).positional(`message-id`,{type:`string`,description:`Message ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <message-id>`,describe:`Fetch an email message`,builder:v,handler:async e=>l({command:`email-sending get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-sending get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/sending/messages/${e[`message-id`]==null?`<message-id>`:encodeURIComponent(String(e[`message-id`]))}`,pathParams:{"message-id":String(e[`message-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(_,{account_id:l,message_id:e[`message-id`]}));o(u,{successLabel:`Loaded`})})};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/sending/limits`,errors:{403:`ForbiddenError`}};function ee(e){return e.usage(`$0 email-sending limits get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n}from"./version-CbBZJTiB.mjs";import{i as r,t as i}from"./blocks-hVx18MUM.mjs";import{t as a}from"./session-CG79ZLE9.mjs";import{n as o}from"./api-X3wKppsT.mjs";var s=class extends Error{};function c(e){return e instanceof s||`telemetryMessage`in e&&e.telemetryMessage===`cfetch auth login required`&&`reason`in e&&e.reason===`no-credentials-non-interactive`}function l(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function u(e){return Array.isArray(e)?e.flatMap(e=>{if(typeof e==`string`)return[{message:e}];if(typeof e!=`object`||!e)return[];let t=e,n=typeof t.code==`number`?t.code:void 0,r=typeof t.message==`string`?t.message:void 0;return n!==void 0||r!==void 0?[{code:n,message:r}]:[]}):[]}function d(s){if(a(n),s instanceof o){let t=s.statusCode,n=s.body,a=t===void 0?`Envelope Error`:p(t),o=typeof n==`object`&&n?n:void 0,c=[...u(o?.errors).map(e=>({...e,isError:!0})),...u(o?.messages).map(e=>({...e,isError:!1}))],d=s.rawResponse?.url?`HTTP ${l(s.rawResponse.url)}`:void 0,f=t===void 0?a:`${t} ${a}`,m=d?`${f} · ${d}`:f,h=e.muted(m),g=``;return c.length>0?g=c.map((t,n)=>{let r=typeof t.code==`number`?e.error(e.bold(`[${t.code}]`)):t.isError?e.error(e.bold(`[error]`)):void 0,i=e.bold(t.message??``),a=r?`${r} ${i}`:i;return n===c.length-1?`${a}\n${h}`:a}).join(`
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n}from"./version-DIIJ2ixL.mjs";import{i as r,t as i}from"./blocks-D2tE8dp2.mjs";import{t as a}from"./session-B7vOqdZU.mjs";import{n as o}from"./api-X3wKppsT.mjs";var s=class extends Error{};function c(e){return e instanceof s||`telemetryMessage`in e&&e.telemetryMessage===`cfetch auth login required`&&`reason`in e&&e.reason===`no-credentials-non-interactive`}function l(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function u(e){return Array.isArray(e)?e.flatMap(e=>{if(typeof e==`string`)return[{message:e}];if(typeof e!=`object`||!e)return[];let t=e,n=typeof t.code==`number`?t.code:void 0,r=typeof t.message==`string`?t.message:void 0;return n!==void 0||r!==void 0?[{code:n,message:r}]:[]}):[]}function d(s){if(a(n),s instanceof o){let t=s.statusCode,n=s.body,a=t===void 0?`Envelope Error`:p(t),o=typeof n==`object`&&n?n:void 0,c=[...u(o?.errors).map(e=>({...e,isError:!0})),...u(o?.messages).map(e=>({...e,isError:!1}))],d=s.rawResponse?.url?`HTTP ${l(s.rawResponse.url)}`:void 0,f=t===void 0?a:`${t} ${a}`,m=d?`${f} · ${d}`:f,h=e.muted(m),g=``;return c.length>0?g=c.map((t,n)=>{let r=typeof t.code==`number`?e.error(e.bold(`[${t.code}]`)):t.isError?e.error(e.bold(`[error]`)):void 0,i=e.bold(t.message??``),a=r?`${r} ${i}`:i;return n===c.length-1?`${a}\n${h}`:a}).join(`
3
3
 
4
4
  `):(g=e.error(e.bold(s.message||m)),s.message&&m&&(g+=`\n${h}`)),console.error(i(g,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
5
5
  `+r(`Try running: cf auth login`)):t===403&&console.error(`
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./prompt-BBR19lgj.mjs";var p={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/field_extractors/${t.extractor}`,errors:{404:`NotFoundError`}};function m(e){return e.usage(`$0 field-extractors delete <extractor>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./prompt-SNVLBS1b.mjs";var p={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/field_extractors/${t.extractor}`,errors:{404:`NotFoundError`}};function m(e){return e.usage(`$0 field-extractors delete <extractor>
3
3
 
4
4
  Deletes all custom extraction rules for an extractor type.`).positional(`extractor`,{type:`string`,description:`Extractor type.`,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 h={command:`delete <extractor>`,describe:`Delete Field Extractor`,builder:m,handler:async e=>c({command:`field-extractors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf field-extractors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/field_extractors/${e.extractor==null?`<extractor>`:encodeURIComponent(String(e.extractor))}`,pathParams:{extractor:String(e.extractor??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await f({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(p,{account_id:l,extractor:e.extractor}));a(u,{successLabel:`Deleted`})})};var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/field_extractors/${t.extractor}`,errors:{404:`NotFoundError`}};function _(e){return e.usage(`$0 field-extractors get <extractor>
5
5
 
@@ -1,33 +1,39 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{i as m,n as h}from"./prompt-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules`,body:`json`};function _(e){return e.usage(`$0 firewall access-rules create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-SNVLBS1b.mjs";var _={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules`,body:`json`};function v(e){return e.usage(`$0 firewall access-rules create
3
3
 
4
- Creates a new IP Access rule for an account or zone. The rule will apply to all zones in the account or zone. Note: To create an IP Access rule that applies to a single zone, refer to the [IP Access rules for a zone](#ip-access-rules-for-a-zone) endpoints.`).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`notes`,{type:`string`,description:`An informative summary of the rule, typically used as a reminder or explanation.`,default:``}).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 an IP Access rule`,builder:_,handler:async e=>l({command:`firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`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 firewall access-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),n=await c(`Creating`,async()=>l.send(g,{body:t,account_or_zone:u,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await m(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let _=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}),v=await c(`Creating`,async()=>l.send(g,{body:_,account_or_zone:u,account_or_zone_id:h}));o(v,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`};function b(e){return e.usage(`$0 firewall access-rules delete <rule-id>
4
+ Creates a new IP Access rule for an account or zone. The rule will apply to all zones in the account or zone. Note: To create an IP Access rule that applies to a single zone, refer to the [IP Access rules for a zone](#ip-access-rules-for-a-zone) endpoints.`).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`notes`,{type:`string`,description:`An informative summary of the rule, typically used as a reminder or explanation.`,default:``}).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 ee={command:`create`,describe:`Create an IP Access rule`,builder:v,handler:async e=>l({command:`firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`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 firewall access-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,m=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=m:e.accountId=m,e.body){let t=d(e.body),n=await c(`Creating`,async()=>l.send(_,{body:t,account_or_zone:u,account_or_zone_id:m}));o(n,{successLabel:`Created`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await h(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let g=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}),v=await c(`Creating`,async()=>l.send(_,{body:g,account_or_zone:u,account_or_zone_id:m}));o(v,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`};function b(e){return e.usage(`$0 firewall access-rules delete <rule-id>
5
5
 
6
- Deletes an existing IP Access rule defined. Note: This operation will affect all zones in the account or zone.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,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 x={command:`delete <rule-id>`,describe:`Delete an IP Access rule`,builder:b,handler:async e=>l({command:`firewall access-rules delete`,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 firewall access-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},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,message:`This operation deletes the account-level IP Access Rule and affects every zone in the account.`}))return;let f=await c(`Deleting`,async()=>l.send(y,{account_or_zone:u,account_or_zone_id:d,rule_id:e[`rule-id`]}));o(f,{successLabel:`Deleted`})})};var S={method:`PATCH`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`,body:`json`};function ee(e){return e.usage(`$0 firewall access-rules edit <rule-id>
6
+ Deletes an existing IP Access rule defined. Note: This operation will affect all zones in the account or zone.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,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 te={command:`delete <rule-id>`,describe:`Delete an IP Access rule`,builder:b,handler:async e=>l({command:`firewall access-rules delete`,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 firewall access-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},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 g({force:!!e.force,message:`This operation deletes the account-level IP Access Rule and affects every zone in the account.`}))return;let f=await c(`Deleting`,async()=>l.send(y,{account_or_zone:u,account_or_zone_id:d,rule_id:e[`rule-id`]}));o(f,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`,body:`json`};function ne(e){return e.usage(`$0 firewall access-rules edit <rule-id>
7
7
 
8
- Updates an IP Access rule defined. Note: This operation will affect all zones in the account or zone.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`notes`,{type:`string`,description:`An informative summary of the rule, typically used as a reminder or explanation.`}).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 te={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:ee,handler:async e=>l({command:`firewall access-rules edit`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`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 firewall access-rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),n=await c(`Updating`,async()=>l.send(S,{body:t,account_or_zone:u,account_or_zone_id:h,rule_id:e[`rule-id`]}));o(n,{successLabel:`Updated`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await m(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let g=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}),_=await c(`Updating`,async()=>l.send(S,{body:g,account_or_zone:u,account_or_zone_id:h,rule_id:e[`rule-id`]}));o(_,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`};function w(e){return e.usage(`$0 firewall access-rules get <rule-id>
8
+ Updates an IP Access rule defined. Note: This operation will affect all zones in the account or zone.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`notes`,{type:`string`,description:`An informative summary of the rule, typically used as a reminder or explanation.`}).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 re={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:ne,handler:async e=>l({command:`firewall access-rules edit`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`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 firewall access-rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,m=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=m:e.accountId=m,e.body){let t=d(e.body),n=await c(`Updating`,async()=>l.send(x,{body:t,account_or_zone:u,account_or_zone_id:m,rule_id:e[`rule-id`]}));o(n,{successLabel:`Updated`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await h(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let g=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}),_=await c(`Updating`,async()=>l.send(x,{body:g,account_or_zone:u,account_or_zone_id:m,rule_id:e[`rule-id`]}));o(_,{successLabel:`Updated`})})};var S={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`};function C(e){return e.usage(`$0 firewall access-rules get <rule-id>
9
9
 
10
- Fetches the details of an IP Access rule defined.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:w,handler:async e=>l({command:`firewall access-rules 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 firewall access-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},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(C,{account_or_zone:u,account_or_zone_id:d,rule_id:e[`rule-id`]}));o(f,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules`,query:[`mode`,`configuration.target`,`configuration.value`,`notes`,`match`,`page`,`per_page`,`order`,`direction`]};function D(e){return e.usage(`$0 firewall access-rules list
10
+ Fetches the details of an IP Access rule defined.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:C,handler:async e=>l({command:`firewall access-rules 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 firewall access-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"rule-id":String(e[`rule-id`]??``)},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(S,{account_or_zone:u,account_or_zone_id:d,rule_id:e[`rule-id`]}));o(f,{successLabel:`Loaded`})})};var T={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules`,query:[`mode`,`configuration.target`,`configuration.value`,`notes`,`match`,`page`,`per_page`,`order`,`direction`]};function E(e){return e.usage(`$0 firewall access-rules list
11
11
 
12
12
  Fetches IP Access rules of an account or zone. These rules apply to all the zones in the account or zone. You can filter the results using several optional parameters.`).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).option(`configuration-target`,{type:`string`,description:`Defines the target to search in existing rules.`,choices:[`ip`,`ip_range`,`asn`,`country`]}).option(`configuration-value`,{type:`string`,description:"Defines the target value to search for in existing rules: an IP address, an IP address range, or a country code, depending on the provided `configuration.target`.\nNotes: You can search for a single IPv4 address, an IP address range with a subnet of '/16' or '/24', or a two-letter ISO-3166-1 alpha-2 country code."}).option(`notes`,{type:`string`,description:`Defines the string to search for in the notes of existing IP Access rules.
13
- Notes: For example, the string 'attack' would match IP Access rules with notes 'Attack 26/02' and 'Attack 27/02'. The search is case insensitive.`}).option(`match`,{type:`string`,description:"Defines the search requirements. When set to `all`, all the search requirements must match. When set to `any`, only one of the search requirements has to match.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Defines the requested page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Defines the maximum number of results requested.`}).option(`order`,{type:`string`,description:`Defines the field used to sort returned rules.`,choices:[`configuration.target`,`configuration.value`,`mode`]}).option(`direction`,{type:`string`,description:`Defines the direction used to sort returned rules.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List IP Access rules`,builder:D,handler:async e=>l({command:`firewall access-rules list`,classification:{safeFlags:[`access-rule-mode`,`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let l={mode:e[`access-rule-mode`],"configuration.target":e[`configuration-target`],"configuration.value":e[`configuration-value`],notes:e.notes,match:e.match,page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction};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 firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules`,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(E,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})},k={command:`access-rules`,describe:`IP-based access rules that allow, block, challenge, or whitelist traffic globally or per-zone`,builder:e=>e.command(v).command(x).command(te).command(T).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var A={method:`POST`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns`,body:`json`};function j(e){return e.usage(`$0 firewall lockdowns create
13
+ Notes: For example, the string 'attack' would match IP Access rules with notes 'Attack 26/02' and 'Attack 27/02'. The search is case insensitive.`}).option(`match`,{type:`string`,description:"Defines the search requirements. When set to `all`, all the search requirements must match. When set to `any`, only one of the search requirements has to match.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Defines the requested page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Defines the maximum number of results requested.`}).option(`order`,{type:`string`,description:`Defines the field used to sort returned rules.`,choices:[`configuration.target`,`configuration.value`,`mode`]}).option(`direction`,{type:`string`,description:`Defines the direction used to sort returned rules.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`list`,describe:`List IP Access rules`,builder:E,handler:async e=>l({command:`firewall access-rules list`,classification:{safeFlags:[`access-rule-mode`,`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let l={mode:e[`access-rule-mode`],"configuration.target":e[`configuration-target`],"configuration.value":e[`configuration-value`],notes:e.notes,match:e.match,page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction};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 firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules`,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(T,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})},O={command:`access-rules`,describe:`IP-based access rules that allow, block, challenge, or whitelist traffic globally or per-zone`,builder:e=>e.command(ee).command(te).command(re).command(w).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var k={method:`POST`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns`,body:`json`};function A(e){return e.usage(`$0 firewall lockdowns create
14
14
 
15
- Creates a new Zone Lockdown rule.`).option(`configurations`,{type:`string`,description:"A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. Provide as a JSON array of objects or @path/to/file.json."}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).option(`priority`,{type:`number`,description:`The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.`}).option(`urls`,{type:`string`,array:!0,description:`The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.`}).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 M={command:`create`,describe:`Create a Zone Lockdown rule`,builder:j,handler:async e=>l({command:`firewall lockdowns create`,classification:{safeFlags:[`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configurations:u(e.configurations,`configurations`),description:p(e.description,`description`,`text`),paused:e.paused,priority:e.priority,urls:e.urls}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(A,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.configurations===void 0)throw Error(`--configurations is required (or pass --body with this field set).`);if(e.urls===void 0)throw Error(`--urls is required (or pass --body with this field set).`);let a=f({configurations:u(e.configurations,`configurations`),description:p(e.description,`description`,`text`),paused:e.paused,priority:e.priority,urls:e.urls}),l=await c(`Creating`,async()=>t.send(A,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var N={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`};function P(e){return e.usage(`$0 firewall lockdowns delete <lock-downs-id>
15
+ Creates a new Zone Lockdown rule.`).option(`configurations`,{type:`string`,description:"A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. Provide as a JSON array of objects or @path/to/file.json."}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).option(`priority`,{type:`number`,description:`The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.`}).option(`urls`,{type:`string`,array:!0,description:`The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.`}).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 j={command:`create`,describe:`Create a Zone Lockdown rule`,builder:A,handler:async e=>l({command:`firewall lockdowns create`,classification:{safeFlags:[`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configurations:u(e.configurations,`configurations`),description:p(e.description,`description`,`text`),paused:e.paused,priority:e.priority,urls:e.urls}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(k,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.configurations===void 0)throw Error(`--configurations is required (or pass --body with this field set).`);if(e.urls===void 0)throw Error(`--urls is required (or pass --body with this field set).`);let a=f({configurations:u(e.configurations,`configurations`),description:p(e.description,`description`,`text`),paused:e.paused,priority:e.priority,urls:e.urls}),l=await c(`Creating`,async()=>t.send(k,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var M={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`};function N(e){return e.usage(`$0 firewall lockdowns delete <lock-downs-id>
16
16
 
17
- Deletes an existing Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,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 F={command:`delete <lock-downs-id>`,describe:`Delete a Zone Lockdown rule`,builder:P,handler:async e=>l({command:`firewall lockdowns delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await h({force:!!e.force,message:`This operation deletes the Zone Lockdown rule from the zone.`}))return;let a=await c(`Deleting`,async()=>t.send(N,{zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(a,{successLabel:`Deleted`})})};var I={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`};function L(e){return e.usage(`$0 firewall lockdowns get <lock-downs-id>
17
+ Deletes an existing Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,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 P={command:`delete <lock-downs-id>`,describe:`Delete a Zone Lockdown rule`,builder:N,handler:async e=>l({command:`firewall lockdowns delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the Zone Lockdown rule from the zone.`}))return;let a=await c(`Deleting`,async()=>t.send(M,{zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(a,{successLabel:`Deleted`})})};var F={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`};function I(e){return e.usage(`$0 firewall lockdowns get <lock-downs-id>
18
18
 
19
- Fetches the details of a Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <lock-downs-id>`,describe:`Get a Zone Lockdown rule`,builder:L,handler:async e=>l({command:`firewall lockdowns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(I,{zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(a,{successLabel:`Loaded`})})};var z={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns`,query:[`page`,`description`,`modified_on`,`ip`,`priority`,`uri_search`,`ip_range_search`,`per_page`,`created_on`,`description_search`,`ip_search`]};function B(e){return e.usage(`$0 firewall lockdowns list
19
+ Fetches the details of a Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <lock-downs-id>`,describe:`Get a Zone Lockdown rule`,builder:I,handler:async e=>l({command:`firewall lockdowns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(F,{zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(a,{successLabel:`Loaded`})})};var R={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns`,query:[`page`,`description`,`modified_on`,`ip`,`priority`,`uri_search`,`ip_range_search`,`per_page`,`created_on`,`description_search`,`ip_search`]};function z(e){return e.usage(`$0 firewall lockdowns list
20
20
 
21
- Fetches Zone Lockdown rules. You can filter the results using several optional parameters.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`description`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`modified-on`,{type:`string`,description:`The timestamp of when the rule was last modified.`}).option(`ip`,{type:`string`,description:`A single IP address to search for in existing rules.`}).option(`priority`,{type:`number`,description:`The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.`}).option(`uri-search`,{type:`string`,description:`A single URI to search for in the list of URLs of existing rules.`}).option(`ip-range-search`,{type:`string`,description:`A single IP address range to search for in existing rules.`}).option(`per-page`,{type:`number`,description:"The maximum number of results per page. You can only set the value to `1` or to a multiple of 5 such as `5`, `10`, `15`, or `20`."}).option(`created-on`,{type:`string`,description:`The timestamp of when the rule was created.`}).option(`description-search`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`ip-search`,{type:`string`,description:`A single IP address to search for in existing rules.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List Zone Lockdown rules`,builder:B,handler:async e=>l({command:`firewall lockdowns list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,description:e.description,modified_on:e[`modified-on`],ip:e.ip,priority:e.priority,uri_search:e[`uri-search`],ip_range_search:e[`ip-range-search`],per_page:e[`per-page`],created_on:e[`created-on`],description_search:e[`description-search`],ip_search:e[`ip-search`]};if(e.dryRun){s({command:`cf firewall lockdowns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(z,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var H={method:`PUT`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`,body:`json`};function ne(e){return e.usage(`$0 firewall lockdowns update <lock-downs-id>
21
+ Fetches Zone Lockdown rules. You can filter the results using several optional parameters.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`description`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`modified-on`,{type:`string`,description:`The timestamp of when the rule was last modified.`}).option(`ip`,{type:`string`,description:`A single IP address to search for in existing rules.`}).option(`priority`,{type:`number`,description:`The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.`}).option(`uri-search`,{type:`string`,description:`A single URI to search for in the list of URLs of existing rules.`}).option(`ip-range-search`,{type:`string`,description:`A single IP address range to search for in existing rules.`}).option(`per-page`,{type:`number`,description:"The maximum number of results per page. You can only set the value to `1` or to a multiple of 5 such as `5`, `10`, `15`, or `20`."}).option(`created-on`,{type:`string`,description:`The timestamp of when the rule was created.`}).option(`description-search`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`ip-search`,{type:`string`,description:`A single IP address to search for in existing rules.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List Zone Lockdown rules`,builder:z,handler:async e=>l({command:`firewall lockdowns list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,description:e.description,modified_on:e[`modified-on`],ip:e.ip,priority:e.priority,uri_search:e[`uri-search`],ip_range_search:e[`ip-range-search`],per_page:e[`per-page`],created_on:e[`created-on`],description_search:e[`description-search`],ip_search:e[`ip-search`]};if(e.dryRun){s({command:`cf firewall lockdowns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(R,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var V={method:`PUT`,path:t=>e`/zones/${t.zone_id}/firewall/lockdowns/${t.lock_downs_id}`,body:`json`};function H(e){return e.usage(`$0 firewall lockdowns update <lock-downs-id>
22
22
 
23
- Updates an existing Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,demandOption:!0}).option(`configurations`,{type:`string`,description:"A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. Provide as a JSON array of objects or @path/to/file.json."}).option(`urls`,{type:`string`,array:!0,description:`The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.`}).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 U={command:`update <lock-downs-id>`,describe:`Update a Zone Lockdown rule`,builder:ne,handler:async e=>l({command:`firewall lockdowns update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configurations:u(e.configurations,`configurations`),urls:e.urls}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(H,{body:n,zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(i,{successLabel:`Updated`});return}if(e.configurations===void 0)throw Error(`--configurations is required (or pass --body with this field set).`);if(e.urls===void 0)throw Error(`--urls is required (or pass --body with this field set).`);let a=f({configurations:u(e.configurations,`configurations`),urls:e.urls}),l=await c(`Updating`,async()=>t.send(H,{body:a,zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(l,{successLabel:`Updated`})})},W={command:`lockdowns`,describe:`Zone lockdown rules that restrict access to URLs by IP address or range`,builder:e=>e.command(M).command(F).command(R).command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules`,body:`json`};function K(e){return e.usage(`$0 firewall ua-rules create
23
+ Updates an existing Zone Lockdown rule.`).positional(`lock-downs-id`,{type:`string`,description:`The unique identifier of the Zone Lockdown rule.`,demandOption:!0}).option(`configurations`,{type:`string`,description:"A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. Provide as a JSON array of objects or @path/to/file.json."}).option(`urls`,{type:`string`,array:!0,description:`The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.`}).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 U={command:`update <lock-downs-id>`,describe:`Update a Zone Lockdown rule`,builder:H,handler:async e=>l({command:`firewall lockdowns update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall lockdowns update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/lockdowns/${e[`lock-downs-id`]==null?`<lock-downs-id>`:encodeURIComponent(String(e[`lock-downs-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"lock-downs-id":String(e[`lock-downs-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configurations:u(e.configurations,`configurations`),urls:e.urls}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(V,{body:n,zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(i,{successLabel:`Updated`});return}if(e.configurations===void 0)throw Error(`--configurations is required (or pass --body with this field set).`);if(e.urls===void 0)throw Error(`--urls is required (or pass --body with this field set).`);let a=f({configurations:u(e.configurations,`configurations`),urls:e.urls}),l=await c(`Updating`,async()=>t.send(V,{body:a,zone_id:r,lock_downs_id:e[`lock-downs-id`]}));o(l,{successLabel:`Updated`})})},W={command:`lockdowns`,describe:`Zone lockdown rules that restrict access to URLs by IP address or range`,builder:e=>e.command(j).command(P).command(L).command(B).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/payload_logging/key`};function ie(e){return e.usage(`$0 firewall payload-logging delete
24
24
 
25
- Creates a new User Agent Blocking rule in a zone.`).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ua` when specifying a user agent in the rule.",choices:[`ua`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`the user agent to exactly match`}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).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 q={command:`create`,describe:`Create a User Agent Blocking rule`,builder:K,handler:async e=>l({command:`firewall ua-rules create`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(G,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await m(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let a=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}),l=await c(`Creating`,async()=>t.send(G,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var J={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`};function Y(e){return e.usage(`$0 firewall ua-rules delete <ua-rule-id>
25
+ Deletes the payload logging public key of the account or zone.`).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 K={command:`delete`,describe:`Delete the payload logging key`,builder:ie,handler:async e=>l({command:`firewall payload-logging delete`,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 firewall payload-logging delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/payload_logging/key`,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();if(u===`zones`?e.zoneId=d:e.accountId=d,!await g({force:!!e.force}))return;let f=await c(`Deleting`,async()=>l.send(G,{account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Deleted`})})};var q={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/payload_logging/key`};function J(e){return e.usage(`$0 firewall payload-logging get
26
26
 
27
- Deletes an existing User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,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 X={command:`delete <ua-rule-id>`,describe:`Delete a User Agent Blocking rule`,builder:Y,handler:async e=>l({command:`firewall ua-rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await h({force:!!e.force,message:`This operation deletes the User Agent Blocking rule from the zone.`}))return;let a=await c(`Deleting`,async()=>t.send(J,{zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(a,{successLabel:`Deleted`})})};var Z={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`};function re(e){return e.usage(`$0 firewall ua-rules get <ua-rule-id>
27
+ Fetches the public key that payload logging uses to encrypt matched payloads for the account or zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`get`,describe:`Get the payload logging key`,builder:J,handler:async e=>l({command:`firewall payload-logging 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 firewall payload-logging get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/payload_logging/key`,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`})})};var X={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/payload_logging/key`,body:`json`};function ae(e){return e.usage(`$0 firewall payload-logging update
28
28
 
29
- Fetches the details of a User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`get <ua-rule-id>`,describe:`Get a User Agent Blocking rule`,builder:re,handler:async e=>l({command:`firewall ua-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Z,{zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(a,{successLabel:`Loaded`})})};var ae={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules`,query:[`page`,`description`,`per_page`,`user_agent`,`paused`]};function oe(e){return e.usage(`$0 firewall ua-rules list
29
+ Creates or replaces the public key that payload logging uses to encrypt matched payloads for the account or zone. It applies to every zone in the account or zone that has no zone key. Requires a plan that includes payload logging (Enterprise); otherwise it returns 403.`).option(`public-key`,{type:`string`,description:`Defines the X25519 public key, as standard base64 of exactly 32 bytes, that encrypts matched payloads. Cloudflare stores only the public key; keep the private key to decrypt logged payloads.`}).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 oe={command:`update`,describe:`Set the payload logging key`,builder:ae,handler:async e=>l({command:`firewall payload-logging update`,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 firewall payload-logging update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/payload_logging/key`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({public_key:p(e[`public-key`],`public-key`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),n=await c(`Updating`,async()=>l.send(X,{body:t,account_or_zone:u,account_or_zone_id:h}));o(n,{successLabel:`Updated`});return}e[`public-key`]===void 0&&(e[`public-key`]=await m(`public-key`,`Defines the X25519 public key, as standard base64 of exactly 32 bytes, that encrypts matched payloads. Cloudflare stores only the public key; keep the private key to decrypt logged payloads.`));let g=f({public_key:p(e[`public-key`],`public-key`,`text`)}),_=await c(`Updating`,async()=>l.send(X,{body:g,account_or_zone:u,account_or_zone_id:h}));o(_,{successLabel:`Updated`})})},se={command:`payload-logging`,describe:`Account-level public key that WAF payload logging uses to encrypt matched payloads`,builder:e=>e.command(K).command(Y).command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules`,body:`json`};function ce(e){return e.usage(`$0 firewall ua-rules create
30
30
 
31
- Fetches User Agent Blocking rules in a zone. You can filter the results using several optional parameters.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`description`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`per-page`,{type:`number`,description:"The maximum number of results per page. You can only set the value to `1` or to a multiple of 5 such as `5`, `10`, `15`, or `20`."}).option(`user-agent`,{type:`string`,description:`A string to search for in the user agent values of existing rules.`}).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`list`,describe:`List User Agent Blocking rules`,builder:oe,handler:async e=>l({command:`firewall ua-rules list`,classification:{safeFlags:[`paused`,`dry-run`]}},e,async()=>{let t={page:e.page,description:e.description,per_page:e[`per-page`],user_agent:e[`user-agent`],paused:e.paused};if(e.dryRun){s({command:`cf firewall ua-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(ae,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var Q={method:`PUT`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`,body:`json`};function ce(e){return e.usage(`$0 firewall ua-rules update <ua-rule-id>
31
+ Creates a new User Agent Blocking rule in a zone.`).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ua` when specifying a user agent in the rule.",choices:[`ua`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`the user agent to exactly match`}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).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 le={command:`create`,describe:`Create a User Agent Blocking rule`,builder:ce,handler:async e=>l({command:`firewall ua-rules create`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(Z,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await h(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let a=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}),l=await c(`Creating`,async()=>t.send(Z,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var ue={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`};function de(e){return e.usage(`$0 firewall ua-rules delete <ua-rule-id>
32
32
 
33
- Updates an existing User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,demandOption:!0}).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).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 le={command:`update <ua-rule-id>`,describe:`Update a User Agent Blocking rule`,builder:ce,handler:async e=>l({command:`firewall ua-rules update`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(Q,{body:n,zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(i,{successLabel:`Updated`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await m(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let a=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}),l=await c(`Updating`,async()=>t.send(Q,{body:a,zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(l,{successLabel:`Updated`})})},$={command:`ua-rules`,describe:`Block or challenge requests based on the User-Agent header string`,builder:e=>e.command(q).command(X).command(ie).command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ue={command:`firewall`,describe:`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,builder:e=>e.command(k).command(W).command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ue as default};
33
+ Deletes an existing User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,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 fe={command:`delete <ua-rule-id>`,describe:`Delete a User Agent Blocking rule`,builder:de,handler:async e=>l({command:`firewall ua-rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the User Agent Blocking rule from the zone.`}))return;let a=await c(`Deleting`,async()=>t.send(ue,{zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(a,{successLabel:`Deleted`})})};var pe={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`};function me(e){return e.usage(`$0 firewall ua-rules get <ua-rule-id>
34
+
35
+ Fetches the details of a User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`get <ua-rule-id>`,describe:`Get a User Agent Blocking rule`,builder:me,handler:async e=>l({command:`firewall ua-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(pe,{zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(a,{successLabel:`Loaded`})})};var he={method:`GET`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules`,query:[`page`,`description`,`per_page`,`user_agent`,`paused`]};function ge(e){return e.usage(`$0 firewall ua-rules list
36
+
37
+ Fetches User Agent Blocking rules in a zone. You can filter the results using several optional parameters.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`description`,{type:`string`,description:`A string to search for in the description of existing rules.`}).option(`per-page`,{type:`number`,description:"The maximum number of results per page. You can only set the value to `1` or to a multiple of 5 such as `5`, `10`, `15`, or `20`."}).option(`user-agent`,{type:`string`,description:`A string to search for in the user agent values of existing rules.`}).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _e={command:`list`,describe:`List User Agent Blocking rules`,builder:ge,handler:async e=>l({command:`firewall ua-rules list`,classification:{safeFlags:[`paused`,`dry-run`]}},e,async()=>{let t={page:e.page,description:e.description,per_page:e[`per-page`],user_agent:e[`user-agent`],paused:e.paused};if(e.dryRun){s({command:`cf firewall ua-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(he,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/zones/${t.zone_id}/firewall/ua_rules/${t.ua_rule_id}`,body:`json`};function ve(e){return e.usage(`$0 firewall ua-rules update <ua-rule-id>
38
+
39
+ Updates an existing User Agent Blocking rule.`).positional(`ua-rule-id`,{type:`string`,description:`The unique identifier of the User Agent Blocking rule.`,demandOption:!0}).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`description`,{type:`string`,description:`An informative summary of the rule. This value is sanitized and any tags will be removed.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`paused`,{type:`boolean`,description:`When true, indicates that the rule is currently paused.`}).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 ye={command:`update <ua-rule-id>`,describe:`Update a User Agent Blocking rule`,builder:ve,handler:async e=>l({command:`firewall ua-rules update`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`paused`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf firewall ua-rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/firewall/ua_rules/${e[`ua-rule-id`]==null?`<ua-rule-id>`:encodeURIComponent(String(e[`ua-rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ua-rule-id":String(e[`ua-rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send($,{body:n,zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(i,{successLabel:`Updated`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await h(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let a=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},description:p(e.description,`description`,`text`),mode:e[`access-rule-mode`],paused:e.paused}),l=await c(`Updating`,async()=>t.send($,{body:a,zone_id:r,ua_rule_id:e[`ua-rule-id`]}));o(l,{successLabel:`Updated`})})},be={command:`ua-rules`,describe:`Block or challenge requests based on the User-Agent header string`,builder:e=>e.command(le).command(fe).command(Q).command(_e).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xe={command:`firewall`,describe:`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,builder:e=>e.command(O).command(W).command(se).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{xe as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/flagship/apps`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 flagship apps create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{i as n,n as r}from"./auth-CB9wjyad.mjs";import{a as i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-SNVLBS1b.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/flagship/apps`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 flagship apps create
3
3
 
4
4
  Creates an app. The returned \`id\` is used in all subsequent flag, changelog, and evaluation requests.`).option(`name`,{type:`string`,description:`Name of the Flagship app (1–64 letters, numbers, hyphens, or underscores).`}).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 y={command:`create`,describe:`Create app`,builder:v,handler:async e=>l({command:`flagship apps create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf flagship apps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/flagship/apps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Name of the Flagship app (1–64 letters, numbers, hyphens, or underscores).`));let u=p({name:m(e.name,`name`,`text`)}),f=await c(`Creating`,async()=>n.send(_,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};function b(e){return e.usage("$0 flagship apps definitions get <app-id>\n\nReturns an app's evaluation-only flag definitions for SDKs that evaluate locally. Send the returned `ETag` in `If-None-Match` to avoid downloading unchanged definitions.").positional(`app-id`,{type:`string`,description:`Flagship app ID returned when the app was created.`,demandOption:!0}).option(`if-none-match`,{type:`string`,description:"Previously returned ETag, or `*`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <app-id>`,describe:`Get flag definitions`,builder:b,handler:async e=>l({command:`flagship apps definitions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`if-none-match`]!==void 0&&(l[`If-None-Match`]=String(e[`if-none-match`])),e.dryRun){let t=await i();s({command:`cf flagship apps definitions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/flagship/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/definitions`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/flagship/apps/${encodeURIComponent(String(e[`app-id`]))}/definitions`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})},ee={command:`definitions`,describe:`Operations for apps.definitions`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/flagship/apps/${t.app_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function S(e){return e.usage(`$0 flagship apps delete <app-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";var u={method:`GET`,path:t=>e`/zones/${t.zone_id}/fraud_detection/settings`};function d(e){return e.usage(`$0 fraud get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{i as n}from"./context-DCon1tRZ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-_Jux05O5.mjs";import{t as o}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";var u={method:`GET`,path:t=>e`/zones/${t.zone_id}/fraud_detection/settings`};function d(e){return e.usage(`$0 fraud get
3
3
 
4
4
  Retrieve Fraud Detection settings for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Fraud Detection Settings`,builder:d,handler:async e=>o({command:`fraud get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf fraud get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/fraud_detection/settings`,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});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(u,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var p={method:`PUT`,path:t=>e`/zones/${t.zone_id}/fraud_detection/settings`,body:`json`};function m(e){return e.usage("$0 fraud update\n\nUpdate Fraud Detection settings for a zone. Notes on `username_expressions` behavior: - If omitted or set to null, expressions are not modified. - If provided as an empty array `[]`, all expressions will be cleared.").option(`authentication-settings-failure-criteria-kind`,{type:`string`,description:"The type of criterion. Currently only `status_code` is supported.",choices:[`status_code`]}).coerce(`authentication-settings-failure-criteria-kind`,e=>l(e,`authentication-settings-failure-criteria-kind`,`text`)).option(`authentication-settings-failure-criteria-status-codes`,{type:`string`,array:!0,description:`HTTP status codes to match against the origin response.
5
5
  - Maximum of 10 codes per criterion.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u}from"./prompt-BBR19lgj.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/google-tag-gateway/config`};function f(e){return e.usage(`$0 google-tag-gateway config get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{i as n}from"./context-DCon1tRZ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-_Jux05O5.mjs";import{t as o}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u}from"./prompt-SNVLBS1b.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/google-tag-gateway/config`};function f(e){return e.usage(`$0 google-tag-gateway config get
3
3
 
4
4
  Gets the Google Tag Gateway configuration for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Google Tag Gateway configuration`,builder:f,handler:async e=>o({command:`google-tag-gateway config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf google-tag-gateway config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/google-tag-gateway/config`,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});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/google-tag-gateway/config`,body:`json`};function h(e){return e.usage(`$0 google-tag-gateway config update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,r as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-BBR19lgj.mjs";var p={method:`POST`,path:t=>e`/zones/${t.zone_id}/healthchecks`,body:`json`};function m(e){return e.usage(`$0 healthchecks create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{i as n}from"./context-DCon1tRZ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-_Jux05O5.mjs";import{t as o}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as s,r as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-SNVLBS1b.mjs";var p={method:`POST`,path:t=>e`/zones/${t.zone_id}/healthchecks`,body:`json`};function m(e){return e.usage(`$0 healthchecks create
3
3
 
4
4
  Create a new health check.`).option(`address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`,default:1}).option(`consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`,default:1}).option(`description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`http-config-header`,{type:`string`,description:`The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. Provide as a JSON object or @path/to/file.json.`}).option(`http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).coerce(`http-config-method`,e=>u(e,`http-config-method`,`text`)).option(`http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`,default:60}).option(`name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`,default:2}).option(`suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`,default:!1}).option(`tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).coerce(`tcp-config-method`,e=>u(e,`tcp-config-method`,`text`)).option(`tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`,default:5}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`,default:`HTTP`}).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 h={command:`create`,describe:`Create Health Check`,builder:m,handler:async e=>o({command:`healthchecks create`,classification:{safeFlags:[`http-config-allow-insecure`,`http-config-follow-redirects`,`http-config-method`,`suspended`,`tcp-config-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf healthchecks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/healthchecks`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({address:u(e.address,`address`,`text`),check_regions:e[`check-regions`],consecutive_fails:e[`consecutive-fails`],consecutive_successes:e[`consecutive-successes`],description:u(e.description,`description`,`text`),http_config:{allow_insecure:e[`http-config-allow-insecure`],expected_body:u(e[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:e[`http-config-expected-codes`],follow_redirects:e[`http-config-follow-redirects`],header:c(e[`http-config-header`],`http-config-header`),method:e[`http-config-method`],path:u(e[`http-config-path`],`http-config-path`,`text`),port:e[`http-config-port`]},interval:e.interval,name:u(e.name,`name`,`text`),retries:e.retries,suspended:e.suspended,tcp_config:{method:e[`tcp-config-method`],port:e[`tcp-config-port`]},timeout:e.timeout,type:u(e.type,`type`,`text`)},[[`http_config`,`header`]]):s(e.body)});return}let o=await t(e),f=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=f,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(p,{body:t,zone_id:f}));r(n,{successLabel:`Created`});return}e.address===void 0&&(e.address=await d(`address`,`The hostname or IP address of the origin server to run health checks on.`)),e.name===void 0&&(e.name=await d(`name`,`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`));let m=l({address:u(e.address,`address`,`text`),check_regions:e[`check-regions`],consecutive_fails:e[`consecutive-fails`],consecutive_successes:e[`consecutive-successes`],description:u(e.description,`description`,`text`),http_config:{allow_insecure:e[`http-config-allow-insecure`],expected_body:u(e[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:e[`http-config-expected-codes`],follow_redirects:e[`http-config-follow-redirects`],header:c(e[`http-config-header`],`http-config-header`),method:e[`http-config-method`],path:u(e[`http-config-path`],`http-config-path`,`text`),port:e[`http-config-port`]},interval:e.interval,name:u(e.name,`name`,`text`),retries:e.retries,suspended:e.suspended,tcp_config:{method:e[`tcp-config-method`],port:e[`tcp-config-port`]},timeout:e.timeout,type:u(e.type,`type`,`text`)},[[`http_config`,`header`]]),h=await a(`Creating`,async()=>o.send(p,{body:m,zone_id:f}));r(h,{successLabel:`Created`})})};var g={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/healthchecks/${t.healthcheck_id}`};function _(e){return e.usage(`$0 healthchecks delete <healthcheck-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/hyperdrive/configs`,body:`json`};function g(e){return e.usage(`$0 hyperdrive create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-SNVLBS1b.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/hyperdrive/configs`,body:`json`};function g(e){return e.usage(`$0 hyperdrive create
3
3
 
4
4
  Creates and returns a new Hyperdrive configuration. For a PlanetScale integration, the Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.`).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).coerce(`mtls-sslmode`,e=>d(e,`mtls-sslmode`,`text`)).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/iam/permission_groups/${t.permission_group_id}`};function g(e){return e.usage(`$0 iam permission-groups get <permission-group-id>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-SNVLBS1b.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/iam/permission_groups/${t.permission_group_id}`};function g(e){return e.usage(`$0 iam permission-groups get <permission-group-id>
3
3
 
4
4
  Get information about a specific permission group in an account.`).positional(`permission-group-id`,{type:`string`,description:`Permission Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <permission-group-id>`,describe:`Permission Group Details`,builder:g,handler:async e=>c({command:`iam permission-groups get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf iam permission-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/iam/permission_groups/${e[`permission-group-id`]==null?`<permission-group-id>`:encodeURIComponent(String(e[`permission-group-id`]))}`,pathParams:{"permission-group-id":String(e[`permission-group-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(h,{account_id:l,permission_group_id:e[`permission-group-id`]}));a(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/iam/permission_groups`,query:[`id`,`name`,`label`,`page`,`per_page`]};function v(e){return e.usage(`$0 iam permission-groups list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,i as a,t as o}from"./context-DoGlohS-.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-D2_AF54c.mjs";import{t as u}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as d,n as f,r as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-BBR19lgj.mjs";import{n as b,t as x}from"./raw-fetch-BFcMz5hY.mjs";var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/images/v1`,pathParams:[`account_id`],body:`form`};function ee(e){return e.usage(`$0 images create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{i as n,n as r}from"./auth-CB9wjyad.mjs";import{a as i,i as a,t as o}from"./context-DCon1tRZ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-_Jux05O5.mjs";import{t as u}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as d,n as f,r as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-SNVLBS1b.mjs";import{n as b,t as x}from"./raw-fetch-D3ydyJYW.mjs";var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/images/v1`,pathParams:[`account_id`],body:`form`};function ee(e){return e.usage(`$0 images create
3
3
 
4
4
  Upload an image to CF Images. Images up to 10 Megabytes can be uploaded using a single HTTP POST (multipart/form-data) request by sending an image file or passing a URL accessible to the API.`).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)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`creator`,{type:`string`,description:`Can set the creator field with an internal user ID.`}).option(`id`,{type:`string`,description:`An optional custom unique identifier for your image.`}).option(`metadata`,{type:`string`,description:`User modifiable key-value store. Can use used for keeping references to another system of record for managing images.`}).option(`require-signed-urls`,{type:`boolean`,description:`Indicates whether the image requires a signature token for the access.`}).option(`url`,{type:`string`,description:`A URL to fetch an image from origin. Only needed when type is uploading from a URL.`})}const te={command:`create`,describe:`Upload an image`,builder:ee,handler:async e=>u({command:`images create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf images create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/images/v1`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file,creator:e.creator,id:e.id,metadata:e.metadata,"require-signed-urls":e[`require-signed-urls`],url:e.url}});return}let a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e.creator!==void 0||e.id!==void 0||e.metadata!==void 0||e[`require-signed-urls`]!==void 0||e.url!==void 0){let t=new FormData;if(e.file){let n=g(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);if(e.creator!==void 0&&t.append(`creator`,String(h(e.creator,`creator`,`text`)??``)),e.id!==void 0&&t.append(`id`,String(h(e.id,`id`,`text`)??``)),e.metadata!==void 0){let n=typeof e.metadata==`string`?h(e.metadata,`metadata`,`text`):e.metadata;t.append(`metadata`,typeof n==`string`?n:JSON.stringify(n))}e[`require-signed-urls`]!==void 0&&t.append(`requireSignedURLs`,String(e[`require-signed-urls`])),e.url!==void 0&&t.append(`url`,String(h(e.url,`url`,`text`)??``));let r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/images/v1`,{body:t}));s(r,{successLabel:`Created`});return}if(e.body){let t=h(e.body,`body`,`binary`),r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/images/v1`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));s(r,{successLabel:`Created`});return}let d=await l(`Creating`,async()=>a.send(S,{account_id:u}));s(d,{successLabel:`Created`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/images/v1/${t.image_id}`};function re(e){return e.usage(`$0 images delete <image-id>
5
5
 
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,r as t,t as n}from"./src-BZtxQa8v.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";export{r as CliExit,n as buildCli,e as main,t as runMain};
2
+ import{n as e,r as t,t as n}from"./src-Bh2gHpI7.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";export{r as CliExit,n as buildCli,e as main,t as runMain};