cf 1.0.0-beta.15 → 1.0.0-beta.17

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 (250) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
  22. package/dist/audit-logs-D9XxsVZm.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
  24. package/dist/auth-Ccm5viK_.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
  27. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  28. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
  29. package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
  30. package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
  31. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
  32. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
  33. package/dist/browser-run-ChXohmNG.mjs +42 -0
  34. package/dist/build-BRJnyeu8.mjs +2 -0
  35. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  36. package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
  37. package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
  38. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
  39. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  40. package/dist/cli-DJhpXf38.mjs +6 -0
  41. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
  42. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
  43. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
  44. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
  45. package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
  46. package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
  48. package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
  49. package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
  50. package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
  51. package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
  52. package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
  53. package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
  54. package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
  55. package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
  56. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
  57. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
  58. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
  59. package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
  60. package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
  61. package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
  62. package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
  63. package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
  64. package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
  65. package/dist/csam-scanner-DvLrPw45.mjs +10 -0
  66. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
  67. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
  68. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
  69. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
  70. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
  71. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
  72. package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
  73. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
  74. package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
  75. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
  76. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  77. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  78. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
  79. package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
  80. package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
  81. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
  82. package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
  83. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
  84. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
  85. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
  86. package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
  87. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
  88. package/dist/field-extractors-B_lFnwaL.mjs +9 -0
  89. package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
  90. package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
  91. package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
  92. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
  93. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
  94. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
  95. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
  96. package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
  97. package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
  98. package/dist/index.mjs +1 -1
  99. package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
  100. package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
  101. package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
  102. package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
  103. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
  104. package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
  105. package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
  106. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
  108. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
  109. package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
  110. package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
  111. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
  112. package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
  113. package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
  114. package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
  115. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
  117. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
  118. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
  119. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
  120. package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
  121. package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
  122. package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
  123. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  124. package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
  125. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
  126. package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
  127. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
  128. package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
  129. package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
  130. package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
  131. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
  132. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
  133. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  134. package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
  135. package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
  136. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
  137. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
  138. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
  139. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
  140. package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
  141. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
  142. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
  143. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
  144. package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
  145. package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
  146. package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
  147. package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
  148. package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
  149. package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
  150. package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
  151. package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
  152. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
  153. package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
  154. package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
  155. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
  156. package/dist/reporting-8aRJD5HX.mjs +14 -0
  157. package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
  158. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
  159. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
  160. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
  161. package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
  162. package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
  163. package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
  164. package/dist/run-CHNyLZLG.mjs +2 -0
  165. package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
  166. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
  167. package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
  168. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
  169. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
  170. package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
  171. package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
  172. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
  173. package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
  174. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  175. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
  176. package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
  177. package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
  178. package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
  179. package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
  180. package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
  181. package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
  182. package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
  183. package/dist/telemetry-Bdv5LZZs.mjs +2 -0
  184. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
  185. package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
  186. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
  187. package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
  188. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
  189. package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
  190. package/dist/update-check-Dld7rbLd.mjs +2 -0
  191. package/dist/update-check-worker.mjs +1 -1
  192. package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
  193. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
  194. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
  195. package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
  196. package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
  197. package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
  198. package/dist/version-CAuKDZAG.mjs +2 -0
  199. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
  200. package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
  201. package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
  202. package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
  203. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
  204. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
  205. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
  206. package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
  207. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  208. package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
  209. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
  210. package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
  211. package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
  212. package/package.json +11 -10
  213. package/dist/alerts-BSON-vFh.mjs +0 -2
  214. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  215. package/dist/auth-8Sm4uLGM.mjs +0 -2
  216. package/dist/autorag-kNrLiqDX.mjs +0 -2
  217. package/dist/brands-bBJgbbOH.mjs +0 -2
  218. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  219. package/dist/browser-run-CEptKZYl.mjs +0 -42
  220. package/dist/build-Bm6kGyzo.mjs +0 -2
  221. package/dist/clear-BW9vLgI3.mjs +0 -2
  222. package/dist/cli-R8h3OKZI.mjs +0 -6
  223. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  224. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  225. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  226. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  227. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  228. package/dist/health-CTaCeVyC.mjs +0 -2
  229. package/dist/internal-BYS7hO8c.mjs +0 -2
  230. package/dist/live-BJE_YWE1.mjs +0 -2
  231. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  232. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  233. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  234. package/dist/ready-B3pLxnjc.mjs +0 -2
  235. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  236. package/dist/refute-Dp3VodMn.mjs +0 -2
  237. package/dist/reporting-3kDVF5c8.mjs +0 -14
  238. package/dist/run-CUNhH5CQ.mjs +0 -2
  239. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  240. package/dist/scan-page-CxeudOzj.mjs +0 -2
  241. package/dist/search-B_P5ZTQj.mjs +0 -2
  242. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  243. package/dist/submission-info-_t78q2OE.mjs +0 -2
  244. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  245. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  246. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  247. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  248. package/dist/verify-5KcvRk-q.mjs +0 -2
  249. package/dist/version-B6MnUIqV.mjs +0 -2
  250. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r,s as i}from"./auth-C6u9qIGO.mjs";import{a,i as o,t as s}from"./context-A6T-NKPI.mjs";import{t as c}from"./output-Co4xdFf6.mjs";import{t as l}from"./dry-run-C2KjGX10.mjs";import{t as u}from"./progress-D5po7ScB.mjs";import{t as d}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as f,n as p,r as m,t as h}from"./body-parser-DkHKPkJ7.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as ee,n as v}from"./prompt-BAJpE3jV.mjs";import{n as te,t as ne}from"./raw-fetch-yY-wX5Xx.mjs";var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function re(e){return e.usage(`$0 accounts applications create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r,s as i}from"./auth-MNz2D-PD.mjs";import{a,i as o,t as s}from"./context-q-6bMSL-.mjs";import{t as c}from"./output-Co4xdFf6.mjs";import{t as l}from"./dry-run-C2KjGX10.mjs";import{t as u}from"./progress-DaQ4MzBI.mjs";import{t as d}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as f,n as p,r as m,t as h}from"./body-parser-DkHKPkJ7.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-KWYZvJWM.mjs";import{n as ee,t as te}from"./raw-fetch-Cy09TjHc.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function ne(e){return e.usage(`$0 accounts applications create
3
3
 
4
- Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for 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(`name`,{type:`string`,description:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const ie={command:`create`,describe:`Create application`,builder:re,handler:async e=>d({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(y,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`));let o=h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Creating`,async()=>n.send(y,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ae={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{409:`ConflictError`,502:`BadGatewayError`}};function oe(e){return e.usage(`$0 accounts applications delete <id>
4
+ Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for 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(`name`,{type:`string`,description:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const re={command:`create`,describe:`Create application`,builder:ne,handler:async e=>d({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(b,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`));let o=h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Creating`,async()=>n.send(b,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{409:`ConflictError`,502:`BadGatewayError`}};function ae(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 se={command:`delete <id>`,describe:`Delete application`,builder:oe,handler:async e=>d({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force,message:`This operation deletes the custom application and all of its versions. This action cannot be undone.`})){process.stderr.write(`Aborted.
7
- `);return}let o=await u(`Deleting`,async()=>n.send(ae,{account_id:i,id:e.id}));c(o,{successLabel:`Deleted`})})};var ce={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`};function le(e){return e.usage(`$0 accounts applications get <id>
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 oe={command:`delete <id>`,describe:`Delete application`,builder:ae,handler:async e=>d({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`This operation deletes the custom application and all of its versions. This action cannot be undone.`})){process.stderr.write(`Aborted.
7
+ `);return}let o=await u(`Deleting`,async()=>n.send(ie,{account_id:i,id:e.id}));c(o,{successLabel:`Deleted`})})};var se={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`};function ce(e){return e.usage(`$0 accounts applications get <id>
8
8
 
9
- Retrieve an application available to the account by its numeric application 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 ue={command:`get <id>`,describe:`Get application`,builder:le,handler:async e=>d({command:`accounts applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(ce,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var de={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,query:[`filter`,`limit`,`offset`,`order_by`,`search`,`lookup`,`fields`],errors:{403:`ForbiddenError`,502:`BadGatewayError`,503:`ServiceUnavailableError`}};function fe(e){return e.usage("$0 accounts applications list\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. Use `lookup` to find complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. It ranks matches by relevance and uses the same filters, fields, and pagination as listing. `lookup` cannot be combined with `search`. Invalid UTF-8 or a NUL character (U+0000) in any query parameter name or value returns `400`. 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:\n- `name`: application name (for example, `name:HR`).\n- `id`: application ID (for example, `id:498`).\n- `human_id`: human-readable ID (for example, `human_id:HR`).\n- `hostname`: hostname or support domain (for example, `hostname:portal.example.com`).\n- `source`: application source name (for example, `source:cloudflare`).\n- `ip_subnet`: CIDR containment; returns applications where a stored subnet contains the search value (for example, `ip_subnet:10.0.1.5/32` matches `10.0.0.0/16`).\n- `category_id`: category ID (for example, `category_id:12`).\n- `category_name`: category name (for example, `category_name:HR`).\n- `supported`: supported Cloudflare product. Values: `GATEWAY`, `ACCESS`, `CASB`.\n- `review_status`: account-specific Gateway review status. Values: `approved`, `unapproved`, `in_review`, `unreviewed`."}).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`order-by`,{type:`string`,description:`Order results using field:direction format. Supported fields are name, id, human_id,
9
+ Retrieve an application available to the account by its numeric application 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 le={command:`get <id>`,describe:`Get application`,builder:ce,handler:async e=>d({command:`accounts applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(se,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,query:[`filter`,`limit`,`offset`,`order_by`,`search`,`lookup`,`fields`],errors:{403:`ForbiddenError`,502:`BadGatewayError`,503:`ServiceUnavailableError`}};function de(e){return e.usage("$0 accounts applications list\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. Use `lookup` to find complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. It ranks matches by relevance and uses the same filters, fields, and pagination as listing. `lookup` cannot be combined with `search`. Invalid UTF-8 or a NUL character (U+0000) in any query parameter name or value returns `400`. 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:\n- `name`: application name (for example, `name:HR`).\n- `id`: application ID (for example, `id:498`).\n- `human_id`: human-readable ID (for example, `human_id:HR`).\n- `hostname`: hostname or support domain (for example, `hostname:portal.example.com`).\n- `source`: application source name (for example, `source:cloudflare`).\n- `ip_subnet`: CIDR containment; returns applications where a stored subnet contains the search value (for example, `ip_subnet:10.0.1.5/32` matches `10.0.0.0/16`).\n- `category_id`: category ID (for example, `category_id:12`).\n- `category_name`: category name (for example, `category_name:HR`).\n- `supported`: supported Cloudflare product. Values: `GATEWAY`, `ACCESS`, `CASB`.\n- `review_status`: account-specific Gateway review status. Values: `approved`, `unapproved`, `in_review`, `unreviewed`."}).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`order-by`,{type:`string`,description:`Order results using field:direction format. Supported fields are name, id, human_id,
10
10
  category_id, application_type, application_confidence_score, and gen_ai_score.
11
11
  Supported directions are asc and desc. Ignored when search is provided; results are
12
12
  ranked by relevance instead. Also ignored when lookup is provided.`}).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(`lookup`,{type:`string`,description:`Find complete, case-insensitive application name mentions in a phrase or
@@ -15,51 +15,51 @@ ranked by relevance. Must be between 2 and 1000 characters, with no control
15
15
  characters other than tab and line breaks. Uses the same
16
16
  filters, fields, and pagination as listing. \`search\` cannot be combined
17
17
  with lookup. Results are ranked by relevance, so \`order_by\` is ignored.
18
- To keep the text out of URLs, send it to \`POST .../applications/lookup\` instead.`}).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, including\nwhen lookup is used.\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 pe={command:`list`,describe:`List applications`,builder:fe,handler:async e=>d({command:`accounts applications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={filter:e.filter,limit:e.limit,offset:e.offset,order_by:e[`order-by`],search:e.search,lookup:e.lookup,fields:e.fields};if(e.dryRun){let e=await a();l({command:`cf accounts applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(de,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/lookup`,query:[`filter`,`limit`,`fields`],body:`json`,errors:{403:`ForbiddenError`,502:`BadGatewayError`,503:`ServiceUnavailableError`}};function me(e){return e.usage("$0 accounts applications lookup\n\nFind complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. Matches are ranked by relevance. This endpoint takes the rule sentence in the request body, so the text stays out of URLs and request logs. Use it instead of the `lookup` query parameter on the list endpoint when the text may contain sensitive content. `fields`, `limit`, and `filter` work the same way as on the list endpoint and are passed as query parameters. Results are not paged: `offset`, `order_by`, `search`, and `lookup` query parameters return `400`. Unknown request body properties also return `400`. Invalid UTF-8 or a NUL character (U+0000) in any query parameter name or value returns `400`. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:"Filter matches using the same `key:value` filters as the list endpoint."}).option(`limit`,{type:`number`,description:`Maximum number of matches to return. Defaults to 25; values are clamped to 1–250.`}).option(`fields`,{type:`string`,description:`Return only the listed properties on each application, as a comma-separated list.
18
+ To keep the text out of URLs, send it to \`POST .../applications/lookup\` instead.`}).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, including\nwhen lookup is used.\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 fe={command:`list`,describe:`List applications`,builder:de,handler:async e=>d({command:`accounts applications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={filter:e.filter,limit:e.limit,offset:e.offset,order_by:e[`order-by`],search:e.search,lookup:e.lookup,fields:e.fields};if(e.dryRun){let e=await a();l({command:`cf accounts applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(ue,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var x={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/lookup`,query:[`filter`,`limit`,`fields`],body:`json`,errors:{403:`ForbiddenError`,502:`BadGatewayError`,503:`ServiceUnavailableError`}};function pe(e){return e.usage("$0 accounts applications lookup\n\nFind complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. Matches are ranked by relevance. This endpoint takes the rule sentence in the request body, so the text stays out of URLs and request logs. Use it instead of the `lookup` query parameter on the list endpoint when the text may contain sensitive content. `fields`, `limit`, and `filter` work the same way as on the list endpoint and are passed as query parameters. Results are not paged: `offset`, `order_by`, `search`, and `lookup` query parameters return `400`. Unknown request body properties also return `400`. Invalid UTF-8 or a NUL character (U+0000) in any query parameter name or value returns `400`. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:"Filter matches using the same `key:value` filters as the list endpoint."}).option(`limit`,{type:`number`,description:`Maximum number of matches to return. Defaults to 25; values are clamped to 1–250.`}).option(`fields`,{type:`string`,description:`Return only the listed properties on each application, as a comma-separated list.
19
19
  Accepts the same properties as the list endpoint. \`id\` is always returned.
20
20
  Omit this parameter to receive the full application object.`}).option(`lookup`,{type:`string`,description:`Rule sentence to search for complete application names. Leading and trailing
21
21
  whitespace is trimmed before the length is checked. Control characters other
22
22
  than tab and line breaks return \`400\`.
23
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const he={command:`lookup`,describe:`Look up applications in a rule sentence`,builder:me,handler:async e=>d({command:`accounts applications lookup`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={filter:e.filter,limit:e.limit,fields:e.fields};if(e.dryRun){let t=await a();l({command:`cf accounts applications lookup`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/lookup`,pathParams:{},query:n,bodyKind:`json`,body:e.body===void 0?h({lookup:g(e.lookup,`lookup`,`text`)}):p(e.body)});return}let i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body){let t=p(e.body);new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await u(`Creating`,async()=>i.send(b,{body:t,account_id:o,...n}));c(r,{successLabel:`Created`});return}e.lookup===void 0&&(e.lookup=await _(`lookup`,"Rule sentence to search for complete application names. Leading and trailing whitespace is trimmed before the length is checked. Control characters other than tab and line breaks return `400`. "));let d=h({lookup:g(e.lookup,`lookup`,`text`)});new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let f=await u(`Creating`,async()=>i.send(b,{body:d,account_id:o,...n}));c(f,{successLabel:`Created`})})};var x={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,body:`json`};function ge(e){return e.usage(`$0 accounts applications update <id>
23
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const me={command:`lookup`,describe:`Look up applications in a rule sentence`,builder:pe,handler:async e=>d({command:`accounts applications lookup`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={filter:e.filter,limit:e.limit,fields:e.fields};if(e.dryRun){let t=await a();l({command:`cf accounts applications lookup`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/lookup`,pathParams:{},query:n,bodyKind:`json`,body:e.body===void 0?h({lookup:g(e.lookup,`lookup`,`text`)}):p(e.body)});return}let i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body){let t=p(e.body);new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await u(`Creating`,async()=>i.send(x,{body:t,account_id:o,...n}));c(r,{successLabel:`Created`});return}e.lookup===void 0&&(e.lookup=await _(`lookup`,"Rule sentence to search for complete application names. Leading and trailing whitespace is trimmed before the length is checked. Control characters other than tab and line breaks return `400`. "));let d=h({lookup:g(e.lookup,`lookup`,`text`)});new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let f=await u(`Creating`,async()=>i.send(x,{body:d,account_id:o,...n}));c(f,{successLabel:`Created`})})};var S={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,body:`json`};function he(e){return e.usage(`$0 accounts applications update <id>
24
24
 
25
- Replace the supplied network matchers for a custom application and create a new version. Omitted matcher lists remain unchanged; send an empty list to clear a matcher type.`).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:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const _e={command:`update <id>`,describe:`Update application`,builder:ge,handler:async e=>d({command:`accounts applications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?h({hostnames:e.hostnames,ip_subnets:e[`ip-subnets`],port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(x,{body:t,account_id:i,id:e.id}));c(r,{successLabel:`Updated`});return}let o=h({hostnames:e.hostnames,ip_subnets:e[`ip-subnets`],port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Updating`,async()=>n.send(x,{body:o,account_id:i,id:e.id}));c(d,{successLabel:`Updated`})})},ve={command:`applications`,describe:`List Cloudflare-curated and custom applications, and manage custom applications`,builder:e=>e.command(ie).command(se).command(ue).command(pe).command(he).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/client-secret`};function C(e){return e.usage(`$0 accounts billing createSetupIntent
25
+ Replace the supplied network matchers for a custom application and create a new version. Omitted matcher lists remain unchanged; send an empty list to clear a matcher type.`).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:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const ge={command:`update <id>`,describe:`Update application`,builder:he,handler:async e=>d({command:`accounts applications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?h({hostnames:e.hostnames,ip_subnets:e[`ip-subnets`],port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(S,{body:t,account_id:i,id:e.id}));c(r,{successLabel:`Updated`});return}let o=h({hostnames:e.hostnames,ip_subnets:e[`ip-subnets`],port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Updating`,async()=>n.send(S,{body:o,account_id:i,id:e.id}));c(d,{successLabel:`Updated`})})},_e={command:`applications`,describe:`List Cloudflare-curated and custom applications, and manage custom applications`,builder:e=>e.command(re).command(oe).command(le).command(fe).command(me).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ve={method:`POST`,path:t=>e`/accounts/${t.account_id}/client-secret`};function C(e){return e.usage(`$0 accounts billing create-setup-intent
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 w={command:`createSetupIntent`,describe:`Create Setup Intent`,builder:C,handler:async e=>d({command:`accounts billing createSetupIntent`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing createSetupIntent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/client-secret`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Creating`,async()=>n.send(S,{account_id:i}));c(o,{successLabel:`Created`})})};var T={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/bad-debt`};function E(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 w={command:`create-setup-intent`,describe:`Create Setup Intent`,builder:C,handler:async e=>d({command:`accounts billing create-setup-intent`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing create-setup-intent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/client-secret`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Creating`,async()=>n.send(ve,{account_id:i}));c(o,{successLabel:`Created`})})};var T={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/bad-debt`};function E(e){return e.usage(`$0 accounts billing get-bad-debt
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 D={command:`getBadDebt`,describe:`Get Account Bad Debt`,builder:E,handler:async e=>d({command:`accounts billing getBadDebt`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing getBadDebt`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/bad-debt`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(T,{account_id:i}));c(o,{successLabel:`Loaded`})})};var O={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/credits`};function k(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 D={command:`get-bad-debt`,describe:`Get Account Bad Debt`,builder:E,handler:async e=>d({command:`accounts billing get-bad-debt`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing get-bad-debt`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/bad-debt`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(T,{account_id:i}));c(o,{successLabel:`Loaded`})})};var O={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/credits`};function k(e){return e.usage(`$0 accounts billing get-credits
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 A={command:`getCredits`,describe:`Get Account Credits`,builder:k,handler:async e=>d({command:`accounts billing getCredits`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing getCredits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/credits`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(O,{account_id:i}));c(o,{successLabel:`Loaded`})})};function j(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 A={command:`get-credits`,describe:`Get Account Credits`,builder:k,handler:async e=>d({command:`accounts billing get-credits`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing get-credits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/credits`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(O,{account_id:i}));c(o,{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 accounts billing get-receipt-pdf <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 M={command:`getReceiptPdf <receipt-id>`,describe:`Get Receipt PDF`,builder:j,handler:async e=>d({command:`accounts billing getReceiptPdf`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{let n={doctype:e.doctype};if(e.dryRun){let t=await a();l({command:`cf accounts billing getReceiptPdf`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/receipts/${e[`receipt-id`]==null?`<receipt-id>`:encodeURIComponent(String(e[`receipt-id`]))}/pdf`,pathParams:{"receipt-id":String(e[`receipt-id`]??``)},query:n,bodyKind:`none`});return}await r(e);let i=e.local?t:await s();e.accountId=i;let o=new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),c=await u(`Loading`,async()=>ne(`/accounts/${i}/receipts/${encodeURIComponent(String(e[`receipt-id`]))}/pdf${o?`?`+o:``}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));te(e.text===!0?c.toString(`utf-8`):c)})};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/unpaid-invoice`};function P(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 M={command:`get-receipt-pdf <receipt-id>`,describe:`Get Receipt PDF`,builder:j,handler:async e=>d({command:`accounts billing get-receipt-pdf`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{let n={doctype:e.doctype};if(e.dryRun){let t=await a();l({command:`cf accounts billing get-receipt-pdf`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/receipts/${e[`receipt-id`]==null?`<receipt-id>`:encodeURIComponent(String(e[`receipt-id`]))}/pdf`,pathParams:{"receipt-id":String(e[`receipt-id`]??``)},query:n,bodyKind:`none`});return}await r(e);let i=e.local?t:await s();e.accountId=i;let o=new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),c=await u(`Loading`,async()=>te(`/accounts/${i}/receipts/${encodeURIComponent(String(e[`receipt-id`]))}/pdf${o?`?`+o:``}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));ee(e.text===!0?c.toString(`utf-8`):c)})};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/unpaid-invoice`};function P(e){return e.usage(`$0 accounts billing get-unpaid-invoices
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 F={command:`getUnpaidInvoices`,describe:`Get Unpaid Invoices`,builder:P,handler:async e=>d({command:`accounts billing getUnpaidInvoices`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing getUnpaidInvoices`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/unpaid-invoice`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(N,{account_id:i}));c(o,{successLabel:`Loaded`})})};var ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/history`,query:[`page`,`per_page`,`status`]};function be(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 F={command:`get-unpaid-invoices`,describe:`Get Unpaid Invoices`,builder:P,handler:async e=>d({command:`accounts billing get-unpaid-invoices`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts billing get-unpaid-invoices`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/unpaid-invoice`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(N,{account_id:i}));c(o,{successLabel:`Loaded`})})};var ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/history`,query:[`page`,`per_page`,`status`]};function be(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 xe={command:`list`,describe:`Get Account Billing History`,builder:be,handler:async e=>d({command:`accounts billing history list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],status:e.status};if(e.dryRun){let e=await a();l({command:`cf accounts billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/history`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(ye,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},Se={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var I={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-bad-debt`,body:`json`};function Ce(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 xe={command:`list`,describe:`Get Account Billing History`,builder:be,handler:async e=>d({command:`accounts billing history list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],status:e.status};if(e.dryRun){let e=await a();l({command:`cf accounts billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/history`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(ye,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},Se={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var I={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-bad-debt`,body:`json`};function Ce(e){return e.usage(`$0 accounts billing pay-bad-debt
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 we={command:`payBadDebt`,describe:`Pay Bad Debt`,builder:Ce,handler:async e=>d({command:`accounts billing payBadDebt`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payBadDebt`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-bad-debt`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(I,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`)}),d=await u(`Creating`,async()=>n.send(I,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-invoice`,body:`json`};function Te(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 we={command:`pay-bad-debt`,describe:`Pay Bad Debt`,builder:Ce,handler:async e=>d({command:`accounts billing pay-bad-debt`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing pay-bad-debt`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-bad-debt`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(I,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`)}),d=await u(`Creating`,async()=>n.send(I,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-invoice`,body:`json`};function Te(e){return e.usage(`$0 accounts billing pay-invoice
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 Ee={command:`payInvoice`,describe:`Pay Invoice`,builder:Te,handler:async e=>d({command:`accounts billing payInvoice`,classification:{safeFlags:[`validate-payment-method`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payInvoice`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-invoice`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({invoice_id:g(e[`invoice-id`],`invoice-id`,`text`),payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:e[`validate-payment-method`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(L,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({invoice_id:g(e[`invoice-id`],`invoice-id`,`text`),payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:e[`validate-payment-method`]}),d=await u(`Creating`,async()=>n.send(L,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/payment-methods`,body:`json`};function De(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 Ee={command:`pay-invoice`,describe:`Pay Invoice`,builder:Te,handler:async e=>d({command:`accounts billing pay-invoice`,classification:{safeFlags:[`validate-payment-method`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing pay-invoice`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-invoice`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({invoice_id:g(e[`invoice-id`],`invoice-id`,`text`),payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:e[`validate-payment-method`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(L,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({invoice_id:g(e[`invoice-id`],`invoice-id`,`text`),payment_method_id:g(e[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:e[`validate-payment-method`]}),d=await u(`Creating`,async()=>n.send(L,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/payment-methods`,body:`json`};function De(e){return e.usage(`$0 accounts billing payment-methods create
42
42
 
43
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`]}).coerce(`type`,e=>g(e,`type`,`text`)).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 Oe={command:`create`,describe:`Create Payment Method`,builder:De,handler:async e=>d({command:`accounts billing payment-methods create`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(R,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}),d=await u(`Creating`,async()=>n.send(R,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ke={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ae(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 je={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Ae,handler:async e=>d({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force})){process.stderr.write(`Aborted.
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 je={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Ae,handler:async e=>d({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force})){process.stderr.write(`Aborted.
46
46
  `);return}let o=await u(`Deleting`,async()=>n.send(ke,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Deleted`})})};var Me={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ne(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
47
47
 
48
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 Pe={command:`get <payment-method-id>`,describe:`Get Payment Method`,builder:Ne,handler:async e=>d({command:`accounts billing payment-methods get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Me,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Loaded`})})};var Fe={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods`,query:[`page`,`per_page`]};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 Le={command:`list`,describe:`List Payment Methods`,builder:Ie,handler:async e=>d({command:`accounts billing payment-methods list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await a();l({command:`cf accounts billing payment-methods list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Fe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var Re={method:`POST`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}/set-as-default`};function ze(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 Le={command:`list`,describe:`List Payment Methods`,builder:Ie,handler:async e=>d({command:`accounts billing payment-methods list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await a();l({command:`cf accounts billing payment-methods list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Fe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var Re={method:`POST`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}/set-as-default`};function ze(e){return e.usage(`$0 accounts billing payment-methods set-default <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 Be={command:`setDefault <payment-method-id>`,describe:`Set Default Payment Method`,builder:ze,handler:async e=>d({command:`accounts billing payment-methods setDefault`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods setDefault`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}/set-as-default`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Creating`,async()=>n.send(Re,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Created`})})};var z={method:`PUT`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`,body:`json`};function Ve(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 Be={command:`set-default <payment-method-id>`,describe:`Set Default Payment Method`,builder:ze,handler:async e=>d({command:`accounts billing payment-methods set-default`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods set-default`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}/set-as-default`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Creating`,async()=>n.send(Re,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Created`})})};var z={method:`PUT`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`,body:`json`};function Ve(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`]}).coerce(`type`,e=>g(e,`type`,`text`)).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 He={command:`update <payment-method-id>`,describe:`Update Payment Method`,builder:Ve,handler:async e=>d({command:`accounts billing payment-methods update`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(z,{body:t,account_id:i,payment_method_id:e[`payment-method-id`]}));c(r,{successLabel:`Updated`});return}let o=h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}),d=await u(`Updating`,async()=>n.send(z,{body:o,account_id:i,payment_method_id:e[`payment-method-id`]}));c(d,{successLabel:`Updated`})})},Ue={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(Oe).command(je).command(Pe).command(Le).command(Be).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/invoices`,body:`json`};function We(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`]}).coerce(`type`,e=>g(e,`type`,`text`)).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 He={command:`update <payment-method-id>`,describe:`Update Payment Method`,builder:Ve,handler:async e=>d({command:`accounts billing payment-methods update`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(z,{body:t,account_id:i,payment_method_id:e[`payment-method-id`]}));c(r,{successLabel:`Updated`});return}let o=h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}),d=await u(`Updating`,async()=>n.send(z,{body:o,account_id:i,payment_method_id:e[`payment-method-id`]}));c(d,{successLabel:`Updated`})})},Ue={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(Oe).command(je).command(Pe).command(Le).command(Be).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/invoices`,body:`json`};function We(e){return e.usage(`$0 accounts billing toggle-pdf-invoices
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 Ge={command:`togglePdfInvoices`,describe:`Toggle PDF Invoices`,builder:We,handler:async e=>d({command:`accounts billing togglePdfInvoices`,classification:{safeFlags:[`toggle`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing togglePdfInvoices`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/invoices`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({toggle:e.toggle}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(B,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}let o=h({toggle:e.toggle}),d=await u(`Updating`,async()=>n.send(B,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})},Ke={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(w).command(D).command(A).command(M).command(F).command(we).command(Ee).command(Ge).command(Se).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories/${t.id}`};function Je(e){return e.usage(`$0 accounts categories get <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 Ge={command:`toggle-pdf-invoices`,describe:`Toggle PDF Invoices`,builder:We,handler:async e=>d({command:`accounts billing toggle-pdf-invoices`,classification:{safeFlags:[`toggle`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing toggle-pdf-invoices`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/invoices`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({toggle:e.toggle}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(B,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}let o=h({toggle:e.toggle}),d=await u(`Updating`,async()=>n.send(B,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})},Ke={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(w).command(D).command(A).command(M).command(F).command(we).command(Ee).command(Ge).command(Se).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories/${t.id}`};function Je(e){return e.usage(`$0 accounts categories get <id>
57
57
 
58
58
  Retrieve an application category by its numeric 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 Ye={command:`get <id>`,describe:`Get application category`,builder:Je,handler:async e=>d({command:`accounts categories get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts categories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/categories/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(qe,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var Xe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories`,query:[`limit`,`offset`]};function Ze(e){return e.usage(`$0 accounts categories list
59
59
 
60
- List the categories available for classifying applications. Results are paginated.`).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`List application categories`,builder:Ze,handler:async e=>d({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,offset:e.offset};if(e.dryRun){let e=await a();l({command:`cf accounts categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/categories`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Xe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},$e={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(Ye).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function et(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 tt={command:`create`,describe:`Create an Account`,builder:et,handler:async e=>d({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){l({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({name:g(e.name,`name`,`text`),standalone:e.standalone,unit:{id:g(e[`unit-id`],`unit-id`,`text`)}}):p(e.body)});return}let i=await r(e);if(e.body){let r=p(e.body),a=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:r,headers:Object.keys(t).length>0?t:void 0}));c(a,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`Account name`));let a={};e.name!==void 0&&f(a,[`name`],g(e.name,`name`,`text`)),e.standalone!==void 0&&f(a,[`standalone`],e.standalone),e[`unit-id`]!==void 0&&f(a,[`unit`,`id`],g(e[`unit-id`],`unit-id`,`text`));let o=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:a,headers:Object.keys(t).length>0?t:void 0}));c(o,{successLabel:`Created`})})};var nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}`};function rt(e){return e.usage(`$0 accounts delete
60
+ List the categories available for classifying applications. Results are paginated.`).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`List application categories`,builder:Ze,handler:async e=>d({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,offset:e.offset};if(e.dryRun){let e=await a();l({command:`cf accounts categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/categories`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Xe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},$e={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(Ye).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function et(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(`type`,{type:`string`,description:`The type field`,choices:[`standard`,`enterprise`]}).coerce(`type`,e=>g(e,`type`,`text`)).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 tt={command:`create`,describe:`Create an Account`,builder:et,handler:async e=>d({command:`accounts create`,classification:{safeFlags:[`standalone`,`type`,`dry-run`]}},e,async()=>{let t={};if(e[`idempotency-key`]!==void 0&&(t[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){l({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({name:g(e.name,`name`,`text`),standalone:e.standalone,type:e.type,unit:{id:g(e[`unit-id`],`unit-id`,`text`)}}):p(e.body)});return}let i=await r(e);if(e.body){let r=p(e.body),a=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:r,headers:Object.keys(t).length>0?t:void 0}));c(a,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`Account name`));let a={};e.name!==void 0&&f(a,[`name`],g(e.name,`name`,`text`)),e.standalone!==void 0&&f(a,[`standalone`],e.standalone),e.type!==void 0&&f(a,[`type`],e.type),e[`unit-id`]!==void 0&&f(a,[`unit`,`id`],g(e[`unit-id`],`unit-id`,`text`));let o=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:a,headers:Object.keys(t).length>0?t:void 0}));c(o,{successLabel:`Created`})})};var nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}`};function rt(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 it={command:`delete`,describe:`Delete a specific account`,builder:rt,handler:async e=>d({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.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 it={command:`delete`,describe:`Delete a specific account`,builder:rt,handler:async e=>d({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
63
63
  `);return}let o=await u(`Deleting`,async()=>n.send(nt,{account_id:i}));c(o,{successLabel:`Deleted`})})};var at={method:`GET`,path:t=>e`/accounts/${t.account_id}`};function ot(e){return e.usage(`$0 accounts get
64
64
 
65
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 st={command:`get`,describe:`Account Details`,builder:ot,handler:async e=>d({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(at,{account_id:i}));c(o,{successLabel:`Loaded`})})};function ct(e){return e.usage(`$0 accounts list
@@ -74,7 +74,7 @@ Add a user to the list of members for this account.`).option(`email`,{type:`stri
74
74
  Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
75
75
  `,choices:[`accepted`,`pending`]}).coerce(`status`,e=>g(e,`status`,`text`)).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 St={command:`create`,describe:`Add Member`,builder:xt,handler:async e=>d({command:`accounts members create`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({email:g(e.email,`email`,`text`),roles:e.roles,status:e.status,policies:m(e.policies,`policies`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(V,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}e.email===void 0&&(e.email=await _(`email`,`The contact email address of the user.`));let o=h({email:g(e.email,`email`,`text`),roles:e.roles,status:e.status,policies:m(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(V,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var Ct={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function wt(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 Tt={command:`delete <member-id>`,describe:`Remove Member`,builder:wt,handler:async e=>d({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
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 Tt={command:`delete <member-id>`,describe:`Remove Member`,builder:wt,handler:async e=>d({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
78
78
  `);return}let o=await u(`Deleting`,async()=>n.send(Ct,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Deleted`})})};var Et={method:`GET`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Dt(e){return e.usage(`$0 accounts members get <member-id>
79
79
 
80
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 Ot={command:`get <member-id>`,describe:`Member Details`,builder:Dt,handler:async e=>d({command:`accounts members get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Et,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Loaded`})})};var kt={method:`GET`,path:t=>e`/accounts/${t.account_id}/members`,query:[`order`,`status`,`page`,`per_page`,`direction`]};function At(e){return e.usage(`$0 accounts members list
@@ -83,28 +83,28 @@ List all members of an account.`).option(`order`,{type:`string`,description:`Fie
83
83
 
84
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 Nt={command:`update <member-id>`,describe:`Update Member`,builder:Mt,handler:async e=>d({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({roles:m(e.roles,`roles`),policies:m(e.policies,`policies`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(H,{body:t,account_id:i,member_id:e[`member-id`]}));c(r,{successLabel:`Updated`});return}let o=h({roles:m(e.roles,`roles`),policies:m(e.policies,`policies`)}),d=await u(`Updating`,async()=>n.send(H,{body:o,account_id:i,member_id:e[`member-id`]}));c(d,{successLabel:`Updated`})})},Pt={command:`members`,describe:`Operations for members`,builder:e=>e.command(St).command(Tt).command(Ot).command(jt).command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/move`,body:`json`};function Ft(e){return e.usage(`$0 accounts move
85
85
 
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. Authentication: A Global API key is required. User API Tokens do not include the required \`com.cloudflare.api.account.move\` permission.`).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 It={command:`move`,describe:`Move account to organization`,builder:Ft,handler:async e=>d({command:`accounts move`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/move`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({destination_organization_id:g(e[`destination-organization-id`],`destination-organization-id`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(U,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}e[`destination-organization-id`]===void 0&&(e[`destination-organization-id`]=await _(`destination-organization-id`,`The ID of the organization to move the account into.`));let o=h({destination_organization_id:g(e[`destination-organization-id`],`destination-organization-id`,`text`)}),d=await u(`Creating`,async()=>n.send(U,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var Lt={method:`GET`,path:t=>e`/accounts/${t.account_id}/organizations`};function Rt(e){return e.usage('$0 accounts organization list\n\nRetrieve 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.').option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`list`,describe:`List account organizations`,builder:Rt,handler:async e=>d({command:`accounts organization list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts organization list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/organizations`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Lt,{account_id:i}));c(o,{successLabel:`Loaded`})})},Bt={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Vt={method:`GET`,path:t=>e`/accounts/${t.account_id}/profile`};function Ht(e){return e.usage("$0 accounts profile get\n\nRetrieves 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ut={command:`get`,describe:`Get account profile`,builder:Ht,handler:async e=>d({command:`accounts profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/profile`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Vt,{account_id:i}));c(o,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/profile`,body:`json`,response:!1};function Wt(e){return e.usage("$0 accounts profile update\n\nUpdates 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Write` permission, which grants `com.cloudflare.api.account.update`.").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 Gt={command:`update`,describe:`Update account profile`,builder:Wt,handler:async e=>d({command:`accounts profile update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts profile update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({business_address:g(e[`business-address`],`business-address`,`text`),business_email:g(e[`business-email`],`business-email`,`text`),business_name:g(e[`business-name`],`business-name`,`text`),business_phone:g(e[`business-phone`],`business-phone`,`text`),external_metadata:g(e[`external-metadata`],`external-metadata`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(W,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e[`business-address`]===void 0&&(e[`business-address`]=await _(`business-address`,`The business_address field`)),e[`business-email`]===void 0&&(e[`business-email`]=await _(`business-email`,`The business_email field`)),e[`business-name`]===void 0&&(e[`business-name`]=await _(`business-name`,`The business_name field`)),e[`business-phone`]===void 0&&(e[`business-phone`]=await _(`business-phone`,`The business_phone field`)),e[`external-metadata`]===void 0&&(e[`external-metadata`]=await _(`external-metadata`,`The external_metadata field`));let o=h({business_address:g(e[`business-address`],`business-address`,`text`),business_email:g(e[`business-email`],`business-email`,`text`),business_name:g(e[`business-name`],`business-name`,`text`),business_phone:g(e[`business-phone`],`business-phone`,`text`),external_metadata:g(e[`external-metadata`],`external-metadata`,`text`)}),d=await u(`Updating`,async()=>n.send(W,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})},Kt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(Ut).command(Gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/cancel-downgrade`,body:`json`};function qt(e){return e.usage(`$0 accounts subscriptions cancelDelayedDowngrade
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. Authentication: A Global API key is required. User API Tokens do not include the required \`com.cloudflare.api.account.move\` permission.`).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 It={command:`move`,describe:`Move account to organization`,builder:Ft,handler:async e=>d({command:`accounts move`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/move`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({destination_organization_id:g(e[`destination-organization-id`],`destination-organization-id`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(U,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}e[`destination-organization-id`]===void 0&&(e[`destination-organization-id`]=await _(`destination-organization-id`,`The ID of the organization to move the account into.`));let o=h({destination_organization_id:g(e[`destination-organization-id`],`destination-organization-id`,`text`)}),d=await u(`Creating`,async()=>n.send(U,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var Lt={method:`GET`,path:t=>e`/accounts/${t.account_id}/organizations`};function Rt(e){return e.usage('$0 accounts organization list\n\nRetrieve 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.').option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`list`,describe:`List account organizations`,builder:Rt,handler:async e=>d({command:`accounts organization list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts organization list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/organizations`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Lt,{account_id:i}));c(o,{successLabel:`Loaded`})})},Bt={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Vt={method:`GET`,path:t=>e`/accounts/${t.account_id}/profile`};function Ht(e){return e.usage("$0 accounts profile get\n\nRetrieves 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ut={command:`get`,describe:`Get account profile`,builder:Ht,handler:async e=>d({command:`accounts profile get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/profile`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Vt,{account_id:i}));c(o,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/profile`,body:`json`,response:!1};function Wt(e){return e.usage("$0 accounts profile update\n\nUpdates 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. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Write` permission, which grants `com.cloudflare.api.account.update`.").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 Gt={command:`update`,describe:`Update account profile`,builder:Wt,handler:async e=>d({command:`accounts profile update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts profile update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({business_address:g(e[`business-address`],`business-address`,`text`),business_email:g(e[`business-email`],`business-email`,`text`),business_name:g(e[`business-name`],`business-name`,`text`),business_phone:g(e[`business-phone`],`business-phone`,`text`),external_metadata:g(e[`external-metadata`],`external-metadata`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(W,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e[`business-address`]===void 0&&(e[`business-address`]=await _(`business-address`,`The business_address field`)),e[`business-email`]===void 0&&(e[`business-email`]=await _(`business-email`,`The business_email field`)),e[`business-name`]===void 0&&(e[`business-name`]=await _(`business-name`,`The business_name field`)),e[`business-phone`]===void 0&&(e[`business-phone`]=await _(`business-phone`,`The business_phone field`)),e[`external-metadata`]===void 0&&(e[`external-metadata`]=await _(`external-metadata`,`The external_metadata field`));let o=h({business_address:g(e[`business-address`],`business-address`,`text`),business_email:g(e[`business-email`],`business-email`,`text`),business_name:g(e[`business-name`],`business-name`,`text`),business_phone:g(e[`business-phone`],`business-phone`,`text`),external_metadata:g(e[`external-metadata`],`external-metadata`,`text`)}),d=await u(`Updating`,async()=>n.send(W,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})},Kt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(Ut).command(Gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/cancel-downgrade`,body:`json`};function qt(e){return e.usage(`$0 accounts subscriptions cancel-delayed-downgrade
87
87
 
88
- 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 Jt={command:`cancelDelayedDowngrade`,describe:`Cancel Delayed Downgrade`,builder:qt,handler:async e=>d({command:`accounts subscriptions cancelDelayedDowngrade`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions cancelDelayedDowngrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({subscription_ids:e[`subscription-ids`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(G,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({subscription_ids:e[`subscription-ids`]}),d=await u(`Creating`,async()=>n.send(G,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var K={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`,body:`json`};function Yt(e){return e.usage(`$0 accounts subscriptions create
88
+ 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 Jt={command:`cancel-delayed-downgrade`,describe:`Cancel Delayed Downgrade`,builder:qt,handler:async e=>d({command:`accounts subscriptions cancel-delayed-downgrade`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions cancel-delayed-downgrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({subscription_ids:e[`subscription-ids`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(G,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({subscription_ids:e[`subscription-ids`]}),d=await u(`Creating`,async()=>n.send(G,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var K={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`,body:`json`};function Yt(e){return e.usage(`$0 accounts subscriptions create-cancel-reason <subscription-identifier>
89
89
 
90
- 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`]}).coerce(`frequency`,e=>g(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Xt={command:`create`,describe:`Create Subscription`,builder:Yt,handler:async e=>d({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await a():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;l({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:e.body===void 0?h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):p(e.body)});return}let n=await r(e),i=e.zone===void 0?`accounts`:`zones`,d=i===`zones`?await o({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await s();if(i===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(K,{body:t,account_or_zone:i,account_or_zone_id:d}));c(r,{successLabel:`Created`});return}let f=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),_=await u(`Creating`,async()=>n.send(K,{body:f,account_or_zone:i,account_or_zone_id:d}));c(_,{successLabel:`Created`})})};var q={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`,body:`json`};function Zt(e){return e.usage(`$0 accounts subscriptions createCancelReason <subscription-identifier>
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 Xt={command:`create-cancel-reason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:Yt,handler:async e=>d({command:`accounts subscriptions create-cancel-reason`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions create-cancel-reason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?h({other:g(e.other,`other`,`text`),reason_code:e[`reason-code`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(K,{body:t,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Created`});return}let o=h({other:g(e.other,`other`,`text`),reason_code:e[`reason-code`]}),d=await u(`Creating`,async()=>n.send(K,{body:o,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(d,{successLabel:`Created`})})};var q={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`,body:`json`};function Zt(e){return e.usage(`$0 accounts subscriptions create
91
91
 
92
- 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 Qt={command:`createCancelReason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:Zt,handler:async e=>d({command:`accounts subscriptions createCancelReason`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions createCancelReason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?h({other:g(e.other,`other`,`text`),reason_code:e[`reason-code`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(q,{body:t,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Created`});return}let o=h({other:g(e.other,`other`,`text`),reason_code:e[`reason-code`]}),d=await u(`Creating`,async()=>n.send(q,{body:o,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(d,{successLabel:`Created`})})};var $t={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`};function en(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
92
+ 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`]}).coerce(`frequency`,e=>g(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Qt={command:`create`,describe:`Create Subscription`,builder:Zt,handler:async e=>d({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await a():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;l({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:e.body===void 0?h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):p(e.body)});return}let n=await r(e),i=e.zone===void 0?`accounts`:`zones`,d=i===`zones`?await o({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await s();if(i===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(q,{body:t,account_or_zone:i,account_or_zone_id:d}));c(r,{successLabel:`Created`});return}let f=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),_=await u(`Creating`,async()=>n.send(q,{body:f,account_or_zone:i,account_or_zone_id:d}));c(_,{successLabel:`Created`})})};var $t={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`};function en(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
93
93
 
94
- 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 tn={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:en,handler:async e=>d({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force})){process.stderr.write(`Aborted.
95
- `);return}let o=await u(`Deleting`,async()=>n.send($t,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Deleted`})})};var nn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`};function rn(e){return e.usage(`$0 accounts subscriptions get
94
+ 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 tn={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:en,handler:async e=>d({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force})){process.stderr.write(`Aborted.
95
+ `);return}let o=await u(`Deleting`,async()=>n.send($t,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Deleted`})})};var nn={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,errors:{404:`NotFoundError`}};function rn(e){return e.usage(`$0 accounts subscriptions get-by-identifier <subscription-identifier>
96
96
 
97
- 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 an={command:`get`,describe:`List Subscriptions`,builder:rn,handler:async e=>d({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await a():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;l({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 n=await r(e),i=e.zone===void 0?`accounts`:`zones`,d=i===`zones`?await o({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await s();i===`zones`?e.zoneId=d:e.accountId=d;let f=await u(`Loading`,async()=>n.send(nn,{account_or_zone:i,account_or_zone_id:d}));c(f,{successLabel:`Loaded`})})};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,errors:{404:`NotFoundError`}};function sn(e){return e.usage(`$0 accounts subscriptions getByIdentifier <subscription-identifier>
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 an={command:`get-by-identifier <subscription-identifier>`,describe:`Get Subscription`,builder:rn,handler:async e=>d({command:`accounts subscriptions get-by-identifier`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions get-by-identifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(nn,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`};function sn(e){return e.usage(`$0 accounts subscriptions get-cancel-reason <subscription-identifier>
98
98
 
99
- 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 cn={command:`getByIdentifier <subscription-identifier>`,describe:`Get Subscription`,builder:sn,handler:async e=>d({command:`accounts subscriptions getByIdentifier`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions getByIdentifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(on,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var ln={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`};function un(e){return e.usage(`$0 accounts subscriptions getCancelReason <subscription-identifier>
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 cn={command:`get-cancel-reason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:sn,handler:async e=>d({command:`accounts subscriptions get-cancel-reason`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions get-cancel-reason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(on,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var ln={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`};function un(e){return e.usage(`$0 accounts subscriptions get
100
100
 
101
- 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 dn={command:`getCancelReason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:un,handler:async e=>d({command:`accounts subscriptions getCancelReason`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions getCancelReason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(ln,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,body:`json`};function fn(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
101
+ 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 dn={command:`get`,describe:`List Subscriptions`,builder:un,handler:async e=>d({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await a():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;l({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 n=await r(e),i=e.zone===void 0?`accounts`:`zones`,d=i===`zones`?await o({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await s();i===`zones`?e.zoneId=d:e.accountId=d;let f=await u(`Loading`,async()=>n.send(ln,{account_or_zone:i,account_or_zone_id:d}));c(f,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,body:`json`};function fn(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
102
102
 
103
- 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`]}).coerce(`frequency`,e=>g(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const pn={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:fn,handler:async e=>d({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(J,{body:t,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Updated`});return}let o=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),d=await u(`Updating`,async()=>n.send(J,{body:o,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(d,{successLabel:`Updated`})})},mn={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(Jt).command(Xt).command(Qt).command(tn).command(an).command(cn).command(dn).command(pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/tokens`,body:`json`};function hn(e){return e.usage(`$0 accounts tokens create
103
+ 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`]}).coerce(`frequency`,e=>g(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const pn={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:fn,handler:async e=>d({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(J,{body:t,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Updated`});return}let o=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:m(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),d=await u(`Updating`,async()=>n.send(J,{body:o,account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(d,{successLabel:`Updated`})})},mn={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(Jt).command(Qt).command(Xt).command(tn).command(dn).command(an).command(cn).command(pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/tokens`,body:`json`};function hn(e){return e.usage(`$0 accounts tokens create
104
104
 
105
105
  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 gn={command:`create`,describe:`Create Token`,builder:hn,handler:async e=>d({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:m(e.policies,`policies`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(Y,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await _(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:m(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(Y,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var _n={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function vn(e){return e.usage(`$0 accounts tokens delete <token-id>
106
106
 
107
- 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 yn={command:`delete <token-id>`,describe:`Delete Token`,builder:vn,handler:async e=>d({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
107
+ 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 yn={command:`delete <token-id>`,describe:`Delete Token`,builder:vn,handler:async e=>d({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
108
108
  `);return}let o=await u(`Deleting`,async()=>n.send(_n,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var bn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function xn(e){return e.usage(`$0 accounts tokens get <token-id>
109
109
 
110
110
  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 Sn={command:`get <token-id>`,describe:`Token Details`,builder:xn,handler:async e=>d({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(bn,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Loaded`})})};var Cn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens`,query:[`page`,`per_page`,`direction`,`include_expired`]};function wn(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 Tn={command:`list`,describe:`List Tokens`,builder:wn,handler:async e=>d({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){let e=await a();l({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Cn,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var En={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/permission_groups`,query:[`name`,`scope`]};function Dn(e){return e.usage(`$0 accounts tokens permission-groups list
@@ -113,7 +113,7 @@ Find all available permission groups for Account Owned API Tokens. Each permissi
113
113
  The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
114
114
  The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const On={command:`list`,describe:`List Permission Groups`,builder:Dn,handler:async e=>d({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={name:e.name,scope:e.scope};if(e.dryRun){let e=await a();l({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(En,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},kn={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(On).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var An={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}/value`};function jn(e){return e.usage(`$0 accounts tokens roll <token-id>
115
115
 
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 Mn={command:`roll <token-id>`,describe:`Roll Token`,builder:jn,handler:async e=>d({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await v({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
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 Mn={command:`roll <token-id>`,describe:`Roll Token`,builder:jn,handler:async e=>d({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
117
117
  `);return}let o=await u(`Deleting`,async()=>n.send(An,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`,body:`json`};function Nn(e){return e.usage(`$0 accounts tokens update <token-id>
118
118
 
119
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`]}).coerce(`status`,e=>g(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Pn={command:`update <token-id>`,describe:`Update Token`,builder:Nn,handler:async e=>d({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:m(e.policies,`policies`),status:e.status}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(X,{body:t,account_id:i,token_id:e[`token-id`]}));c(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await _(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:m(e.policies,`policies`),status:e.status}),d=await u(`Updating`,async()=>n.send(X,{body:o,account_id:i,token_id:e[`token-id`]}));c(d,{successLabel:`Updated`})})};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/verify`};function Z(e){return e.usage(`$0 accounts tokens verify
@@ -123,10 +123,10 @@ Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Vali
123
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 Bn={command:`list`,describe:`List Image Resizing configurations for account`,builder:zn,handler:async e=>d({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts transformations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/settings/transformations`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Rn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Vn={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(Bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}`,body:`json`};function Hn(e){return e.usage(`$0 accounts update
124
124
 
125
125
  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 Un={command:`update`,describe:`Update Account`,builder:Hn,handler:async e=>d({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({id:g(e.id,`id`,`text`),name:g(e.name,`name`,`text`),settings:{abuse_contact_email:g(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(Q,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e.id===void 0&&(e.id=await _(`id`,`Identifier`)),e.name===void 0&&(e.name=await _(`name`,`Account name`));let o=h({id:g(e.id,`id`,`text`),name:g(e.name,`name`,`text`),settings:{abuse_contact_email:g(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}),d=await u(`Updating`,async()=>n.send(Q,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`,body:`json`,constants:{value:`on`}};function Wn(e){return e.usage(`$0 accounts ut-billing edit
126
+ Two-Factor Authentication is enabled`}).option(`type`,{type:`string`,description:`The type field`,choices:[`standard`,`enterprise`]}).coerce(`type`,e=>g(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Un={command:`update`,describe:`Update Account`,builder:Hn,handler:async e=>d({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({id:g(e.id,`id`,`text`),name:g(e.name,`name`,`text`),settings:{abuse_contact_email:g(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]},type:e.type}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(Q,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e.id===void 0&&(e.id=await _(`id`,`Identifier`)),e.name===void 0&&(e.name=await _(`name`,`Account name`)),e.type===void 0&&(e.type=await v(`type`,`The type field`,[`standard`,`enterprise`]));let o=h({id:g(e.id,`id`,`text`),name:g(e.name,`name`,`text`),settings:{abuse_contact_email:g(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]},type:e.type}),d=await u(`Updating`,async()=>n.send(Q,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`,body:`json`,constants:{value:`on`}};function Wn(e){return e.usage(`$0 accounts ut-billing edit
127
127
 
128
128
  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
129
  Note: once enabled, this setting cannot be set back to "off".
130
- `,choices:[`on`]}).coerce(`value`,e=>g(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Gn={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Wn,handler:async e=>d({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({value:e.value}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send($,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await ee(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let o=h({value:e.value}),d=await u(`Updating`,async()=>n.send($,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})};var Kn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`};function qn(e){return e.usage(`$0 accounts ut-billing get
130
+ `,choices:[`on`]}).coerce(`value`,e=>g(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Gn={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Wn,handler:async e=>d({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({value:e.value}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send($,{body:t,account_id:i}));c(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await v(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let o=h({value:e.value}),d=await u(`Updating`,async()=>n.send($,{body:o,account_id:i}));c(d,{successLabel:`Updated`})})};var Kn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`};function qn(e){return e.usage(`$0 accounts ut-billing get
131
131
 
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 Jn={command:`get`,describe:`Get Unique Transformations billing setting`,builder:qn,handler:async e=>d({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts ut-billing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Kn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Yn={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Gn).command(Jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Xn={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(tt).command(it).command(st).command(lt).command(It).command(Un).command(ve).command(Ke).command($e).command(bt).command(Pt).command(Bt).command(Kt).command(mn).command(Ln).command(Vn).command(Yn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Xn as default};
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 Jn={command:`get`,describe:`Get Unique Transformations billing setting`,builder:qn,handler:async e=>d({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts ut-billing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Kn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Yn={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Gn).command(Jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Xn={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(tt).command(it).command(st).command(lt).command(It).command(Un).command(_e).command(Ke).command($e).command(bt).command(Pt).command(Bt).command(Kt).command(mn).command(Ln).command(Vn).command(Yn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Xn as default};