cf 1.0.0-beta.1 → 1.0.0-beta.10

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 (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11448 -13819
  3. package/dist/_meta/hand-written-commands.json +579 -41
  4. package/dist/_meta/schemas.json +14496 -16450
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-BDIKjiG2.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-D-q1FVWJ.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-0w2U1NEy.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-B6m1Rhf4.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-B9IozS2a.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-C_QcqR6P.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-DU2X-q-x.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CO0MmSd3.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-XxusQxXe.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-BhvAP5fb.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-Bl3EY-cy.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Cq1gtnq6.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-BWMDWeVq.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-C1GK7DsW.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D04Xvm0m.mjs → deploy-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-BsnURYja.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-B_nTXhuM.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-B92fty1-.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-B7f95epu.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-DU_YCLC5.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-CtX9NPCy.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-CuWFOsGw.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-BeGV3VXt.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-d6aoKAI4.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-Fyf3vWcA.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-BWBVGwU6.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-CZKR8DHO.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-qf7GReyu.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-DYSk5_gc.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-DdY07OYt.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DpaZ5LJL.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-nsTDJ0dF.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-smcOFbC1.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-Dyf_0mq4.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-D7zGPLVm.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CLzba_nr.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-lps71uoA.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-EJYlFw8m.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-CozKGaA4.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-NmpdyMo5.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-iWTz8WbH.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-Cza1L8i_.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-gvXX2MxY.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-_QDaG3U5.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-ChPyfpM2.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-BjiswXbC.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CsWOex96.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-r-Mre0cE.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-CPgypY7n.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-DsMrXyqK.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-L2NmGPby.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-KN0Ul5fV.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-CZMFKGdP.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-7ikewAnp.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-BFq8UM1s.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-DnBYV1ZD.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-bbT1REPc.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-CKdPlIkK.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-DHmrotGW.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-C0eKBTqG.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
  261. package/dist/access-C_2rEi0H.mjs +0 -27
  262. package/dist/account-CZ9SPVdz.mjs +0 -12
  263. package/dist/ai-ARwLeQ1O.mjs +0 -31
  264. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  265. package/dist/analytics-nnzFBB_7.mjs +0 -21
  266. package/dist/auth-DJhSjNNL.mjs +0 -8
  267. package/dist/auth-sAorfdWU.mjs +0 -2
  268. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  269. package/dist/build-1a8CiNIT.mjs +0 -2
  270. package/dist/build-Ca_drQY2.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  279. package/dist/command-CF0giIIc.mjs +0 -3
  280. package/dist/command-CsZFRm3P.mjs +0 -2
  281. package/dist/command-DBz8QiFk.mjs +0 -2
  282. package/dist/command-RiZ_LYcm.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  285. package/dist/dev-CVD3BVUG.mjs +0 -4
  286. package/dist/dialog--iw0F2s-.mjs +0 -2
  287. package/dist/dist-CUUGKvjh.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-8U8DpF9q.mjs +0 -8
  292. package/dist/email-security-keTqF0nJ.mjs +0 -160
  293. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  294. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  295. package/dist/firewall-67qoXiqD.mjs +0 -56
  296. package/dist/flagship-CjC3dF7L.mjs +0 -28
  297. package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  301. package/dist/kv-CA4J7cCq.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CLW108XX.mjs +0 -5
  304. package/dist/login-xgRjiyJa.mjs +0 -2
  305. package/dist/logs-CiDyrqEu.mjs +0 -48
  306. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  307. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-pah6dZBJ.mjs +0 -60
  312. package/dist/precursor-DTTYLDEa.mjs +0 -4
  313. package/dist/previews-B89cUmpr.mjs +0 -4
  314. package/dist/progress-D_mL-Kcy.mjs +0 -2
  315. package/dist/prompt-sL_yMZbI.mjs +0 -3
  316. package/dist/r2-Chn_JQUM.mjs +0 -127
  317. package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
  318. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  319. package/dist/request-headers-POBKmu93.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-DtN51G2A.mjs +0 -2
  322. package/dist/run-oACgYK8I.mjs +0 -2
  323. package/dist/schema-DZSSJaY0.mjs +0 -2
  324. package/dist/security-center-DP4GC1cG.mjs +0 -30
  325. package/dist/shared-W9uoX1-W.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-BWEuIO-w.mjs +0 -523
  328. package/dist/src-Hw-TlVAO.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  333. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  334. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  335. package/dist/tenant-Cu4P-foo.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-39JL9tMt.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  341. package/dist/update-check-CE9XB6gf.mjs +0 -2
  342. package/dist/version-Bh3b9vTa.mjs +0 -2
  343. package/dist/workers-CXuyjZB8.mjs +0 -36
  344. package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-CUWbw_Tq.mjs";import{n as m}from"./input-validation-Ch4Vllrm.mjs";import{a as h,i as g,n as _}from"./prompt-sL_yMZbI.mjs";import{t as v}from"./cli-types-tt_LZMbn.mjs";import{n as ee,t as te}from"./raw-fetch-lSVttVJF.mjs";function y(e){return e.usage(`$0 accounts applications create
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{a as i,r as a}from"./auth-BIr56Mbx.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-A61dRbXl.mjs";import{t as l}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-hh2avzkz.mjs";import{n as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-CGUzvBgY.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-CvkmFO23.mjs";function y(e){return e.usage(`$0 accounts applications create
3
3
 
4
- Create a custom application for an account.`).option(`category-id`,{type:`number`,description:`Returns the category ID.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Returns the human readable ID.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Returns the application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. `})}const b={command:`create`,describe:`Create application`,builder:y,handler:async t=>l({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.applications.create({body:e,account_id:l})),{successLabel:`Created`});return}if(t[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);t[`human-id`]===void 0&&(t[`human-id`]=await h(`human-id`,`Returns the human readable ID.`)),t.name===void 0&&(t.name=await h(`name`,`Returns the application name.`));let u=p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]});o(await c(`Creating`,async()=>i.accounts.applications.create({body:u,account_id:l})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 accounts applications delete <id>
4
+ Create a custom application for an account.`).option(`category-id`,{type:`number`,description:`Returns the category ID.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Returns the human readable ID.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Returns the application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. `})}const b={command:`create`,describe:`Create application`,builder:y,handler:async n=>l({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({category_id:n[`category-id`],hostnames:n.hostnames,human_id:m(n[`human-id`],`human-id`,`text`),ip_subnets:n[`ip-subnets`],name:m(n.name,`name`,`text`),port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.applications.create({body:e,account_id:l})),{successLabel:`Created`});return}if(n[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);n[`human-id`]===void 0&&(n[`human-id`]=await h(`human-id`,`Returns the human readable ID.`)),n.name===void 0&&(n.name=await h(`name`,`Returns the application name.`));let u=p({category_id:n[`category-id`],hostnames:n.hostnames,human_id:m(n[`human-id`],`human-id`,`text`),ip_subnets:n[`ip-subnets`],name:m(n.name,`name`,`text`),port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]});o(await c(`Creating`,async()=>i.accounts.applications.create({body:u,account_id:l})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 accounts applications delete <id>
5
5
 
6
- Delete a custom application and all of its versions. Deletion is rejected when other resources reference the application.`).positional(`id`,{type:`string`,description:`Application 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 S={command:`delete <id>`,describe:`Delete application`,builder:x,handler:async t=>l({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force})){process.stderr.write(`Aborted.
7
- `);return}o(await c(`Deleting`,async()=>i.accounts.applications.delete({account_id:l,id:t.id})),{successLabel:`Deleted`})})};function C(e){return e.usage("$0 accounts applications get applications\n\nList the applications available to an account, both the applications Cloudflare curates and the custom applications the account has defined. Results are paginated. Use `filter` and `search` to narrow the list, `order_by` to sort it, and `fields` to reduce each result to only the properties you need. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:`Filter applications using key:value format. Supported filter keys:
6
+ Delete a custom application and all of its versions. Deletion is rejected when other resources reference the application.`).positional(`id`,{type:`string`,description:`Application 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 S={command:`delete <id>`,describe:`Delete application`,builder:x,handler:async n=>l({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications/${n.id==null?`<id>`:encodeURIComponent(String(n.id))}`,pathParams:{id:String(n.id??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force})){process.stderr.write(`Aborted.
7
+ `);return}o(await c(`Deleting`,async()=>i.accounts.applications.delete({account_id:l,id:n.id})),{successLabel:`Deleted`})})};function C(e){return e.usage("$0 accounts applications get applications\n\nList the applications available to an account, both the applications Cloudflare curates and the custom applications the account has defined. Results are paginated. Use `filter` and `search` to narrow the list, `order_by` to sort it, and `fields` to reduce each result to only the properties you need. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:`Filter applications using key:value format. Supported filter keys:
8
8
  - name: Filter by application name (e.g., name:HR)
9
9
  - id: Filter by application ID (e.g., id:498)
10
10
  - human_id: Filter by human-readable ID (e.g., human_id:HR)
@@ -18,115 +18,121 @@ Delete a custom application and all of its versions. Deletion is rejected when o
18
18
  .`}).option(`limit`,{type:`number`,description:`Limit of number of results to return (max 250).`}).option(`offset`,{type:`number`,description:`Offset of results to return.`}).option(`order-by`,{type:`string`,description:`Order results using field:direction format. Supported fields are name, id, human_id,
19
19
  category_id, application_type, application_confidence_score, and gen_ai_score.
20
20
  Supported directions are asc and desc. Ignored when search is provided; results are
21
- ranked by relevance instead.`}).option(`search`,{type:`string`,description:`Fuzzy search across application name and hostnames. Results are ranked by relevance. Must be between 2 and 200 characters. Can be combined with filter parameters.`}).option(`fields`,{type:`string`,description:"Return only the listed properties on each application, as a comma-separated list.\nUse this to keep responses small when you only need part of each application — for\nexample populating a picker with `fields=id,name` instead of downloading every\nhostname and IP subnet.\n\nOmit this parameter to receive the full application object.\n\n`id` is always returned.\n\nSelectable properties: `id`, `name`, `human_id`, `version`, `hostnames`,\n`support_domains`, `ip_subnets`, `port_protocols`, `supported`, `gen_ai_score`,\n`application_confidence_score`, `created_at`, `updated_at`, `review_status`.\n\nUnknown or empty property names return `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`applications`,describe:`List applications`,builder:C,handler:async t=>l({command:`accounts applications get applications`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={filter:t.filter,limit:t.limit,offset:t.offset,order_by:t[`order-by`],search:t.search,fields:t.fields};if(t.dryRun){s({command:`cf accounts applications get applications`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.applications.get.applications({account_id:u,...i})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 accounts applications get by id <id>
21
+ ranked by relevance instead.`}).option(`search`,{type:`string`,description:`Fuzzy search across application name and hostnames. Results are ranked by relevance. Must be between 2 and 200 characters. Can be combined with filter parameters.`}).option(`fields`,{type:`string`,description:"Return only the listed properties on each application, as a comma-separated list.\nUse this to keep responses small when you only need part of each application — for\nexample populating a picker with `fields=id,name` instead of downloading every\nhostname and IP subnet.\n\nOmit this parameter to receive the full application object.\n\n`id` is always returned.\n\nSelectable properties: `id`, `name`, `human_id`, `version`, `hostnames`,\n`support_domains`, `ip_subnets`, `port_protocols`, `supported`, `gen_ai_score`,\n`application_confidence_score`, `created_at`, `updated_at`, `review_status`.\n\nUnknown or empty property names return `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`applications`,describe:`List applications`,builder:C,handler:async n=>l({command:`accounts applications get applications`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={filter:n.filter,limit:n.limit,offset:n.offset,order_by:n[`order-by`],search:n.search,fields:n.fields};if(n.dryRun){s({command:`cf accounts applications get applications`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.applications.get.applications({account_id:u,...i})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 accounts applications get by id <id>
22
22
 
23
- Get application by ID.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`id <id>`,describe:`Get application`,builder:T,handler:async t=>l({command:`accounts applications get by id`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts applications get by id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.applications.get.by.id({account_id:l,id:t.id})),{successLabel:`Loaded`})})},D={command:`by`,describe:`Operations for applications.get.by`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},O={command:`get`,describe:`Operations for applications.get`,builder:e=>e.command(w).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.usage(`$0 accounts applications update <id>
23
+ Get application by ID.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`id <id>`,describe:`Get application`,builder:T,handler:async n=>l({command:`accounts applications get by id`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts applications get by id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications/${n.id==null?`<id>`:encodeURIComponent(String(n.id))}`,pathParams:{id:String(n.id??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.applications.get.by.id({account_id:l,id:n.id})),{successLabel:`Loaded`})})},D={command:`by`,describe:`Operations for applications.get.by`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},O={command:`get`,describe:`Operations for applications.get`,builder:e=>e.command(w).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.usage(`$0 accounts applications update <id>
24
24
 
25
- Replace the network matchers for a custom application and create a new version.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update the network matchers for the application. The service preserves omitted matcher lists; send an empty array to clear a list. The resulting application must contain at least one hostname or IP subnet. Support domains and port/protocol pairs do not satisfy this requirement. `})}const A={command:`update <id>`,describe:`Update application`,builder:k,handler:async t=>l({command:`accounts applications update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts applications update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`json`,body:t.body===void 0?p({hostnames:t.hostnames,ip_subnets:t[`ip-subnets`],port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.applications.update({...e,account_id:l,id:t.id})),{successLabel:`Updated`});return}let u=p({hostnames:t.hostnames,ip_subnets:t[`ip-subnets`],port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]});o(await c(`Updating`,async()=>i.accounts.applications.update({...u,account_id:l,id:t.id})),{successLabel:`Updated`})})},j={command:`applications`,describe:`Applications operations`,builder:e=>e.command(b).command(S).command(A).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 accounts billing createSetupIntent
25
+ Replace the network matchers for a custom application and create a new version.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update the network matchers for the application. The service preserves omitted matcher lists; send an empty array to clear a list. The resulting application must contain at least one hostname or IP subnet. Support domains and port/protocol pairs do not satisfy this requirement. `})}const A={command:`update <id>`,describe:`Update application`,builder:k,handler:async n=>l({command:`accounts applications update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts applications update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications/${n.id==null?`<id>`:encodeURIComponent(String(n.id))}`,pathParams:{id:String(n.id??``)},bodyKind:`json`,body:n.body===void 0?p({hostnames:n.hostnames,ip_subnets:n[`ip-subnets`],port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.applications.update({...e,account_id:l,id:n.id})),{successLabel:`Updated`});return}let u=p({hostnames:n.hostnames,ip_subnets:n[`ip-subnets`],port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]});o(await c(`Updating`,async()=>i.accounts.applications.update({...u,account_id:l,id:n.id})),{successLabel:`Updated`})})},j={command:`applications`,describe:`Applications operations`,builder:e=>e.command(b).command(S).command(A).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 accounts billing createSetupIntent
26
26
 
27
- Creates a Stripe setup intent for adding a payment method to an account. Returns a client secret for frontend payment method collection.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`createSetupIntent`,describe:`Create Setup Intent`,builder:M,handler:async t=>l({command:`accounts billing createSetupIntent`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing createSetupIntent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/client-secret`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Creating`,async()=>i.accounts.billing.createSetupIntent({account_id:l})),{successLabel:`Created`})})};function P(e){return e.usage(`$0 accounts billing getBadDebt
27
+ Creates a Stripe setup intent for adding a payment method to an account. Returns a client secret for frontend payment method collection.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`createSetupIntent`,describe:`Create Setup Intent`,builder:M,handler:async n=>l({command:`accounts billing createSetupIntent`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing createSetupIntent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/client-secret`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Creating`,async()=>i.accounts.billing.createSetupIntent({account_id:l})),{successLabel:`Created`})})};function P(e){return e.usage(`$0 accounts billing getBadDebt
28
28
 
29
- Gets bad debt information for an account, including outstanding invoices and total debt amount.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`getBadDebt`,describe:`Get Account Bad Debt`,builder:P,handler:async t=>l({command:`accounts billing getBadDebt`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing getBadDebt`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/billing/bad-debt`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getBadDebt({account_id:l})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 accounts billing getCredits
29
+ Gets bad debt information for an account, including outstanding invoices and total debt amount.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`getBadDebt`,describe:`Get Account Bad Debt`,builder:P,handler:async n=>l({command:`accounts billing getBadDebt`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing getBadDebt`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/billing/bad-debt`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getBadDebt({account_id:l})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 accounts billing getCredits
30
30
 
31
- Gets the credit balance and eligibility for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`getCredits`,describe:`Get Account Credits`,builder:I,handler:async t=>l({command:`accounts billing getCredits`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing getCredits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/billing/credits`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getCredits({account_id:l})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 accounts billing getReceiptPdf <receipt-id>
31
+ Gets the credit balance and eligibility for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`getCredits`,describe:`Get Account Credits`,builder:I,handler:async n=>l({command:`accounts billing getCredits`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing getCredits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/billing/credits`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getCredits({account_id:l})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 accounts billing getReceiptPdf <receipt-id>
32
32
 
33
- Downloads a receipt as a PDF document.`).positional(`receipt-id`,{type:`string`,description:`Receipt identifier.`,demandOption:!0}).option(`doctype`,{type:`string`,description:`The document type to generate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const z={command:`getReceiptPdf <receipt-id>`,describe:`Get Receipt PDF`,builder:R,handler:async t=>l({command:`accounts billing getReceiptPdf`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{let i={doctype:t.doctype};if(t.dryRun){s({command:`cf accounts billing getReceiptPdf`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/receipts/${t[`receipt-id`]==null?`<receipt-id>`:encodeURIComponent(String(t[`receipt-id`]))}/pdf`,pathParams:{"receipt-id":String(t[`receipt-id`]??``)},query:i,bodyKind:`none`});return}await a(t);let o=t.local?e:await n();t.accountId=o;let l=new URLSearchParams(Object.entries(i).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await c(`Loading`,async()=>te(`/accounts/${o}/receipts/${encodeURIComponent(String(t[`receipt-id`]))}/pdf${l?`?`+l:``}`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));ee(t.text===!0?u.toString(`utf-8`):u)})};function B(e){return e.usage(`$0 accounts billing getUnpaidInvoices
33
+ Downloads a receipt as a PDF document.`).positional(`receipt-id`,{type:`string`,description:`Receipt identifier.`,demandOption:!0}).option(`doctype`,{type:`string`,description:`The document type to generate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const z={command:`getReceiptPdf <receipt-id>`,describe:`Get Receipt PDF`,builder:R,handler:async n=>l({command:`accounts billing getReceiptPdf`,classification:{safeFlags:[`dry-run`,`text`]}},n,async()=>{let i={doctype:n.doctype};if(n.dryRun){s({command:`cf accounts billing getReceiptPdf`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/receipts/${n[`receipt-id`]==null?`<receipt-id>`:encodeURIComponent(String(n[`receipt-id`]))}/pdf`,pathParams:{"receipt-id":String(n[`receipt-id`]??``)},query:i,bodyKind:`none`});return}await a(n);let o=n.local?e:await r();n.accountId=o;let l=new URLSearchParams(Object.entries(i).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await c(`Loading`,async()=>te(`/accounts/${o}/receipts/${encodeURIComponent(String(n[`receipt-id`]))}/pdf${l?`?`+l:``}`,{method:`GET`,local:n.local===!0,persistTo:n.persistTo}));ee(n.text===!0?u.toString(`utf-8`):u)})};function B(e){return e.usage(`$0 accounts billing getUnpaidInvoices
34
34
 
35
- Gets unpaid invoice information for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`getUnpaidInvoices`,describe:`Get Unpaid Invoices`,builder:B,handler:async t=>l({command:`accounts billing getUnpaidInvoices`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing getUnpaidInvoices`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/billing/unpaid-invoice`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getUnpaidInvoices({account_id:l})),{successLabel:`Loaded`})})};function H(e){return e.usage(`$0 accounts billing history list
35
+ Gets unpaid invoice information for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`getUnpaidInvoices`,describe:`Get Unpaid Invoices`,builder:B,handler:async n=>l({command:`accounts billing getUnpaidInvoices`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing getUnpaidInvoices`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/billing/unpaid-invoice`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.getUnpaidInvoices({account_id:l})),{successLabel:`Loaded`})})};function H(e){return e.usage(`$0 accounts billing history list
36
36
 
37
- Gets the billing history for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`status`,{type:`string`,description:`Filter billing history by status.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`list`,describe:`Get Account Billing History`,builder:H,handler:async t=>l({command:`accounts billing history list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`],status:t.status};if(t.dryRun){s({command:`cf accounts billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/billing/history`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.billing.history.list({account_id:u,...i})),{successLabel:`Loaded`})})},W={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(e){return e.usage(`$0 accounts billing payBadDebt
37
+ Gets the billing history for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`status`,{type:`string`,description:`Filter billing history by status.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`list`,describe:`Get Account Billing History`,builder:H,handler:async n=>l({command:`accounts billing history list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`],status:n.status};if(n.dryRun){s({command:`cf accounts billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/billing/history`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.billing.history.list({account_id:u,...i})),{successLabel:`Loaded`})})},W={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(e){return e.usage(`$0 accounts billing payBadDebt
38
38
 
39
- Pays outstanding bad debt for an account. Discovers all debt automatically and handles invoice deduplication.`).option(`payment-method-id`,{type:`string`,description:`The payment method to use. If omitted, the default payment method is used.`}).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:`payBadDebt`,describe:`Pay Bad Debt`,builder:G,handler:async t=>l({command:`accounts billing payBadDebt`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payBadDebt`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/pay-bad-debt`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...e,account_id:l})),{successLabel:`Created`});return}let u=p({payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`)});o(await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...u,account_id:l})),{successLabel:`Created`})})};function q(e){return e.usage(`$0 accounts billing payInvoice
39
+ Pays outstanding bad debt for an account. Discovers all debt automatically and handles invoice deduplication.`).option(`payment-method-id`,{type:`string`,description:`The payment method to use. If omitted, the default payment method is used.`}).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:`payBadDebt`,describe:`Pay Bad Debt`,builder:G,handler:async n=>l({command:`accounts billing payBadDebt`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payBadDebt`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/pay-bad-debt`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({payment_method_id:m(n[`payment-method-id`],`payment-method-id`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...e,account_id:l})),{successLabel:`Created`});return}let u=p({payment_method_id:m(n[`payment-method-id`],`payment-method-id`,`text`)});o(await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...u,account_id:l})),{successLabel:`Created`})})};function q(e){return e.usage(`$0 accounts billing payInvoice
40
40
 
41
- Pays an outstanding invoice for an account. Returns a Stripe client secret when Strong Customer Authentication (SCA) is required to complete the payment.`).option(`invoice-id`,{type:`string`,description:`The identifier of the invoice to pay.`}).option(`payment-method-id`,{type:`string`,description:`The payment method to use. If omitted, the default payment method is used.`}).option(`validate-payment-method`,{type:`boolean`,description:`Whether to validate the payment method before processing.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const J={command:`payInvoice`,describe:`Pay Invoice`,builder:q,handler:async t=>l({command:`accounts billing payInvoice`,classification:{safeFlags:[`validate-payment-method`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payInvoice`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/pay-invoice`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({invoice_id:m(t[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:t[`validate-payment-method`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.billing.payInvoice({...e,account_id:l})),{successLabel:`Created`});return}let u=p({invoice_id:m(t[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:t[`validate-payment-method`]});o(await c(`Creating`,async()=>i.accounts.billing.payInvoice({...u,account_id:l})),{successLabel:`Created`})})};function Y(e){return e.usage(`$0 accounts billing payment-methods create
41
+ Pays an outstanding invoice for an account. Returns a Stripe client secret when Strong Customer Authentication (SCA) is required to complete the payment.`).option(`invoice-id`,{type:`string`,description:`The identifier of the invoice to pay.`}).option(`payment-method-id`,{type:`string`,description:`The payment method to use. If omitted, the default payment method is used.`}).option(`validate-payment-method`,{type:`boolean`,description:`Whether to validate the payment method before processing.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const J={command:`payInvoice`,describe:`Pay Invoice`,builder:q,handler:async n=>l({command:`accounts billing payInvoice`,classification:{safeFlags:[`validate-payment-method`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payInvoice`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/pay-invoice`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({invoice_id:m(n[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(n[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:n[`validate-payment-method`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.billing.payInvoice({...e,account_id:l})),{successLabel:`Created`});return}let u=p({invoice_id:m(n[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(n[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:n[`validate-payment-method`]});o(await c(`Creating`,async()=>i.accounts.billing.payInvoice({...u,account_id:l})),{successLabel:`Created`})})};function Y(e){return e.usage(`$0 accounts billing payment-methods create
42
42
 
43
- Creates a new payment method for an account.`).option(`address`,{type:`string`,description:`Billing address line 1.`}).option(`address2`,{type:`string`,description:`Billing address line 2.`}).option(`bank-account-type`,{type:`string`,description:`Bank account type.`}).option(`bank-code`,{type:`string`,description:`Bank code.`}).option(`bank-country`,{type:`string`,description:`Bank country.`}).option(`bank-name`,{type:`string`,description:`Bank name for bank-based payment methods.`}).option(`bank-routing-number`,{type:`string`,description:`Bank routing number.`}).option(`cashapp-cash-tag`,{type:`string`,description:`Cash App cash tag.`}).option(`city`,{type:`string`,description:`Billing city.`}).option(`country`,{type:`string`,description:`Billing country.`}).option(`default`,{type:`boolean`,description:`Whether this is the default payment method.`}).option(`device-data`,{type:`string`,description:`Device data for fraud prevention.`}).option(`first-name`,{type:`string`,description:`Billing first name.`}).option(`last-name`,{type:`string`,description:`Billing last name.`}).option(`nick-name`,{type:`string`,description:`A nickname for the payment method.`}).option(`payment-account-email`,{type:`string`,description:`Email associated with the payment account.`}).option(`payment-email`,{type:`string`,description:`Payment email address.`}).option(`payment-gateway`,{type:`string`,description:`The payment gateway used.`}).option(`payment-nonce`,{type:`string`,description:`Payment nonce for tokenized payments.`}).option(`state`,{type:`string`,description:`Billing state.`}).option(`type`,{type:`string`,description:`The payment method type.`,choices:[`CREDIT_CARD`,`PAYPAL`,`CASHAPP`,`SEPA_DEBIT`,`LINK`,`ACH_DIRECT_DEBIT`]}).option(`zipcode`,{type:`string`,description:`Billing zip code.`}).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:`create`,describe:`Create Payment Method`,builder:Y,handler:async t=>l({command:`accounts billing payment-methods create`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payment-methods create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:m(t.type,`type`,`text`),zipcode:m(t.zipcode,`zipcode`,`text`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:e,account_id:l})),{successLabel:`Created`});return}let u=p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:m(t.type,`type`,`text`),zipcode:m(t.zipcode,`zipcode`,`text`)});o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:u,account_id:l})),{successLabel:`Created`})})};function Z(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
43
+ Creates a new payment method for an account.`).option(`address`,{type:`string`,description:`Billing address line 1.`}).option(`address2`,{type:`string`,description:`Billing address line 2.`}).option(`bank-account-type`,{type:`string`,description:`Bank account type.`}).option(`bank-code`,{type:`string`,description:`Bank code.`}).option(`bank-country`,{type:`string`,description:`Bank country.`}).option(`bank-name`,{type:`string`,description:`Bank name for bank-based payment methods.`}).option(`bank-routing-number`,{type:`string`,description:`Bank routing number.`}).option(`cashapp-cash-tag`,{type:`string`,description:`Cash App cash tag.`}).option(`city`,{type:`string`,description:`Billing city.`}).option(`country`,{type:`string`,description:`Billing country.`}).option(`default`,{type:`boolean`,description:`Whether this is the default payment method.`}).option(`device-data`,{type:`string`,description:`Device data for fraud prevention.`}).option(`first-name`,{type:`string`,description:`Billing first name.`}).option(`last-name`,{type:`string`,description:`Billing last name.`}).option(`nick-name`,{type:`string`,description:`A nickname for the payment method.`}).option(`payment-account-email`,{type:`string`,description:`Email associated with the payment account.`}).option(`payment-email`,{type:`string`,description:`Payment email address.`}).option(`payment-gateway`,{type:`string`,description:`The payment gateway used.`}).option(`payment-nonce`,{type:`string`,description:`Payment nonce for tokenized payments.`}).option(`state`,{type:`string`,description:`Billing state.`}).option(`type`,{type:`string`,description:`The payment method type.`,choices:[`CREDIT_CARD`,`PAYPAL`,`CASHAPP`,`SEPA_DEBIT`,`LINK`,`ACH_DIRECT_DEBIT`]}).option(`zipcode`,{type:`string`,description:`Billing zip code.`}).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:`create`,describe:`Create Payment Method`,builder:Y,handler:async n=>l({command:`accounts billing payment-methods create`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payment-methods create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({address:m(n.address,`address`,`text`),address2:m(n.address2,`address2`,`text`),bank_account_type:m(n[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(n[`bank-code`],`bank-code`,`text`),bank_country:m(n[`bank-country`],`bank-country`,`text`),bank_name:m(n[`bank-name`],`bank-name`,`text`),bank_routing_number:m(n[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(n[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(n.city,`city`,`text`),country:m(n.country,`country`,`text`),default:n.default,device_data:m(n[`device-data`],`device-data`,`text`),first_name:m(n[`first-name`],`first-name`,`text`),last_name:m(n[`last-name`],`last-name`,`text`),nick_name:m(n[`nick-name`],`nick-name`,`text`),payment_account_email:m(n[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(n[`payment-email`],`payment-email`,`text`),payment_gateway:m(n[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(n[`payment-nonce`],`payment-nonce`,`text`),state:m(n.state,`state`,`text`),type:m(n.type,`type`,`text`),zipcode:m(n.zipcode,`zipcode`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:e,account_id:l})),{successLabel:`Created`});return}let u=p({address:m(n.address,`address`,`text`),address2:m(n.address2,`address2`,`text`),bank_account_type:m(n[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(n[`bank-code`],`bank-code`,`text`),bank_country:m(n[`bank-country`],`bank-country`,`text`),bank_name:m(n[`bank-name`],`bank-name`,`text`),bank_routing_number:m(n[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(n[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(n.city,`city`,`text`),country:m(n.country,`country`,`text`),default:n.default,device_data:m(n[`device-data`],`device-data`,`text`),first_name:m(n[`first-name`],`first-name`,`text`),last_name:m(n[`last-name`],`last-name`,`text`),nick_name:m(n[`nick-name`],`nick-name`,`text`),payment_account_email:m(n[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(n[`payment-email`],`payment-email`,`text`),payment_gateway:m(n[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(n[`payment-nonce`],`payment-nonce`,`text`),state:m(n.state,`state`,`text`),type:m(n.type,`type`,`text`),zipcode:m(n.zipcode,`zipcode`,`text`)});o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:u,account_id:l})),{successLabel:`Created`})})};function Z(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
44
44
 
45
- Deletes a payment method from an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,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 Q={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Z,handler:async t=>l({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force})){process.stderr.write(`Aborted.
46
- `);return}o(await c(`Deleting`,async()=>i.accounts.billing.paymentMethods.delete({account_id:l,payment_method_id:t[`payment-method-id`]})),{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
45
+ Deletes a payment method from an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,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 Q={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Z,handler:async n=>l({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods/${n[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(n[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(n[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force})){process.stderr.write(`Aborted.
46
+ `);return}o(await c(`Deleting`,async()=>i.accounts.billing.paymentMethods.delete({account_id:l,payment_method_id:n[`payment-method-id`]})),{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
47
47
 
48
- Gets a specific payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <payment-method-id>`,describe:`Get Payment Method`,builder:ne,handler:async t=>l({command:`accounts billing payment-methods get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payment-methods get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.paymentMethods.get({account_id:l,payment_method_id:t[`payment-method-id`]})),{successLabel:`Loaded`})})};function ie(e){return e.usage(`$0 accounts billing payment-methods list
48
+ Gets a specific payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <payment-method-id>`,describe:`Get Payment Method`,builder:ne,handler:async n=>l({command:`accounts billing payment-methods get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payment-methods get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods/${n[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(n[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(n[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.billing.paymentMethods.get({account_id:l,payment_method_id:n[`payment-method-id`]})),{successLabel:`Loaded`})})};function ie(e){return e.usage(`$0 accounts billing payment-methods list
49
49
 
50
- Lists all payment methods for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Payment Methods`,builder:ie,handler:async t=>l({command:`accounts billing payment-methods list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){s({command:`cf accounts billing payment-methods list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.billing.paymentMethods.list({account_id:u,...i})),{successLabel:`Loaded`})})};function oe(e){return e.usage(`$0 accounts billing payment-methods setDefault <payment-method-id>
50
+ Lists all payment methods for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Payment Methods`,builder:ie,handler:async n=>l({command:`accounts billing payment-methods list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`]};if(n.dryRun){s({command:`cf accounts billing payment-methods list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.billing.paymentMethods.list({account_id:u,...i})),{successLabel:`Loaded`})})};function oe(e){return e.usage(`$0 accounts billing payment-methods setDefault <payment-method-id>
51
51
 
52
- Sets a payment method as the default for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`setDefault <payment-method-id>`,describe:`Set Default Payment Method`,builder:oe,handler:async t=>l({command:`accounts billing payment-methods setDefault`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payment-methods setDefault`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}/set-as-default`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.setDefault({account_id:l,payment_method_id:t[`payment-method-id`]})),{successLabel:`Created`})})};function ce(e){return e.usage(`$0 accounts billing payment-methods update <payment-method-id>
52
+ Sets a payment method as the default for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`setDefault <payment-method-id>`,describe:`Set Default Payment Method`,builder:oe,handler:async n=>l({command:`accounts billing payment-methods setDefault`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payment-methods setDefault`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods/${n[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(n[`payment-method-id`]))}/set-as-default`,pathParams:{"payment-method-id":String(n[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Creating`,async()=>i.accounts.billing.paymentMethods.setDefault({account_id:l,payment_method_id:n[`payment-method-id`]})),{successLabel:`Created`})})};function ce(e){return e.usage(`$0 accounts billing payment-methods update <payment-method-id>
53
53
 
54
- Updates a payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`address`,{type:`string`,description:`Billing address line 1.`}).option(`address2`,{type:`string`,description:`Billing address line 2.`}).option(`bank-account-type`,{type:`string`,description:`Bank account type.`}).option(`bank-code`,{type:`string`,description:`Bank code.`}).option(`bank-country`,{type:`string`,description:`Bank country.`}).option(`bank-name`,{type:`string`,description:`Bank name for bank-based payment methods.`}).option(`bank-routing-number`,{type:`string`,description:`Bank routing number.`}).option(`cashapp-cash-tag`,{type:`string`,description:`Cash App cash tag.`}).option(`city`,{type:`string`,description:`Billing city.`}).option(`country`,{type:`string`,description:`Billing country.`}).option(`default`,{type:`boolean`,description:`Whether this is the default payment method.`}).option(`device-data`,{type:`string`,description:`Device data for fraud prevention.`}).option(`first-name`,{type:`string`,description:`Billing first name.`}).option(`last-name`,{type:`string`,description:`Billing last name.`}).option(`nick-name`,{type:`string`,description:`A nickname for the payment method.`}).option(`payment-account-email`,{type:`string`,description:`Email associated with the payment account.`}).option(`payment-email`,{type:`string`,description:`Payment email address.`}).option(`payment-gateway`,{type:`string`,description:`The payment gateway used.`}).option(`payment-nonce`,{type:`string`,description:`Payment nonce for tokenized payments.`}).option(`state`,{type:`string`,description:`Billing state.`}).option(`type`,{type:`string`,description:`The payment method type.`,choices:[`CREDIT_CARD`,`PAYPAL`,`CASHAPP`,`SEPA_DEBIT`,`LINK`,`ACH_DIRECT_DEBIT`]}).option(`zipcode`,{type:`string`,description:`Billing zip code.`}).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 <payment-method-id>`,describe:`Update Payment Method`,builder:ce,handler:async t=>l({command:`accounts billing payment-methods update`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing payment-methods update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:m(t.type,`type`,`text`),zipcode:m(t.zipcode,`zipcode`,`text`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:e,account_id:l,payment_method_id:t[`payment-method-id`]})),{successLabel:`Updated`});return}let u=p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:m(t.type,`type`,`text`),zipcode:m(t.zipcode,`zipcode`,`text`)});o(await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:u,account_id:l,payment_method_id:t[`payment-method-id`]})),{successLabel:`Updated`})})},ue={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(X).command(Q).command(re).command(ae).command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 accounts billing togglePdfInvoices
54
+ Updates a payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`address`,{type:`string`,description:`Billing address line 1.`}).option(`address2`,{type:`string`,description:`Billing address line 2.`}).option(`bank-account-type`,{type:`string`,description:`Bank account type.`}).option(`bank-code`,{type:`string`,description:`Bank code.`}).option(`bank-country`,{type:`string`,description:`Bank country.`}).option(`bank-name`,{type:`string`,description:`Bank name for bank-based payment methods.`}).option(`bank-routing-number`,{type:`string`,description:`Bank routing number.`}).option(`cashapp-cash-tag`,{type:`string`,description:`Cash App cash tag.`}).option(`city`,{type:`string`,description:`Billing city.`}).option(`country`,{type:`string`,description:`Billing country.`}).option(`default`,{type:`boolean`,description:`Whether this is the default payment method.`}).option(`device-data`,{type:`string`,description:`Device data for fraud prevention.`}).option(`first-name`,{type:`string`,description:`Billing first name.`}).option(`last-name`,{type:`string`,description:`Billing last name.`}).option(`nick-name`,{type:`string`,description:`A nickname for the payment method.`}).option(`payment-account-email`,{type:`string`,description:`Email associated with the payment account.`}).option(`payment-email`,{type:`string`,description:`Payment email address.`}).option(`payment-gateway`,{type:`string`,description:`The payment gateway used.`}).option(`payment-nonce`,{type:`string`,description:`Payment nonce for tokenized payments.`}).option(`state`,{type:`string`,description:`Billing state.`}).option(`type`,{type:`string`,description:`The payment method type.`,choices:[`CREDIT_CARD`,`PAYPAL`,`CASHAPP`,`SEPA_DEBIT`,`LINK`,`ACH_DIRECT_DEBIT`]}).option(`zipcode`,{type:`string`,description:`Billing zip code.`}).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 <payment-method-id>`,describe:`Update Payment Method`,builder:ce,handler:async n=>l({command:`accounts billing payment-methods update`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing payment-methods update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/payment-methods/${n[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(n[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(n[`payment-method-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({address:m(n.address,`address`,`text`),address2:m(n.address2,`address2`,`text`),bank_account_type:m(n[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(n[`bank-code`],`bank-code`,`text`),bank_country:m(n[`bank-country`],`bank-country`,`text`),bank_name:m(n[`bank-name`],`bank-name`,`text`),bank_routing_number:m(n[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(n[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(n.city,`city`,`text`),country:m(n.country,`country`,`text`),default:n.default,device_data:m(n[`device-data`],`device-data`,`text`),first_name:m(n[`first-name`],`first-name`,`text`),last_name:m(n[`last-name`],`last-name`,`text`),nick_name:m(n[`nick-name`],`nick-name`,`text`),payment_account_email:m(n[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(n[`payment-email`],`payment-email`,`text`),payment_gateway:m(n[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(n[`payment-nonce`],`payment-nonce`,`text`),state:m(n.state,`state`,`text`),type:m(n.type,`type`,`text`),zipcode:m(n.zipcode,`zipcode`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:e,account_id:l,payment_method_id:n[`payment-method-id`]})),{successLabel:`Updated`});return}let u=p({address:m(n.address,`address`,`text`),address2:m(n.address2,`address2`,`text`),bank_account_type:m(n[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(n[`bank-code`],`bank-code`,`text`),bank_country:m(n[`bank-country`],`bank-country`,`text`),bank_name:m(n[`bank-name`],`bank-name`,`text`),bank_routing_number:m(n[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(n[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(n.city,`city`,`text`),country:m(n.country,`country`,`text`),default:n.default,device_data:m(n[`device-data`],`device-data`,`text`),first_name:m(n[`first-name`],`first-name`,`text`),last_name:m(n[`last-name`],`last-name`,`text`),nick_name:m(n[`nick-name`],`nick-name`,`text`),payment_account_email:m(n[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(n[`payment-email`],`payment-email`,`text`),payment_gateway:m(n[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(n[`payment-nonce`],`payment-nonce`,`text`),state:m(n.state,`state`,`text`),type:m(n.type,`type`,`text`),zipcode:m(n.zipcode,`zipcode`,`text`)});o(await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:u,account_id:l,payment_method_id:n[`payment-method-id`]})),{successLabel:`Updated`})})},ue={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(X).command(Q).command(re).command(ae).command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 accounts billing togglePdfInvoices
55
55
 
56
- Toggles PDF invoice generation for an account.`).option(`toggle`,{type:`boolean`,description:`Whether to enable or disable PDF invoice generation.`}).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 fe={command:`togglePdfInvoices`,describe:`Toggle PDF Invoices`,builder:de,handler:async t=>l({command:`accounts billing togglePdfInvoices`,classification:{safeFlags:[`toggle`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts billing togglePdfInvoices`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/invoices`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({toggle:t.toggle}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...e,account_id:l})),{successLabel:`Updated`});return}let u=p({toggle:t.toggle});o(await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...u,account_id:l})),{successLabel:`Updated`})})},pe={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(N).command(F).command(L).command(z).command(V).command(K).command(J).command(fe).command(W).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 accounts categories get by id <id>
56
+ Toggles PDF invoice generation for an account.`).option(`toggle`,{type:`boolean`,description:`Whether to enable or disable PDF invoice generation.`}).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 fe={command:`togglePdfInvoices`,describe:`Toggle PDF Invoices`,builder:de,handler:async n=>l({command:`accounts billing togglePdfInvoices`,classification:{safeFlags:[`toggle`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts billing togglePdfInvoices`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/invoices`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({toggle:n.toggle}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...e,account_id:l})),{successLabel:`Updated`});return}let u=p({toggle:n.toggle});o(await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...u,account_id:l})),{successLabel:`Updated`})})},pe={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(N).command(F).command(L).command(z).command(V).command(K).command(J).command(fe).command(W).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 accounts categories get by id <id>
57
57
 
58
- Get application category by ID.`).positional(`id`,{type:`string`,description:`Application category ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`id <id>`,describe:`Get application category`,builder:me,handler:async t=>l({command:`accounts categories get by id`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts categories get by id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/categories/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.categories.get.by.id({account_id:l,id:t.id})),{successLabel:`Loaded`})})},ge={command:`by`,describe:`Operations for categories.get.by`,builder:e=>e.command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _e(e){return e.usage(`$0 accounts categories get categories
58
+ Get application category by ID.`).positional(`id`,{type:`string`,description:`Application category ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`id <id>`,describe:`Get application category`,builder:me,handler:async n=>l({command:`accounts categories get by id`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts categories get by id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/categories/${n.id==null?`<id>`:encodeURIComponent(String(n.id))}`,pathParams:{id:String(n.id??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.categories.get.by.id({account_id:l,id:n.id})),{successLabel:`Loaded`})})},ge={command:`by`,describe:`Operations for categories.get.by`,builder:e=>e.command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _e(e){return e.usage(`$0 accounts categories get categories
59
59
 
60
- List application categories.`).option(`limit`,{type:`number`,description:`Limit of number of results to return.`}).option(`offset`,{type:`number`,description:`Offset of results to return.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`categories`,describe:`List application categories`,builder:_e,handler:async t=>l({command:`accounts categories get categories`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={limit:t.limit,offset:t.offset};if(t.dryRun){s({command:`cf accounts categories get categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/categories`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.categories.get.categories({account_id:u,...i})),{successLabel:`Loaded`})})},ye={command:`get`,describe:`Operations for categories.get`,builder:e=>e.command(ve).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},be={command:`categories`,describe:`Categories operations`,builder:e=>e.command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xe(e){return e.usage("$0 accounts create\n\nCreate an Account. To create the Account within an Organization, provide `unit.id` and omit `standalone`. To create a standalone Free Account, provide `standalone: true` and omit `unit`. Providing both fields is invalid. If you omit both fields, Cloudflare can determine the destination only when the User is an administrator of exactly one Organization. Cloudflare creates the Account in that Organization; otherwise, the request returns an error.").option(`idempotency-key`,{type:`string`,description:`Optional key that identifies an Account-creation request. Free Account creation can require exactly one valid key, so API clients should send a key with every Account-creation request. Reuse the same key when retrying the same request.`}).option(`name`,{type:`string`,description:`Account name`}).option(`standalone`,{type:`boolean`,description:"Set to `true` and omit `unit` to create a standalone Free Account. If provided, this field must be `true`."}).option(`unit-id`,{type:`string`,description:`Tenant unit ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Parameters for account creation`})}const Se={command:`create`,describe:`Create an Account`,builder:xe,handler:async e=>l({command:`accounts create`,classification:{safeFlags:[`standalone`,`dry-run`]}},e,async()=>{let t={};if(e[`idempotency-key`]!==void 0&&(t[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){s({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),standalone:e.standalone,unit:{id:m(e[`unit-id`],`unit-id`,`text`)}}):d(e.body)});return}let n=await a(e);if(e.body){let r=d(e.body);o(await c(`Creating`,async()=>i(n,`POST`,`/accounts`,{body:r,headers:Object.keys(t).length>0?t:void 0})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Account name`));let r={};e.name!==void 0&&u(r,[`name`],m(e.name,`name`,`text`)),e.standalone!==void 0&&u(r,[`standalone`],e.standalone),e[`unit-id`]!==void 0&&u(r,[`unit`,`id`],m(e[`unit-id`],`unit-id`,`text`)),o(await c(`Creating`,async()=>i(n,`POST`,`/accounts`,{body:Object.keys(r).length>0?r:void 0,headers:Object.keys(t).length>0?t:void 0})),{successLabel:`Created`})})};function Ce(e){return e.usage(`$0 accounts delete
60
+ List application categories.`).option(`limit`,{type:`number`,description:`Limit of number of results to return.`}).option(`offset`,{type:`number`,description:`Offset of results to return.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`categories`,describe:`List application categories`,builder:_e,handler:async n=>l({command:`accounts categories get categories`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={limit:n.limit,offset:n.offset};if(n.dryRun){s({command:`cf accounts categories get categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/categories`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.categories.get.categories({account_id:u,...i})),{successLabel:`Loaded`})})},ye={command:`get`,describe:`Operations for categories.get`,builder:e=>e.command(ve).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},be={command:`categories`,describe:`Categories operations`,builder:e=>e.command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xe(e){return e.usage("$0 accounts create\n\nCreate an Account. To create the Account within an Organization, provide `unit.id` and omit `standalone`. To create a standalone Free Account, provide `standalone: true` and omit `unit`. Providing both fields is invalid. If you omit both fields, Cloudflare can determine the destination only when the User is an administrator of exactly one Organization. Cloudflare creates the Account in that Organization; otherwise, the request returns an error.").option(`idempotency-key`,{type:`string`,description:`Optional key that identifies an Account-creation request. Free Account creation can require exactly one valid key, so API clients should send a key with every Account-creation request. Reuse the same key when retrying the same request.`}).option(`name`,{type:`string`,description:`Account name`}).option(`standalone`,{type:`boolean`,description:"Set to `true` and omit `unit` to create a standalone Free Account. If provided, this field must be `true`."}).option(`unit-id`,{type:`string`,description:`Tenant unit ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Parameters for account creation`})}const Se={command:`create`,describe:`Create an Account`,builder:xe,handler:async e=>l({command:`accounts create`,classification:{safeFlags:[`standalone`,`dry-run`]}},e,async()=>{let t={};if(e[`idempotency-key`]!==void 0&&(t[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){s({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),standalone:e.standalone,unit:{id:m(e[`unit-id`],`unit-id`,`text`)}}):d(e.body)});return}let n=await a(e);if(e.body){let r=d(e.body);o(await c(`Creating`,async()=>i(n,`POST`,`/accounts`,{body:r,headers:Object.keys(t).length>0?t:void 0})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Account name`));let r={};e.name!==void 0&&u(r,[`name`],m(e.name,`name`,`text`)),e.standalone!==void 0&&u(r,[`standalone`],e.standalone),e[`unit-id`]!==void 0&&u(r,[`unit`,`id`],m(e[`unit-id`],`unit-id`,`text`)),o(await c(`Creating`,async()=>i(n,`POST`,`/accounts`,{body:Object.keys(r).length>0?r:void 0,headers:Object.keys(t).length>0?t:void 0})),{successLabel:`Created`})})};function Ce(e){return e.usage(`$0 accounts delete
61
61
 
62
- Delete a specific account (only available for tenant admins at this time). This is a permanent operation that will delete any zones or other resources under the account`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const we={command:`delete`,describe:`Delete a specific account`,builder:Ce,handler:async t=>l({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
62
+ Delete a specific account (only available for tenant admins at this time). This is a permanent operation that will delete any zones or other resources under the account`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const we={command:`delete`,describe:`Delete a specific account`,builder:Ce,handler:async n=>l({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
63
63
  `);return}o(await c(`Deleting`,async()=>i.accounts.delete({account_id:l})),{successLabel:`Deleted`})})};function Te(e){return e.usage(`$0 accounts get
64
64
 
65
- Get information about a specific account that you are a member of.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`get`,describe:`Account Details`,builder:Te,handler:async t=>l({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.get({account_id:l})),{successLabel:`Loaded`})})};function De(e){return e.usage(`$0 accounts list
65
+ Get information about a specific account that you are a member of.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`get`,describe:`Account Details`,builder:Te,handler:async n=>l({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.get({account_id:l})),{successLabel:`Loaded`})})};function De(e){return e.usage(`$0 accounts list
66
66
 
67
- List all accounts you have ownership or verified access to.`).option(`name`,{type:`string`,description:`Name of the account.`}).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`list`,describe:`List Accounts`,builder:v(De),handler:async e=>l({command:`accounts list`,classification:{safeFlags:[`direction`,`dry-run`]}},e,async()=>{let t={name:e.name,page:e.page,per_page:e[`per-page`],direction:e.direction};if(e.dryRun){s({command:`cf accounts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},query:t,bodyKind:`none`});return}let n=await a(e);o(await c(`Loading`,async()=>n.accounts.list(t)),{successLabel:`Loaded`})})};function ke(e){return e.usage("$0 accounts logs audit history <id>\n\nReturns the chronological change history for the resource identified by the given audit log entry. The endpoint first locates the source audit log entry by `id` (using `action_time` to narrow the lookup window), derives identifying filters from that entry, and then returns matching audit logs within the `since`/`before` window. The `result_info.history_status` field indicates the quality of the resource identification used: - `exact`: Resource was identified by the resource URI. - `approximate`: Resource was identified without the resource URI. - `unavailable`: The source audit log entry did not contain enough information to identify the resource; an empty result is returned.").positional(`id`,{type:`string`,description:`The ID of the audit log to fetch resource history for.`,demandOption:!0}).option(`action-time`,{type:`string`,description:"RFC3339 timestamp of the source audit log entry's action time. Used to narrow the source-entry lookup window. Provide the `action.time` value from the audit log identified by `id`.",demandOption:!0}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`history <id>`,describe:`Get resource change history from an account audit log entry (Version 2)`,builder:v(ke),handler:async t=>l({command:`accounts logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},t,async()=>{let i={action_time:t[`action-time`],since:t.since,before:t.before,direction:t.direction,limit:t.limit,cursor:t.cursor};if(t.dryRun){s({command:`cf accounts logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/logs/audit/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}/history`,pathParams:{id:String(t.id??``)},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.logs.audit.history({account_id:u,id:t.id,...i})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 accounts logs audit list
67
+ List all accounts you have ownership or verified access to.`).option(`name`,{type:`string`,description:`Name of the account.`}).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`list`,describe:`List Accounts`,builder:v(De),handler:async e=>l({command:`accounts list`,classification:{safeFlags:[`direction`,`dry-run`]}},e,async()=>{let t={name:e.name,page:e.page,per_page:e[`per-page`],direction:e.direction};if(e.dryRun){s({command:`cf accounts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},query:t,bodyKind:`none`});return}let n=await a(e);o(await c(`Loading`,async()=>n.accounts.list(t)),{successLabel:`Loaded`})})};function ke(e){return e.usage("$0 accounts logs audit history <id>\n\nReturns the chronological change history for the resource identified by the given audit log entry. The endpoint first locates the source audit log entry by `id` (using `action_time` to narrow the lookup window), derives identifying filters from that entry, and then returns matching audit logs within the `since`/`before` window. The `result_info.history_status` field indicates the quality of the resource identification used: - `exact`: Resource was identified by the resource URI. - `approximate`: Resource was identified without the resource URI. - `unavailable`: The source audit log entry did not contain enough information to identify the resource; an empty result is returned.").positional(`id`,{type:`string`,description:`The ID of the audit log to fetch resource history for.`,demandOption:!0}).option(`action-time`,{type:`string`,description:"RFC3339 timestamp of the source audit log entry's action time. Used to narrow the source-entry lookup window. Provide the `action.time` value from the audit log identified by `id`.",demandOption:!0}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`history <id>`,describe:`Get resource change history from an account audit log entry (Version 2)`,builder:v(ke),handler:async n=>l({command:`accounts logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},n,async()=>{let i={action_time:n[`action-time`],since:n.since,before:n.before,direction:n.direction,limit:n.limit,cursor:n.cursor};if(n.dryRun){s({command:`cf accounts logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/logs/audit/${n.id==null?`<id>`:encodeURIComponent(String(n.id))}/history`,pathParams:{id:String(n.id??``)},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.logs.audit.history({account_id:u,id:n.id,...i})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 accounts logs audit list
68
68
 
69
- Gets a list of audit logs for an account.`).option(`account-name`,{type:`string`,description:`Filters by the account name.`}).option(`action-result`,{type:`string`,description:`Filters by whether the action was successful or not.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-context`,{type:`string`,description:"Filters by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email`,{type:`string`,description:`Filters by the actor's email address.`}).option(`actor-id`,{type:`string`,description:`Filters by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address`,{type:`string`,description:`The IP address where the action was initiated.`}).option(`actor-token-id`,{type:`string`,description:`Filters by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name`,{type:`string`,description:`Filters by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type`,{type:`string`,description:`Filters by the actor type.`}).option(`audit-log-id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`raw-cf-ray-id`,{type:`string`,description:`Filters by the response CF Ray ID.`}).option(`raw-method`,{type:`string`,description:`The HTTP method for the API call.`}).option(`raw-status-code`,{type:`string`,description:`The response status code that was returned.`}).option(`raw-uri`,{type:`string`,description:`Filters by the request URI.`}).option(`resource-id`,{type:`string`,description:`Filters by the resource ID.`}).option(`resource-product`,{type:`string`,description:`Filters audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type`,{type:`string`,description:`Filters audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope`,{type:`string`,description:`Filters by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`product-category`,{type:`string`,description:`Filters audit logs by one or more predefined product categories. Each product category expands into a curated set of resource_product values and is unioned with any explicit resource_product filter. Matched case-insensitively; unknown product categories return 400. Repeatable. Use the audit log product categories endpoint to discover the available values.`}).option(`zone-id`,{type:`string`,description:`Filters by the zone ID.`}).option(`zone-name`,{type:`string`,description:`Filters by the zone name associated with the change.`}).option(`account-name-not`,{type:`string`,description:`Filters out audit logs by the account name.`}).option(`action-result-not`,{type:`string`,description:`Filters out audit logs by whether the action was successful or not.`}).option(`action-type-not`,{type:`string`,description:`Filters out audit logs by the action type.`}).option(`actor-context-not`,{type:`string`,description:"Filters out audit logs by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email-not`,{type:`string`,description:`Filters out audit logs by the actor's email address.`}).option(`actor-id-not`,{type:`string`,description:`Filters out audit logs by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address-not`,{type:`string`,description:`Filters out audit logs IP address where the action was initiated.`}).option(`actor-token-id-not`,{type:`string`,description:`Filters out audit logs by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name-not`,{type:`string`,description:`Filters out audit logs by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type-not`,{type:`string`,description:`Filters out audit logs by the actor type.`}).option(`audit-log-id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`raw-cf-ray-id-not`,{type:`string`,description:`Filters out audit logs by the response CF Ray ID.`}).option(`raw-method-not`,{type:`string`,description:`Filters out audit logs by the HTTP method for the API call.`}).option(`raw-status-code-not`,{type:`string`,description:`Filters out audit logs by the response status code that was returned.`}).option(`raw-uri-not`,{type:`string`,description:`Filters out audit logs by the request URI.`}).option(`resource-id-not`,{type:`string`,description:`Filters out audit logs by the resource ID.`}).option(`resource-product-not`,{type:`string`,description:`Filters out audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type-not`,{type:`string`,description:`Filters out audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope-not`,{type:`string`,description:`Filters out audit logs by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`zone-id-not`,{type:`string`,description:`Filters out audit logs by the zone ID.`}).option(`zone-name-not`,{type:`string`,description:`Filters out audit logs by the zone name associated with the change.`}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`Get account audit logs (Version 2)`,builder:v(je),handler:async t=>l({command:`accounts logs audit list`,classification:{safeFlags:[`direction`,`dry-run`]}},t,async()=>{let i={account_name:t[`account-name`],action_result:t[`action-result`],action_type:t[`action-type`],actor_context:t[`actor-context`],actor_email:t[`actor-email`],actor_id:t[`actor-id`],actor_ip_address:t[`actor-ip-address`],actor_token_id:t[`actor-token-id`],actor_token_name:t[`actor-token-name`],actor_type:t[`actor-type`],audit_log_id:t[`audit-log-id`],id:t.id,raw_cf_ray_id:t[`raw-cf-ray-id`],raw_method:t[`raw-method`],raw_status_code:t[`raw-status-code`],raw_uri:t[`raw-uri`],resource_id:t[`resource-id`],resource_product:t[`resource-product`],resource_type:t[`resource-type`],resource_scope:t[`resource-scope`],product_category:t[`product-category`],zone_id:t[`zone-id`],zone_name:t[`zone-name`],"account_name.not":t[`account-name-not`],"action_result.not":t[`action-result-not`],"action_type.not":t[`action-type-not`],"actor_context.not":t[`actor-context-not`],"actor_email.not":t[`actor-email-not`],"actor_id.not":t[`actor-id-not`],"actor_ip_address.not":t[`actor-ip-address-not`],"actor_token_id.not":t[`actor-token-id-not`],"actor_token_name.not":t[`actor-token-name-not`],"actor_type.not":t[`actor-type-not`],"audit_log_id.not":t[`audit-log-id-not`],"id.not":t[`id-not`],"raw_cf_ray_id.not":t[`raw-cf-ray-id-not`],"raw_method.not":t[`raw-method-not`],"raw_status_code.not":t[`raw-status-code-not`],"raw_uri.not":t[`raw-uri-not`],"resource_id.not":t[`resource-id-not`],"resource_product.not":t[`resource-product-not`],"resource_type.not":t[`resource-type-not`],"resource_scope.not":t[`resource-scope-not`],"zone_id.not":t[`zone-id-not`],"zone_name.not":t[`zone-name-not`],since:t.since,before:t.before,direction:t.direction,limit:t.limit,cursor:t.cursor};if(t.dryRun){s({command:`cf accounts logs audit list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/logs/audit`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.logs.audit.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ne(e){return e.usage(`$0 accounts logs audit product-categories
69
+ Gets a list of audit logs for an account.`).option(`account-name`,{type:`string`,description:`Filters by the account name.`}).option(`action-result`,{type:`string`,description:`Filters by whether the action was successful or not.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-context`,{type:`string`,description:"Filters by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email`,{type:`string`,description:`Filters by the actor's email address.`}).option(`actor-id`,{type:`string`,description:`Filters by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address`,{type:`string`,description:`The IP address where the action was initiated.`}).option(`actor-token-id`,{type:`string`,description:`Filters by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name`,{type:`string`,description:`Filters by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type`,{type:`string`,description:`Filters by the actor type.`}).option(`audit-log-id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`raw-cf-ray-id`,{type:`string`,description:`Filters by the response CF Ray ID.`}).option(`raw-method`,{type:`string`,description:`The HTTP method for the API call.`}).option(`raw-status-code`,{type:`string`,description:`The response status code that was returned.`}).option(`raw-uri`,{type:`string`,description:`Filters by the request URI.`}).option(`resource-id`,{type:`string`,description:`Filters by the resource ID.`}).option(`resource-product`,{type:`string`,description:`Filters audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type`,{type:`string`,description:`Filters audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope`,{type:`string`,description:`Filters by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`product-category`,{type:`string`,description:`Filters audit logs by one or more predefined product categories. Each product category expands into a curated set of resource_product values and is unioned with any explicit resource_product filter. Matched case-insensitively; unknown product categories return 400. Repeatable. Use the audit log product categories endpoint to discover the available values.`}).option(`zone-id`,{type:`string`,description:`Filters by the zone ID.`}).option(`zone-name`,{type:`string`,description:`Filters by the zone name associated with the change.`}).option(`account-name-not`,{type:`string`,description:`Filters out audit logs by the account name.`}).option(`action-result-not`,{type:`string`,description:`Filters out audit logs by whether the action was successful or not.`}).option(`action-type-not`,{type:`string`,description:`Filters out audit logs by the action type.`}).option(`actor-context-not`,{type:`string`,description:"Filters out audit logs by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email-not`,{type:`string`,description:`Filters out audit logs by the actor's email address.`}).option(`actor-id-not`,{type:`string`,description:`Filters out audit logs by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address-not`,{type:`string`,description:`Filters out audit logs IP address where the action was initiated.`}).option(`actor-token-id-not`,{type:`string`,description:`Filters out audit logs by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name-not`,{type:`string`,description:`Filters out audit logs by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type-not`,{type:`string`,description:`Filters out audit logs by the actor type.`}).option(`audit-log-id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`raw-cf-ray-id-not`,{type:`string`,description:`Filters out audit logs by the response CF Ray ID.`}).option(`raw-method-not`,{type:`string`,description:`Filters out audit logs by the HTTP method for the API call.`}).option(`raw-status-code-not`,{type:`string`,description:`Filters out audit logs by the response status code that was returned.`}).option(`raw-uri-not`,{type:`string`,description:`Filters out audit logs by the request URI.`}).option(`resource-id-not`,{type:`string`,description:`Filters out audit logs by the resource ID.`}).option(`resource-product-not`,{type:`string`,description:`Filters out audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type-not`,{type:`string`,description:`Filters out audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope-not`,{type:`string`,description:`Filters out audit logs by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`zone-id-not`,{type:`string`,description:`Filters out audit logs by the zone ID.`}).option(`zone-name-not`,{type:`string`,description:`Filters out audit logs by the zone name associated with the change.`}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`Get account audit logs (Version 2)`,builder:v(je),handler:async n=>l({command:`accounts logs audit list`,classification:{safeFlags:[`direction`,`dry-run`]}},n,async()=>{let i={account_name:n[`account-name`],action_result:n[`action-result`],action_type:n[`action-type`],actor_context:n[`actor-context`],actor_email:n[`actor-email`],actor_id:n[`actor-id`],actor_ip_address:n[`actor-ip-address`],actor_token_id:n[`actor-token-id`],actor_token_name:n[`actor-token-name`],actor_type:n[`actor-type`],audit_log_id:n[`audit-log-id`],id:n.id,raw_cf_ray_id:n[`raw-cf-ray-id`],raw_method:n[`raw-method`],raw_status_code:n[`raw-status-code`],raw_uri:n[`raw-uri`],resource_id:n[`resource-id`],resource_product:n[`resource-product`],resource_type:n[`resource-type`],resource_scope:n[`resource-scope`],product_category:n[`product-category`],zone_id:n[`zone-id`],zone_name:n[`zone-name`],"account_name.not":n[`account-name-not`],"action_result.not":n[`action-result-not`],"action_type.not":n[`action-type-not`],"actor_context.not":n[`actor-context-not`],"actor_email.not":n[`actor-email-not`],"actor_id.not":n[`actor-id-not`],"actor_ip_address.not":n[`actor-ip-address-not`],"actor_token_id.not":n[`actor-token-id-not`],"actor_token_name.not":n[`actor-token-name-not`],"actor_type.not":n[`actor-type-not`],"audit_log_id.not":n[`audit-log-id-not`],"id.not":n[`id-not`],"raw_cf_ray_id.not":n[`raw-cf-ray-id-not`],"raw_method.not":n[`raw-method-not`],"raw_status_code.not":n[`raw-status-code-not`],"raw_uri.not":n[`raw-uri-not`],"resource_id.not":n[`resource-id-not`],"resource_product.not":n[`resource-product-not`],"resource_type.not":n[`resource-type-not`],"resource_scope.not":n[`resource-scope-not`],"zone_id.not":n[`zone-id-not`],"zone_name.not":n[`zone-name-not`],since:n.since,before:n.before,direction:n.direction,limit:n.limit,cursor:n.cursor};if(n.dryRun){s({command:`cf accounts logs audit list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/logs/audit`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.logs.audit.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ne(e){return e.usage(`$0 accounts logs audit product-categories
70
70
 
71
- Lists the available audit log product categories and the resource products each one expands to. Use these values with the product_category filter on the account audit logs endpoint.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pe={command:`product-categories`,describe:`List account audit log product categories (Version 2)`,builder:Ne,handler:async t=>l({command:`accounts logs audit product-categories`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts logs audit product-categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/logs/audit/product_categories`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.logs.audit.productCategories({account_id:l})),{successLabel:`Loaded`})})},Fe={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(Ae).command(Me).command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ie={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Le(e){return e.usage(`$0 accounts members create
71
+ Lists the available audit log product categories and the resource products each one expands to. Use these values with the product_category filter on the account audit logs endpoint.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pe={command:`product-categories`,describe:`List account audit log product categories (Version 2)`,builder:Ne,handler:async n=>l({command:`accounts logs audit product-categories`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts logs audit product-categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/logs/audit/product_categories`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.logs.audit.productCategories({account_id:l})),{successLabel:`Loaded`})})},Fe={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(Ae).command(Me).command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ie={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Le(e){return e.usage(`$0 accounts members create
72
72
 
73
73
  Add a user to the list of members for this account.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).option(`roles`,{type:`string`,array:!0,description:`Array of roles associated with this member.`}).option(`status`,{type:`string`,description:`Status of the member invitation. If not provided during creation, defaults to 'pending'.
74
74
  Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
75
- `,choices:[`accepted`,`pending`]}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Re={command:`create`,describe:`Add Member`,builder:Le,handler:async t=>l({command:`accounts members create`,classification:{safeFlags:[`status`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/members`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({email:m(t.email,`email`,`text`),roles:t.roles,status:m(t.status,`status`,`text`),policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.members.create({body:e,account_id:l})),{successLabel:`Created`});return}t.email===void 0&&(t.email=await h(`email`,`The contact email address of the user.`));let u=p({email:m(t.email,`email`,`text`),roles:t.roles,status:m(t.status,`status`,`text`),policies:f(t.policies,`policies`)});o(await c(`Creating`,async()=>i.accounts.members.create({body:u,account_id:l})),{successLabel:`Created`})})};function ze(e){return e.usage(`$0 accounts members delete <member-id>
75
+ `,choices:[`accepted`,`pending`]}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Re={command:`create`,describe:`Add Member`,builder:Le,handler:async n=>l({command:`accounts members create`,classification:{safeFlags:[`status`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({email:m(n.email,`email`,`text`),roles:n.roles,status:m(n.status,`status`,`text`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.members.create({body:e,account_id:l})),{successLabel:`Created`});return}n.email===void 0&&(n.email=await h(`email`,`The contact email address of the user.`));let u=p({email:m(n.email,`email`,`text`),roles:n.roles,status:m(n.status,`status`,`text`),policies:f(n.policies,`policies`)});o(await c(`Creating`,async()=>i.accounts.members.create({body:u,account_id:l})),{successLabel:`Created`})})};function ze(e){return e.usage(`$0 accounts members delete <member-id>
76
76
 
77
- Remove a member from an account.`).positional(`member-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 Be={command:`delete <member-id>`,describe:`Remove Member`,builder:ze,handler:async t=>l({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
78
- `);return}o(await c(`Deleting`,async()=>i.accounts.members.delete({account_id:l,member_id:t[`member-id`]})),{successLabel:`Deleted`})})};function Ve(e){return e.usage(`$0 accounts members get <member-id>
77
+ Remove a member from an account.`).positional(`member-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 Be={command:`delete <member-id>`,describe:`Remove Member`,builder:ze,handler:async n=>l({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members/${n[`member-id`]==null?`<member-id>`:encodeURIComponent(String(n[`member-id`]))}`,pathParams:{"member-id":String(n[`member-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
78
+ `);return}o(await c(`Deleting`,async()=>i.accounts.members.delete({account_id:l,member_id:n[`member-id`]})),{successLabel:`Deleted`})})};function Ve(e){return e.usage(`$0 accounts members get <member-id>
79
79
 
80
- Get information about a specific member of an account.`).positional(`member-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 He={command:`get <member-id>`,describe:`Member Details`,builder:Ve,handler:async t=>l({command:`accounts members get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.members.get({account_id:l,member_id:t[`member-id`]})),{successLabel:`Loaded`})})};function Ue(e){return e.usage(`$0 accounts members list
80
+ Get information about a specific member of an account.`).positional(`member-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 He={command:`get <member-id>`,describe:`Member Details`,builder:Ve,handler:async n=>l({command:`accounts members get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members/${n[`member-id`]==null?`<member-id>`:encodeURIComponent(String(n[`member-id`]))}`,pathParams:{"member-id":String(n[`member-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.members.get({account_id:l,member_id:n[`member-id`]})),{successLabel:`Loaded`})})};function Ue(e){return e.usage(`$0 accounts members list
81
81
 
82
- List all members of an account.`).option(`order`,{type:`string`,description:`Field to order results by.`,choices:[`user.first_name`,`user.last_name`,`user.email`,`status`]}).option(`status`,{type:`string`,description:`A member's status in the account.`,choices:[`accepted`,`pending`,`rejected`]}).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`list`,describe:`List Members`,builder:v(Ue),handler:async t=>l({command:`accounts members list`,classification:{safeFlags:[`order`,`status`,`direction`,`dry-run`]}},t,async()=>{let i={order:t.order,status:t.status,page:t.page,per_page:t[`per-page`],direction:t.direction};if(t.dryRun){s({command:`cf accounts members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/members`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.members.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ge(e){return e.usage(`$0 accounts members update <member-id>
82
+ List all members of an account.`).option(`order`,{type:`string`,description:`Field to order results by.`,choices:[`user.first_name`,`user.last_name`,`user.email`,`status`]}).option(`status`,{type:`string`,description:`A member's status in the account.`,choices:[`accepted`,`pending`,`rejected`]}).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`list`,describe:`List Members`,builder:v(Ue),handler:async n=>l({command:`accounts members list`,classification:{safeFlags:[`order`,`status`,`direction`,`dry-run`]}},n,async()=>{let i={order:n.order,status:n.status,page:n.page,per_page:n[`per-page`],direction:n.direction};if(n.dryRun){s({command:`cf accounts members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.members.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ge(e){return e.usage(`$0 accounts members update <member-id>
83
83
 
84
- Modify an account member.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`roles`,{type:`string`,description:`Roles assigned to this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Ke={command:`update <member-id>`,describe:`Update Member`,builder:Ge,handler:async t=>l({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({roles:f(t.roles,`roles`),policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.members.update({body:e,account_id:l,member_id:t[`member-id`]})),{successLabel:`Updated`});return}let u=p({roles:f(t.roles,`roles`),policies:f(t.policies,`policies`)});o(await c(`Updating`,async()=>i.accounts.members.update({body:u,account_id:l,member_id:t[`member-id`]})),{successLabel:`Updated`})})},qe={command:`members`,describe:`Operations for members`,builder:e=>e.command(Re).command(Be).command(He).command(We).command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Je(e){return e.usage(`$0 accounts subscriptions cancelDelayedDowngrade
84
+ Modify an account member.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`roles`,{type:`string`,description:`Roles assigned to this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Ke={command:`update <member-id>`,describe:`Update Member`,builder:Ge,handler:async n=>l({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members/${n[`member-id`]==null?`<member-id>`:encodeURIComponent(String(n[`member-id`]))}`,pathParams:{"member-id":String(n[`member-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.members.update({body:e,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`});return}let u=p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)});o(await c(`Updating`,async()=>i.accounts.members.update({body:u,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`})})},qe={command:`members`,describe:`Operations for members`,builder:e=>e.command(Re).command(Be).command(He).command(We).command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Je(e){return e.usage(`$0 accounts move
85
85
 
86
- Cancels pending delayed downgrades for the specified subscriptions.`).option(`subscription-ids`,{type:`string`,array:!0,description:`List of subscription identifiers to cancel downgrades for.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ye={command:`cancelDelayedDowngrade`,describe:`Cancel Delayed Downgrade`,builder:Je,handler:async t=>l({command:`accounts subscriptions cancelDelayedDowngrade`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions cancelDelayedDowngrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({subscription_ids:t[`subscription-ids`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...e,account_id:l})),{successLabel:`Created`});return}let u=p({subscription_ids:t[`subscription-ids`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...u,account_id:l})),{successLabel:`Created`})})};function Xe(e){return e.usage(`$0 accounts subscriptions create
86
+ Move an account into a destination organization, either assigning a standalone account to an organization or moving it between organizations in the same hierarchy. Availability depends on the organization's capabilities. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`destination-organization-id`,{type:`string`,description:`The ID of the organization to move the account into.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The destination organization ID is where the account is to be moved.`})}const Ye={command:`move`,describe:`Move account to organization`,builder:Je,handler:async n=>l({command:`accounts move`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/move`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({destination_organization_id:m(n[`destination-organization-id`],`destination-organization-id`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.move({...e,account_id:l})),{successLabel:`Created`});return}n[`destination-organization-id`]===void 0&&(n[`destination-organization-id`]=await h(`destination-organization-id`,`The ID of the organization to move the account into.`));let u=p({destination_organization_id:m(n[`destination-organization-id`],`destination-organization-id`,`text`)});o(await c(`Creating`,async()=>i.accounts.move({...u,account_id:l})),{successLabel:`Created`})})};function Xe(e){return e.usage(`$0 accounts organization list
87
87
 
88
- Creates an account or zone subscription.`).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 Ze={command:`create`,describe:`Create Subscription`,builder:Xe,handler:async i=>l({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await r():void 0,t=i.zone===void 0?`accounts`:`zones`,n=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/subscriptions`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:i.body===void 0?p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}}):d(i.body)});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,h=u===`zones`?await t({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await n();if(u===`zones`?i.zoneId=h:i.accountId=h,i.body){let e=d(i.body);o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:e,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`});return}let g=p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}});o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:g,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`})})};function Qe(e){return e.usage(`$0 accounts subscriptions createCancelReason <subscription-identifier>
88
+ Retrieve a list of the organizations that "contain" this account or are managing it. The returned list will be in order from "root" to "leaf", where the "leaf" will be the organization that _immediately_ contains the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`list`,describe:`List account organizations`,builder:Xe,handler:async n=>l({command:`accounts organization list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts organization list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/organizations`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.organization.list({account_id:l})),{successLabel:`Loaded`})})},Qe={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $e(e){return e.usage(`$0 accounts profile get
89
89
 
90
- Records a cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`other`,{type:`string`,description:`Additional cancellation details.`}).option(`reason-code`,{type:`string`,array:!0,description:`The cancellation reason codes.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const $e={command:`createCancelReason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:Qe,handler:async t=>l({command:`accounts subscriptions createCancelReason`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions createCancelReason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?p({other:m(t.other,`other`,`text`),reason_code:t[`reason-code`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...e,account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Created`});return}let u=p({other:m(t.other,`other`,`text`),reason_code:t[`reason-code`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...u,account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Created`})})};function et(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
90
+ Retrieves the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Profiles can be shared across accounts and organizations. Only available to members of an organization that contains the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`get`,describe:`Get account profile`,builder:$e,handler:async n=>l({command:`accounts profile get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/profile`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.profile.get({account_id:l})),{successLabel:`Loaded`})})};function tt(e){return e.usage(`$0 accounts profile update
91
91
 
92
- Deletes an account's subscription.`).positional(`subscription-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 tt={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:et,handler:async t=>l({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force})){process.stderr.write(`Aborted.
93
- `);return}o(await c(`Deleting`,async()=>i.accounts.subscriptions.delete({account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Deleted`})})};function nt(e){return e.usage(`$0 accounts subscriptions get
92
+ Updates the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Changes apply to every account and organization sharing that profile. Omitted or empty fields are left unchanged. Only available to members of an organization that contains the account. Requires Account Settings Write permission.`).option(`business-address`,{type:`string`,description:`The business_address field`}).option(`business-email`,{type:`string`,description:`The business_email field`}).option(`business-name`,{type:`string`,description:`The business_name field`}).option(`business-phone`,{type:`string`,description:`The business_phone field`}).option(`external-metadata`,{type:`string`,description:`The external_metadata field`}).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 nt={command:`update`,describe:`Update account profile`,builder:tt,handler:async n=>l({command:`accounts profile update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts profile update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/profile`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({business_address:m(n[`business-address`],`business-address`,`text`),business_email:m(n[`business-email`],`business-email`,`text`),business_name:m(n[`business-name`],`business-name`,`text`),business_phone:m(n[`business-phone`],`business-phone`,`text`),external_metadata:m(n[`external-metadata`],`external-metadata`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.profile.update({body:e,account_id:l})),{successLabel:`Updated`});return}n[`business-address`]===void 0&&(n[`business-address`]=await h(`business-address`,`The business_address field`)),n[`business-email`]===void 0&&(n[`business-email`]=await h(`business-email`,`The business_email field`)),n[`business-name`]===void 0&&(n[`business-name`]=await h(`business-name`,`The business_name field`)),n[`business-phone`]===void 0&&(n[`business-phone`]=await h(`business-phone`,`The business_phone field`)),n[`external-metadata`]===void 0&&(n[`external-metadata`]=await h(`external-metadata`,`The external_metadata field`));let u=p({business_address:m(n[`business-address`],`business-address`,`text`),business_email:m(n[`business-email`],`business-email`,`text`),business_name:m(n[`business-name`],`business-name`,`text`),business_phone:m(n[`business-phone`],`business-phone`,`text`),external_metadata:m(n[`external-metadata`],`external-metadata`,`text`)});o(await c(`Updating`,async()=>i.accounts.profile.update({body:u,account_id:l})),{successLabel:`Updated`})})},rt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(et).command(nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function it(e){return e.usage(`$0 accounts subscriptions cancelDelayedDowngrade
94
93
 
95
- Lists all of an account or zone's subscriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`get`,describe:`List Subscriptions`,builder:nt,handler:async i=>l({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await r():void 0,t=i.zone===void 0?`accounts`:`zones`,n=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/subscriptions`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`none`});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await n();u===`zones`?i.zoneId=d:i.accountId=d,o(await c(`Loading`,async()=>l.accounts.subscriptions.get({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function it(e){return e.usage(`$0 accounts subscriptions getByIdentifier <subscription-identifier>
94
+ Cancels pending delayed downgrades for the specified subscriptions.`).option(`subscription-ids`,{type:`string`,array:!0,description:`List of subscription identifiers to cancel downgrades for.`}).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:`cancelDelayedDowngrade`,describe:`Cancel Delayed Downgrade`,builder:it,handler:async n=>l({command:`accounts subscriptions cancelDelayedDowngrade`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions cancelDelayedDowngrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({subscription_ids:n[`subscription-ids`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...e,account_id:l})),{successLabel:`Created`});return}let u=p({subscription_ids:n[`subscription-ids`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...u,account_id:l})),{successLabel:`Created`})})};function ot(e){return e.usage(`$0 accounts subscriptions create
96
95
 
97
- Gets an account subscription by identifier.`).positional(`subscription-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})}const at={command:`getByIdentifier <subscription-identifier>`,describe:`Get Subscription`,builder:it,handler:async t=>l({command:`accounts subscriptions getByIdentifier`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions getByIdentifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getByIdentifier({account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Loaded`})})};function ot(e){return e.usage(`$0 accounts subscriptions getCancelReason <subscription-identifier>
96
+ Creates an account or zone subscription.`).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 st={command:`create`,describe:`Create Subscription`,builder:ot,handler:async i=>l({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:i.body===void 0?p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}}):d(i.body)});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,h=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(u===`zones`?i.zoneId=h:i.accountId=h,i.body){let e=d(i.body);o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:e,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`});return}let g=p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}});o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:g,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`})})};function ct(e){return e.usage(`$0 accounts subscriptions createCancelReason <subscription-identifier>
98
97
 
99
- Gets the cancellation reason for an account subscription.`).positional(`subscription-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})}const st={command:`getCancelReason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:ot,handler:async t=>l({command:`accounts subscriptions getCancelReason`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions getCancelReason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getCancelReason({account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Loaded`})})};function ct(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
98
+ Records a cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`other`,{type:`string`,description:`Additional cancellation details.`}).option(`reason-code`,{type:`string`,array:!0,description:`The cancellation reason codes.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const lt={command:`createCancelReason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:ct,handler:async n=>l({command:`accounts subscriptions createCancelReason`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions createCancelReason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`json`,body:n.body===void 0?p({other:m(n.other,`other`,`text`),reason_code:n[`reason-code`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...e,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Created`});return}let u=p({other:m(n.other,`other`,`text`),reason_code:n[`reason-code`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...u,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Created`})})};function ut(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
100
99
 
101
- Updates an account subscription.`).positional(`subscription-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 lt={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:ct,handler:async t=>l({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:m(t.frequency,`frequency`,`text`),rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:e,account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Updated`});return}let u=p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:m(t.frequency,`frequency`,`text`),rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}});o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:u,account_id:l,subscription_identifier:t[`subscription-identifier`]})),{successLabel:`Updated`})})},ut={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(Ye).command(Ze).command($e).command(tt).command(rt).command(at).command(st).command(lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function dt(e){return e.usage(`$0 accounts tokens create
100
+ Deletes an account's subscription.`).positional(`subscription-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 dt={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:ut,handler:async n=>l({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force})){process.stderr.write(`Aborted.
101
+ `);return}o(await c(`Deleting`,async()=>i.accounts.subscriptions.delete({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Deleted`})})};function ft(e){return e.usage(`$0 accounts subscriptions get
102
102
 
103
- Create a new Account Owned API 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 ft={command:`create`,describe:`Create Token`,builder:dt,handler:async t=>l({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.tokens.create({body:e,account_id:l})),{successLabel:`Created`});return}if(t.name===void 0&&(t.name=await h(`name`,`Token name.`)),t.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`)});o(await c(`Creating`,async()=>i.accounts.tokens.create({body:u,account_id:l})),{successLabel:`Created`})})};function pt(e){return e.usage(`$0 accounts tokens delete <token-id>
103
+ Lists all of an account or zone's subscriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pt={command:`get`,describe:`List Subscriptions`,builder:ft,handler:async i=>l({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();u===`zones`?i.zoneId=d:i.accountId=d,o(await c(`Loading`,async()=>l.accounts.subscriptions.get({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function mt(e){return e.usage(`$0 accounts subscriptions getByIdentifier <subscription-identifier>
104
104
 
105
- Destroy an Account Owned API 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 mt={command:`delete <token-id>`,describe:`Delete Token`,builder:pt,handler:async t=>l({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
106
- `);return}o(await c(`Deleting`,async()=>i.accounts.tokens.delete({account_id:l,token_id:t[`token-id`]})),{successLabel:`Deleted`})})};function ht(e){return e.usage(`$0 accounts tokens get <token-id>
105
+ Gets an account subscription by identifier.`).positional(`subscription-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})}const ht={command:`getByIdentifier <subscription-identifier>`,describe:`Get Subscription`,builder:mt,handler:async n=>l({command:`accounts subscriptions getByIdentifier`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions getByIdentifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getByIdentifier({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Loaded`})})};function gt(e){return e.usage(`$0 accounts subscriptions getCancelReason <subscription-identifier>
107
106
 
108
- Get information about a specific Account Owned API 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 gt={command:`get <token-id>`,describe:`Token Details`,builder:ht,handler:async t=>l({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.get({account_id:l,token_id:t[`token-id`]})),{successLabel:`Loaded`})})};function _t(e){return e.usage(`$0 accounts tokens list
107
+ Gets the cancellation reason for an account subscription.`).positional(`subscription-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})}const _t={command:`getCancelReason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:gt,handler:async n=>l({command:`accounts subscriptions getCancelReason`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions getCancelReason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getCancelReason({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Loaded`})})};function vt(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
109
108
 
110
- List all Account Owned API tokens created for this account. 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 vt={command:`list`,describe:`List Tokens`,builder:v(_t),handler:async t=>l({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`],direction:t.direction,include_expired:t[`include-expired`]};if(t.dryRun){s({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.list({account_id:u,...i})),{successLabel:`Loaded`})})};function yt(e){return e.usage(`$0 accounts tokens permission-groups list
109
+ Updates an account subscription.`).positional(`subscription-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 yt={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:vt,handler:async n=>l({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`json`,body:n.body===void 0?p({app:{install_id:m(n[`app-install-id`],`app-install-id`,`text`)},component_values:f(n[`component-values`],`component-values`),frequency:m(n.frequency,`frequency`,`text`),rate_plan:{currency:m(n[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:n[`rate-plan-externally-managed`],id:m(n[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:n[`rate-plan-is-contract`],public_name:m(n[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(n[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:n[`rate-plan-sets`]}}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:e,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Updated`});return}let u=p({app:{install_id:m(n[`app-install-id`],`app-install-id`,`text`)},component_values:f(n[`component-values`],`component-values`),frequency:m(n.frequency,`frequency`,`text`),rate_plan:{currency:m(n[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:n[`rate-plan-externally-managed`],id:m(n[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:n[`rate-plan-is-contract`],public_name:m(n[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(n[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:n[`rate-plan-sets`]}});o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:u,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Updated`})})},bt={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(at).command(st).command(lt).command(dt).command(pt).command(ht).command(_t).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xt(e){return e.usage(`$0 accounts tokens create
111
110
 
112
- Find all available permission groups for Account Owned API Tokens`).option(`name`,{type:`string`,description:`Filter by the name of the permission group.
111
+ Create a new Account Owned API 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 St={command:`create`,describe:`Create Token`,builder:xt,handler:async n=>l({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.tokens.create({body:e,account_id:l})),{successLabel:`Created`});return}if(n.name===void 0&&(n.name=await h(`name`,`Token name.`)),n.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`)});o(await c(`Creating`,async()=>i.accounts.tokens.create({body:u,account_id:l})),{successLabel:`Created`})})};function Ct(e){return e.usage(`$0 accounts tokens delete <token-id>
112
+
113
+ Destroy an Account Owned API 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 wt={command:`delete <token-id>`,describe:`Delete Token`,builder:Ct,handler:async n=>l({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
114
+ `);return}o(await c(`Deleting`,async()=>i.accounts.tokens.delete({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function Tt(e){return e.usage(`$0 accounts tokens get <token-id>
115
+
116
+ Get information about a specific Account Owned API 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 Et={command:`get <token-id>`,describe:`Token Details`,builder:Tt,handler:async n=>l({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.get({account_id:l,token_id:n[`token-id`]})),{successLabel:`Loaded`})})};function Dt(e){return e.usage("$0 accounts tokens list\n\nList Account Owned API tokens created for this account. Callers with `com.cloudflare.api.account.token.list_self` permission only receive tokens they 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 Ot={command:`list`,describe:`List Tokens`,builder:v(Dt),handler:async n=>l({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`],direction:n.direction,include_expired:n[`include-expired`]};if(n.dryRun){s({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.list({account_id:u,...i})),{successLabel:`Loaded`})})};function kt(e){return e.usage(`$0 accounts tokens permission-groups list
117
+
118
+ Find all available permission groups for Account Owned API Tokens. Each permission group indicates whether the caller can select it when creating a token. Token creation performs the authoritative permission check.`).option(`name`,{type:`string`,description:`Filter by the name of the permission group.
113
119
  The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
114
- The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bt={command:`list`,describe:`List Permission Groups`,builder:yt,handler:async t=>l({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={name:t.name,scope:t.scope};if(t.dryRun){s({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.permissionGroups.list({account_id:u,...i})),{successLabel:`Loaded`})})},xt={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function St(e){return e.usage(`$0 accounts tokens roll <token-id>
120
+ The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const At={command:`list`,describe:`List Permission Groups`,builder:kt,handler:async n=>l({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={name:n.name,scope:n.scope};if(n.dryRun){s({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.permissionGroups.list({account_id:u,...i})),{successLabel:`Loaded`})})},jt={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Mt(e){return e.usage(`$0 accounts tokens roll <token-id>
115
121
 
116
- Roll the Account Owned API 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 Ct={command:`roll <token-id>`,describe:`Roll Token`,builder:St,handler:async t=>l({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}/value`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await _({force:!!t.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.
117
- `);return}o(await c(`Deleting`,async()=>i.accounts.tokens.roll({account_id:l,token_id:t[`token-id`]})),{successLabel:`Deleted`})})};function wt(e){return e.usage(`$0 accounts tokens update <token-id>
122
+ Roll the Account Owned API 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 Nt={command:`roll <token-id>`,describe:`Roll Token`,builder:Mt,handler:async n=>l({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}/value`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.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.
123
+ `);return}o(await c(`Deleting`,async()=>i.accounts.tokens.roll({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function $(e){return e.usage(`$0 accounts tokens update <token-id>
118
124
 
119
- 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 Tt={command:`update <token-id>`,describe:`Update Token`,builder:wt,handler:async t=>l({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`),status:m(t.status,`status`,`text`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.tokens.update({body:e,account_id:l,token_id:t[`token-id`]})),{successLabel:`Updated`});return}if(t.name===void 0&&(t.name=await h(`name`,`Token name.`)),t.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`),status:m(t.status,`status`,`text`)});o(await c(`Updating`,async()=>i.accounts.tokens.update({body:u,account_id:l,token_id:t[`token-id`]})),{successLabel:`Updated`})})};function Et(e){return e.usage(`$0 accounts tokens verify
125
+ 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 Pt={command:`update <token-id>`,describe:`Update Token`,builder:$,handler:async n=>l({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`),status:m(n.status,`status`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.tokens.update({body:e,account_id:l,token_id:n[`token-id`]})),{successLabel:`Updated`});return}if(n.name===void 0&&(n.name=await h(`name`,`Token name.`)),n.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`),status:m(n.status,`status`,`text`)});o(await c(`Updating`,async()=>i.accounts.tokens.update({body:u,account_id:l,token_id:n[`token-id`]})),{successLabel:`Updated`})})};function Ft(e){return e.usage(`$0 accounts tokens verify
120
126
 
121
- Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`verify`,describe:`Verify Token`,builder:Et,handler:async t=>l({command:`accounts tokens verify`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/tokens/verify`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.verify({account_id:l})),{successLabel:`Loaded`})})},Dt={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(ft).command(mt).command(gt).command(vt).command(Ct).command(Tt).command($).command(xt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ot(e){return e.usage(`$0 accounts transformations list
127
+ Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`verify`,describe:`Verify Token`,builder:Ft,handler:async n=>l({command:`accounts tokens verify`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/verify`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.verify({account_id:l})),{successLabel:`Loaded`})})},Lt={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(St).command(wt).command(Et).command(Ot).command(Nt).command(Pt).command(It).command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Rt(e){return e.usage(`$0 accounts transformations list
122
128
 
123
- Returns a list of Image Resizing configurations across all zones for the account. This endpoint is useful for retrieving the transformations (image_resizing) state for all zones belonging to an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kt={command:`list`,describe:`List Image Resizing configurations for account`,builder:Ot,handler:async t=>l({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts transformations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/settings/transformations`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.transformations.list({account_id:l})),{successLabel:`Loaded`})})},At={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function jt(e){return e.usage(`$0 accounts update
129
+ Returns a list of Image Resizing configurations across all zones for the account. This endpoint is useful for retrieving the transformations (image_resizing) state for all zones belonging to an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`list`,describe:`List Image Resizing configurations for account`,builder:Rt,handler:async n=>l({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts transformations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/transformations`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.transformations.list({account_id:l})),{successLabel:`Loaded`})})},Bt={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Vt(e){return e.usage(`$0 accounts update
124
130
 
125
131
  Update an existing account.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name`}).option(`settings-abuse-contact-email`,{type:`string`,description:`Sets an abuse contact email to notify for abuse reports.`}).option(`settings-enforce-twofactor`,{type:`boolean`,description:`Indicates whether membership in this account requires that
126
- Two-Factor Authentication is enabled`}).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 Mt={command:`update`,describe:`Update Account`,builder:jt,handler:async t=>l({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({id:m(t.id,`id`,`text`),name:m(t.name,`name`,`text`),settings:{abuse_contact_email:m(t[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:t[`settings-enforce-twofactor`]}}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.update({body:e,account_id:l})),{successLabel:`Updated`});return}t.id===void 0&&(t.id=await h(`id`,`Identifier`)),t.name===void 0&&(t.name=await h(`name`,`Account name`));let u=p({id:m(t.id,`id`,`text`),name:m(t.name,`name`,`text`),settings:{abuse_contact_email:m(t[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:t[`settings-enforce-twofactor`]}});o(await c(`Updating`,async()=>i.accounts.update({body:u,account_id:l})),{successLabel:`Updated`})})};function Nt(e){return e.usage(`$0 accounts ut-billing edit
132
+ Two-Factor Authentication is enabled`}).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 Ht={command:`update`,describe:`Update Account`,builder:Vt,handler:async n=>l({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({id:m(n.id,`id`,`text`),name:m(n.name,`name`,`text`),settings:{abuse_contact_email:m(n[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:n[`settings-enforce-twofactor`]}}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.update({body:e,account_id:l})),{successLabel:`Updated`});return}n.id===void 0&&(n.id=await h(`id`,`Identifier`)),n.name===void 0&&(n.name=await h(`name`,`Account name`));let u=p({id:m(n.id,`id`,`text`),name:m(n.name,`name`,`text`),settings:{abuse_contact_email:m(n[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:n[`settings-enforce-twofactor`]}});o(await c(`Updating`,async()=>i.accounts.update({body:u,account_id:l})),{successLabel:`Updated`})})};function Ut(e){return e.usage(`$0 accounts ut-billing edit
127
133
 
128
134
  Updates the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline. Note: setting the value to "off" is not permitted once enabled.`).option(`value`,{type:`string`,description:`Enables Unique Transformations billing for the account.
129
135
  Note: once enabled, this setting cannot be set back to "off".
130
- `,choices:[`on`]}).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 Pt={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Nt,handler:async t=>l({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({value:m(t.value,`value`,`text`)}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...e,account_id:l})),{successLabel:`Updated`});return}t.value===void 0&&(t.value=await g(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let u=p({value:m(t.value,`value`,`text`)});o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...u,account_id:l})),{successLabel:`Updated`})})};function Ft(e){return e.usage(`$0 accounts ut-billing get
136
+ `,choices:[`on`]}).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 Wt={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Ut,handler:async n=>l({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({value:m(n.value,`value`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...e,account_id:l})),{successLabel:`Updated`});return}n.value===void 0&&(n.value=await g(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let u=p({value:m(n.value,`value`,`text`)});o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...u,account_id:l})),{successLabel:`Updated`})})};function Gt(e){return e.usage(`$0 accounts ut-billing get
131
137
 
132
- Retrieves the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`get`,describe:`Get Unique Transformations billing setting`,builder:Ft,handler:async t=>l({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts ut-billing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.accounts.utBilling.get({account_id:l})),{successLabel:`Loaded`})})},Lt={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Pt).command(It).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Rt={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(Se).command(we).command(Ee).command(Oe).command(Mt).command(j).command(pe).command(be).command(Ie).command(qe).command(ut).command(Dt).command(At).command(Lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Rt as default};
138
+ Retrieves the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kt={command:`get`,describe:`Get Unique Transformations billing setting`,builder:Gt,handler:async n=>l({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts ut-billing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.utBilling.get({account_id:l})),{successLabel:`Loaded`})})},qt={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Wt).command(Kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Jt={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(Se).command(we).command(Ee).command(Oe).command(Ye).command(Ht).command(j).command(pe).command(be).command(Ie).command(qe).command(Qe).command(rt).command(bt).command(Lt).command(Bt).command(qt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Jt as default};