cf 1.0.0-beta.17 → 1.0.0-beta.18

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 (226) hide show
  1. package/dist/_meta/commands.json +6117 -4540
  2. package/dist/_meta/schemas.json +5016 -3257
  3. package/dist/{abuse-reports-C4LxDvUM.mjs → abuse-reports-Ce-g5uZP.mjs} +6 -6
  4. package/dist/{access-DnWW2AAT.mjs → access-BtsMwesh.mjs} +1 -1
  5. package/dist/{accounts-8UcHNm3S.mjs → accounts-X5QVzEUW.mjs} +27 -21
  6. package/dist/{acm-qRM3iy4Z.mjs → acm-C_NepMi6.mjs} +1 -1
  7. package/dist/{addressing-CAb8z2Dq.mjs → addressing-BkQY1hoA.mjs} +18 -18
  8. package/dist/{agent-memory-oIUP4ZV5.mjs → agent-memory-1OPgC3lK.mjs} +6 -6
  9. package/dist/{ai-DnhytGdc.mjs → ai-Bb0_Zknm.mjs} +1 -1
  10. package/dist/{ai-audit-B7_5EOcN.mjs → ai-audit-DuEjVdML.mjs} +1 -1
  11. package/dist/{ai-gateway-b3FFu6UV.mjs → ai-gateway-Cm2vWMSI.mjs} +42 -42
  12. package/dist/ai-search-DDRpxyOM.mjs +79 -0
  13. package/dist/{ai-security-KUs94UW-.mjs → ai-security-A2STvE1b.mjs} +5 -5
  14. package/dist/{alerting-CCmyEPzN.mjs → alerting-CIwSk-Ks.mjs} +1 -1
  15. package/dist/{analytics-BAvBj6qx.mjs → analytics-H--uM3DA.mjs} +7 -7
  16. package/dist/{analytics-engine-DAJp89gM.mjs → analytics-engine-Alu7cllT.mjs} +1 -1
  17. package/dist/{api-security-BItVQymb.mjs → api-security-D-pcnhUL.mjs} +26 -26
  18. package/dist/{argo-DsJCvfml.mjs → argo-Lvmcx3am.mjs} +1 -1
  19. package/dist/{artifacts-DzHXeah6.mjs → artifacts-xT5S-mVa.mjs} +1 -1
  20. package/dist/{audit-logs-D9XxsVZm.mjs → audit-logs-DEoRBLkU.mjs} +1 -1
  21. package/dist/{auth-C530fHKQ.mjs → auth-B73lQS2h.mjs} +1 -1
  22. package/dist/auth-DMzEmOhG.mjs +2 -0
  23. package/dist/{auth-MNz2D-PD.mjs → auth-Db1KT0vm.mjs} +1 -1
  24. package/dist/{auth-token-Cw4c0y89.mjs → auth-token-D9XIPlwf.mjs} +1 -1
  25. package/dist/{basin-catalog-DcMiZV9J.mjs → basin-catalog-DFHt3cWi.mjs} +1 -1
  26. package/dist/{billing-COgAWTYh.mjs → billing-Bm2JNSGa.mjs} +6 -6
  27. package/dist/body-parser-DnBfDdx3.mjs +2 -0
  28. package/dist/{bot-management-Dx3lh9Fi.mjs → bot-management-CSr38g-O.mjs} +4 -4
  29. package/dist/{botnet-feed-C8496Nhl.mjs → botnet-feed-ebeWWSJj.mjs} +1 -1
  30. package/dist/{brand-protection-B0p8Sv6s.mjs → brand-protection-BCn9Mv-d.mjs} +5 -5
  31. package/dist/browser-run-BcWxzhAn.mjs +42 -0
  32. package/dist/{builds-DmEFTQTa.mjs → builds-BMwDzi7G.mjs} +39 -39
  33. package/dist/{cache-BUh85NRr.mjs → cache-_VaTLC5T.mjs} +1 -1
  34. package/dist/{cli-DJhpXf38.mjs → cli-P3q5DG3W.mjs} +1 -1
  35. package/dist/{client-side-security-km3-4L_4.mjs → client-side-security-CjSXrpa9.mjs} +1 -1
  36. package/dist/{cloud-connector-BoKFprDD.mjs → cloud-connector-BPJBeP06.mjs} +1 -1
  37. package/dist/{cloudforce-one-DN5N3C3w.mjs → cloudforce-one-DXX31GMi.mjs} +189 -189
  38. package/dist/{command-B694oLDo.mjs → command-BXiA79DP.mjs} +1 -1
  39. package/dist/{command-rx0Kb5pn.mjs → command-BbsPxJBT.mjs} +1 -1
  40. package/dist/{command-RC9WM5jq.mjs → command-Bkc04OyY.mjs} +1 -1
  41. package/dist/{command-Bmee6uwe.mjs → command-BtTc28ql.mjs} +1 -1
  42. package/dist/{command-CAs3SxlI.mjs → command-CBZhxmKD.mjs} +1 -1
  43. package/dist/{command-CCq-Z2Ua.mjs → command-CL7LLXM7.mjs} +1 -1
  44. package/dist/{command-DerHAjQL.mjs → command-CYyfigfC.mjs} +1 -1
  45. package/dist/{command-D1JR8Fb7.mjs → command-CxWLFv5Y.mjs} +1 -1
  46. package/dist/{command-CiApsRql.mjs → command-DDcBC4px.mjs} +1 -1
  47. package/dist/{command-CbQFbfps.mjs → command-NoxvOARP.mjs} +1 -1
  48. package/dist/{completions-11latun5.mjs → completions-CrDmwKnK.mjs} +1 -1
  49. package/dist/{connector-interrupts-wvQcZsO1.mjs → connector-interrupts-V4HGULCM.mjs} +1 -1
  50. package/dist/{connector-telemetry-events-C0GGCIQk.mjs → connector-telemetry-events-D9mTcfbJ.mjs} +1 -1
  51. package/dist/{connector-telemetry-snapshots-ZXzsFgea.mjs → connector-telemetry-snapshots-COrPVKol.mjs} +1 -1
  52. package/dist/{connectors-DXIUG4Zi.mjs → connectors-DvVlxGDx.mjs} +1 -1
  53. package/dist/{containers-DCH6MFjY.mjs → containers-Bt2zFsFd.mjs} +8 -8
  54. package/dist/{containers-WMWKhLkp.mjs → containers-BtcOgwm5.mjs} +2 -2
  55. package/dist/{content-scan-CRDmR7rD.mjs → content-scan-DldLmTjy.mjs} +1 -1
  56. package/dist/{context-q-6bMSL-.mjs → context-C_a8oSY9.mjs} +1 -1
  57. package/dist/cps-REo1OWP1.mjs +6 -0
  58. package/dist/csam-scanner-CIbbdoJK.mjs +10 -0
  59. package/dist/{custom-csrs-BV017SqE.mjs → custom-csrs-iGNc3rSZ.mjs} +1 -1
  60. package/dist/{custom-hostnames-DI_dFaof.mjs → custom-hostnames-BNxYbTyu.mjs} +15 -15
  61. package/dist/{custom-nameservers-BLoE8VGG.mjs → custom-nameservers-BMJoTSlQ.mjs} +1 -1
  62. package/dist/custom-pages-Qdemt1Fm.mjs +21 -0
  63. package/dist/{d1-Dbs8HItA.mjs → d1-DvCiQibO.mjs} +8 -8
  64. package/dist/{deploy-5utIiOMN.mjs → deploy-K664XPOb.mjs} +1 -1
  65. package/dist/{deploy-context-C0iVbWRG.mjs → deploy-context-ClNVJYlR.mjs} +13 -13
  66. package/dist/{diagnostics-C9B07eJY.mjs → diagnostics-Cw0mtcep.mjs} +2 -2
  67. package/dist/{dls-lbM3i4x-.mjs → dls-DoqfqutH.mjs} +1 -1
  68. package/dist/{dns-QTMPGYMa.mjs → dns-DC6WcO3m.mjs} +21 -21
  69. package/dist/{dns-firewall-Bfv0S44I.mjs → dns-firewall-DpQH9BCE.mjs} +9 -9
  70. package/dist/{docs-bV3hPwQL.mjs → docs-CqNRBHab.mjs} +1 -1
  71. package/dist/{durable-objects-0JvGTV27.mjs → durable-objects-CJDDy3CC.mjs} +1 -1
  72. package/dist/{email-auth-PzRqG0ex.mjs → email-auth--NHg1TjG.mjs} +1 -1
  73. package/dist/{email-routing-BgHL0Rbz.mjs → email-routing-COjENK55.mjs} +13 -13
  74. package/dist/{email-security-CSTKIecn.mjs → email-security-rdjH95T2.mjs} +38 -38
  75. package/dist/{email-sending-BSwuAir8.mjs → email-sending-26VJhR6Q.mjs} +18 -18
  76. package/dist/{field-extractors-B_lFnwaL.mjs → field-extractors-DBOvGOwz.mjs} +2 -2
  77. package/dist/{firewall-BsZxVitA.mjs → firewall-D8K93ffF.mjs} +20 -20
  78. package/dist/{flagship-qBohOZaM.mjs → flagship-CHdmCmvQ.mjs} +11 -11
  79. package/dist/{fraud-vGNdrSm-.mjs → fraud-CY4TV5Vc.mjs} +1 -1
  80. package/dist/{google-tag-gateway-BHdOg4VW.mjs → google-tag-gateway-DzSt4wlz.mjs} +1 -1
  81. package/dist/healthchecks-B52Mf3uL.mjs +22 -0
  82. package/dist/{hostnames-CLlaMqHu.mjs → hostnames-BMITIM8P.mjs} +1 -1
  83. package/dist/{hyperdrive-CXTqaIqk.mjs → hyperdrive-CHsW0r6Z.mjs} +1 -1
  84. package/dist/{iam-Dl_n_Lqq.mjs → iam-o1n9eUXf.mjs} +9 -9
  85. package/dist/{images-vMtXk2Rf.mjs → images-CJHAGxX6.mjs} +37 -37
  86. package/dist/index.mjs +1 -1
  87. package/dist/{init-_7djeBVw.mjs → init-CqQDL6i3.mjs} +1 -1
  88. package/dist/{intel-Bq4GGXv-.mjs → intel-B3S1gxUg.mjs} +1 -1
  89. package/dist/{ips-BcvZS46g.mjs → ips-q_UJMiy8.mjs} +1 -1
  90. package/dist/{k2-DL4hrVTj.mjs → k2-BNqVZnDN.mjs} +2 -2
  91. package/dist/{kv-BLo9wMgb.mjs → kv-B0nXSOcW.mjs} +1 -1
  92. package/dist/{lazy-command-CRcT6Dx-.mjs → lazy-command-4ccdBqrc.mjs} +1 -1
  93. package/dist/{leaked-credential-checks-Dx4RXMyN.mjs → leaked-credential-checks-BXwIjlTs.mjs} +1 -1
  94. package/dist/load-balancers-DJtMztJ0.mjs +76 -0
  95. package/dist/{login-Du_W6b9o.mjs → login-D-1FiBNv.mjs} +1 -1
  96. package/dist/{login-DT6Q1UJw.mjs → login-chQP8825.mjs} +1 -1
  97. package/dist/{logo-matches-C-1J0Oc3.mjs → logo-matches-qVYq8tWL.mjs} +1 -1
  98. package/dist/{logos-BuhvSu_H.mjs → logos-tnIahhcu.mjs} +1 -1
  99. package/dist/{logpush-DgZtF9vG.mjs → logpush-D4s3pJRw.mjs} +24 -24
  100. package/dist/{logs-CaKOk-1v.mjs → logs-cw7UL5V2.mjs} +3 -3
  101. package/dist/{magic-cloud-networking-CKxXYT8r.mjs → magic-cloud-networking-CLEHztNY.mjs} +1 -1
  102. package/dist/{magic-network-monitoring-BykFGQCz.mjs → magic-network-monitoring-DRwygeVq.mjs} +9 -9
  103. package/dist/{magic-transit-DYULsrUP.mjs → magic-transit-BFopRdPs.mjs} +170 -170
  104. package/dist/{managed-defense-DIb_uN25.mjs → managed-defense-D5kpmq0T.mjs} +9 -9
  105. package/dist/{managed-transforms-an3wQ0DW.mjs → managed-transforms-CT4jjnzJ.mjs} +2 -2
  106. package/dist/{matches-DkLSWb5X.mjs → matches-ClJ_24EY.mjs} +1 -1
  107. package/dist/{mcp-BcV1XqE8.mjs → mcp-50os3IRG.mjs} +10 -10
  108. package/dist/{mesh-CSSlZ-0F.mjs → mesh-jxtQP8sS.mjs} +2 -2
  109. package/dist/{monetization-B-nJ0SyI.mjs → monetization-D6cCDi-h.mjs} +4 -4
  110. package/dist/{network-ZzxQ_Dcz.mjs → network-dnWHB2uY.mjs} +27 -25
  111. package/dist/{network-interconnects-CI9NXQpe.mjs → network-interconnects-Cf8qSVdt.mjs} +1 -1
  112. package/dist/{o11y-LG6Y9LUZ.mjs → o11y-oMSg1pG4.mjs} +49 -49
  113. package/dist/{oauth-CP82E1_0.mjs → oauth-BfBdHhPS.mjs} +1 -1
  114. package/dist/{oauth-Bx693Af5.mjs → oauth-DDOiiH7h.mjs} +1 -1
  115. package/dist/{oauth-clients-BA30rTEl.mjs → oauth-clients-XDmoe-b4.mjs} +1 -1
  116. package/dist/{oauth-scopes-hseWES1v.mjs → oauth-scopes-D9VYGuTs.mjs} +1 -1
  117. package/dist/organization-94lHeeOs.mjs +75 -0
  118. package/dist/{organizations-CcgZPmFl.mjs → organizations-BJf3UTFi.mjs} +1 -1
  119. package/dist/{origin-post-quantum-encryption-BhdlaolV.mjs → origin-post-quantum-encryption-DMytVSUZ.mjs} +1 -1
  120. package/dist/{page-rules-DFfqfllI.mjs → page-rules-BUI-50oz.mjs} +4 -4
  121. package/dist/pages-CcdpCzHs.mjs +54 -0
  122. package/dist/pay-per-crawl-B1uHZn9j.mjs +38 -0
  123. package/dist/{pay-per-use-C_HxhpM4.mjs → pay-per-use-t066I5wm.mjs} +7 -7
  124. package/dist/{pipelines-DUMIVwof.mjs → pipelines-Co6S044l.mjs} +8 -8
  125. package/dist/precursor-BftyvS86.mjs +4 -0
  126. package/dist/previews-BLhnhElx.mjs +7 -0
  127. package/dist/{progress-DaQ4MzBI.mjs → progress-Q5w9PNTT.mjs} +1 -1
  128. package/dist/{prompt-KWYZvJWM.mjs → prompt-C0hKSr-R.mjs} +1 -1
  129. package/dist/{queries-DoyhspQf.mjs → queries-4MubO6Sz.mjs} +3 -3
  130. package/dist/{queues-BPxTU2rU.mjs → queues-CteS5M92.mjs} +17 -17
  131. package/dist/{r2-CQt4S7o7.mjs → r2-2QpT_Gso.mjs} +24 -24
  132. package/dist/{radar-CALpR1vq.mjs → radar-ODKaK4FJ.mjs} +1 -1
  133. package/dist/{raw-fetch-Cy09TjHc.mjs → raw-fetch-CEOuoKl9.mjs} +1 -1
  134. package/dist/{realtime-BiHKBoI4.mjs → realtime-DkfU8uEX.mjs} +84 -84
  135. package/dist/registrar-DM6JTVPS.mjs +43 -0
  136. package/dist/{registrar-sandbox-BttFwYqE.mjs → registrar-sandbox-BPNGf65G.mjs} +11 -9
  137. package/dist/{reporting-8aRJD5HX.mjs → reporting-5yFNXbJg.mjs} +1 -1
  138. package/dist/{request-headers-CqfJOkpO.mjs → request-headers-DXvswze2.mjs} +1 -1
  139. package/dist/request-tracers-BarLZY95.mjs +4 -0
  140. package/dist/{resource-sharing-uVVpMW0w.mjs → resource-sharing-BVEwBPs8.mjs} +19 -19
  141. package/dist/{rules-CFOuN3t2.mjs → rules-_C31X4Jz.mjs} +6 -6
  142. package/dist/{rulesets-DkhV2Hny.mjs → rulesets-8RwxoFhG.mjs} +6 -6
  143. package/dist/{rum-BnMW0Tlb.mjs → rum-CAUcpXpM.mjs} +6 -6
  144. package/dist/{run-Clc3P2u7.mjs → run-DtFLvOHB.mjs} +1 -1
  145. package/dist/run-LcOb9rhI.mjs +2 -0
  146. package/dist/{schema-flags-b096XMpt.mjs → schema-flags-DibfxEF6.mjs} +1 -1
  147. package/dist/{scim-tvZm6A-r.mjs → scim-DX5XrQ4w.mjs} +1 -1
  148. package/dist/{secrets-store-DuNxSh1_.mjs → secrets-store-DSqqrr25.mjs} +1 -1
  149. package/dist/{security-insights-C17c9ZYZ.mjs → security-insights-FSktO04S.mjs} +1 -1
  150. package/dist/{security-txt-D4pRk7-w.mjs → security-txt-D2g3lQdg.mjs} +1 -1
  151. package/dist/{shared-zePemxHi.mjs → shared-eefMO8R4.mjs} +1 -1
  152. package/dist/smart-shield-IVb2sR0C.mjs +24 -0
  153. package/dist/{snippets-BIcZ6vSW.mjs → snippets-cWwWficN.mjs} +2 -2
  154. package/dist/{spectrum-DjDX0geK.mjs → spectrum-DYiIBYRB.mjs} +1 -1
  155. package/dist/{speed-DiPoFJMm.mjs → speed-C7uiW2Wf.mjs} +1 -1
  156. package/dist/{sql-DLjCt_R3.mjs → sql-TGV8qQMj.mjs} +1 -1
  157. package/dist/{src-CutrsNl4.mjs → src-BUH-P_zd.mjs} +5 -5
  158. package/dist/ssl-xQP_HbWN.mjs +139 -0
  159. package/dist/{stream-uhn_Zsni.mjs → stream-CfWgj8Cr.mjs} +55 -55
  160. package/dist/{submit-C3suIDBX.mjs → submit-DxGr1T40.mjs} +1 -1
  161. package/dist/tags-LEJ2VYhQ.mjs +23 -0
  162. package/dist/{telemetry-DYjsavEr.mjs → telemetry-BHne10Yy.mjs} +1 -1
  163. package/dist/telemetry-BavSU4ku.mjs +2 -0
  164. package/dist/{tenant-DK88yQM4.mjs → tenant-7d5vwc6K.mjs} +1 -1
  165. package/dist/{tenant-custom-nameservers-BZ1JD1Yf.mjs → tenant-custom-nameservers-BkxlPr5O.mjs} +1 -1
  166. package/dist/{tunnels-DjbomhCa.mjs → tunnels-DlGODvwT.mjs} +4 -4
  167. package/dist/{turnstile-DXrbEy2A.mjs → turnstile-DhLkdhij.mjs} +5 -5
  168. package/dist/update-check-nLfkSfdz.mjs +2 -0
  169. package/dist/update-check-worker.mjs +1 -1
  170. package/dist/{update-check-BhhtSXVZ.mjs → update-check-wvjOsnGK.mjs} +1 -1
  171. package/dist/{url-info-a0mY4UsC.mjs → url-info-CeoV5dBc.mjs} +1 -1
  172. package/dist/{url-normalization-DiwpDIhc.mjs → url-normalization-9NoaoRNh.mjs} +1 -1
  173. package/dist/{url-scanner-D0egjBe5.mjs → url-scanner-w_-Sumz-.mjs} +8 -8
  174. package/dist/{user-DDH9lxf5.mjs → user-D33B3alX.mjs} +59 -59
  175. package/dist/{vectorize-DaT3amFV.mjs → vectorize-Wp9De13y.mjs} +17 -17
  176. package/dist/version-B2RUUqGT.mjs +2 -0
  177. package/dist/{waiting-rooms-BGMpu9gS.mjs → waiting-rooms-BE8FloRd.mjs} +13 -13
  178. package/dist/{web-assets-NqNglLSI.mjs → web-assets-ew0iaP7c.mjs} +35 -35
  179. package/dist/{web3-UnCUuIfB.mjs → web3-BUyXBaqq.mjs} +6 -6
  180. package/dist/{workers-builds-Cy6fdtm5.mjs → workers-builds-DzU9NGno.mjs} +7 -7
  181. package/dist/{workers-for-platforms-JscCHivQ.mjs → workers-for-platforms-B4xzFNxJ.mjs} +25 -22
  182. package/dist/{workers-DfA9ugmb.mjs → workers-pP5tsDbD.mjs} +25 -22
  183. package/dist/{workers-vpc-FDZQBqOu.mjs → workers-vpc-Bre_t9Al.mjs} +1 -1
  184. package/dist/{workflows-Dq-k81hU.mjs → workflows-DXYGKtqq.mjs} +1 -1
  185. package/dist/zaraz-DoH4QD0u.mjs +22 -0
  186. package/dist/{zero-trust-CZ685QhO.mjs → zero-trust-DKt20rzE.mjs} +461 -458
  187. package/dist/{zone-DcZIUTWt.mjs → zone-BXM3p0JR.mjs} +1 -1
  188. package/dist/{zones-BVdvYUCv.mjs → zones-CJdtqEBx.mjs} +21 -21
  189. package/package.json +9 -9
  190. package/dist/account-tags-zvHRQZxb.mjs +0 -15
  191. package/dist/ai-search-CtfW5fzl.mjs +0 -79
  192. package/dist/auth-Ccm5viK_.mjs +0 -2
  193. package/dist/body-parser-DkHKPkJ7.mjs +0 -2
  194. package/dist/browser-run-ChXohmNG.mjs +0 -42
  195. package/dist/certificate-authorities-BTLdA7EQ.mjs +0 -6
  196. package/dist/client-certificates-B3UxH_Au.mjs +0 -13
  197. package/dist/cps-Due0P5IW.mjs +0 -6
  198. package/dist/csam-scanner-DvLrPw45.mjs +0 -10
  199. package/dist/ct-alerting-BtEGkRJi.mjs +0 -5
  200. package/dist/custom-certificates-CMLXTTEc.mjs +0 -17
  201. package/dist/custom-pages-ubava9Qm.mjs +0 -21
  202. package/dist/dcv-delegation-sGGt6UU_.mjs +0 -4
  203. package/dist/healthchecks-DAYYLZ6u.mjs +0 -22
  204. package/dist/keyless-certificates-0pzjkZb6.mjs +0 -13
  205. package/dist/keys-BSV5IXdU.mjs +0 -4
  206. package/dist/load-balancers-CCCWoQXv.mjs +0 -76
  207. package/dist/mtls-certificates-ukwDz6Lc.mjs +0 -13
  208. package/dist/organization-DMr_z6n4.mjs +0 -71
  209. package/dist/origin-ca-certificates-BZxUbB5N.mjs +0 -11
  210. package/dist/origin-tls-client-auth-DzbZvtmi.mjs +0 -30
  211. package/dist/pages-BkcL5rC4.mjs +0 -54
  212. package/dist/pay-per-crawl-Dulm7Xy5.mjs +0 -38
  213. package/dist/precursor-DsGbA_YJ.mjs +0 -4
  214. package/dist/previews-Cma3-M7K.mjs +0 -7
  215. package/dist/registrar-gERQ3b85.mjs +0 -43
  216. package/dist/request-tracers-DcnwQg3K.mjs +0 -4
  217. package/dist/resource-tagging-SlsUtLsq.mjs +0 -4
  218. package/dist/run-CHNyLZLG.mjs +0 -2
  219. package/dist/smart-shield-2egm1Vaw.mjs +0 -24
  220. package/dist/ssl-vNzK0c9S.mjs +0 -45
  221. package/dist/tags-Dy2jG-Dt.mjs +0 -4
  222. package/dist/telemetry-Bdv5LZZs.mjs +0 -2
  223. package/dist/update-check-Dld7rbLd.mjs +0 -2
  224. package/dist/values-Bfr5-bL6.mjs +0 -4
  225. package/dist/version-CAuKDZAG.mjs +0 -2
  226. package/dist/zaraz-Dpr1pLDx.mjs +0 -22
