cf 1.0.0-beta.10 → 1.0.0-beta.12

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 (445) hide show
  1. package/bin/cf +1 -1
  2. package/dist/abuse-reports-Cy9RcWPu.mjs +24 -0
  3. package/dist/{access-D4DN4XZF.mjs → access-DwJm1qet.mjs} +1 -1
  4. package/dist/account-tags-d0RkEw6s.mjs +15 -0
  5. package/dist/accounts-BSd4b-1j.mjs +138 -0
  6. package/dist/{acm-OQqE8FMc.mjs → acm-BfI0p2sX.mjs} +8 -8
  7. package/dist/addressing-lfeJf7YB.mjs +93 -0
  8. package/dist/agent-context-DFEgYjEQ.mjs +2 -0
  9. package/dist/agent-memory-CP1qpn-y.mjs +34 -0
  10. package/dist/ai-audit-B_tSl78A.mjs +6 -0
  11. package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
  12. package/dist/ai-jFzFBANM.mjs +29 -0
  13. package/dist/ai-search-PTlpY1T9.mjs +79 -0
  14. package/dist/ai-security-CKGE547U.mjs +10 -0
  15. package/dist/alerting-CuxoqG3S.mjs +56 -0
  16. package/dist/analytics-NPND7aHB.mjs +20 -0
  17. package/dist/analytics_engine-BoapM9wd.mjs +4 -0
  18. package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
  19. package/dist/{api-security-CSuYMpMO.mjs → api-security-Nk_bg-Kg.mjs} +61 -61
  20. package/dist/{argo-DMfNmOV4.mjs → argo-DYfLQhd2.mjs} +5 -5
  21. package/dist/artifacts-BS6cEqCB.mjs +43 -0
  22. package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
  23. package/dist/auth-AobvBmz4.mjs +2 -0
  24. package/dist/auth-CBtzZ3Sw.mjs +2 -0
  25. package/dist/auth-CKotxfap.mjs +2 -0
  26. package/dist/auth-token-CtguMdmF.mjs +8 -0
  27. package/dist/autoconfig-PfnbLuEO.mjs +532 -0
  28. package/dist/{banner-ClclgnBn.mjs → banner-D03JEqRs.mjs} +1 -1
  29. package/dist/basin-catalog-Ddi-t3q9.mjs +46 -0
  30. package/dist/billing-CDMc4tvX.mjs +23 -0
  31. package/dist/bot-management-UrCM3P8K.mjs +9 -0
  32. package/dist/botnet-feed-CVwRm42k.mjs +11 -0
  33. package/dist/brand-protection-DfNf5REj.mjs +27 -0
  34. package/dist/browser-run-DVaiBLYX.mjs +46 -0
  35. package/dist/build-BKPVP5ip.mjs +2 -0
  36. package/dist/build-C4giET85.mjs +2 -0
  37. package/dist/builds-BG5DHqU3.mjs +71 -0
  38. package/dist/cache-C05hHXUp.mjs +45 -0
  39. package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-DyCFmZwR.mjs} +3 -3
  40. package/dist/cf-B9aqZZKD.mjs +18 -0
  41. package/dist/chunk-AUSY7DKT-BJX6Fdc4.mjs +312 -0
  42. package/dist/chunk-FT2NMTJB-DQ7s3x7Q.mjs +361 -0
  43. package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +2 -0
  44. package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
  45. package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
  46. package/dist/{cli-BeXSqJAj.mjs → cli-D9qlPB-6.mjs} +1 -1
  47. package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
  48. package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-B-m8rfM9.mjs} +7 -7
  49. package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-M4oIUqID.mjs} +15 -15
  50. package/dist/cloud-connector-B63Dwn6n.mjs +6 -0
  51. package/dist/cloudflared-B48cfu95.mjs +2 -0
  52. package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
  53. package/dist/{command-xU78ACNA.mjs → command-BQpXcGKV.mjs} +1 -1
  54. package/dist/{command-DUafPVUr.mjs → command-BWlpCtHe.mjs} +1 -1
  55. package/dist/{command-BOLlvEan.mjs → command-BlGILcTA.mjs} +1 -1
  56. package/dist/{command-K1-DZFJS.mjs → command-CKQlxypn.mjs} +1 -1
  57. package/dist/{command-C__qB2mo.mjs → command-CRl00uA2.mjs} +1 -1
  58. package/dist/{command-DZookrfw.mjs → command-CUkXxZsc.mjs} +1 -1
  59. package/dist/command-CXxh5Hce.mjs +2 -0
  60. package/dist/{command-BCag-xjk.mjs → command-CzvlHvov.mjs} +1 -1
  61. package/dist/{command-DxSJy_ym.mjs → command-DBaNgfA4.mjs} +1 -1
  62. package/dist/command-DEQSv-S1.mjs +2 -0
  63. package/dist/{command-BrHTpaji.mjs → command-DyE8v4sd.mjs} +1 -1
  64. package/dist/command-Rv2MR-eh.mjs +2 -0
  65. package/dist/{command-B6DqnUwt.mjs → command-SS1z_t68.mjs} +1 -1
  66. package/dist/{command-6YTtWltE.mjs → command-VuxpEvmH.mjs} +1 -1
  67. package/dist/{command-DzHL5LKI.mjs → command-ZBQ1WITj.mjs} +1 -1
  68. package/dist/{completions-Cm9brGAI.mjs → completions-lf50FBGm.mjs} +2 -2
  69. package/dist/connector-interrupts-DHN1KtUE.mjs +6 -0
  70. package/dist/connector-telemetry-events-CHg7FmXh.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-CSifYi9r.mjs +6 -0
  72. package/dist/connectors-0UwPUav-.mjs +15 -0
  73. package/dist/containers-DRzgE46U.mjs +375 -0
  74. package/dist/containers-DuIsM7lM.mjs +78 -0
  75. package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-COyTz0Wb.mjs} +8 -8
  76. package/dist/{context-CEOHpZgd.mjs → context-Bwkz4Lm_.mjs} +2 -2
  77. package/dist/{cps-BPQqyL2E.mjs → cps-B7_BJaAU.mjs} +3 -3
  78. package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-jez2EYXC.mjs} +3 -3
  79. package/dist/ct-alerting-CACDrY0E.mjs +5 -0
  80. package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-BBd92YlF.mjs} +8 -8
  81. package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-DTwBiNMX.mjs} +6 -6
  82. package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-DIWlqvN9.mjs} +15 -15
  83. package/dist/custom-nameservers-DISy8v8u.mjs +9 -0
  84. package/dist/custom-pages-BHXO_NFv.mjs +21 -0
  85. package/dist/d1-MvAQMvvo.mjs +89 -0
  86. package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
  87. package/dist/delegate.mjs +1 -1
  88. package/dist/{deploy-C4p6SzLH.mjs → deploy-BS47vZvJ.mjs} +1 -1
  89. package/dist/deploy-context-Cfushp8j.mjs +56 -0
  90. package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
  91. package/dist/{dev-BML-bpNU.mjs → dev-D8FGPKRt.mjs} +2 -2
  92. package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
  93. package/dist/{dialog-BlUXJKbA.mjs → dialog-CL1Zy4pn.mjs} +1 -1
  94. package/dist/discover-DIDEGKo3.mjs +2 -0
  95. package/dist/discover-P20XeGBF.mjs +2 -0
  96. package/dist/{dist-DW47TUGh.mjs → dist-8rP3V95o.mjs} +5 -5
  97. package/dist/dist-CYFkGHYv.mjs +487 -0
  98. package/dist/dls-8D00tqvC.mjs +17 -0
  99. package/dist/{dns-C9sUPsNt.mjs → dns-C-A5pwf3.mjs} +68 -68
  100. package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-DIiF4pro.mjs} +9 -9
  101. package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
  102. package/dist/dotenv-DpXaxfho.mjs +4 -0
  103. package/dist/dry-run-DmsbOMF1.mjs +2 -0
  104. package/dist/durable-objects-CnIqbj84.mjs +6 -0
  105. package/dist/{email-auth-BgvoEHJk.mjs → email-auth-v97Md32E.mjs} +3 -3
  106. package/dist/{email-routing-Bggn219w.mjs → email-routing-I29RG4hb.mjs} +24 -24
  107. package/dist/{email-security-_t7rzrzd.mjs → email-security-BCarmbky.mjs} +86 -86
  108. package/dist/email-sending-CsHk2HAJ.mjs +47 -0
  109. package/dist/error-sanitization-BWnGnB73.mjs +2 -0
  110. package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
  111. package/dist/errors-_sob7Ihu.mjs +3 -0
  112. package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
  113. package/dist/{firewall-CZEN8iA_.mjs → firewall-DpgFqJr3.mjs} +19 -19
  114. package/dist/flagship-BVaXXlsX.mjs +28 -0
  115. package/dist/{fraud-9_9hobAh.mjs → fraud-B5GQdEF2.mjs} +3 -3
  116. package/dist/{generate-CLqGOlOx.mjs → generate-CeeWW3eX.mjs} +1 -1
  117. package/dist/generate-D80-1GnZ.mjs +2 -0
  118. package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
  119. package/dist/gt-3bcLGJ7V.mjs +3 -0
  120. package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-BwYMnKSF.mjs} +12 -12
  121. package/dist/{hostnames-DdOube3R.mjs → hostnames-DhrGRFeI.mjs} +6 -6
  122. package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-DAA8Fazg.mjs} +10 -10
  123. package/dist/iam-sRKDU2Z3.mjs +52 -0
  124. package/dist/images-DXdekLVs.mjs +71 -0
  125. package/dist/index.mjs +1 -1
  126. package/dist/init-j47MT4Qe.mjs +39 -0
  127. package/dist/intel-CnVeSjIS.mjs +76 -0
  128. package/dist/interactive-Dqv0RWVU.mjs +42 -0
  129. package/dist/interactive-Wpd3FcDc.mjs +2 -0
  130. package/dist/{ips-PT_uQKAf.mjs → ips-COCUG8mk.mjs} +2 -2
  131. package/dist/k2-CmHkArHL.mjs +13 -0
  132. package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-l2_S__h3.mjs} +7 -7
  133. package/dist/keys-CDZreums.mjs +4 -0
  134. package/dist/kv-DkpKVimq.mjs +15 -0
  135. package/dist/{lazy-command-glNW3jzf.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
  136. package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-edbapECI.mjs} +10 -10
  137. package/dist/lifecycle-oud60haK.mjs +2 -0
  138. package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
  139. package/dist/{local-B5oRPTEN.mjs → local-C0lQ9sTg.mjs} +1 -1
  140. package/dist/local-D5L5Bwju.mjs +2 -0
  141. package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
  142. package/dist/login-BrjOuHKu.mjs +5 -0
  143. package/dist/login-DeOM4v0L.mjs +2 -0
  144. package/dist/logo-matches-CF8321pb.mjs +6 -0
  145. package/dist/logos-Bd8xNRKW.mjs +7 -0
  146. package/dist/logpush-BYk3qqwY.mjs +46 -0
  147. package/dist/logs-Jcj2NN8H.mjs +36 -0
  148. package/dist/magic-cloud-networking-Dgdb9H0f.mjs +71 -0
  149. package/dist/magic-network-monitoring-CxVU4MZB.mjs +36 -0
  150. package/dist/magic-transit-KDyfUgTv.mjs +383 -0
  151. package/dist/managed-defense-CxaDeNUd.mjs +18 -0
  152. package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-C7rT5E-x.mjs} +5 -5
  153. package/dist/{matches-BSiYXs99.mjs → matches-BtKqG8T9.mjs} +3 -3
  154. package/dist/{mcp-CCMiS75R.mjs → mcp-QDd1Iyc0.mjs} +17 -17
  155. package/dist/mesh-DtrIzl5z.mjs +26 -0
  156. package/dist/metadata-Df5kCWJv.mjs +2 -0
  157. package/dist/{migrate-BJ9Go_wP.mjs → migrate-DHlfR_gZ.mjs} +1 -1
  158. package/dist/{monetization-CFf_lb6x.mjs → monetization-pLalYYMI.mjs} +11 -11
  159. package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
  160. package/dist/network-DrJxPWXQ.mjs +50 -0
  161. package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
  162. package/dist/{oauth-cNZUky3h.mjs → oauth-B08YQ4xq.mjs} +2 -2
  163. package/dist/{oauth-DxGgIwFc.mjs → oauth-TGbM1Q0V.mjs} +1 -1
  164. package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
  165. package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
  166. package/dist/observability-CvN9oxAo.mjs +80 -0
  167. package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
  168. package/dist/{organization-Dbom1gTR.mjs → organization-DIwqRBBV.mjs} +16 -16
  169. package/dist/{organizations-OUMVsuen.mjs → organizations-Dk0D9ukm.mjs} +2 -2
  170. package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
  171. package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
  172. package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +16 -16
  173. package/dist/output-BGqhvqe2.mjs +2 -0
  174. package/dist/{page-rules-B9BQKU4_.mjs → page-rules-BKaU37cM.mjs} +8 -8
  175. package/dist/pages-2Xg-lrMf.mjs +54 -0
  176. package/dist/pay-per-crawl-5-KTQXRr.mjs +65 -0
  177. package/dist/pay-per-use-sGebKzNK.mjs +6 -0
  178. package/dist/pipelines-BM-T7mMK.mjs +44 -0
  179. package/dist/precursor-DmQ32-Sp.mjs +4 -0
  180. package/dist/previews-DDQ9ACDJ.mjs +4 -0
  181. package/dist/{progress-A61dRbXl.mjs → progress-BYVZuEcG.mjs} +1 -1
  182. package/dist/{prompt-CGUzvBgY.mjs → prompt-F5wxc8zq.mjs} +1 -1
  183. package/dist/queries-DPBkVynK.mjs +9 -0
  184. package/dist/queues-CCXRs98q.mjs +57 -0
  185. package/dist/r2-BKuBSW8h.mjs +125 -0
  186. package/dist/{radar-CU4T02Ag.mjs → radar-Gv1yFoRX.mjs} +150 -150
  187. package/dist/raw-fetch-DyYWa923.mjs +2 -0
  188. package/dist/realtime-CVl-rvgx.mjs +172 -0
  189. package/dist/registrar-sandbox-cmOYDnkp.mjs +56 -0
  190. package/dist/registrar-swlnh22i.mjs +43 -0
  191. package/dist/{registry-Cg5lP8oo.mjs → registry-C20J1MW0.mjs} +1 -1
  192. package/dist/reporting-Bgwsvol1.mjs +14 -0
  193. package/dist/request-headers-CUee83pa.mjs +2 -0
  194. package/dist/request-tracers-BBiJvVDz.mjs +4 -0
  195. package/dist/resolve-DvxgnWjL.mjs +2 -0
  196. package/dist/resolve-qwL1LmKN.mjs +2 -0
  197. package/dist/resource-sharing-C1JiYLbl.mjs +40 -0
  198. package/dist/resource-tagging-C9VOSlDR.mjs +4 -0
  199. package/dist/rules-BDunCGMj.mjs +18 -0
  200. package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-BMGxrnv9.mjs} +20 -20
  201. package/dist/rum-B7XiECe9.mjs +30 -0
  202. package/dist/run-CrZgB8L_.mjs +2 -0
  203. package/dist/run-nNxXb_Cv.mjs +2 -0
  204. package/dist/schema-DC0kdqgV.mjs +2 -0
  205. package/dist/schema-flags-BUZR9SLd.mjs +5 -0
  206. package/dist/scim-CORcs2wK.mjs +18 -0
  207. package/dist/secrets-store-BoZQaFey.mjs +24 -0
  208. package/dist/security-insights-DblK_6sg.mjs +40 -0
  209. package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-Dl7RPnRb.mjs} +5 -5
  210. package/dist/{session-CZTuHcbm.mjs → session-BWe9et4K.mjs} +1 -1
  211. package/dist/shared-0N31BXkY.mjs +2 -0
  212. package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-DX0-8ruu.mjs} +13 -13
  213. package/dist/snippets-BFN-Lg3K.mjs +20 -0
  214. package/dist/source-mXUcrTVw.mjs +6 -0
  215. package/dist/spawn-DZ9A-xXb.mjs +10 -0
  216. package/dist/{spectrum-DtG0jYjE.mjs → spectrum-HYWLWB0X.mjs} +12 -12
  217. package/dist/{speed-B-RiNHGK.mjs → speed-Dj0YhfRe.mjs} +13 -13
  218. package/dist/src-CAiZlihY.mjs +117 -0
  219. package/dist/{ssl-DBVpCZAM.mjs → ssl-BQL1fNtD.mjs} +17 -17
  220. package/dist/startup-profile-0X5ebbng.mjs +29 -0
  221. package/dist/startup-profile-CXnsF4c7.mjs +2 -0
  222. package/dist/state-BA2CanJ_.mjs +2 -0
  223. package/dist/{state-BaGRaYow.mjs → state-Dy6-rKNd.mjs} +1 -1
  224. package/dist/stream-DKv2TtZN.mjs +102 -0
  225. package/dist/submit-Byt2KBGI.mjs +4 -0
  226. package/dist/{tags--eph7JbN.mjs → tags-BIBsdG68.mjs} +2 -2
  227. package/dist/telemetry-DBXOMuLh.mjs +2 -0
  228. package/dist/{telemetry-51etasAu.mjs → telemetry-bu3txnIR.mjs} +1 -1
  229. package/dist/{tenant-Bj-He2xO.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
  230. package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
  231. package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
  232. package/dist/{tools-BJZ0DDlL.mjs → tools-BbTX7rlM.mjs} +1 -1
  233. package/dist/tunnels-DWcrz9Sf.mjs +29 -0
  234. package/dist/turnstile-2MIGp2ce.mjs +33 -0
  235. package/dist/{ui-BQxRjahW.mjs → ui-YmjF66Ct.mjs} +1 -1
  236. package/dist/update-check-B-CvDAUz.mjs +2 -0
  237. package/dist/update-check-CfB0PNTY.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/url-info-B8udoxlx.mjs +4 -0
  240. package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-C6AdWtaE.mjs} +5 -5
  241. package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
  242. package/dist/{user-B6P5_OjP.mjs → user-BLZ-0Bgv.mjs} +51 -51
  243. package/dist/values-BUK-m0Jg.mjs +4 -0
  244. package/dist/vectorize-DEUSEQXY.mjs +32 -0
  245. package/dist/version-BZNc7Y3t.mjs +2 -0
  246. package/dist/waiting-rooms-BycGk2Y0.mjs +53 -0
  247. package/dist/{web-assets-yaKxN4w_.mjs → web-assets-CLZdWOmN.mjs} +35 -35
  248. package/dist/{web3-Bu9c_QAt.mjs → web3-DjeavuLg.mjs} +15 -15
  249. package/dist/workers-C_SfyU-v.mjs +38 -0
  250. package/dist/workers-builds-COn5Ne5G.mjs +14 -0
  251. package/dist/workers-for-platforms-tchCXwNF.mjs +42 -0
  252. package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
  253. package/dist/workflows-BibtWuOx.mjs +43 -0
  254. package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
  255. package/dist/zaraz-BvQZB0YY.mjs +22 -0
  256. package/dist/zero-trust-FStq4uhn.mjs +821 -0
  257. package/dist/{zone-uJwRLSnn.mjs → zone-tymlghWb.mjs} +2 -2
  258. package/dist/{zones-Dpofsnth.mjs → zones-Bz6dgT9_.mjs} +47 -47
  259. package/package.json +25 -21
  260. package/dist/abuse-reports-BhSTEz7h.mjs +0 -24
  261. package/dist/account-tags-BWEIZLID.mjs +0 -15
  262. package/dist/accounts-ZQvIqGJz.mjs +0 -138
  263. package/dist/addressing-DCFm17JQ.mjs +0 -93
  264. package/dist/agent-context-GRiQ4zRU.mjs +0 -2
  265. package/dist/agent-memory-BtfPt2me.mjs +0 -34
  266. package/dist/ai-B0_sZbmy.mjs +0 -29
  267. package/dist/ai-audit-DaubuhYF.mjs +0 -6
  268. package/dist/ai-gateway-CJ-1Dzzr.mjs +0 -82
  269. package/dist/ai-search-Dywa1kqX.mjs +0 -79
  270. package/dist/ai-security-2wxMPqKS.mjs +0 -10
  271. package/dist/alerting-yad9DYRv.mjs +0 -56
  272. package/dist/analytics-DKNw2fVc.mjs +0 -20
  273. package/dist/analytics_engine-BA3kF46s.mjs +0 -4
  274. package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
  275. package/dist/artifacts-Cb3hwClm.mjs +0 -43
  276. package/dist/auth-BBlAI8HG.mjs +0 -2
  277. package/dist/auth-BIr56Mbx.mjs +0 -8
  278. package/dist/autoconfig-DPUztTL2.mjs +0 -511
  279. package/dist/basin-catalog-BLsQhJP4.mjs +0 -46
  280. package/dist/billing-CRwD7oQS.mjs +0 -23
  281. package/dist/bot-management-CyW8F8Wm.mjs +0 -9
  282. package/dist/botnet-feed-BBKsxf3Y.mjs +0 -11
  283. package/dist/brand-protection-DSeD8LXl.mjs +0 -27
  284. package/dist/browser-run-BAcUTwB4.mjs +0 -46
  285. package/dist/build-B5UYMEQH.mjs +0 -2
  286. package/dist/build-DLZ9gBNA.mjs +0 -2
  287. package/dist/builds-W1HEG7Bv.mjs +0 -71
  288. package/dist/cache-B7E_PXUp.mjs +0 -45
  289. package/dist/cf-Bh_fTFIj.mjs +0 -18
  290. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +0 -97
  291. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +0 -2
  292. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
  293. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +0 -2
  294. package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
  295. package/dist/cloud-connector-Czg1GdQi.mjs +0 -6
  296. package/dist/cloudflared-DGuau-lC.mjs +0 -2
  297. package/dist/cloudforce-one-B1IhIZcp.mjs +0 -447
  298. package/dist/command-CAtsHc1V.mjs +0 -2
  299. package/dist/command-DfffeX-k.mjs +0 -2
  300. package/dist/command-TCklVvOY.mjs +0 -2
  301. package/dist/connector-interrupts-D93KTMkw.mjs +0 -6
  302. package/dist/connector-telemetry-events-D6CmKR14.mjs +0 -6
  303. package/dist/connector-telemetry-snapshots-WO9IUk0e.mjs +0 -6
  304. package/dist/connectors-DNT6GTW3.mjs +0 -15
  305. package/dist/containers-Btx7vCDP.mjs +0 -78
  306. package/dist/containers-Ce7IO-Ia.mjs +0 -239
  307. package/dist/ct-alerting-CnTRE1Fb.mjs +0 -5
  308. package/dist/custom-nameservers-B0CpnUVg.mjs +0 -9
  309. package/dist/custom-pages-DcoSGN56.mjs +0 -21
  310. package/dist/d1-m7UfzBzl.mjs +0 -41
  311. package/dist/diagnostics-hOvnx5DT.mjs +0 -15
  312. package/dist/discover-C5aiI6u0.mjs +0 -2
  313. package/dist/discover-DwczTkRX.mjs +0 -2
  314. package/dist/dist-BuCJ_55d.mjs +0 -366
  315. package/dist/dist-C3s9SXTd.mjs +0 -48
  316. package/dist/dls-v6DyEWTd.mjs +0 -17
  317. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +0 -2
  318. package/dist/dotenv-CcQjGlV0.mjs +0 -4
  319. package/dist/dry-run-Bq0JAsbX.mjs +0 -2
  320. package/dist/durable-objects-C01phVwL.mjs +0 -6
  321. package/dist/email-sending-_dKCs2VF.mjs +0 -47
  322. package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
  323. package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
  324. package/dist/fieldExtractors-Cm5QnkE0.mjs +0 -9
  325. package/dist/flagship-B_SAI_ZL.mjs +0 -28
  326. package/dist/generate-BPqoDbck.mjs +0 -2
  327. package/dist/gt-DmcMNPX6.mjs +0 -2
  328. package/dist/iam-DUW7neMx.mjs +0 -52
  329. package/dist/images-B9dnr1z0.mjs +0 -71
  330. package/dist/init-BGcAIvV7.mjs +0 -39
  331. package/dist/intel-BQpZMck3.mjs +0 -76
  332. package/dist/interactive-C-o16XQs.mjs +0 -32
  333. package/dist/interactive-SgAjen2z.mjs +0 -2
  334. package/dist/k2-nPYti7Y0.mjs +0 -13
  335. package/dist/keys-O5kAW9ox.mjs +0 -4
  336. package/dist/kv-BUP_ZLM_.mjs +0 -15
  337. package/dist/lifecycle-C7tAC1Mn.mjs +0 -2
  338. package/dist/local-Bj-l0TP6.mjs +0 -2
  339. package/dist/login-C5nSIS-T.mjs +0 -2
  340. package/dist/login-CUup7w0e.mjs +0 -5
  341. package/dist/logo-matches-BkQKdu4Z.mjs +0 -6
  342. package/dist/logos-C_sv-boo.mjs +0 -7
  343. package/dist/logpush-NUcyMKHi.mjs +0 -46
  344. package/dist/logs-BZT4PlqZ.mjs +0 -36
  345. package/dist/magic-cloud-networking-DQnSdmgA.mjs +0 -71
  346. package/dist/magic-network-monitoring-pHTU6aS8.mjs +0 -36
  347. package/dist/magic-transit-5302bQNh.mjs +0 -383
  348. package/dist/managed-defense-8OEfDzuO.mjs +0 -18
  349. package/dist/mesh-DKBGTlCD.mjs +0 -26
  350. package/dist/metadata-C33s4rc-.mjs +0 -2
  351. package/dist/mtls-certificates-DsF3NFNs.mjs +0 -13
  352. package/dist/network-Bm0qYRqY.mjs +0 -50
  353. package/dist/oauth-clients-CP6alY0_.mjs +0 -16
  354. package/dist/observability-Bp71PtlD.mjs +0 -80
  355. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +0 -4
  356. package/dist/output-CvQFJkvi.mjs +0 -2
  357. package/dist/pages-DZPdyuT4.mjs +0 -54
  358. package/dist/pay-per-crawl-CnveMVDi.mjs +0 -65
  359. package/dist/pay-per-use-Bpxe8PHv.mjs +0 -6
  360. package/dist/pipelines-CHev3o5G.mjs +0 -44
  361. package/dist/precursor-C9PK9Bue.mjs +0 -4
  362. package/dist/previews-BIMI1dTz.mjs +0 -4
  363. package/dist/queries-f-btyefs.mjs +0 -9
  364. package/dist/queues-kLNdeb3q.mjs +0 -57
  365. package/dist/r2-D_awYx2p.mjs +0 -125
  366. package/dist/raw-fetch-CvkmFO23.mjs +0 -2
  367. package/dist/realtime-C0dvcBBM.mjs +0 -172
  368. package/dist/registrar-CHc-4vcf.mjs +0 -43
  369. package/dist/registrar-sandbox-Dq8LV2AI.mjs +0 -56
  370. package/dist/reporting-4u21g6Dk.mjs +0 -14
  371. package/dist/request-headers-D31kdxrQ.mjs +0 -2
  372. package/dist/request-tracers-CupJ_83j.mjs +0 -4
  373. package/dist/resolve-BCTrtcx7.mjs +0 -2
  374. package/dist/resolve-PZuJ878-.mjs +0 -2
  375. package/dist/resource-sharing-CO-Lh-u7.mjs +0 -40
  376. package/dist/resource-tagging-D0R5SzR6.mjs +0 -4
  377. package/dist/rules-BsmKzB9H.mjs +0 -18
  378. package/dist/rum-wcLEvVJl.mjs +0 -30
  379. package/dist/run-CIJTelJL.mjs +0 -2
  380. package/dist/run-quhbAvQi.mjs +0 -2
  381. package/dist/schema-GdBsV4P7.mjs +0 -2
  382. package/dist/schema-flags-D8vL2oiF.mjs +0 -5
  383. package/dist/scim-BkdJmAS8.mjs +0 -18
  384. package/dist/sdk-BCzcRJCi.mjs +0 -3
  385. package/dist/secrets-store-CHs0oYA0.mjs +0 -24
  386. package/dist/security-insights-vsl-4xFa.mjs +0 -40
  387. package/dist/shared-BS30oCf8.mjs +0 -2
  388. package/dist/snippets-CFaF_NyG.mjs +0 -20
  389. package/dist/source-38bULAR8.mjs +0 -6
  390. package/dist/spawn-B0Sl8lUu.mjs +0 -10
  391. package/dist/src-CM3XaB4p.mjs +0 -109
  392. package/dist/startup-profile-CLmojOrn.mjs +0 -2
  393. package/dist/startup-profile-CR7GMuLx.mjs +0 -17
  394. package/dist/state-CpXhcMdX.mjs +0 -2
  395. package/dist/stream-cAdBvpS1.mjs +0 -102
  396. package/dist/submit-Bkd7l2rK.mjs +0 -4
  397. package/dist/telemetry-Q3_UmwHj.mjs +0 -2
  398. package/dist/tunnels-CgtuRpcD.mjs +0 -29
  399. package/dist/turnstile-Bmcnrzw7.mjs +0 -33
  400. package/dist/update-check-BqSpgzHk.mjs +0 -2
  401. package/dist/update-check-DC0qP_8z.mjs +0 -2
  402. package/dist/url-info-DhVehaT8.mjs +0 -4
  403. package/dist/url-scanner-DiLdqsQk.mjs +0 -16
  404. package/dist/values-Cxx4Lxrd.mjs +0 -4
  405. package/dist/vectorize-YyxVpql-.mjs +0 -32
  406. package/dist/version-C0pInAZ9.mjs +0 -2
  407. package/dist/waiting-rooms-BdahlCdD.mjs +0 -53
  408. package/dist/workers-5GgoGA2e.mjs +0 -38
  409. package/dist/workers-builds-h-1FJjE1.mjs +0 -14
  410. package/dist/workers-for-platforms-CV9iRrp9.mjs +0 -42
  411. package/dist/workflows-dtMlkj1-.mjs +0 -43
  412. package/dist/zaraz-838AbMEX.mjs +0 -22
  413. package/dist/zero-trust-CYt-eELJ.mjs +0 -821
  414. /package/dist/{Page-CjJht2qT.mjs → Page-BShsqCXr.mjs} +0 -0
  415. /package/dist/{alerts-DY_7Nknx.mjs → alerts-BSON-vFh.mjs} +0 -0
  416. /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
  417. /package/dist/{autorag-K396-M2S.mjs → autorag-kNrLiqDX.mjs} +0 -0
  418. /package/dist/{body-parser-hh2avzkz.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
  419. /package/dist/{brands-DeLbFxSt.mjs → brands-bBJgbbOH.mjs} +0 -0
  420. /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
  421. /package/dist/{clear-CRfI7WS7.mjs → clear-BW9vLgI3.mjs} +0 -0
  422. /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
  423. /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
  424. /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
  425. /package/dist/{delegate-B6LetRpZ.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
  426. /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BkcBcyfF.mjs} +0 -0
  427. /package/dist/{health-Bz33n-_F.mjs → health-CTaCeVyC.mjs} +0 -0
  428. /package/dist/{input-validation-Dk52b0me.mjs → input-validation-D7z60HJH.mjs} +0 -0
  429. /package/dist/{internal-BHrJbbdA.mjs → internal-BYS7hO8c.mjs} +0 -0
  430. /package/dist/{live-MeJQXIei.mjs → live-BJE_YWE1.mjs} +0 -0
  431. /package/dist/{project-settings-DO6njFg_.mjs → project-settings-nBMEx1f-.mjs} +0 -0
  432. /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
  433. /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
  434. /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
  435. /package/dist/{ready-BOpbZ1pN.mjs → ready-B3pLxnjc.mjs} +0 -0
  436. /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
  437. /package/dist/{refute-DkF4XIMw.mjs → refute-Dp3VodMn.mjs} +0 -0
  438. /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
  439. /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-CxeudOzj.mjs} +0 -0
  440. /package/dist/{search-Bre1Zwn3.mjs → search-B_P5ZTQj.mjs} +0 -0
  441. /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-D5RwvrQq.mjs} +0 -0
  442. /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-_t78q2OE.mjs} +0 -0
  443. /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-CPrKEciQ.mjs} +0 -0
  444. /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
  445. /package/dist/{verify-CKgZYvln.mjs → verify-5KcvRk-q.mjs} +0 -0
