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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
  22. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
  24. package/dist/auth-OFqV2M4q.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  27. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
  28. package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
  29. package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
  30. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
  31. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
  32. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  33. package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
  34. package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
  35. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
  36. package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
  37. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
  38. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
  39. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
  40. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
  41. package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
  42. package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
  43. package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
  44. package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
  45. package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
  46. package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
  48. package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
  49. package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
  50. package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
  51. package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
  52. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
  53. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
  54. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
  55. package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
  56. package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
  57. package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
  58. package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
  59. package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
  60. package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
  61. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  62. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
  63. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
  64. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
  65. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
  66. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
  67. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
  68. package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
  69. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
  70. package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
  71. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
  72. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
  73. package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
  74. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
  75. package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
  76. package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
  77. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
  78. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
  79. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
  80. package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
  81. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
  82. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  83. package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
  84. package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
  85. package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
  86. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
  87. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
  88. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
  89. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
  90. package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
  91. package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
  92. package/dist/index.mjs +1 -1
  93. package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
  94. package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
  95. package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
  96. package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
  97. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
  98. package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
  99. package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
  100. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  101. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
  102. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  103. package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
  104. package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
  105. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
  106. package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
  107. package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
  108. package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
  109. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
  110. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
  111. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
  112. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
  113. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
  114. package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
  115. package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
  116. package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
  117. package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
  118. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
  119. package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
  120. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
  121. package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
  122. package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
  123. package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
  124. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
  125. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
  126. package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
  127. package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
  128. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
  129. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
  130. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
  131. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
  132. package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
  133. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
  134. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
  135. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
  136. package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
  137. package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
  138. package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
  139. package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
  140. package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
  141. package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
  142. package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
  143. package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
  144. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
  145. package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
  146. package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
  147. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
  148. package/dist/reporting-BWm9jIF8.mjs +14 -0
  149. package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  150. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
  151. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
  152. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
  153. package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
  154. package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
  155. package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
  156. package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
  157. package/dist/run-roYb_Odh.mjs +2 -0
  158. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  159. package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
  160. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
  161. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
  162. package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
  163. package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
  164. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
  165. package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
  166. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
  167. package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
  168. package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
  169. package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
  170. package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
  171. package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
  172. package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
  173. package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
  174. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  175. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  176. package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
  177. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
  178. package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
  179. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
  180. package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
  181. package/dist/update-check-BnGDxswi.mjs +2 -0
  182. package/dist/update-check-worker.mjs +1 -1
  183. package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
  184. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
  185. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
  186. package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
  187. package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
  188. package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
  189. package/dist/version-CVlh2Zaq.mjs +2 -0
  190. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
  191. package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
  192. package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
  193. package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
  194. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
  195. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
  196. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
  197. package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
  198. package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
  199. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
  200. package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
  201. package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
  202. package/package.json +3 -2
  203. package/dist/alerts-BSON-vFh.mjs +0 -2
  204. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  205. package/dist/auth-8Sm4uLGM.mjs +0 -2
  206. package/dist/autorag-kNrLiqDX.mjs +0 -2
  207. package/dist/brands-bBJgbbOH.mjs +0 -2
  208. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  209. package/dist/browser-run-CEptKZYl.mjs +0 -42
  210. package/dist/clear-BW9vLgI3.mjs +0 -2
  211. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  212. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  213. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  214. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  215. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  216. package/dist/health-CTaCeVyC.mjs +0 -2
  217. package/dist/internal-BYS7hO8c.mjs +0 -2
  218. package/dist/live-BJE_YWE1.mjs +0 -2
  219. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  220. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  221. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  222. package/dist/ready-B3pLxnjc.mjs +0 -2
  223. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  224. package/dist/refute-Dp3VodMn.mjs +0 -2
  225. package/dist/reporting-3kDVF5c8.mjs +0 -14
  226. package/dist/run-CUNhH5CQ.mjs +0 -2
  227. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  228. package/dist/scan-page-CxeudOzj.mjs +0 -2
  229. package/dist/search-B_P5ZTQj.mjs +0 -2
  230. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  231. package/dist/submission-info-_t78q2OE.mjs +0 -2
  232. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  233. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  234. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  235. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  236. package/dist/verify-5KcvRk-q.mjs +0 -2
  237. package/dist/version-B6MnUIqV.mjs +0 -2