@@ -1,7 +1,7 @@
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-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
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-Db1KT0vm.mjs";import{a,i as o,t as s}from"./context-C_a8oSY9.mjs";import{t as c}from"./output-Co4xdFf6.mjs";import{t as l}from"./dry-run-C2KjGX10.mjs";import{t as u}from"./progress-Q5w9PNTT.mjs";import{t as d}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{a as f,i as p,n as m,t as h}from"./body-parser-DnBfDdx3.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-C0hKSr-R.mjs";import{n as ee,t as te}from"./raw-fetch-CEOuoKl9.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 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>
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`]}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
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
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>
@@ -20,9 +20,9 @@ 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 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>
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`)}):m(e.body)});return}let i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body){let t=m(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 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
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`]}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
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
 
@@ -36,11 +36,11 @@ Gets unpaid invoice information for an account.`).option(`dry-run`,{type:`boolea
36
36
 
37
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:`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
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`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:`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
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`]}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
- 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>
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`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
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>
@@ -51,13 +51,13 @@ Lists all payment methods for an account.`).option(`page`,{type:`number`,descrip
51
51
 
52
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 toggle-pdf-invoices
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`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:`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>
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}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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(`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
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`)}}):m(e.body)});return}let i=await r(e);if(e.body){let r=m(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
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
@@ -72,7 +72,7 @@ Lists the available audit log product categories and the resource products each
72
72
 
73
73
  Add a user to the list of members for this account.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).option(`roles`,{type:`string`,array:!0,description:`Array of roles associated with this member.`}).option(`status`,{type:`string`,description:`Status of the member invitation. If not provided during creation, defaults to 'pending'.
74
74
  Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
75
- `,choices:[`accepted`,`pending`]}).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>
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:p(e.policies,`policies`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:p(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
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>
@@ -81,15 +81,21 @@ Get information about a specific member of an account.`).positional(`member-id`,
81
81
 
82
82
  List all members of an account.`).option(`order`,{type:`string`,description:`Field to order results by.`,choices:[`user.first_name`,`user.last_name`,`user.email`,`status`]}).option(`status`,{type:`string`,description:`A member's status in the account.`,choices:[`accepted`,`pending`,`rejected`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jt={command:`list`,describe:`List Members`,builder:At,handler:async e=>d({command:`accounts members list`,classification:{safeFlags:[`order`,`status`,`direction`,`dry-run`]}},e,async()=>{let n={order:e.order,status:e.status,page:e.page,per_page:e[`per-page`],direction:e.direction};if(e.dryRun){let e=await a();l({command:`cf accounts members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members`,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(kt,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var H={method:`PUT`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`,body:`json`};function Mt(e){return e.usage(`$0 accounts members update <member-id>
83
83
 
84
- Modify an account member.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`roles`,{type:`string`,description:`Roles assigned to this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const 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
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:p(e.roles,`roles`),policies:p(e.policies,`policies`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:p(e.roles,`roles`),policies:p(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 cancel-delayed-downgrade
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.`).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`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
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:`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>
88
+ Retrieve a list of the organizations that "contain" this account or are managing it. The returned list will be in order from "root" to "leaf", where the "leaf" will be the organization that _immediately_ contains the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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
89
89
 
90
- Records a cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`other`,{type:`string`,description:`Additional cancellation details.`}).option(`reason-code`,{type:`string`,array:!0,description:`The cancellation reason codes.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const 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
90
+ Retrieves the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Profiles can be shared across accounts and organizations. Only available to members of an organization that contains the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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
91
91
 
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>
92
+ Updates the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Changes apply to every account and organization sharing that profile. Omitted or empty fields are left unchanged. Only available to members of an organization that contains the account.`).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`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
93
+
94
+ Cancels pending delayed downgrades for the specified subscriptions.`).option(`subscription-ids`,{type:`string`,array:!0,description:`List of subscription identifiers to cancel downgrades for.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const 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`]}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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>
95
+
96
+ 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`]}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
97
+
98
+ 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:p(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`]}}):m(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=m(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:p(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
99
 
94
100
  Deletes an account's subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const 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
101
  `);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>
@@ -100,9 +106,9 @@ Gets the cancellation reason for an account subscription.`).positional(`subscrip
100
106
 
101
107
  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
108
 
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
109
+ Updates an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).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:p(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`]}}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:p(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
110
 
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>
111
+ Create a new Account Owned API token.`).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const 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:p(e.policies,`policies`)}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:p(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
112
 
107
113
  Destroy an Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const 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
114
  `);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>