@@ -1,112 +1,112 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-CGUzvBgY.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 user audit-logs list
2
+ import{i as e,n as t}from"./auth-AobvBmz4.mjs";import{t as n}from"./output-BGqhvqe2.mjs";import{t as r}from"./dry-run-DmsbOMF1.mjs";import{t as i}from"./progress-BYVZuEcG.mjs";import{t as a}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-F5wxc8zq.mjs";import{t as p}from"./cli-types-9oYmRTHJ.mjs";function ee(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 te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.auditLogs.list(a)),{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(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:"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 te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.auditLogs.list(a));n(s,{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(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 g={command:`list`,describe:`Billing History Details`,builder:p(h),handler:async e=>a({command:`user billing history list`,classification:{safeFlags:[`order`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/history`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.billing.history.list(a)),{successLabel:`Loaded`})})},_={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(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 g={command:`list`,describe:`Billing History Details`,builder:p(h),handler:async e=>a({command:`user billing history list`,classification:{safeFlags:[`order`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/history`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.billing.history.list(a));n(s,{successLabel:`Loaded`})})},_={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(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 y={command:`get`,describe:`Billing Profile Details`,builder:v,handler:async e=>a({command:`user billing profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user billing profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/profile`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.billing.profile.get()),{successLabel:`Loaded`})})},b={command:`profile`,describe:`Operations for billing.profile`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`billing`,describe:`View billing history and payment profile for your user (deprecated — prefer account-level billing)`,builder:e=>e.command(_).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(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 y={command:`get`,describe:`Billing Profile Details`,builder:v,handler:async e=>a({command:`user billing profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user billing profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/billing/profile`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.billing.profile.get());n(o,{successLabel:`Loaded`})})},b={command:`profile`,describe:`Operations for billing.profile`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`billing`,describe:`View billing history and payment profile for your user (deprecated — prefer account-level billing)`,builder:e=>e.command(_).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(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 C={command:`edit`,describe:`Edit User`,builder:S,handler:async e=>a({command:`user edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`json`,body:e.body===void 0?l({country:u(e.country,`country`,`text`),first_name:u(e[`first-name`],`first-name`,`text`),last_name:u(e[`last-name`],`last-name`,`text`),telephone:u(e.telephone,`telephone`,`text`),zipcode:u(e.zipcode,`zipcode`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.edit({...t})),{successLabel:`Updated`});return}let o=l({country:u(e.country,`country`,`text`),first_name:u(e[`first-name`],`first-name`,`text`),last_name:u(e[`last-name`],`last-name`,`text`),telephone:u(e.telephone,`telephone`,`text`),zipcode:u(e.zipcode,`zipcode`,`text`)});n(await i(`Updating`,async()=>a.user.edit({...o})),{successLabel:`Updated`})})};function w(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 C={command:`edit`,describe:`Edit User`,builder:S,handler:async e=>a({command:`user edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`json`,body:e.body===void 0?l({country:u(e.country,`country`,`text`),first_name:u(e[`first-name`],`first-name`,`text`),last_name:u(e[`last-name`],`last-name`,`text`),telephone:u(e.telephone,`telephone`,`text`),zipcode:u(e.zipcode,`zipcode`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.edit({...t}));n(r,{successLabel:`Updated`});return}let o=l({country:u(e.country,`country`,`text`),first_name:u(e[`first-name`],`first-name`,`text`),last_name:u(e[`last-name`],`last-name`,`text`),telephone:u(e.telephone,`telephone`,`text`),zipcode:u(e.zipcode,`zipcode`,`text`)}),c=await i(`Updating`,async()=>a.user.edit({...o}));n(c,{successLabel:`Updated`})})};function w(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`]}).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 T={command:`create`,describe:`Create an IP Access rule`,builder:w,handler:async e=>a({command:`user firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({configuration:{target:u(e[`configuration-target`],`configuration-target`,`text`),value:u(e[`configuration-value`],`configuration-value`,`text`)}}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.firewall.accessRules.create({...t})),{successLabel:`Created`});return}let o=l({configuration:{target:u(e[`configuration-target`],`configuration-target`,`text`),value:u(e[`configuration-value`],`configuration-value`,`text`)}});n(await i(`Creating`,async()=>a.user.firewall.accessRules.create({...o})),{successLabel:`Created`})})};function E(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`]}).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 T={command:`create`,describe:`Create an IP Access rule`,builder:w,handler:async e=>a({command:`user firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({configuration:{target:u(e[`configuration-target`],`configuration-target`,`text`),value:u(e[`configuration-value`],`configuration-value`,`text`)}}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.firewall.accessRules.create({...t}));n(r,{successLabel:`Created`});return}let o=l({configuration:{target:u(e[`configuration-target`],`configuration-target`,`text`),value:u(e[`configuration-value`],`configuration-value`,`text`)}}),c=await i(`Creating`,async()=>a.user.firewall.accessRules.create({...o}));n(c,{successLabel:`Created`})})};function E(e){return e.usage(`$0 user firewall access-rules delete <rule-id>
13
13
 
14
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 D={command:`delete <rule-id>`,describe:`Delete an IP Access rule`,builder:E,handler:async e=>a({command:`user firewall access-rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({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}n(await i(`Deleting`,async()=>a.user.firewall.accessRules.delete({rule_id:e[`rule-id`]})),{successLabel:`Deleted`})})};function O(e){return e.usage(`$0 user firewall access-rules edit <rule-id>
15
+ `);return}let o=await i(`Deleting`,async()=>a.user.firewall.accessRules.delete({rule_id:e[`rule-id`]}));n(o,{successLabel:`Deleted`})})};function O(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 k={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:O,handler:async e=>a({command:`user firewall access-rules edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({notes:u(e.notes,`notes`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.firewall.accessRules.edit({...t,rule_id:e[`rule-id`]})),{successLabel:`Updated`});return}let o=l({notes:u(e.notes,`notes`,`text`)});n(await i(`Updating`,async()=>a.user.firewall.accessRules.edit({...o,rule_id:e[`rule-id`]})),{successLabel:`Updated`})})};function A(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 k={command:`edit <rule-id>`,describe:`Update an IP Access rule`,builder:O,handler:async e=>a({command:`user firewall access-rules edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({notes:u(e.notes,`notes`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.firewall.accessRules.edit({...t,rule_id:e[`rule-id`]}));n(r,{successLabel:`Updated`});return}let o=l({notes:u(e.notes,`notes`,`text`)}),c=await i(`Updating`,async()=>a.user.firewall.accessRules.edit({...o,rule_id:e[`rule-id`]}));n(c,{successLabel:`Updated`})})};function A(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 j={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:A,handler:async e=>a({command:`user firewall access-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.firewall.accessRules.get({rule_id:e[`rule-id`]})),{successLabel:`Loaded`})})};function M(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 j={command:`get <rule-id>`,describe:`Get an IP Access rule`,builder:A,handler:async e=>a({command:`user firewall access-rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.firewall.accessRules.get({rule_id:e[`rule-id`]}));n(o,{successLabel:`Loaded`})})};function M(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(`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 N={command:`list`,describe:`List IP Access rules`,builder:p(M),handler:async e=>a({command:`user firewall access-rules list`,classification:{safeFlags:[`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let a={"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){r({command:`cf user firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.firewall.accessRules.list(a)),{successLabel:`Loaded`})})},P={command:`access-rules`,describe:`Operations for firewall.access-rules`,builder:e=>e.command(T).command(D).command(k).command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},F={command:`firewall`,describe:`Firewall operations`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function I(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 N={command:`list`,describe:`List IP Access rules`,builder:p(M),handler:async e=>a({command:`user firewall access-rules list`,classification:{safeFlags:[`configuration-target`,`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let a={"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){r({command:`cf user firewall access-rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.firewall.accessRules.list(a));n(s,{successLabel:`Loaded`})})},P={command:`access-rules`,describe:`Operations for firewall.access-rules`,builder:e=>e.command(T).command(D).command(k).command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},F={command:`firewall`,describe:`Firewall operations`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function I(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 L={command:`get`,describe:`User Details`,builder:I,handler:async e=>a({command:`user get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.get()),{successLabel:`Loaded`})})};function R(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 L={command:`get`,describe:`User Details`,builder:I,handler:async e=>a({command:`user get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.get());n(o,{successLabel:`Loaded`})})};function R(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 z={command:`get <invite-id>`,describe:`Invitation Details`,builder:R,handler:async e=>a({command:`user invites get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.invites.get({invite_id:e[`invite-id`]})),{successLabel:`Loaded`})})};function B(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 z={command:`get <invite-id>`,describe:`Invitation Details`,builder:R,handler:async e=>a({command:`user invites get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.invites.get({invite_id:e[`invite-id`]}));n(o,{successLabel:`Loaded`})})};function B(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 V={command:`list`,describe:`List Invitations`,builder:B,handler:async e=>a({command:`user invites list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user invites list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.invites.list()),{successLabel:`Loaded`})})};function H(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 V={command:`list`,describe:`List Invitations`,builder:B,handler:async e=>a({command:`user invites list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user invites list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/invites`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.invites.list());n(o,{successLabel:`Loaded`})})};function H(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 U={command:`respond <invite-id>`,describe:`Respond to Invitation`,builder:H,handler:async o=>a({command:`user invites respond`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf user invites respond`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/invites/${o[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(o[`invite-id`]))}`,pathParams:{"invite-id":String(o[`invite-id`]??``)},bodyKind:`json`,body:o.body===void 0?void 0:s(o.body)});return}let a=await t(o);if(o.body){let e=s(o.body);n(await i(`Updating`,async()=>a.user.invites.respond({...e,invite_id:o[`invite-id`]})),{successLabel:`Updated`});return}n(await i(`Updating`,async()=>e(a,`PATCH`,`/user/invites/${encodeURIComponent(String(o[`invite-id`]))}`)),{successLabel:`Updated`})})},W={command:`invites`,describe:`Operations for invites`,builder:e=>e.command(z).command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const U={command:`respond <invite-id>`,describe:`Respond to Invitation`,builder:H,handler:async o=>a({command:`user invites respond`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf user invites respond`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/user/invites/${o[`invite-id`]==null?`<invite-id>`:encodeURIComponent(String(o[`invite-id`]))}`,pathParams:{"invite-id":String(o[`invite-id`]??``)},bodyKind:`json`,body:o.body===void 0?void 0:s(o.body)});return}let a=await t(o);if(o.body){let e=s(o.body),t=await i(`Updating`,async()=>a.user.invites.respond({...e,invite_id:o[`invite-id`]}));n(t,{successLabel:`Updated`});return}let c=await i(`Updating`,async()=>e(a,`PATCH`,`/user/invites/${encodeURIComponent(String(o[`invite-id`]))}`));n(c,{successLabel:`Updated`})})},W={command:`invites`,describe:`Operations for invites`,builder:e=>e.command(z).command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(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`}).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 K={command:`create`,describe:`Create Monitor`,builder:G,handler:async e=>a({command:`user load-balancers monitors create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.loadBalancers.monitors.create({...t})),{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)});n(await i(`Creating`,async()=>a.user.loadBalancers.monitors.create({...o})),{successLabel:`Created`})})};function q(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`}).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 K={command:`create`,describe:`Create Monitor`,builder:G,handler:async e=>a({command:`user load-balancers monitors create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.loadBalancers.monitors.create({...t}));n(r,{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}),c=await i(`Creating`,async()=>a.user.loadBalancers.monitors.create({...o}));n(c,{successLabel:`Created`})})};function q(e){return e.usage(`$0 user load-balancers monitors delete <monitor-id>
33
33
 
34
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 J={command:`delete <monitor-id>`,describe:`Delete Monitor`,builder:q,handler:async e=>a({command:`user load-balancers monitors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({force:!!e.force})){process.stderr.write(`Aborted.
35
- `);return}n(await i(`Deleting`,async()=>a.user.loadBalancers.monitors.delete({monitor_id:e[`monitor-id`]})),{successLabel:`Deleted`})})};function Y(e){return e.usage(`$0 user load-balancers monitors edit <monitor-id>
35
+ `);return}let o=await i(`Deleting`,async()=>a.user.loadBalancers.monitors.delete({monitor_id:e[`monitor-id`]}));n(o,{successLabel:`Deleted`})})};function Y(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`]}).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 X={command:`edit <monitor-id>`,describe:`Patch Monitor`,builder:Y,handler:async e=>a({command:`user load-balancers monitors edit`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.loadBalancers.monitors.edit({body:t,monitor_id:e[`monitor-id`]})),{successLabel:`Updated`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)});n(await i(`Updating`,async()=>a.user.loadBalancers.monitors.edit({body:o,monitor_id:e[`monitor-id`]})),{successLabel:`Updated`})})};function Z(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`]}).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 X={command:`edit <monitor-id>`,describe:`Patch Monitor`,builder:Y,handler:async e=>a({command:`user load-balancers monitors edit`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.loadBalancers.monitors.edit({body:t,monitor_id:e[`monitor-id`]}));n(r,{successLabel:`Updated`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}),c=await i(`Updating`,async()=>a.user.loadBalancers.monitors.edit({body:o,monitor_id:e[`monitor-id`]}));n(c,{successLabel:`Updated`})})};function Z(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 Q={command:`get <monitor-id>`,describe:`Monitor Details`,builder:Z,handler:async e=>a({command:`user load-balancers monitors get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.monitors.get({monitor_id:e[`monitor-id`]})),{successLabel:`Loaded`})})};function ne(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 Q={command:`get <monitor-id>`,describe:`Monitor Details`,builder:Z,handler:async e=>a({command:`user load-balancers monitors get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.monitors.get({monitor_id:e[`monitor-id`]}));n(o,{successLabel:`Loaded`})})};function ne(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 re={command:`list`,describe:`List Monitors`,builder:ne,handler:async e=>a({command:`user load-balancers monitors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.monitors.list()),{successLabel:`Loaded`})})};function ie(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 re={command:`list`,describe:`List Monitors`,builder:ne,handler:async e=>a({command:`user load-balancers monitors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.monitors.list());n(o,{successLabel:`Loaded`})})};function ie(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`}).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 ae={command:`create <monitor-id>`,describe:`Preview Monitor`,builder:ie,handler:async e=>a({command:`user load-balancers monitors preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.loadBalancers.monitors.preview.create({body:t,monitor_id:e[`monitor-id`]})),{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)});n(await i(`Creating`,async()=>a.user.loadBalancers.monitors.preview.create({body:o,monitor_id:e[`monitor-id`]})),{successLabel:`Created`})})},oe={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function se(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`}).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 ae={command:`create <monitor-id>`,describe:`Preview Monitor`,builder:ie,handler:async e=>a({command:`user load-balancers monitors preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.loadBalancers.monitors.preview.create({body:t,monitor_id:e[`monitor-id`]}));n(r,{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}),c=await i(`Creating`,async()=>a.user.loadBalancers.monitors.preview.create({body:o,monitor_id:e[`monitor-id`]}));n(c,{successLabel:`Created`})})},oe={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function se(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 ce={command:`list`,describe:`List Monitor References`,builder:se,handler:async e=>a({command:`user load-balancers monitors references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.monitors.references.list({monitor_id:e[`monitor-id`]})),{successLabel:`Loaded`})})},le={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ue(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 ce={command:`list`,describe:`List Monitor References`,builder:se,handler:async e=>a({command:`user load-balancers monitors references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.monitors.references.list({monitor_id:e[`monitor-id`]}));n(o,{successLabel:`Loaded`})})},le={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ue(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`]}).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 de={command:`update <monitor-id>`,describe:`Update Monitor`,builder:ue,handler:async e=>a({command:`user load-balancers monitors update`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.loadBalancers.monitors.update({body:t,monitor_id:e[`monitor-id`]})),{successLabel:`Updated`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)});n(await i(`Updating`,async()=>a.user.loadBalancers.monitors.update({body:o,monitor_id:e[`monitor-id`]})),{successLabel:`Updated`})})},fe={command:`monitors`,describe:`Load Balancers operations`,builder:e=>e.command(K).command(J).command(X).command(Q).command(re).command(de).command(oe).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(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`]}).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 de={command:`update <monitor-id>`,describe:`Update Monitor`,builder:ue,handler:async e=>a({command:`user load-balancers monitors update`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.loadBalancers.monitors.update({body:t,monitor_id:e[`monitor-id`]}));n(r,{successLabel:`Updated`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}),c=await i(`Updating`,async()=>a.user.loadBalancers.monitors.update({body:o,monitor_id:e[`monitor-id`]}));n(c,{successLabel:`Updated`})})},fe={command:`monitors`,describe:`Load Balancers operations`,builder:e=>e.command(K).command(J).command(X).command(Q).command(re).command(de).command(oe).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(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`]}).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`]}).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`]}).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 me={command:`create`,describe:`Create Pool`,builder:pe,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.loadBalancers.pools.create({...t})),{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await d(`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 o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)});n(await i(`Creating`,async()=>a.user.loadBalancers.pools.create({...o})),{successLabel:`Created`})})};function he(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`]}).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`]}).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`]}).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 me={command:`create`,describe:`Create Pool`,builder:pe,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.loadBalancers.pools.create({...t}));n(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await d(`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 o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}),f=await i(`Creating`,async()=>a.user.loadBalancers.pools.create({...o}));n(f,{successLabel:`Created`})})};function he(e){return e.usage(`$0 user load-balancers pools delete <pool-id>
50
50
 
51
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:he,handler:async e=>a({command:`user load-balancers pools delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({force:!!e.force})){process.stderr.write(`Aborted.
52
- `);return}n(await i(`Deleting`,async()=>a.user.loadBalancers.pools.delete({pool_id:e[`pool-id`]})),{successLabel:`Deleted`})})};function _e(e){return e.usage(`$0 user load-balancers pools edit pools pool <pool-id>
52
+ `);return}let o=await i(`Deleting`,async()=>a.user.loadBalancers.pools.delete({pool_id:e[`pool-id`]}));n(o,{successLabel:`Deleted`})})};function _e(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`]}).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`]}).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`]}).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 ve={command:`pool <pool-id>`,describe:`Patch Pool`,builder:_e,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.loadBalancers.pools.edit.pools.pool({...t,pool_id:e[`pool-id`]})),{successLabel:`Updated`});return}let o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)});n(await i(`Updating`,async()=>a.user.loadBalancers.pools.edit.pools.pool({...o,pool_id:e[`pool-id`]})),{successLabel:`Updated`})})};function ye(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 be={command:`pools`,describe:`Patch Pools`,builder:ye,handler:async c=>a({command:`user load-balancers pools edit pools pools`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){r({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:c.body===void 0?l({notification_email:u(c[`notification-email`],`notification-email`,`text`)}):s(c.body)});return}let a=await t(c);if(c.body){let t=s(c.body);n(await i(`Updating`,async()=>e(a,`PATCH`,`/user/load_balancers/pools`,{body:t})),{successLabel:`Updated`});return}let d={};c[`notification-email`]!==void 0&&o(d,[`notification_email`],u(c[`notification-email`],`notification-email`,`text`)),n(await i(`Updating`,async()=>e(a,`PATCH`,`/user/load_balancers/pools`,{body:Object.keys(d).length>0?d:void 0})),{successLabel:`Updated`})})},xe={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(ve).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Se={command:`edit`,describe:`Operations for load-balancers.pools.edit`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(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`]}).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`]}).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`]}).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 ve={command:`pool <pool-id>`,describe:`Patch Pool`,builder:_e,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.loadBalancers.pools.edit.pools.pool({...t,pool_id:e[`pool-id`]}));n(r,{successLabel:`Updated`});return}let o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}),d=await i(`Updating`,async()=>a.user.loadBalancers.pools.edit.pools.pool({...o,pool_id:e[`pool-id`]}));n(d,{successLabel:`Updated`})})};function ye(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 be={command:`pools`,describe:`Patch Pools`,builder:ye,handler:async c=>a({command:`user load-balancers pools edit pools pools`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){r({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:c.body===void 0?l({notification_email:u(c[`notification-email`],`notification-email`,`text`)}):s(c.body)});return}let a=await t(c);if(c.body){let t=s(c.body),r=await i(`Updating`,async()=>e(a,`PATCH`,`/user/load_balancers/pools`,{body:t}));n(r,{successLabel:`Updated`});return}let d={};c[`notification-email`]!==void 0&&o(d,[`notification_email`],u(c[`notification-email`],`notification-email`,`text`));let f=await i(`Updating`,async()=>e(a,`PATCH`,`/user/load_balancers/pools`,{body:Object.keys(d).length>0?d:void 0}));n(f,{successLabel:`Updated`})})},xe={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(ve).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Se={command:`edit`,describe:`Operations for load-balancers.pools.edit`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(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 we={command:`get <pool-id>`,describe:`Pool Details`,builder:Ce,handler:async e=>a({command:`user load-balancers pools get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.pools.get({pool_id:e[`pool-id`]})),{successLabel:`Loaded`})})};function Te(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 we={command:`get <pool-id>`,describe:`Pool Details`,builder:Ce,handler:async e=>a({command:`user load-balancers pools get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.pools.get({pool_id:e[`pool-id`]}));n(o,{successLabel:`Loaded`})})};function Te(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 Ee={command:`get <pool-id>`,describe:`Pool Health Details`,builder:Te,handler:async e=>a({command:`user load-balancers pools health get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.pools.health.get({pool_id:e[`pool-id`]})),{successLabel:`Loaded`})})},De={command:`health`,describe:`Load Balancers operations`,builder:e=>e.command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Oe(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 Ee={command:`get <pool-id>`,describe:`Pool Health Details`,builder:Te,handler:async e=>a({command:`user load-balancers pools health get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.pools.health.get({pool_id:e[`pool-id`]}));n(o,{successLabel:`Loaded`})})},De={command:`health`,describe:`Load Balancers operations`,builder:e=>e.command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Oe(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 ke={command:`list`,describe:`List Pools`,builder:Oe,handler:async e=>a({command:`user load-balancers pools list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={monitor:e.monitor};if(e.dryRun){r({command:`cf user load-balancers pools list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.loadBalancers.pools.list(a)),{successLabel:`Loaded`})})};function Ae(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 ke={command:`list`,describe:`List Pools`,builder:Oe,handler:async e=>a({command:`user load-balancers pools list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={monitor:e.monitor};if(e.dryRun){r({command:`cf user load-balancers pools list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/pools`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.loadBalancers.pools.list(a));n(s,{successLabel:`Loaded`})})};function Ae(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`}).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 je={command:`create <pool-id>`,describe:`Preview Pool`,builder:Ae,handler:async e=>a({command:`user load-balancers pools preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.loadBalancers.pools.preview.create({body:t,pool_id:e[`pool-id`]})),{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)});n(await i(`Creating`,async()=>a.user.loadBalancers.pools.preview.create({body:o,pool_id:e[`pool-id`]})),{successLabel:`Created`})})},Me={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ne(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`}).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 je={command:`create <pool-id>`,describe:`Preview Pool`,builder:Ae,handler:async e=>a({command:`user load-balancers pools preview create`,classification:{safeFlags:[`allow-insecure`,`follow-redirects`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.loadBalancers.pools.preview.create({body:t,pool_id:e[`pool-id`]}));n(r,{successLabel:`Created`});return}let o=l({allow_insecure:e[`allow-insecure`],consecutive_down:e[`consecutive-down`],consecutive_up:e[`consecutive-up`],description:u(e.description,`description`,`text`),expected_body:u(e[`expected-body`],`expected-body`,`text`),expected_codes:u(e[`expected-codes`],`expected-codes`,`text`),follow_redirects:e[`follow-redirects`],interval:e.interval,method:u(e.method,`method`,`text`),path:u(e.path,`path`,`text`),port:e.port,probe_zone:u(e[`probe-zone`],`probe-zone`,`text`),retries:e.retries,timeout:e.timeout,type:u(e.type,`type`,`text`)}),c=await i(`Creating`,async()=>a.user.loadBalancers.pools.preview.create({body:o,pool_id:e[`pool-id`]}));n(c,{successLabel:`Created`})})},Me={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ne(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 Pe={command:`list`,describe:`List Pool References`,builder:Ne,handler:async e=>a({command:`user load-balancers pools references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.pools.references.list({pool_id:e[`pool-id`]})),{successLabel:`Loaded`})})},Fe={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ie(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 Pe={command:`list`,describe:`List Pool References`,builder:Ne,handler:async e=>a({command:`user load-balancers pools references list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.pools.references.list({pool_id:e[`pool-id`]}));n(o,{successLabel:`Loaded`})})},Fe={command:`references`,describe:`Load Balancers operations`,builder:e=>e.command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ie(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`]}).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`]}).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`]}).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 Le={command:`update <pool-id>`,describe:`Update Pool`,builder:Ie,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.loadBalancers.pools.update({...t,pool_id:e[`pool-id`]})),{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await d(`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 o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)});n(await i(`Updating`,async()=>a.user.loadBalancers.pools.update({...o,pool_id:e[`pool-id`]})),{successLabel:`Updated`})})},Re={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(me).command(ge).command(we).command(ke).command(Le).command(Se).command(De).command(Me).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ze(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`]}).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`]}).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`]}).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 Le={command:`update <pool-id>`,describe:`Update Pool`,builder:Ie,handler:async e=>a({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){r({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?l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.loadBalancers.pools.update({...t,pool_id:e[`pool-id`]}));n(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await d(`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 o=l({check_regions:e[`check-regions`],description:u(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:u(e[`load-shedding-default-policy`],`load-shedding-default-policy`,`text`),session_percent:e[`load-shedding-session-percent`],session_policy:u(e[`load-shedding-session-policy`],`load-shedding-session-policy`,`text`)},longitude:e.longitude,minimum_origins:e[`minimum-origins`],monitor:u(e.monitor,`monitor`,`text`),monitor_group:u(e[`monitor-group`],`monitor-group`,`text`),name:u(e.name,`name`,`text`),networks:e.networks,notification_email:u(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:u(e[`origin-steering-policy`],`origin-steering-policy`,`text`)},origins:c(e.origins,`origins`)}),f=await i(`Updating`,async()=>a.user.loadBalancers.pools.update({...o,pool_id:e[`pool-id`]}));n(f,{successLabel:`Updated`})})},Re={command:`pools`,describe:`Load Balancers operations`,builder:e=>e.command(me).command(ge).command(we).command(ke).command(Le).command(Se).command(De).command(Me).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ze(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 Be={command:`get <preview-id>`,describe:`Preview Result`,builder:ze,handler:async e=>a({command:`user load-balancers preview get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.loadBalancers.preview.get({preview_id:e[`preview-id`]})),{successLabel:`Loaded`})})},Ve={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(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 Be={command:`get <preview-id>`,describe:`Preview Result`,builder:ze,handler:async e=>a({command:`user load-balancers preview get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.loadBalancers.preview.get({preview_id:e[`preview-id`]}));n(o,{successLabel:`Loaded`})})},Ve={command:`preview`,describe:`Load Balancers operations`,builder:e=>e.command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(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 Ue={command:`list`,describe:`List Regions`,builder:He,handler:async e=>a({command:`user load-balancers regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={subdivision_code:e[`subdivision-code`],country_code:e[`country-code`]};if(e.dryRun){r({command:`cf user load-balancers regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/regions`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.loadBalancers.regions.list(a)),{successLabel:`Loaded`})})},We={command:`regions`,describe:`Operations for load-balancers.regions`,builder:e=>e.command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`load-balancers`,describe:`Operations for load-balancers`,builder:e=>e.command(fe).command(Re).command(Ve).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ke(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 Ue={command:`list`,describe:`List Regions`,builder:He,handler:async e=>a({command:`user load-balancers regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={subdivision_code:e[`subdivision-code`],country_code:e[`country-code`]};if(e.dryRun){r({command:`cf user load-balancers regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancers/regions`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.loadBalancers.regions.list(a));n(s,{successLabel:`Loaded`})})},We={command:`regions`,describe:`Operations for load-balancers.regions`,builder:e=>e.command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`load-balancers`,describe:`Operations for load-balancers`,builder:e=>e.command(fe).command(Re).command(Ve).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ke(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 qe={command:`list`,describe:`List Healthcheck Events`,builder:Ke,handler:async e=>a({command:`user load-balancing-analytics events list`,classification:{safeFlags:[`origin-healthy`,`pool-healthy`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user load-balancing-analytics events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancing_analytics/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.loadBalancingAnalytics.events.list(a)),{successLabel:`Loaded`})})},Je={command:`events`,describe:`Load Balancing Analytics operations`,builder:e=>e.command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ye={command:`load-balancing-analytics`,describe:`Operations for load-balancing-analytics`,builder:e=>e.command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Xe(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 qe={command:`list`,describe:`List Healthcheck Events`,builder:Ke,handler:async e=>a({command:`user load-balancing-analytics events list`,classification:{safeFlags:[`origin-healthy`,`pool-healthy`,`dry-run`]}},e,async()=>{let a={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){r({command:`cf user load-balancing-analytics events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/load_balancing_analytics/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.loadBalancingAnalytics.events.list(a));n(s,{successLabel:`Loaded`})})},Je={command:`events`,describe:`Load Balancing Analytics operations`,builder:e=>e.command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ye={command:`load-balancing-analytics`,describe:`Operations for load-balancing-analytics`,builder:e=>e.command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Xe(e){return e.usage(`$0 user memberships delete <membership-id>
73
73
 
74
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 Ze={command:`delete <membership-id>`,describe:`Delete Membership`,builder:Xe,handler:async e=>a({command:`user memberships delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
75
- `);return}n(await i(`Deleting`,async()=>a.user.memberships.delete({membership_id:e[`membership-id`]})),{successLabel:`Deleted`})})};function Qe(e){return e.usage(`$0 user memberships list
75
+ `);return}let o=await i(`Deleting`,async()=>a.user.memberships.delete({membership_id:e[`membership-id`]}));n(o,{successLabel:`Deleted`})})};function Qe(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 $e={command:`list`,describe:`List Memberships`,builder:p(Qe),handler:async e=>a({command:`user memberships list`,classification:{safeFlags:[`order`,`direction`,`status`,`dry-run`]}},e,async()=>{let a={"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){r({command:`cf user memberships list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.memberships.list(a)),{successLabel:`Loaded`})})};function et(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 $e={command:`list`,describe:`List Memberships`,builder:p(Qe),handler:async e=>a({command:`user memberships list`,classification:{safeFlags:[`order`,`direction`,`status`,`dry-run`]}},e,async()=>{let a={"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){r({command:`cf user memberships list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/memberships`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.memberships.list(a));n(s,{successLabel:`Loaded`})})};function et(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 tt={command:`update <membership-id>`,describe:`Update Membership`,builder:et,handler:async o=>a({command:`user memberships update`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf user memberships update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/memberships/${o[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(o[`membership-id`]))}`,pathParams:{"membership-id":String(o[`membership-id`]??``)},bodyKind:`json`,body:o.body===void 0?void 0:s(o.body)});return}let a=await t(o);if(o.body){let e=s(o.body);n(await i(`Updating`,async()=>a.user.memberships.update({...e,membership_id:o[`membership-id`]})),{successLabel:`Updated`});return}n(await i(`Updating`,async()=>e(a,`PUT`,`/memberships/${encodeURIComponent(String(o[`membership-id`]))}`)),{successLabel:`Updated`})})};function nt(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(`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 tt={command:`update <membership-id>`,describe:`Update Membership`,builder:et,handler:async o=>a({command:`user memberships update`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf user memberships update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/memberships/${o[`membership-id`]==null?`<membership-id>`:encodeURIComponent(String(o[`membership-id`]))}`,pathParams:{"membership-id":String(o[`membership-id`]??``)},bodyKind:`json`,body:o.body===void 0?void 0:s(o.body)});return}let a=await t(o);if(o.body){let e=s(o.body),t=await i(`Updating`,async()=>a.user.memberships.update({...e,membership_id:o[`membership-id`]}));n(t,{successLabel:`Updated`});return}let c=await i(`Updating`,async()=>e(a,`PUT`,`/memberships/${encodeURIComponent(String(o[`membership-id`]))}`));n(c,{successLabel:`Updated`})})};function nt(e){return e.usage(`$0 user memberships userMembershipsGet <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 rt={command:`userMembershipsGet <membership-id>`,describe:`Get User Membership`,builder:nt,handler:async e=>a({command:`user memberships userMembershipsGet`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.memberships.userMembershipsGet({membership_id:e[`membership-id`]})),{successLabel:`Loaded`})})};function it(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 rt={command:`userMembershipsGet <membership-id>`,describe:`Get User Membership`,builder:nt,handler:async e=>a({command:`user memberships userMembershipsGet`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.memberships.userMembershipsGet({membership_id:e[`membership-id`]}));n(o,{successLabel:`Loaded`})})};function it(e){return e.usage(`$0 user memberships userSAccountMembershipsMembershipDetails <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 at={command:`userSAccountMembershipsMembershipDetails <membership-id>`,describe:`Membership Details`,builder:it,handler:async e=>a({command:`user memberships userSAccountMembershipsMembershipDetails`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.memberships.userSAccountMembershipsMembershipDetails({membership_id:e[`membership-id`]})),{successLabel:`Loaded`})})},ot={command:`memberships`,describe:`Operations for memberships`,builder:e=>e.command(Ze).command($e).command(tt).command(rt).command(at).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function st(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 at={command:`userSAccountMembershipsMembershipDetails <membership-id>`,describe:`Membership Details`,builder:it,handler:async e=>a({command:`user memberships userSAccountMembershipsMembershipDetails`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.memberships.userSAccountMembershipsMembershipDetails({membership_id:e[`membership-id`]}));n(o,{successLabel:`Loaded`})})},ot={command:`memberships`,describe:`Operations for memberships`,builder:e=>e.command(Ze).command($e).command(tt).command(rt).command(at).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function st(e){return e.usage(`$0 user subscriptions delete <identifier>
84
84
 
85
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 ct={command:`delete <identifier>`,describe:`Delete User Subscription`,builder:st,handler:async e=>a({command:`user subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({force:!!e.force})){process.stderr.write(`Aborted.
86
- `);return}n(await i(`Deleting`,async()=>a.user.subscriptions.delete({identifier:e.identifier})),{successLabel:`Deleted`})})};function lt(e){return e.usage(`$0 user subscriptions get
86
+ `);return}let o=await i(`Deleting`,async()=>a.user.subscriptions.delete({identifier:e.identifier}));n(o,{successLabel:`Deleted`})})};function lt(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 ut={command:`get`,describe:`Get User Subscriptions`,builder:lt,handler:async e=>a({command:`user subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/subscriptions`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.subscriptions.get()),{successLabel:`Loaded`})})};function dt(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 ut={command:`get`,describe:`Get User Subscriptions`,builder:lt,handler:async e=>a({command:`user subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/subscriptions`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.subscriptions.get());n(o,{successLabel:`Loaded`})})};function dt(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`]}).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 ft={command:`update <identifier>`,describe:`Update User Subscription`,builder:dt,handler:async e=>a({command:`user subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({app:{install_id:u(e[`app-install-id`],`app-install-id`,`text`)},component_values:c(e[`component-values`],`component-values`),frequency:u(e.frequency,`frequency`,`text`),rate_plan:{currency:u(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:u(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:u(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:u(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.subscriptions.update({body:t,identifier:e.identifier})),{successLabel:`Updated`});return}let o=l({app:{install_id:u(e[`app-install-id`],`app-install-id`,`text`)},component_values:c(e[`component-values`],`component-values`),frequency:u(e.frequency,`frequency`,`text`),rate_plan:{currency:u(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:u(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:u(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:u(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}});n(await i(`Updating`,async()=>a.user.subscriptions.update({body:o,identifier:e.identifier})),{successLabel:`Updated`})})},pt={command:`subscriptions`,describe:`View and manage zone-level plan subscriptions owned by your user`,builder:e=>e.command(ct).command(ut).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function mt(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`]}).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 ft={command:`update <identifier>`,describe:`Update User Subscription`,builder:dt,handler:async e=>a({command:`user subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({app:{install_id:u(e[`app-install-id`],`app-install-id`,`text`)},component_values:c(e[`component-values`],`component-values`),frequency:u(e.frequency,`frequency`,`text`),rate_plan:{currency:u(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:u(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:u(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:u(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.subscriptions.update({body:t,identifier:e.identifier}));n(r,{successLabel:`Updated`});return}let o=l({app:{install_id:u(e[`app-install-id`],`app-install-id`,`text`)},component_values:c(e[`component-values`],`component-values`),frequency:u(e.frequency,`frequency`,`text`),rate_plan:{currency:u(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:u(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:u(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:u(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),d=await i(`Updating`,async()=>a.user.subscriptions.update({body:o,identifier:e.identifier}));n(d,{successLabel:`Updated`})})},pt={command:`subscriptions`,describe:`View and manage zone-level plan subscriptions owned by your user`,builder:e=>e.command(ct).command(ut).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function mt(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 ht={command:`list`,describe:`List user tenants`,builder:mt,handler:async e=>a({command:`user tenant list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tenant list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tenants`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.tenant.list()),{successLabel:`Loaded`})})},gt={command:`tenant`,describe:`Operations for tenant`,builder:e=>e.command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _t(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 ht={command:`list`,describe:`List user tenants`,builder:mt,handler:async e=>a({command:`user tenant list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tenant list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tenants`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.tenant.list());n(o,{successLabel:`Loaded`})})},gt={command:`tenant`,describe:`Operations for tenant`,builder:e=>e.command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _t(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 vt={command:`create`,describe:`Create Token`,builder:_t,handler:async e=>a({command:`user tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Creating`,async()=>a.user.tokens.create({...t})),{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await d(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`)});n(await i(`Creating`,async()=>a.user.tokens.create({...o})),{successLabel:`Created`})})};function yt(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 vt={command:`create`,describe:`Create Token`,builder:_t,handler:async e=>a({command:`user tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Creating`,async()=>a.user.tokens.create({...t}));n(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await d(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`)}),f=await i(`Creating`,async()=>a.user.tokens.create({...o}));n(f,{successLabel:`Created`})})};function yt(e){return e.usage(`$0 user tokens delete <token-id>
95
95
 
96
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 $={command:`delete <token-id>`,describe:`Delete Token`,builder:yt,handler:async e=>a({command:`user tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
97
- `);return}n(await i(`Deleting`,async()=>a.user.tokens.delete({token_id:e[`token-id`]})),{successLabel:`Deleted`})})};function bt(e){return e.usage(`$0 user tokens get <token-id>
97
+ `);return}let o=await i(`Deleting`,async()=>a.user.tokens.delete({token_id:e[`token-id`]}));n(o,{successLabel:`Deleted`})})};function bt(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 xt={command:`get <token-id>`,describe:`Token Details`,builder:bt,handler:async e=>a({command:`user tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e);n(await i(`Loading`,async()=>a.user.tokens.get({token_id:e[`token-id`]})),{successLabel:`Loaded`})})};function St(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 xt={command:`get <token-id>`,describe:`Token Details`,builder:bt,handler:async e=>a({command:`user tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({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 a=await t(e),o=await i(`Loading`,async()=>a.user.tokens.get({token_id:e[`token-id`]}));n(o,{successLabel:`Loaded`})})};function St(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 Ct={command:`list`,describe:`List Tokens`,builder:p(St),handler:async e=>a({command:`user tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){r({command:`cf user tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.tokens.list(a)),{successLabel:`Loaded`})})};function wt(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 Ct={command:`list`,describe:`List Tokens`,builder:p(St),handler:async e=>a({command:`user tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){r({command:`cf user tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.tokens.list(a));n(s,{successLabel:`Loaded`})})};function wt(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 Tt={command:`list`,describe:`List Token Permission Groups`,builder:wt,handler:async e=>a({command:`user tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={name:e.name,scope:e.scope};if(e.dryRun){r({command:`cf user tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/permission_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.tokens.permissionGroups.list(a)),{successLabel:`Loaded`})})},Et={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Dt(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 Tt={command:`list`,describe:`List Token Permission Groups`,builder:wt,handler:async e=>a({command:`user tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={name:e.name,scope:e.scope};if(e.dryRun){r({command:`cf user tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/permission_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.user.tokens.permissionGroups.list(a));n(s,{successLabel:`Loaded`})})},Et={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Dt(e){return e.usage(`$0 user tokens roll <token-id>
106
106
 
107
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 Ot={command:`roll <token-id>`,describe:`Roll Token`,builder:Dt,handler:async e=>a({command:`user tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({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 a=await t(e);if(!await f({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}n(await i(`Deleting`,async()=>a.user.tokens.roll({token_id:e[`token-id`]})),{successLabel:`Deleted`})})};function kt(e){return e.usage(`$0 user tokens update <token-id>
108
+ `);return}let o=await i(`Deleting`,async()=>a.user.tokens.roll({token_id:e[`token-id`]}));n(o,{successLabel:`Deleted`})})};function kt(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`]}).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 At={command:`update <token-id>`,describe:`Update Token`,builder:kt,handler:async e=>a({command:`user tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`),status:u(e.status,`status`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body);n(await i(`Updating`,async()=>a.user.tokens.update({body:t,token_id:e[`token-id`]})),{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await d(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`),status:u(e.status,`status`,`text`)});n(await i(`Updating`,async()=>a.user.tokens.update({body:o,token_id:e[`token-id`]})),{successLabel:`Updated`})})};function jt(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`]}).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 At={command:`update <token-id>`,describe:`Update Token`,builder:kt,handler:async e=>a({command:`user tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){r({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?l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`),status:u(e.status,`status`,`text`)}):s(e.body)});return}let a=await t(e);if(e.body){let t=s(e.body),r=await i(`Updating`,async()=>a.user.tokens.update({body:t,token_id:e[`token-id`]}));n(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await d(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=l({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:u(e[`expires-on`],`expires-on`,`text`),name:u(e.name,`name`,`text`),not_before:u(e[`not-before`],`not-before`,`text`),policies:c(e.policies,`policies`),status:u(e.status,`status`,`text`)}),f=await i(`Updating`,async()=>a.user.tokens.update({body:o,token_id:e[`token-id`]}));n(f,{successLabel:`Updated`})})};function jt(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 Mt={command:`verify`,describe:`Verify Token`,builder:jt,handler:async e=>a({command:`user tokens verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/verify`,pathParams:{},bodyKind:`none`});return}let a=await t(e);n(await i(`Loading`,async()=>a.user.tokens.verify()),{successLabel:`Loaded`})})},Nt={command:`tokens`,describe:`Create and manage personal API tokens scoped to your user for programmatic API access`,builder:e=>e.command(vt).command($).command(xt).command(Ct).command(Ot).command(At).command(Mt).command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Pt={command:`user`,describe:`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,builder:e=>e.command(C).command(L).command(m).command(x).command(F).command(W).command(Ge).command(Ye).command(ot).command(pt).command(gt).command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pt 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 Mt={command:`verify`,describe:`Verify Token`,builder:jt,handler:async e=>a({command:`user tokens verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf user tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/tokens/verify`,pathParams:{},bodyKind:`none`});return}let a=await t(e),o=await i(`Loading`,async()=>a.user.tokens.verify());n(o,{successLabel:`Loaded`})})},Nt={command:`tokens`,describe:`Create and manage personal API tokens scoped to your user for programmatic API access`,builder:e=>e.command(vt).command($).command(xt).command(Ct).command(Ot).command(At).command(Mt).command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Pt={command:`user`,describe:`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,builder:e=>e.command(C).command(L).command(m).command(x).command(F).command(W).command(Ge).command(Ye).command(ot).command(pt).command(gt).command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pt as default};