@@ -1,112 +1,112 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./get-CRKvqCu6.mjs";import{n,o as r}from"./auth-C6u9qIGO.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-D5po7ScB.mjs";import{t as s}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as c,r as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BAJpE3jV.mjs";var ee={method:`GET`,path:()=>`/user/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function te(e){return e.usage(`$0 user audit-logs list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./get-CRKvqCu6.mjs";import{i as n,n as r,o as i}from"./auth-eVI_UEt8.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";var ee={method:`GET`,path:()=>`/user/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function te(e){return e.usage(`$0 user audit-logs list
3
3
 
4
- Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`Get user audit logs`,builder:te,handler:async e=>s({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let t={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){a({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(ee,t));i(s,{successLabel:`Loaded`})})},ne={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var re={method:`GET`,path:()=>`/user/billing/history`,query:[`page`,`per_page`,`order`,`occurred_at`,`type`,`action`]};function ie(e){return e.usage(`$0 user billing history list
4
+ Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Get user audit logs`,builder:te,handler:async e=>c({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let t={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){o({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(ee,t));a(i,{successLabel:`Loaded`})})},ne={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var re={method:`GET`,path:()=>`/user/billing/history`,query:[`page`,`per_page`,`order`,`occurred_at`,`type`,`action`]};function ie(e){return e.usage(`$0 user billing history list
5
5
 
6
- Accesses your billing history object.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order billing history by.`,choices:[`type`,`occurred_at`,`action`]}).option(`occurred-at`,{type:`string`,description:`When the billing item was created.`}).option(`type`,{type:`string`,description:`The billing item type.`}).option(`action`,{type:`string`,description:`The billing item action.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`Billing History Details`,builder:ie,handler:async e=>s({command:`user billing history list`,classification:{safeFlags:[`order`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],order:e.order,occurred_at:e[`occurred-at`],type:e.type,action:e.action};if(e.dryRun){a({command:`cf user billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/history`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(re,t));i(s,{successLabel:`Loaded`})})},oe={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var se={method:`GET`,path:()=>`/user/billing/profile`};function ce(e){return e.usage(`$0 user billing profile get
6
+ Accesses your billing history object.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order billing history by.`,choices:[`type`,`occurred_at`,`action`]}).option(`occurred-at`,{type:`string`,description:`When the billing item was created.`}).option(`type`,{type:`string`,description:`The billing item type.`}).option(`action`,{type:`string`,description:`The billing item action.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`Billing History Details`,builder:ie,handler:async e=>c({command:`user billing history list`,classification:{safeFlags:[`order`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],order:e.order,occurred_at:e[`occurred-at`],type:e.type,action:e.action};if(e.dryRun){o({command:`cf user billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/history`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(re,t));a(i,{successLabel:`Loaded`})})},oe={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var se={method:`GET`,path:()=>`/user/billing/profile`};function ce(e){return e.usage(`$0 user billing profile get
7
7
 
8
- Accesses your billing profile object.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get`,describe:`Billing Profile Details`,builder:ce,handler:async e=>s({command:`user billing profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user billing profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/profile`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(se));i(r,{successLabel:`Loaded`})})},ue={command:`profile`,describe:`Operations for billing.profile`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},de={command:`billing`,describe:`View billing history and payment profile for your user (deprecated — prefer account-level billing)`,builder:e=>e.command(oe).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var h={method:`PATCH`,path:()=>`/user`,body:`json`};function fe(e){return e.usage(`$0 user edit
8
+ Accesses your billing profile object.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get`,describe:`Billing Profile Details`,builder:ce,handler:async e=>c({command:`user billing profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user billing profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/profile`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(se));a(n,{successLabel:`Loaded`})})},ue={command:`profile`,describe:`Operations for billing.profile`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},de={command:`billing`,describe:`View billing history and payment profile for your user (deprecated — prefer account-level billing)`,builder:e=>e.command(oe).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var _={method:`PATCH`,path:()=>`/user`,body:`json`};function fe(e){return e.usage(`$0 user edit
9
9
 
10
- Edit part of your user details.`).option(`country`,{type:`string`,description:`The country in which the user lives.`}).option(`first-name`,{type:`string`,description:`User's first name`}).option(`last-name`,{type:`string`,description:`User's last name`}).option(`telephone`,{type:`string`,description:`User's telephone number`}).option(`zipcode`,{type:`string`,description:`The zipcode or postal code where the user lives.`}).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 pe={command:`edit`,describe:`Edit User`,builder:fe,handler:async e=>s({command:`user edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({country:d(e.country,`country`,`text`),first_name:d(e[`first-name`],`first-name`,`text`),last_name:d(e[`last-name`],`last-name`,`text`),telephone:d(e.telephone,`telephone`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(h,{body:n}));i(r,{successLabel:`Updated`});return}let r=u({country:d(e.country,`country`,`text`),first_name:d(e[`first-name`],`first-name`,`text`),last_name:d(e[`last-name`],`last-name`,`text`),telephone:d(e.telephone,`telephone`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)}),s=await o(`Updating`,async()=>t.send(h,{body:r}));i(s,{successLabel:`Updated`})})};var g={method:`POST`,path:()=>`/user/firewall/access_rules/rules`,body:`json`};function _(e){return e.usage(`$0 user firewall access-rules create
10
+ Edit part of your user details.`).option(`country`,{type:`string`,description:`The country in which the user lives.`}).option(`first-name`,{type:`string`,description:`User's first name`}).option(`last-name`,{type:`string`,description:`User's last name`}).option(`telephone`,{type:`string`,description:`User's telephone number`}).option(`zipcode`,{type:`string`,description:`The zipcode or postal code where the user lives.`}).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 pe={command:`edit`,describe:`Edit User`,builder:fe,handler:async e=>c({command:`user edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),telephone:f(e.telephone,`telephone`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(_,{body:n}));a(r,{successLabel:`Updated`});return}let n=d({country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),telephone:f(e.telephone,`telephone`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),i=await s(`Updating`,async()=>t.send(_,{body:n}));a(i,{successLabel:`Updated`})})};var v={method:`POST`,path:()=>`/user/firewall/access_rules/rules`,body:`json`};function me(e){return e.usage(`$0 user firewall access-rules create
11
11
 
12
- Creates a new IP Access rule for all zones owned by the current user. Note: To create an IP Access rule that applies to a specific 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=>d(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(`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=>s({command:`user firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user firewall access-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({configuration:{target:e[`configuration-target`],value:d(e[`configuration-value`],`configuration-value`,`text`)}}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(g,{body:n}));i(r,{successLabel:`Created`});return}let r=u({configuration:{target:e[`configuration-target`],value:d(e[`configuration-value`],`configuration-value`,`text`)}}),s=await o(`Creating`,async()=>t.send(g,{body:r}));i(s,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`};function b(e){return e.usage(`$0 user firewall access-rules delete <rule-id>
12
+ Creates a new IP Access rule for all zones owned by the current user. Note: To create an IP Access rule that applies to a specific 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=>f(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(`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 y={command:`create`,describe:`Create an IP Access rule`,builder:me,handler:async e=>c({command:`user firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user firewall access-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({configuration:{target:e[`configuration-target`],value:f(e[`configuration-value`],`configuration-value`,`text`)},notes:f(e.notes,`notes`,`text`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(v,{body:n}));a(r,{successLabel:`Created`});return}let n=d({configuration:{target:e[`configuration-target`],value:f(e[`configuration-value`],`configuration-value`,`text`)},notes:f(e.notes,`notes`,`text`)}),i=await s(`Creating`,async()=>t.send(v,{body:n}));a(i,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`};function x(e){return e.usage(`$0 user firewall access-rules delete <rule-id>
13
13
 
14
- Deletes an IP Access rule at the user level. Note: Deleting a user-level rule will affect all zones owned by the user.`).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=>s({command:`user firewall access-rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user firewall access-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force,message:`This operation deletes the user-level IP Access Rule and affects every zone owned by the user.`})){process.stderr.write(`Aborted.
15
- `);return}let r=await o(`Deleting`,async()=>t.send(y,{rule_id:e[`rule-id`]}));i(r,{successLabel:`Deleted`})})};var S={method:`PATCH`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`,body:`json`};function C(e){return e.usage(`$0 user firewall access-rules edit <rule-id>
14
+ Deletes an IP Access rule at the user level. Note: Deleting a user-level rule will affect all zones owned by the user.`).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 S={command:`delete <rule-id>`,describe:`Delete an IP Access rule`,builder:x,handler:async e=>c({command:`user firewall access-rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user firewall access-rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force,message:`This operation deletes the user-level IP Access Rule and affects every zone owned by the user.`})){process.stderr.write(`Aborted.
15
+ `);return}let n=await s(`Deleting`,async()=>t.send(b,{rule_id:e[`rule-id`]}));a(n,{successLabel:`Deleted`})})};var C={method:`PATCH`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`,body:`json`};function w(e){return e.usage(`$0 user firewall access-rules edit <rule-id>
16
16
 
17
- Updates an IP Access rule defined at the user level. You can only update the rule action (\`mode\` parameter) and notes.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).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 w={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:C,handler:async e=>s({command:`user firewall access-rules edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user firewall access-rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({notes:d(e.notes,`notes`,`text`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(S,{body:n,rule_id:e[`rule-id`]}));i(r,{successLabel:`Updated`});return}let r=u({notes:d(e.notes,`notes`,`text`)}),s=await o(`Updating`,async()=>t.send(S,{body:r,rule_id:e[`rule-id`]}));i(s,{successLabel:`Updated`})})};var T={method:`GET`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`};function E(e){return e.usage(`$0 user firewall access-rules get <rule-id>
17
+ Updates an IP Access rule defined at the user level. You can only update the rule action (\`mode\` parameter) and notes.`).positional(`rule-id`,{type:`string`,description:`Unique identifier for a rule.`,demandOption:!0}).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 T={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:w,handler:async e=>c({command:`user firewall access-rules edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user firewall access-rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({notes:f(e.notes,`notes`,`text`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(C,{body:n,rule_id:e[`rule-id`]}));a(r,{successLabel:`Updated`});return}let n=d({notes:f(e.notes,`notes`,`text`)}),i=await s(`Updating`,async()=>t.send(C,{body:n,rule_id:e[`rule-id`]}));a(i,{successLabel:`Updated`})})};var E={method:`GET`,path:t=>e`/user/firewall/access_rules/rules/${t.rule_id}`};function D(e){return e.usage(`$0 user firewall access-rules get <rule-id>
18
18
 
19
- Fetches the details of an IP Access rule defined at the user level.`).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 D={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:E,handler:async e=>s({command:`user firewall access-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user firewall access-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(T,{rule_id:e[`rule-id`]}));i(r,{successLabel:`Loaded`})})};var O={method:`GET`,path:()=>`/user/firewall/access_rules/rules`,query:[`mode`,`configuration.target`,`configuration.value`,`notes`,`match`,`page`,`per_page`,`order`,`direction`]};function k(e){return e.usage(`$0 user firewall access-rules list
19
+ Fetches the details of an IP Access rule defined at the user level.`).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 O={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:D,handler:async e=>c({command:`user firewall access-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user firewall access-rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(E,{rule_id:e[`rule-id`]}));a(n,{successLabel:`Loaded`})})};var k={method:`GET`,path:()=>`/user/firewall/access_rules/rules`,query:[`mode`,`configuration.target`,`configuration.value`,`notes`,`match`,`page`,`per_page`,`order`,`direction`]};function A(e){return e.usage(`$0 user firewall access-rules list
20
20
 
21
21
  Fetches IP Access rules of the user. You can filter the results using several optional parameters.`).option(`action`,{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.
22
- 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 A={command:`list`,describe:`List IP Access rules`,builder:k,handler:async e=>s({command:`user firewall access-rules list`,classification:{safeFlags:[`action`,`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let t={mode:e.action,"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){a({command:`cf user firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(O,t));i(s,{successLabel:`Loaded`})})},j={command:`access-rules`,describe:`Operations for firewall.access-rules`,builder:e=>e.command(v).command(x).command(w).command(D).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`firewall`,describe:`Firewall operations`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 user get
22
+ 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 j={command:`list`,describe:`List IP Access rules`,builder:A,handler:async e=>c({command:`user firewall access-rules list`,classification:{safeFlags:[`action`,`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let t={mode:e.action,"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){o({command:`cf user firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(k,t));a(i,{successLabel:`Loaded`})})},M={command:`access-rules`,describe:`Operations for firewall.access-rules`,builder:e=>e.command(y).command(S).command(T).command(O).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},N={command:`firewall`,describe:`Firewall operations`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function P(e){return e.usage(`$0 user get
23
23
 
24
- Retrieves detailed information about the currently authenticated user, including email, name, and account memberships.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get`,describe:`User Details`,builder:N,handler:async e=>s({command:`user get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(t));i(s,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/user/invites/${t.invite_id}`};function I(e){return e.usage(`$0 user invites get <invite-id>
24
+ Retrieves detailed information about the currently authenticated user, including email, name, and account memberships.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get`,describe:`User Details`,builder:P,handler:async e=>c({command:`user get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(t));a(i,{successLabel:`Loaded`})})};var I={method:`GET`,path:t=>e`/user/invites/${t.invite_id}`};function L(e){return e.usage(`$0 user invites get <invite-id>
25
25
 
26
- Gets the details of an invitation.`).positional(`invite-id`,{type:`string`,description:`Invite identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <invite-id>`,describe:`Invitation Details`,builder:I,handler:async e=>s({command:`user invites get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user invites get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites/${e[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(e[`invite-id`]))}`,pathParams:{"invite-id":String(e[`invite-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(F,{invite_id:e[`invite-id`]}));i(r,{successLabel:`Loaded`})})};var R={method:`GET`,path:()=>`/user/invites`};function z(e){return e.usage(`$0 user invites list
26
+ Gets the details of an invitation.`).positional(`invite-id`,{type:`string`,description:`Invite identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <invite-id>`,describe:`Invitation Details`,builder:L,handler:async e=>c({command:`user invites get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user invites get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites/${e[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(e[`invite-id`]))}`,pathParams:{"invite-id":String(e[`invite-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(I,{invite_id:e[`invite-id`]}));a(n,{successLabel:`Loaded`})})};var z={method:`GET`,path:()=>`/user/invites`};function he(e){return e.usage(`$0 user invites list
27
27
 
28
- Lists all invitations associated with my user.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List Invitations`,builder:z,handler:async e=>s({command:`user invites list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user invites list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(R));i(r,{successLabel:`Loaded`})})};var me={method:`PATCH`,path:t=>e`/user/invites/${t.invite_id}`,body:`json`};function he(e){return e.usage(`$0 user invites respond <invite-id>
28
+ Lists all invitations associated with my user.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`list`,describe:`List Invitations`,builder:he,handler:async e=>c({command:`user invites list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user invites list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(z));a(n,{successLabel:`Loaded`})})};var B={method:`PATCH`,path:t=>e`/user/invites/${t.invite_id}`,body:`json`};function _e(e){return e.usage(`$0 user invites respond <invite-id>
29
29
 
30
- Responds to an invitation.`).positional(`invite-id`,{type:`string`,description:`Invite identifier tag.`,demandOption:!0}).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 ge={command:`respond <invite-id>`,describe:`Respond to Invitation`,builder:he,handler:async e=>s({command:`user invites respond`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user invites respond`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/invites/${e[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(e[`invite-id`]))}`,pathParams:{"invite-id":String(e[`invite-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(me,{body:n,invite_id:e[`invite-id`]}));i(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},_e={command:`invites`,describe:`Operations for invites`,builder:e=>e.command(L).command(B).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:()=>`/user/load_balancers/monitors`,body:`json`};function ve(e){return e.usage(`$0 user load-balancers monitors create
30
+ Responds to an invitation.`).positional(`invite-id`,{type:`string`,description:`Invite identifier tag.`,demandOption:!0}).option(`status`,{type:`string`,description:`Status of your response to the invitation (rejected or accepted).`,choices:[`accepted`,`rejected`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ve={command:`respond <invite-id>`,describe:`Respond to Invitation`,builder:_e,handler:async e=>c({command:`user invites respond`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user invites respond`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/invites/${e[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(e[`invite-id`]))}`,pathParams:{"invite-id":String(e[`invite-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(B,{body:n,invite_id:e[`invite-id`]}));a(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await m(`status`,`Status of your response to the invitation (rejected or accepted).`,[`accepted`,`rejected`]));let n=d({status:e.status}),i=await s(`Updating`,async()=>t.send(B,{body:n,invite_id:e[`invite-id`]}));a(i,{successLabel:`Updated`})})},ye={command:`invites`,describe:`Operations for invites`,builder:e=>e.command(R).command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:()=>`/user/load_balancers/monitors`,body:`json`};function be(e){return e.usage(`$0 user load-balancers monitors create
31
31
 
32
- Create a configured monitor.`).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ye={command:`create`,describe:`Create Monitor`,builder:ve,handler:async e=>s({command:`user load-balancers monitors create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(V,{body:n}));i(r,{successLabel:`Created`});return}let r=u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),s=await o(`Creating`,async()=>t.send(V,{body:r}));i(s,{successLabel:`Created`})})};var be={method:`DELETE`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`};function xe(e){return e.usage(`$0 user load-balancers monitors delete <monitor-id>
32
+ Create a configured monitor.`).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const xe={command:`create`,describe:`Create Monitor`,builder:be,handler:async e=>c({command:`user load-balancers monitors create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(V,{body:n}));a(r,{successLabel:`Created`});return}let n=d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),i=await s(`Creating`,async()=>t.send(V,{body:n}));a(i,{successLabel:`Created`})})};var Se={method:`DELETE`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`};function Ce(e){return e.usage(`$0 user load-balancers monitors delete <monitor-id>
33
33
 
34
- Delete a configured monitor.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,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 Se={command:`delete <monitor-id>`,describe:`Delete Monitor`,builder:xe,handler:async e=>s({command:`user load-balancers monitors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force})){process.stderr.write(`Aborted.
35
- `);return}let r=await o(`Deleting`,async()=>t.send(be,{monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`,body:`json`};function Ce(e){return e.usage(`$0 user load-balancers monitors edit <monitor-id>
34
+ Delete a configured monitor.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,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 we={command:`delete <monitor-id>`,describe:`Delete Monitor`,builder:Ce,handler:async e=>c({command:`user load-balancers monitors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force})){process.stderr.write(`Aborted.
35
+ `);return}let n=await s(`Deleting`,async()=>t.send(Se,{monitor_id:e[`monitor-id`]}));a(n,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`,body:`json`};function Te(e){return e.usage(`$0 user load-balancers monitors edit <monitor-id>
36
36
 
37
- Apply changes to an existing monitor, overwriting the supplied properties.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`}).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.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const we={command:`edit <monitor-id>`,describe:`Patch Monitor`,builder:Ce,handler:async e=>s({command:`user load-balancers monitors edit`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(H,{body:n,monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Updated`});return}let r=u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),s=await o(`Updating`,async()=>t.send(H,{body:r,monitor_id:e[`monitor-id`]}));i(s,{successLabel:`Updated`})})};var Te={method:`GET`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`};function Ee(e){return e.usage(`$0 user load-balancers monitors get <monitor-id>
37
+ Apply changes to an existing monitor, overwriting the supplied properties.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`}).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.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ee={command:`edit <monitor-id>`,describe:`Patch Monitor`,builder:Te,handler:async e=>c({command:`user load-balancers monitors edit`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(H,{body:n,monitor_id:e[`monitor-id`]}));a(r,{successLabel:`Updated`});return}let n=d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),i=await s(`Updating`,async()=>t.send(H,{body:n,monitor_id:e[`monitor-id`]}));a(i,{successLabel:`Updated`})})};var De={method:`GET`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`};function Oe(e){return e.usage(`$0 user load-balancers monitors get <monitor-id>
38
38
 
39
- List a single configured monitor for a user.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`get <monitor-id>`,describe:`Monitor Details`,builder:Ee,handler:async e=>s({command:`user load-balancers monitors get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Te,{monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Loaded`})})};var Oe={method:`GET`,path:()=>`/user/load_balancers/monitors`};function ke(e){return e.usage(`$0 user load-balancers monitors list
39
+ List a single configured monitor for a user.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ke={command:`get <monitor-id>`,describe:`Monitor Details`,builder:Oe,handler:async e=>c({command:`user load-balancers monitors get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(De,{monitor_id:e[`monitor-id`]}));a(n,{successLabel:`Loaded`})})};var Ae={method:`GET`,path:()=>`/user/load_balancers/monitors`};function je(e){return e.usage(`$0 user load-balancers monitors list
40
40
 
41
- List configured monitors for a user.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`list`,describe:`List Monitors`,builder:ke,handler:async e=>s({command:`user load-balancers monitors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Oe));i(r,{successLabel:`Loaded`})})};var U={method:`POST`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}/preview`,body:`json`};function je(e){return e.usage(`$0 user load-balancers monitors preview create <monitor-id>
41
+ List configured monitors for a user.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List Monitors`,builder:je,handler:async e=>c({command:`user load-balancers monitors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Ae));a(n,{successLabel:`Loaded`})})};var U={method:`POST`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}/preview`,body:`json`};function Ne(e){return e.usage(`$0 user load-balancers monitors preview create <monitor-id>
42
42
 
43
- Preview pools using the specified monitor with provided monitor details. The returned preview_id can be used in the preview endpoint to retrieve the results.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`create <monitor-id>`,describe:`Preview Monitor`,builder:je,handler:async e=>s({command:`user load-balancers monitors preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors preview create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}/preview`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(U,{body:n,monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Created`});return}let r=u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),s=await o(`Creating`,async()=>t.send(U,{body:r,monitor_id:e[`monitor-id`]}));i(s,{successLabel:`Created`})})},Ne={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pe={method:`GET`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}/references`};function Fe(e){return e.usage(`$0 user load-balancers monitors references list
43
+ Preview pools using the specified monitor with provided monitor details. The returned preview_id can be used in the preview endpoint to retrieve the results.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Pe={command:`create <monitor-id>`,describe:`Preview Monitor`,builder:Ne,handler:async e=>c({command:`user load-balancers monitors preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors preview create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}/preview`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(U,{body:n,monitor_id:e[`monitor-id`]}));a(r,{successLabel:`Created`});return}let n=d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),i=await s(`Creating`,async()=>t.send(U,{body:n,monitor_id:e[`monitor-id`]}));a(i,{successLabel:`Created`})})},Fe={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ie={method:`GET`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}/references`};function Le(e){return e.usage(`$0 user load-balancers monitors references list
44
44
 
45
- Get the list of resources that reference the provided monitor.`).option(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ie={command:`list`,describe:`List Monitor References`,builder:Fe,handler:async e=>s({command:`user load-balancers monitors references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors references list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}/references`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Pe,{monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Loaded`})})},Le={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(Ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var W={method:`PUT`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`,body:`json`};function Re(e){return e.usage(`$0 user load-balancers monitors update <monitor-id>
45
+ Get the list of resources that reference the provided monitor.`).option(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`list`,describe:`List Monitor References`,builder:Le,handler:async e=>c({command:`user load-balancers monitors references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors references list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}/references`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Ie,{monitor_id:e[`monitor-id`]}));a(n,{successLabel:`Loaded`})})},ze={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var W={method:`PUT`,path:t=>e`/user/load_balancers/monitors/${t.monitor_id}`,body:`json`};function Be(e){return e.usage(`$0 user load-balancers monitors update <monitor-id>
46
46
 
47
- Modify a configured monitor.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`}).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.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ze={command:`update <monitor-id>`,describe:`Update Monitor`,builder:Re,handler:async e=>s({command:`user load-balancers monitors update`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers monitors update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(W,{body:n,monitor_id:e[`monitor-id`]}));i(r,{successLabel:`Updated`});return}let r=u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),s=await o(`Updating`,async()=>t.send(W,{body:r,monitor_id:e[`monitor-id`]}));i(s,{successLabel:`Updated`})})},Be={command:`monitors`,describe:`Load Balancers operations`,builder:e=>e.command(ye).command(Se).command(we).command(De).command(Ae).command(ze).command(Ne).command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:()=>`/user/load_balancers/pools`,body:`json`};function Ve(e){return e.usage(`$0 user load-balancers pools create
47
+ Modify a configured monitor.`).positional(`monitor-id`,{type:`string`,description:`Monitor ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`}).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.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ve={command:`update <monitor-id>`,describe:`Update Monitor`,builder:Be,handler:async e=>c({command:`user load-balancers monitors update`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers monitors update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/monitors/${e[`monitor-id`]==null?`<monitor-id>`:encodeURIComponent(String(e[`monitor-id`]))}`,pathParams:{"monitor-id":String(e[`monitor-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(W,{body:n,monitor_id:e[`monitor-id`]}));a(r,{successLabel:`Updated`});return}let n=d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),i=await s(`Updating`,async()=>t.send(W,{body:n,monitor_id:e[`monitor-id`]}));a(i,{successLabel:`Updated`})})},He={command:`monitors`,describe:`Load Balancers operations`,builder:e=>e.command(xe).command(we).command(Ee).command(ke).command(Me).command(Ve).command(Fe).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:()=>`/user/load_balancers/pools`,body:`json`};function Ue(e){return e.usage(`$0 user load-balancers pools create
48
48
 
49
- Create a new pool.`).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`,default:``}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`,default:!0}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>d(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>d(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`,default:1}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`networks`,{type:`string`,array:!0,description:`List of networks where Load Balancer or Pool is enabled.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`,default:``}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>d(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const He={command:`create`,describe:`Create Pool`,builder:Ve,handler:async e=>s({command:`user load-balancers pools create`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),networks:e.networks,notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(G,{body:n}));i(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await f(`name`,`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`)),e.origins===void 0)throw Error(`--origins is required (or pass --body with this field set).`);let r=u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),networks:e.networks,notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}),s=await o(`Creating`,async()=>t.send(G,{body:r}));i(s,{successLabel:`Created`})})};var Ue={method:`DELETE`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`};function We(e){return e.usage(`$0 user load-balancers pools delete <pool-id>
49
+ Create a new pool.`).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`,default:``}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`,default:!0}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>f(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>f(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`,default:1}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`networks`,{type:`string`,array:!0,description:`List of networks where Load Balancer or Pool is enabled.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`,default:``}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>f(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const We={command:`create`,describe:`Create Pool`,builder:Ue,handler:async e=>c({command:`user load-balancers pools create`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),networks:e.networks,notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(G,{body:n}));a(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await p(`name`,`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`)),e.origins===void 0)throw Error(`--origins is required (or pass --body with this field set).`);let n=d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),networks:e.networks,notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}),i=await s(`Creating`,async()=>t.send(G,{body:n}));a(i,{successLabel:`Created`})})};var Ge={method:`DELETE`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`};function Ke(e){return e.usage(`$0 user load-balancers pools delete <pool-id>
50
50
 
51
- Delete a configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,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 Ge={command:`delete <pool-id>`,describe:`Delete Pool`,builder:We,handler:async e=>s({command:`user load-balancers pools delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force})){process.stderr.write(`Aborted.
52
- `);return}let r=await o(`Deleting`,async()=>t.send(Ue,{pool_id:e[`pool-id`]}));i(r,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`,body:`json`};function Ke(e){return e.usage(`$0 user load-balancers pools edit pools pool <pool-id>
51
+ Delete a configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,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 qe={command:`delete <pool-id>`,describe:`Delete Pool`,builder:Ke,handler:async e=>c({command:`user load-balancers pools delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force})){process.stderr.write(`Aborted.
52
+ `);return}let n=await s(`Deleting`,async()=>t.send(Ge,{pool_id:e[`pool-id`]}));a(n,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`,body:`json`};function Je(e){return e.usage(`$0 user load-balancers pools edit pools pool <pool-id>
53
53
 
54
- Apply changes to an existing pool, overwriting the supplied properties.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>d(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>d(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>d(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qe={command:`pool <pool-id>`,describe:`Patch Pool`,builder:Ke,handler:async e=>s({command:`user load-balancers pools edit pools pool`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools edit pools pool`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(K,{body:n,pool_id:e[`pool-id`]}));i(r,{successLabel:`Updated`});return}let r=u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}),s=await o(`Updating`,async()=>t.send(K,{body:r,pool_id:e[`pool-id`]}));i(s,{successLabel:`Updated`})})};var q={method:`PATCH`,path:()=>`/user/load_balancers/pools`,body:`json`};function Je(e){return e.usage("$0 user load-balancers pools edit pools pools\n\nApply changes to a number of existing pools, overwriting the supplied properties. Pools are ordered by ascending `name`. Returns the list of affected pools. Supports the standard pagination query parameters, either `limit`/`offset` or `per_page`/`page`.").option(`notification-email`,{type:`string`,description:'The email address to send health status notifications to. This field is now deprecated in favor of Cloudflare Notifications for Load Balancing, so only resetting this field with an empty string `""` is accepted.'}).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:`pools`,describe:`Patch Pools`,builder:Je,handler:async e=>s({command:`user load-balancers pools edit pools pools`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools edit pools pools`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({notification_email:d(e[`notification-email`],`notification-email`,`text`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(q,{body:n}));i(r,{successLabel:`Updated`});return}let r=u({notification_email:d(e[`notification-email`],`notification-email`,`text`)}),s=await o(`Updating`,async()=>t.send(q,{body:r}));i(s,{successLabel:`Updated`})})},Xe={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(qe).command(Ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ze={command:`edit`,describe:`Operations for load-balancers.pools.edit`,builder:e=>e.command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Qe={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`};function $e(e){return e.usage(`$0 user load-balancers pools get <pool-id>
54
+ Apply changes to an existing pool, overwriting the supplied properties.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>f(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>f(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>f(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ye={command:`pool <pool-id>`,describe:`Patch Pool`,builder:Je,handler:async e=>c({command:`user load-balancers pools edit pools pool`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools edit pools pool`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(K,{body:n,pool_id:e[`pool-id`]}));a(r,{successLabel:`Updated`});return}let n=d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}),i=await s(`Updating`,async()=>t.send(K,{body:n,pool_id:e[`pool-id`]}));a(i,{successLabel:`Updated`})})};function Xe(e){return e.usage("$0 user load-balancers pools edit pools pools\n\nApply changes to a number of existing pools, overwriting the supplied properties. Pools are ordered by ascending `name`. Returns the list of affected pools. Supports the standard pagination query parameters, either `limit`/`offset` or `per_page`/`page`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ze={command:`pools`,describe:`Patch Pools`,builder:Xe,handler:async e=>c({command:`user load-balancers pools edit pools pools`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools edit pools pools`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},bodyKind:`json`,body:e.body===void 0?void 0:l(e.body)});return}let t=await r(e);if(e.body){let r=l(e.body),i=await s(`Updating`,async()=>n(t,`PATCH`,`/user/load_balancers/pools`,{body:r}));a(i,{successLabel:`Updated`});return}let i=await s(`Updating`,async()=>n(t,`PATCH`,`/user/load_balancers/pools`));a(i,{successLabel:`Updated`})})},Qe={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(Ye).command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$e={command:`edit`,describe:`Operations for load-balancers.pools.edit`,builder:e=>e.command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var et={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`};function tt(e){return e.usage(`$0 user load-balancers pools get <pool-id>
55
55
 
56
- Fetch a single configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`get <pool-id>`,describe:`Pool Details`,builder:$e,handler:async e=>s({command:`user load-balancers pools get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Qe,{pool_id:e[`pool-id`]}));i(r,{successLabel:`Loaded`})})};var tt={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/health`};function nt(e){return e.usage(`$0 user load-balancers pools health get <pool-id>
56
+ Fetch a single configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nt={command:`get <pool-id>`,describe:`Pool Details`,builder:tt,handler:async e=>c({command:`user load-balancers pools get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(et,{pool_id:e[`pool-id`]}));a(n,{successLabel:`Loaded`})})};var rt={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/health`};function it(e){return e.usage(`$0 user load-balancers pools health get <pool-id>
57
57
 
58
- Fetch the latest pool health status for a single pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`get <pool-id>`,describe:`Pool Health Details`,builder:nt,handler:async e=>s({command:`user load-balancers pools health get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools health get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/health`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(tt,{pool_id:e[`pool-id`]}));i(r,{successLabel:`Loaded`})})},it={command:`health`,describe:`Load Balancers operations`,builder:e=>e.command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var at={method:`GET`,path:()=>`/user/load_balancers/pools`,query:[`monitor`]};function ot(e){return e.usage(`$0 user load-balancers pools list
58
+ Fetch the latest pool health status for a single pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const at={command:`get <pool-id>`,describe:`Pool Health Details`,builder:it,handler:async e=>c({command:`user load-balancers pools health get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools health get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/health`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(rt,{pool_id:e[`pool-id`]}));a(n,{successLabel:`Loaded`})})},ot={command:`health`,describe:`Load Balancers operations`,builder:e=>e.command(at).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var st={method:`GET`,path:()=>`/user/load_balancers/pools`,query:[`monitor`]};function ct(e){return e.usage(`$0 user load-balancers pools list
59
59
 
60
- List configured pools.`).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const st={command:`list`,describe:`List Pools`,builder:ot,handler:async e=>s({command:`user load-balancers pools list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={monitor:e.monitor};if(e.dryRun){a({command:`cf user load-balancers pools list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(at,t));i(s,{successLabel:`Loaded`})})};var J={method:`POST`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/preview`,body:`json`};function ct(e){return e.usage(`$0 user load-balancers pools preview create <pool-id>
60
+ List configured pools.`).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`list`,describe:`List Pools`,builder:ct,handler:async e=>c({command:`user load-balancers pools list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={monitor:e.monitor};if(e.dryRun){o({command:`cf user load-balancers pools list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(st,t));a(i,{successLabel:`Loaded`})})};var q={method:`POST`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/preview`,body:`json`};function ut(e){return e.usage(`$0 user load-balancers pools preview create <pool-id>
61
61
 
62
- Preview pool health using provided monitor details. The returned preview_id can be used in the preview endpoint to retrieve the results.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const lt={command:`create <pool-id>`,describe:`Preview Pool`,builder:ct,handler:async e=>s({command:`user load-balancers pools preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools preview create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/preview`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(J,{body:n,pool_id:e[`pool-id`]}));i(r,{successLabel:`Created`});return}let r=u({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:d(e.description,`description`,`text`),expected_body:d(e[`expected-body`],`expected-body`,`text`),expected_codes:d(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:d(e.method,`method`,`text`),path:d(e.path,`path`,`text`),port:e.port,probe_zone:d(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),s=await o(`Creating`,async()=>t.send(J,{body:r,pool_id:e[`pool-id`]}));i(s,{successLabel:`Created`})})},ut={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var dt={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/references`};function ft(e){return e.usage(`$0 user load-balancers pools references list
62
+ Preview pool health using provided monitor details. The returned preview_id can be used in the preview endpoint to retrieve the results.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.`,default:!1}).option(`consecutive-down`,{type:`number`,description:`To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.`}).option(`consecutive-up`,{type:`number`,description:`To be marked healthy the monitored origin must pass this healthcheck N consecutive times.`}).option(`description`,{type:`string`,description:`Object description.`,default:``}).option(`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. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`expected-codes`,{type:`string`,description:`The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).option(`follow-redirects`,{type:`boolean`,description:`Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.`,default:!1}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.`,default:60}).option(`method`,{type:`string`,description:`The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks.`}).option(`path`,{type:`string`,description:`The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.`}).option(`port`,{type:`number`,description:`The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).`}).option(`probe-zone`,{type:`string`,description:`Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.`,default:``}).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(`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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'.`,choices:[`http`,`https`,`tcp`,`udp_icmp`,`icmp_ping`,`smtp`],default:`http`}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const dt={command:`create <pool-id>`,describe:`Preview Pool`,builder:ut,handler:async e=>c({command:`user load-balancers pools preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools preview create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/preview`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(q,{body:n,pool_id:e[`pool-id`]}));a(r,{successLabel:`Created`});return}let n=d({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:f(e.description,`description`,`text`),expected_body:f(e[`expected-body`],`expected-body`,`text`),expected_codes:f(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:f(e.method,`method`,`text`),path:f(e.path,`path`,`text`),port:e.port,probe_zone:f(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:e.type}),i=await s(`Creating`,async()=>t.send(q,{body:n,pool_id:e[`pool-id`]}));a(i,{successLabel:`Created`})})},ft={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var pt={method:`GET`,path:t=>e`/user/load_balancers/pools/${t.pool_id}/references`};function mt(e){return e.usage(`$0 user load-balancers pools references list
63
63
 
64
- Get the list of resources that reference the provided pool.`).option(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pt={command:`list`,describe:`List Pool References`,builder:ft,handler:async e=>s({command:`user load-balancers pools references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools references list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/references`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(dt,{pool_id:e[`pool-id`]}));i(r,{successLabel:`Loaded`})})},mt={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`PUT`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`,body:`json`};function ht(e){return e.usage(`$0 user load-balancers pools update <pool-id>
64
+ Get the list of resources that reference the provided pool.`).option(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ht={command:`list`,describe:`List Pool References`,builder:mt,handler:async e=>c({command:`user load-balancers pools references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools references list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}/references`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(pt,{pool_id:e[`pool-id`]}));a(n,{successLabel:`Loaded`})})},gt={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/user/load_balancers/pools/${t.pool_id}`,body:`json`};function _t(e){return e.usage(`$0 user load-balancers pools update <pool-id>
65
65
 
66
- Modify a configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>d(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>d(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`networks`,{type:`string`,array:!0,description:`List of networks where Load Balancer or Pool is enabled.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>d(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const gt={command:`update <pool-id>`,describe:`Update Pool`,builder:ht,handler:async e=>s({command:`user load-balancers pools update`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers pools update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),networks:e.networks,notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(Y,{body:n,pool_id:e[`pool-id`]}));i(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await f(`name`,`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`)),e.origins===void 0)throw Error(`--origins is required (or pass --body with this field set).`);let r=u({check_regions:e[`check-regions`],description:d(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:d(e.monitor,`monitor`,`text`),monitor_group:d(e[`monitor-group`],`monitor-group`,`text`),name:d(e.name,`name`,`text`),networks:e.networks,notification_email:d(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:l(e.origins,`origins`)}),s=await o(`Updating`,async()=>t.send(Y,{body:r,pool_id:e[`pool-id`]}));i(s,{successLabel:`Updated`})})},_t={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(He).command(Ge).command(et).command(st).command(gt).command(Ze).command(it).command(ut).command(mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var vt={method:`GET`,path:t=>e`/user/load_balancers/preview/${t.preview_id}`};function yt(e){return e.usage(`$0 user load-balancers preview get <preview-id>
66
+ Modify a configured pool.`).positional(`pool-id`,{type:`string`,description:`Pool ID`,demandOption:!0}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means every Cloudflare data center.`}).option(`description`,{type:`string`,description:`A human-readable description of the pool.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).`}).option(`health-sources`,{type:`string`,array:!0,description:`A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array ["regional", "global"]; any other combination is rejected. Null (the default) behaves like ["local", "global"]. ["regional", "global"] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check_regions.`}).option(`latitude`,{type:`number`,description:`The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.`}).option(`load-shedding-default-percent`,{type:`number`,description:`The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.`}).option(`load-shedding-default-policy`,{type:`string`,description:`The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.`,choices:[`random`,`hash`]}).coerce(`load-shedding-default-policy`,e=>f(e,`load-shedding-default-policy`,`text`)).option(`load-shedding-session-percent`,{type:`number`,description:`The percent of existing sessions to shed from the pool, according to the session policy.`}).option(`load-shedding-session-policy`,{type:`string`,description:`Only the hash policy is supported for existing sessions (to avoid exponential decay).`,choices:[`hash`]}).coerce(`load-shedding-session-policy`,e=>f(e,`load-shedding-session-policy`,`text`)).option(`longitude`,{type:`number`,description:`The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.`}).option(`minimum-origins`,{type:`number`,description:`The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.`}).option(`monitor`,{type:`string`,description:`The ID of the Monitor to use for checking the health of origins within this pool.`}).option(`monitor-group`,{type:`string`,description:`The ID of the Monitor Group to use for checking the health of origins within this pool.`}).option(`name`,{type:`string`,description:`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`}).option(`networks`,{type:`string`,array:!0,description:`List of networks where Load Balancer or Pool is enabled.`}).option(`notification-email`,{type:`string`,description:`This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.`}).option(`notification-filter-origin-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-origin-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`notification-filter-pool-disable`,{type:`boolean`,description:`If set true, disable notifications for this type of resource (pool or origin).`}).option(`notification-filter-pool-healthy`,{type:`boolean`,description:`If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).`}).option(`origin-steering-policy`,{type:`string`,description:'The type of origin steering policy to use.\n- `"random"`: Select an origin randomly.\n- `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP address.\n- `"least_outstanding_requests"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select an origin by taking into consideration origin weights, as well as each origin\'s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.',choices:[`random`,`hash`,`least_outstanding_requests`,`least_connections`]}).coerce(`origin-steering-policy`,e=>f(e,`origin-steering-policy`,`text`)).option(`origins`,{type:`string`,description:`The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const vt={command:`update <pool-id>`,describe:`Update Pool`,builder:_t,handler:async e=>c({command:`user load-balancers pools update`,classification:{safeFlags:[`enabled`,`load-shedding-default-policy`,`load-shedding-session-policy`,`notification-filter-origin-disable`,`notification-filter-origin-healthy`,`notification-filter-pool-disable`,`notification-filter-pool-healthy`,`origin-steering-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers pools update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools/${e[`pool-id`]==null?`<pool-id>`:encodeURIComponent(String(e[`pool-id`]))}`,pathParams:{"pool-id":String(e[`pool-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),networks:e.networks,notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(J,{body:n,pool_id:e[`pool-id`]}));a(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await p(`name`,`A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.`)),e.origins===void 0)throw Error(`--origins is required (or pass --body with this field set).`);let n=d({check_regions:e[`check-regions`],description:f(e.description,`description`,`text`),enabled:e.enabled,health_sources:e[`health-sources`],latitude:e.latitude,load_shedding:{default_percent:e[`load-shedding-default-percent`],default_policy:e[`load-shedding-default-policy`],session_percent:e[`load-shedding-session-percent`],session_policy:e[`load-shedding-session-policy`]},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:f(e.monitor,`monitor`,`text`),monitor_group:f(e[`monitor-group`],`monitor-group`,`text`),name:f(e.name,`name`,`text`),networks:e.networks,notification_email:f(e[`notification-email`],`notification-email`,`text`),notification_filter:{origin:{disable:e[`notification-filter-origin-disable`],healthy:e[`notification-filter-origin-healthy`]},pool:{disable:e[`notification-filter-pool-disable`],healthy:e[`notification-filter-pool-healthy`]}},origin_steering:{policy:e[`origin-steering-policy`]},origins:u(e.origins,`origins`)}),i=await s(`Updating`,async()=>t.send(J,{body:n,pool_id:e[`pool-id`]}));a(i,{successLabel:`Updated`})})},yt={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(We).command(qe).command(nt).command(lt).command(vt).command($e).command(ot).command(ft).command(gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var bt={method:`GET`,path:t=>e`/user/load_balancers/preview/${t.preview_id}`};function xt(e){return e.usage(`$0 user load-balancers preview get <preview-id>
67
67
 
68
- Get the result of a previous preview operation using the provided preview_id.`).positional(`preview-id`,{type:`string`,description:`Preview ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bt={command:`get <preview-id>`,describe:`Preview Result`,builder:yt,handler:async e=>s({command:`user load-balancers preview get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user load-balancers preview get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/preview/${e[`preview-id`]==null?`<preview-id>`:encodeURIComponent(String(e[`preview-id`]))}`,pathParams:{"preview-id":String(e[`preview-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(vt,{preview_id:e[`preview-id`]}));i(r,{successLabel:`Loaded`})})},xt={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var St={method:`GET`,path:()=>`/user/load_balancers/regions`,query:[`subdivision_code`,`country_code`]};function Ct(e){return e.usage(`$0 user load-balancers regions list
68
+ Get the result of a previous preview operation using the provided preview_id.`).positional(`preview-id`,{type:`string`,description:`Preview ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <preview-id>`,describe:`Preview Result`,builder:xt,handler:async e=>c({command:`user load-balancers preview get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user load-balancers preview get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/preview/${e[`preview-id`]==null?`<preview-id>`:encodeURIComponent(String(e[`preview-id`]))}`,pathParams:{"preview-id":String(e[`preview-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(bt,{preview_id:e[`preview-id`]}));a(n,{successLabel:`Loaded`})})},Ct={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wt={method:`GET`,path:()=>`/user/load_balancers/regions`,query:[`subdivision_code`,`country_code`]};function Tt(e){return e.usage(`$0 user load-balancers regions list
69
69
 
70
- List all region mappings in the user context.`).option(`subdivision-code`,{type:`string`,description:`Two-letter subdivision code followed in ISO 3166-2.`}).option(`country-code`,{type:`string`,description:`Two-letter alpha-2 country code as defined in ISO 3166-1.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wt={command:`list`,describe:`List Regions`,builder:Ct,handler:async e=>s({command:`user load-balancers regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={subdivision_code:e[`subdivision-code`],country_code:e[`country-code`]};if(e.dryRun){a({command:`cf user load-balancers regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/regions`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(St,t));i(s,{successLabel:`Loaded`})})},Tt={command:`regions`,describe:`Operations for load-balancers.regions`,builder:e=>e.command(wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Et={command:`load-balancers`,describe:`Operations for load-balancers`,builder:e=>e.command(Be).command(_t).command(xt).command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Dt={method:`GET`,path:()=>`/user/load_balancing_analytics/events`,query:[`until`,`pool_name`,`origin_healthy`,`pool_id`,`since`,`origin_name`,`pool_healthy`]};function Ot(e){return e.usage(`$0 user load-balancing-analytics events list
70
+ List all region mappings in the user context.`).option(`subdivision-code`,{type:`string`,description:`Two-letter subdivision code followed in ISO 3166-2.`}).option(`country-code`,{type:`string`,description:`Two-letter alpha-2 country code as defined in ISO 3166-1.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`list`,describe:`List Regions`,builder:Tt,handler:async e=>c({command:`user load-balancers regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={subdivision_code:e[`subdivision-code`],country_code:e[`country-code`]};if(e.dryRun){o({command:`cf user load-balancers regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/regions`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(wt,t));a(i,{successLabel:`Loaded`})})},Dt={command:`regions`,describe:`Operations for load-balancers.regions`,builder:e=>e.command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`load-balancers`,describe:`Operations for load-balancers`,builder:e=>e.command(He).command(yt).command(Ct).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var kt={method:`GET`,path:()=>`/user/load_balancing_analytics/events`,query:[`until`,`pool_name`,`origin_healthy`,`pool_id`,`since`,`origin_name`,`pool_healthy`]};function At(e){return e.usage(`$0 user load-balancing-analytics events list
71
71
 
72
- List origin health changes.`).option(`until`,{type:`string`,description:`End date and time of requesting data period in the ISO8601 format.`}).option(`pool-name`,{type:`string`,description:`The name for the pool to filter.`}).option(`origin-healthy`,{type:`boolean`,description:`If true, filter events where the origin status is healthy. If false, filter events where the origin status is unhealthy.`}).option(`pool-id`,{type:`string`,description:`Pool ID`}).option(`since`,{type:`string`,description:`Start date and time of requesting data period in the ISO8601 format.`}).option(`origin-name`,{type:`string`,description:`The name for the origin to filter.`}).option(`pool-healthy`,{type:`boolean`,description:`If true, filter events where the pool status is healthy. If false, filter events where the pool status is unhealthy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kt={command:`list`,describe:`List Healthcheck Events`,builder:Ot,handler:async e=>s({command:`user load-balancing-analytics events list`,classification:{safeFlags:[`origin-healthy`,`pool-healthy`,`dry-run`]}},e,async()=>{let t={until:e.until,pool_name:e[`pool-name`],origin_healthy:e[`origin-healthy`],pool_id:e[`pool-id`],since:e.since,origin_name:e[`origin-name`],pool_healthy:e[`pool-healthy`]};if(e.dryRun){a({command:`cf user load-balancing-analytics events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancing_analytics/events`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(Dt,t));i(s,{successLabel:`Loaded`})})},At={command:`events`,describe:`Load Balancing Analytics operations`,builder:e=>e.command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jt={command:`load-balancing-analytics`,describe:`Operations for load-balancing-analytics`,builder:e=>e.command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Mt={method:`DELETE`,path:t=>e`/memberships/${t.membership_id}`};function Nt(e){return e.usage(`$0 user memberships delete <membership-id>
72
+ List origin health changes.`).option(`until`,{type:`string`,description:`End date and time of requesting data period in the ISO8601 format.`}).option(`pool-name`,{type:`string`,description:`The name for the pool to filter.`}).option(`origin-healthy`,{type:`boolean`,description:`If true, filter events where the origin status is healthy. If false, filter events where the origin status is unhealthy.`}).option(`pool-id`,{type:`string`,description:`Pool ID`}).option(`since`,{type:`string`,description:`Start date and time of requesting data period in the ISO8601 format.`}).option(`origin-name`,{type:`string`,description:`The name for the origin to filter.`}).option(`pool-healthy`,{type:`boolean`,description:`If true, filter events where the pool status is healthy. If false, filter events where the pool status is unhealthy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jt={command:`list`,describe:`List Healthcheck Events`,builder:At,handler:async e=>c({command:`user load-balancing-analytics events list`,classification:{safeFlags:[`origin-healthy`,`pool-healthy`,`dry-run`]}},e,async()=>{let t={until:e.until,pool_name:e[`pool-name`],origin_healthy:e[`origin-healthy`],pool_id:e[`pool-id`],since:e.since,origin_name:e[`origin-name`],pool_healthy:e[`pool-healthy`]};if(e.dryRun){o({command:`cf user load-balancing-analytics events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancing_analytics/events`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(kt,t));a(i,{successLabel:`Loaded`})})},Mt={command:`events`,describe:`Load Balancing Analytics operations`,builder:e=>e.command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Nt={command:`load-balancing-analytics`,describe:`Operations for load-balancing-analytics`,builder:e=>e.command(Mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pt={method:`DELETE`,path:t=>e`/memberships/${t.membership_id}`};function Ft(e){return e.usage(`$0 user memberships delete <membership-id>
73
73
 
74
- Remove the associated member from an account.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Pt={command:`delete <membership-id>`,describe:`Delete Membership`,builder:Nt,handler:async e=>s({command:`user memberships delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user memberships delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
75
- `);return}let r=await o(`Deleting`,async()=>t.send(Mt,{membership_id:e[`membership-id`]}));i(r,{successLabel:`Deleted`})})};function Ft(e){return e.usage(`$0 user memberships list
74
+ Remove the associated member from an account.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const It={command:`delete <membership-id>`,describe:`Delete Membership`,builder:Ft,handler:async e=>c({command:`user memberships delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user memberships delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
75
+ `);return}let n=await s(`Deleting`,async()=>t.send(Pt,{membership_id:e[`membership-id`]}));a(n,{successLabel:`Deleted`})})};function Lt(e){return e.usage(`$0 user memberships list
76
76
 
77
- List memberships of accounts the user can access.`).option(`account-name`,{type:`string`,description:`Account name`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of memberships per page.`}).option(`order`,{type:`string`,description:`Field to order memberships by.`,choices:[`id`,`account.name`,`status`]}).option(`direction`,{type:`string`,description:`Direction to order memberships.`,choices:[`asc`,`desc`]}).option(`name`,{type:`string`,description:`Account name`}).option(`status`,{type:`string`,description:`Status of this membership.`,choices:[`accepted`,`pending`,`rejected`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`list`,describe:`List Memberships`,builder:Ft,handler:async e=>s({command:`user memberships list`,classification:{safeFlags:[`order`,`direction`,`status`,`dry-run`]}},e,async()=>{let t={"account.name":e[`account-name`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,name:e.name,status:e.status};if(e.dryRun){a({command:`cf user memberships list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships`,pathParams:{},query:t,bodyKind:`none`});return}let s=await n(e),c=await o(`Loading`,async()=>s.send(r,t));i(c,{successLabel:`Loaded`})})};var Lt={method:`PUT`,path:t=>e`/memberships/${t.membership_id}`,body:`json`};function Rt(e){return e.usage(`$0 user memberships update <membership-id>
77
+ List memberships of accounts the user can access.`).option(`account-name`,{type:`string`,description:`Account name`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of memberships per page.`}).option(`order`,{type:`string`,description:`Field to order memberships by.`,choices:[`id`,`account.name`,`status`]}).option(`direction`,{type:`string`,description:`Direction to order memberships.`,choices:[`asc`,`desc`]}).option(`name`,{type:`string`,description:`Account name`}).option(`status`,{type:`string`,description:`Status of this membership.`,choices:[`accepted`,`pending`,`rejected`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`list`,describe:`List Memberships`,builder:Lt,handler:async e=>c({command:`user memberships list`,classification:{safeFlags:[`order`,`direction`,`status`,`dry-run`]}},e,async()=>{let t={"account.name":e[`account-name`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,name:e.name,status:e.status};if(e.dryRun){o({command:`cf user memberships list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),c=await s(`Loading`,async()=>n.send(i,t));a(c,{successLabel:`Loaded`})})};var Y={method:`PUT`,path:t=>e`/memberships/${t.membership_id}`,body:`json`};function zt(e){return e.usage(`$0 user memberships update <membership-id>
78
78
 
79
- Accept or reject this account invitation.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).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 zt={command:`update <membership-id>`,describe:`Update Membership`,builder:Rt,handler:async e=>s({command:`user memberships update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user memberships update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(Lt,{body:n,membership_id:e[`membership-id`]}));i(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var Bt={method:`GET`,path:t=>e`/user/memberships/${t.membership_id}`};function Vt(e){return e.usage(`$0 user memberships userMembershipsGet <membership-id>
79
+ Accept or reject this account invitation.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`status`,{type:`string`,description:`Whether to accept or reject this account invitation.`,choices:[`accepted`,`rejected`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Bt={command:`update <membership-id>`,describe:`Update Membership`,builder:zt,handler:async e=>c({command:`user memberships update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user memberships update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(Y,{body:n,membership_id:e[`membership-id`]}));a(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await m(`status`,`Whether to accept or reject this account invitation.`,[`accepted`,`rejected`]));let n=d({status:e.status}),i=await s(`Updating`,async()=>t.send(Y,{body:n,membership_id:e[`membership-id`]}));a(i,{successLabel:`Updated`})})};var Vt={method:`GET`,path:t=>e`/user/memberships/${t.membership_id}`};function Ht(e){return e.usage(`$0 user memberships user-memberships-get <membership-id>
80
80
 
81
- Get a specific membership for the currently authenticated user.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ht={command:`userMembershipsGet <membership-id>`,describe:`Get User Membership`,builder:Vt,handler:async e=>s({command:`user memberships userMembershipsGet`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user memberships userMembershipsGet`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Bt,{membership_id:e[`membership-id`]}));i(r,{successLabel:`Loaded`})})};var Ut={method:`GET`,path:t=>e`/memberships/${t.membership_id}`};function Wt(e){return e.usage(`$0 user memberships userSAccountMembershipsMembershipDetails <membership-id>
81
+ Get a specific membership for the currently authenticated user.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ut={command:`user-memberships-get <membership-id>`,describe:`Get User Membership`,builder:Ht,handler:async e=>c({command:`user memberships user-memberships-get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user memberships user-memberships-get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Vt,{membership_id:e[`membership-id`]}));a(n,{successLabel:`Loaded`})})};var Wt={method:`GET`,path:t=>e`/memberships/${t.membership_id}`};function Gt(e){return e.usage(`$0 user memberships user-s-account-memberships-membership-details <membership-id>
82
82
 
83
- Get a specific membership.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gt={command:`userSAccountMembershipsMembershipDetails <membership-id>`,describe:`Membership Details`,builder:Wt,handler:async e=>s({command:`user memberships userSAccountMembershipsMembershipDetails`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user memberships userSAccountMembershipsMembershipDetails`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Ut,{membership_id:e[`membership-id`]}));i(r,{successLabel:`Loaded`})})},Kt={command:`memberships`,describe:`Operations for memberships`,builder:e=>e.command(Pt).command(It).command(zt).command(Ht).command(Gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qt={method:`DELETE`,path:t=>e`/user/subscriptions/${t.identifier}`};function Jt(e){return e.usage(`$0 user subscriptions delete <identifier>
83
+ Get a specific membership.`).positional(`membership-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kt={command:`user-s-account-memberships-membership-details <membership-id>`,describe:`Membership Details`,builder:Gt,handler:async e=>c({command:`user memberships user-s-account-memberships-membership-details`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user memberships user-s-account-memberships-membership-details`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships/${e[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(e[`membership-id`]))}`,pathParams:{"membership-id":String(e[`membership-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Wt,{membership_id:e[`membership-id`]}));a(n,{successLabel:`Loaded`})})},qt={command:`memberships`,describe:`Operations for memberships`,builder:e=>e.command(It).command(Rt).command(Bt).command(Ut).command(Kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Jt={method:`DELETE`,path:t=>e`/user/subscriptions/${t.identifier}`};function Yt(e){return e.usage(`$0 user subscriptions delete <identifier>
84
84
 
85
- Deletes a user's subscription.`).positional(`identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Yt={command:`delete <identifier>`,describe:`Delete User Subscription`,builder:Jt,handler:async e=>s({command:`user subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/subscriptions/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force})){process.stderr.write(`Aborted.
86
- `);return}let r=await o(`Deleting`,async()=>t.send(qt,{identifier:e.identifier}));i(r,{successLabel:`Deleted`})})};var Xt={method:`GET`,path:()=>`/user/subscriptions`};function Zt(e){return e.usage(`$0 user subscriptions get
85
+ Deletes a user's subscription.`).positional(`identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Xt={command:`delete <identifier>`,describe:`Delete User Subscription`,builder:Yt,handler:async e=>c({command:`user subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/subscriptions/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force})){process.stderr.write(`Aborted.
86
+ `);return}let n=await s(`Deleting`,async()=>t.send(Jt,{identifier:e.identifier}));a(n,{successLabel:`Deleted`})})};var Zt={method:`GET`,path:()=>`/user/subscriptions`};function Qt(e){return e.usage(`$0 user subscriptions get
87
87
 
88
- Lists all of a user's subscriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qt={command:`get`,describe:`Get User Subscriptions`,builder:Zt,handler:async e=>s({command:`user subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/subscriptions`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(Xt));i(r,{successLabel:`Loaded`})})};var X={method:`PUT`,path:t=>e`/user/subscriptions/${t.identifier}`,body:`json`};function $t(e){return e.usage(`$0 user subscriptions update <identifier>
88
+ Lists all of a user's subscriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $t={command:`get`,describe:`Get User Subscriptions`,builder:Qt,handler:async e=>c({command:`user subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/subscriptions`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Zt));a(n,{successLabel:`Loaded`})})};var X={method:`PUT`,path:t=>e`/user/subscriptions/${t.identifier}`,body:`json`};function en(e){return e.usage(`$0 user subscriptions update <identifier>
89
89
 
90
- Updates a user's subscriptions.`).positional(`identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).coerce(`frequency`,e=>d(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 en={command:`update <identifier>`,describe:`Update User Subscription`,builder:$t,handler:async e=>s({command:`user subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/subscriptions/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(X,{body:n,identifier:e.identifier}));i(r,{successLabel:`Updated`});return}let r=u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),s=await o(`Updating`,async()=>t.send(X,{body:r,identifier:e.identifier}));i(s,{successLabel:`Updated`})})},tn={command:`subscriptions`,describe:`View and manage zone-level plan subscriptions owned by your user`,builder:e=>e.command(Yt).command(Qt).command(en).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var nn={method:`GET`,path:()=>`/user/tenants`};function rn(e){return e.usage(`$0 user tenant list
90
+ Updates a user's subscriptions.`).positional(`identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).coerce(`frequency`,e=>f(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 tn={command:`update <identifier>`,describe:`Update User Subscription`,builder:en,handler:async e=>c({command:`user subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/subscriptions/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?d({app:{install_id:f(e[`app-install-id`],`app-install-id`,`text`)},component_values:u(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:f(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:f(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:f(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:f(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send(X,{body:n,identifier:e.identifier}));a(r,{successLabel:`Updated`});return}let n=d({app:{install_id:f(e[`app-install-id`],`app-install-id`,`text`)},component_values:u(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:f(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:f(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:f(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:f(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),i=await s(`Updating`,async()=>t.send(X,{body:n,identifier:e.identifier}));a(i,{successLabel:`Updated`})})},nn={command:`subscriptions`,describe:`View and manage zone-level plan subscriptions owned by your user`,builder:e=>e.command(Xt).command($t).command(tn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var rn={method:`GET`,path:()=>`/user/tenants`};function an(e){return e.usage(`$0 user tenant list
91
91
 
92
- Retrieves list of tenants the authenticated user / method has access to.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const an={command:`list`,describe:`List user tenants`,builder:rn,handler:async e=>s({command:`user tenant list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user tenant list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tenants`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(nn));i(r,{successLabel:`Loaded`})})},on={command:`tenant`,describe:`Operations for tenant`,builder:e=>e.command(an).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:()=>`/user/tokens`,body:`json`};function sn(e){return e.usage(`$0 user tokens create
92
+ Retrieves list of tenants the authenticated user / method has access to.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const on={command:`list`,describe:`List user tenants`,builder:an,handler:async e=>c({command:`user tenant list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user tenant list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tenants`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(rn));a(n,{successLabel:`Loaded`})})},sn={command:`tenant`,describe:`Operations for tenant`,builder:e=>e.command(on).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:()=>`/user/tokens`,body:`json`};function cn(e){return e.usage(`$0 user tokens create
93
93
 
94
- Create a new access token.`).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const cn={command:`create`,describe:`Create Token`,builder:sn,handler:async e=>s({command:`user tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:d(e[`expires-on`],`expires-on`,`text`),name:d(e.name,`name`,`text`),not_before:d(e[`not-before`],`not-before`,`text`),policies:l(e.policies,`policies`)}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Creating`,async()=>t.send(Z,{body:n}));i(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await f(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let r=u({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:d(e[`expires-on`],`expires-on`,`text`),name:d(e.name,`name`,`text`),not_before:d(e[`not-before`],`not-before`,`text`),policies:l(e.policies,`policies`)}),s=await o(`Creating`,async()=>t.send(Z,{body:r}));i(s,{successLabel:`Created`})})};var ln={method:`DELETE`,path:t=>e`/user/tokens/${t.token_id}`};function un(e){return e.usage(`$0 user tokens delete <token-id>
94
+ Create a new access token.`).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ln={command:`create`,describe:`Create Token`,builder:cn,handler:async e=>c({command:`user tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:f(e[`expires-on`],`expires-on`,`text`),name:f(e.name,`name`,`text`),not_before:f(e[`not-before`],`not-before`,`text`),policies:u(e.policies,`policies`)}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(Z,{body:n}));a(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await p(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let n=d({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:f(e[`expires-on`],`expires-on`,`text`),name:f(e.name,`name`,`text`),not_before:f(e[`not-before`],`not-before`,`text`),policies:u(e.policies,`policies`)}),i=await s(`Creating`,async()=>t.send(Z,{body:n}));a(i,{successLabel:`Created`})})};var un={method:`DELETE`,path:t=>e`/user/tokens/${t.token_id}`};function dn(e){return e.usage(`$0 user tokens delete <token-id>
95
95
 
96
- Destroy a token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const dn={command:`delete <token-id>`,describe:`Delete Token`,builder:un,handler:async e=>s({command:`user tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
97
- `);return}let r=await o(`Deleting`,async()=>t.send(ln,{token_id:e[`token-id`]}));i(r,{successLabel:`Deleted`})})};var fn={method:`GET`,path:t=>e`/user/tokens/${t.token_id}`};function pn(e){return e.usage(`$0 user tokens get <token-id>
96
+ Destroy a token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const fn={command:`delete <token-id>`,describe:`Delete Token`,builder:dn,handler:async e=>c({command:`user tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
97
+ `);return}let n=await s(`Deleting`,async()=>t.send(un,{token_id:e[`token-id`]}));a(n,{successLabel:`Deleted`})})};var pn={method:`GET`,path:t=>e`/user/tokens/${t.token_id}`};function mn(e){return e.usage(`$0 user tokens get <token-id>
98
98
 
99
- Get information about a specific token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mn={command:`get <token-id>`,describe:`Token Details`,builder:pn,handler:async e=>s({command:`user tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(fn,{token_id:e[`token-id`]}));i(r,{successLabel:`Loaded`})})};var hn={method:`GET`,path:()=>`/user/tokens`,query:[`page`,`per_page`,`direction`,`include_expired`]};function gn(e){return e.usage(`$0 user tokens list
99
+ Get information about a specific token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`get <token-id>`,describe:`Token Details`,builder:mn,handler:async e=>c({command:`user tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(pn,{token_id:e[`token-id`]}));a(n,{successLabel:`Loaded`})})};var gn={method:`GET`,path:()=>`/user/tokens`,query:[`page`,`per_page`,`direction`,`include_expired`]};function _n(e){return e.usage(`$0 user tokens list
100
100
 
101
- List all access tokens you created. Results include active, disabled, and recently-expired tokens when include_expired is set to true.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`include-expired`,{type:`boolean`,description:`When true, includes recently-expired tokens in the response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _n={command:`list`,describe:`List Tokens`,builder:gn,handler:async e=>s({command:`user tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){a({command:`cf user tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(hn,t));i(s,{successLabel:`Loaded`})})};var vn={method:`GET`,path:()=>`/user/tokens/permission_groups`,query:[`name`,`scope`]};function yn(e){return e.usage(`$0 user tokens permission-groups list
101
+ List all access tokens you created. Results include active, disabled, and recently-expired tokens when include_expired is set to true.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`include-expired`,{type:`boolean`,description:`When true, includes recently-expired tokens in the response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vn={command:`list`,describe:`List Tokens`,builder:_n,handler:async e=>c({command:`user tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){o({command:`cf user tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(gn,t));a(i,{successLabel:`Loaded`})})};var yn={method:`GET`,path:()=>`/user/tokens/permission_groups`,query:[`name`,`scope`]};function bn(e){return e.usage(`$0 user tokens permission-groups list
102
102
 
103
103
  Find all available permission groups for API Tokens.`).option(`name`,{type:`string`,description:`Filter by the name of the permission group.
104
104
  The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
105
- The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bn={command:`list`,describe:`List Token Permission Groups`,builder:yn,handler:async e=>s({command:`user tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={name:e.name,scope:e.scope};if(e.dryRun){a({command:`cf user tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/permission_groups`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(vn,t));i(s,{successLabel:`Loaded`})})},Q={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var xn={method:`PUT`,path:t=>e`/user/tokens/${t.token_id}/value`};function Sn(e){return e.usage(`$0 user tokens roll <token-id>
105
+ The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`list`,describe:`List Token Permission Groups`,builder:bn,handler:async e=>c({command:`user tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={name:e.name,scope:e.scope};if(e.dryRun){o({command:`cf user tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/permission_groups`,pathParams:{},query:t,bodyKind:`none`});return}let n=await r(e),i=await s(`Loading`,async()=>n.send(yn,t));a(i,{successLabel:`Loaded`})})},xn={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Sn={method:`PUT`,path:t=>e`/user/tokens/${t.token_id}/value`};function Cn(e){return e.usage(`$0 user tokens roll <token-id>
106
106
 
107
- Roll the token secret.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Cn={command:`roll <token-id>`,describe:`Roll Token`,builder:Sn,handler:async e=>s({command:`user tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf user tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await p({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
108
- `);return}let r=await o(`Deleting`,async()=>t.send(xn,{token_id:e[`token-id`]}));i(r,{successLabel:`Deleted`})})};var $={method:`PUT`,path:t=>e`/user/tokens/${t.token_id}`,body:`json`};function wn(e){return e.usage(`$0 user tokens update <token-id>
107
+ Roll the token secret.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const wn={command:`roll <token-id>`,describe:`Roll Token`,builder:Cn,handler:async e=>c({command:`user tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf user tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let t=await r(e);if(!await h({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
108
+ `);return}let n=await s(`Deleting`,async()=>t.send(Sn,{token_id:e[`token-id`]}));a(n,{successLabel:`Deleted`})})};var $={method:`PUT`,path:t=>e`/user/tokens/${t.token_id}`,body:`json`};function Tn(e){return e.usage(`$0 user tokens update <token-id>
109
109
 
110
- Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).coerce(`status`,e=>d(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Tn={command:`update <token-id>`,describe:`Update Token`,builder:wn,handler:async e=>s({command:`user tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:d(e[`expires-on`],`expires-on`,`text`),name:d(e.name,`name`,`text`),not_before:d(e[`not-before`],`not-before`,`text`),policies:l(e.policies,`policies`),status:e.status}):c(e.body)});return}let t=await n(e);if(e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send($,{body:n,token_id:e[`token-id`]}));i(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await f(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let r=u({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:d(e[`expires-on`],`expires-on`,`text`),name:d(e.name,`name`,`text`),not_before:d(e[`not-before`],`not-before`,`text`),policies:l(e.policies,`policies`),status:e.status}),s=await o(`Updating`,async()=>t.send($,{body:r,token_id:e[`token-id`]}));i(s,{successLabel:`Updated`})})};var En={method:`GET`,path:()=>`/user/tokens/verify`};function Dn(e){return e.usage(`$0 user tokens verify
110
+ Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const En={command:`update <token-id>`,describe:`Update Token`,builder:Tn,handler:async e=>c({command:`user tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:f(e[`expires-on`],`expires-on`,`text`),name:f(e.name,`name`,`text`),not_before:f(e[`not-before`],`not-before`,`text`),policies:u(e.policies,`policies`),status:e.status}):l(e.body)});return}let t=await r(e);if(e.body){let n=l(e.body),r=await s(`Updating`,async()=>t.send($,{body:n,token_id:e[`token-id`]}));a(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await p(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let n=d({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:f(e[`expires-on`],`expires-on`,`text`),name:f(e.name,`name`,`text`),not_before:f(e[`not-before`],`not-before`,`text`),policies:u(e.policies,`policies`),status:e.status}),i=await s(`Updating`,async()=>t.send($,{body:n,token_id:e[`token-id`]}));a(i,{successLabel:`Updated`})})};var Dn={method:`GET`,path:()=>`/user/tokens/verify`};function On(e){return e.usage(`$0 user tokens verify
111
111
 
112
- Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const On={command:`verify`,describe:`Verify Token`,builder:Dn,handler:async e=>s({command:`user tokens verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf user tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/verify`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=await o(`Loading`,async()=>t.send(En));i(r,{successLabel:`Loaded`})})},kn={command:`tokens`,describe:`Create and manage personal API tokens scoped to your user for programmatic API access`,builder:e=>e.command(cn).command(dn).command(mn).command(_n).command(Cn).command(Tn).command(On).command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},An={command:`user`,describe:`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,builder:e=>e.command(pe).command(P).command(ne).command(de).command(M).command(_e).command(Et).command(jt).command(Kt).command(tn).command(on).command(kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{An as default};
112
+ Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kn={command:`verify`,describe:`Verify Token`,builder:On,handler:async e=>c({command:`user tokens verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf user tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/verify`,pathParams:{},bodyKind:`none`});return}let t=await r(e),n=await s(`Loading`,async()=>t.send(Dn));a(n,{successLabel:`Loaded`})})},An={command:`tokens`,describe:`Create and manage personal API tokens scoped to your user for programmatic API access`,builder:e=>e.command(ln).command(fn).command(hn).command(vn).command(wn).command(En).command(kn).command(xn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jn={command:`user`,describe:`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,builder:e=>e.command(pe).command(F).command(ne).command(de).command(N).command(ye).command(Ot).command(Nt).command(qt).command(nn).command(sn).command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{jn as default};