@@ -116,17 +122,17 @@ The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`
116
122
  Roll the Account Owned API token secret.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const 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
123
  `);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
124
 
119
- Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).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
125
+ Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).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:p(e.policies,`policies`),status:e.status}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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:p(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
120
126
 
121
127
  Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const In={command:`verify`,describe:`Verify Token`,builder:Z,handler:async e=>d({command:`accounts tokens verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/verify`,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(Fn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Ln={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(gn).command(yn).command(Sn).command(Tn).command(Mn).command(Pn).command(In).command(kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Rn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/transformations`};function zn(e){return e.usage(`$0 accounts transformations list
122
128
 
123
129
  Returns a list of Image Resizing configurations across all zones for the account. This endpoint is useful for retrieving the transformations (image_resizing) state for all zones belonging to an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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
130
 
125
131
  Update an existing account.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name`}).option(`settings-abuse-contact-email`,{type:`string`,description:`Sets an abuse contact email to notify for abuse reports.`}).option(`settings-enforce-twofactor`,{type:`boolean`,description:`Indicates whether membership in this account requires that
126
- Two-Factor Authentication is enabled`}).option(`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
132
+ 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}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
133
 
128
134
  Updates the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline. Note: setting the value to "off" is not permitted once enabled.`).option(`value`,{type:`string`,description:`Enables Unique Transformations billing for the account.
129
135
  Note: once enabled, this setting cannot be set back to "off".
130
- `,choices:[`on`]}).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
136
+ `,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}):m(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=m(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
137
 
132
138
  Retrieves the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-KWYZvJWM.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Db1KT0vm.mjs";import{i as n}from"./context-C_a8oSY9.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-Q5w9PNTT.mjs";import{t as o}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{n as s,t as c}from"./body-parser-DnBfDdx3.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-C0hKSr-R.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
3
3
 
4
4
  Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:p,handler:async e=>o({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate:l(e.certificate,`certificate`,`text`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:d}));r(n,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await u(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let p=c({certificate:l(e.certificate,`certificate`,`text`)}),m=await a(`Creating`,async()=>o.send(f,{body:p,zone_id:d}));r(m,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function g(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
5
5