cf 1.0.0-beta.26 → 1.0.0-beta.28

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 (294) hide show
  1. package/dist/_meta/commands.json +7373 -4926
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +11614 -4465
  4. package/dist/abuse-reports-D9edOyag.mjs +24 -0
  5. package/dist/{access-DCOOmDC5.mjs → access-CKCCSrrU.mjs} +1 -1
  6. package/dist/{accounts-HC6XuIwP.mjs → accounts-CNb9U9bK.mjs} +33 -27
  7. package/dist/{acm-DYgr6SAR.mjs → acm-CdKTAToZ.mjs} +3 -3
  8. package/dist/{addressing-BS66pJ_a.mjs → addressing-eZI_C-b0.mjs} +18 -18
  9. package/dist/{agent-memory-BbXdueL0.mjs → agent-memory-BBHCEE7h.mjs} +7 -7
  10. package/dist/{ai-BiIKznNv.mjs → ai-Csl_QNwv.mjs} +7 -7
  11. package/dist/ai-audit-DlqWsQi-.mjs +6 -0
  12. package/dist/{ai-gateway-rlYCbts5.mjs → ai-gateway-Lj4On37s.mjs} +13 -13
  13. package/dist/ai-search-BxyhS3X7.mjs +74 -0
  14. package/dist/{ai-security-BUwS6kVh.mjs → ai-security-DvU2iYkY.mjs} +3 -3
  15. package/dist/{alerting-BSzuvFk1.mjs → alerting-r0G2X9y9.mjs} +10 -10
  16. package/dist/analytics-C6bfqm-W.mjs +17 -0
  17. package/dist/analytics-engine-BlIecoOe.mjs +4 -0
  18. package/dist/api-Dnt6lRJG.mjs +3 -0
  19. package/dist/{api-security-BBxEJjGv.mjs → api-security-DZ7GWOqD.mjs} +26 -26
  20. package/dist/argo-Bh0_cj49.mjs +14 -0
  21. package/dist/{artifacts-B9g9aPrk.mjs → artifacts-VZJWVq_6.mjs} +16 -16
  22. package/dist/{audit-logs-BhJs-OS2.mjs → audit-logs-B8cGL4B9.mjs} +1 -1
  23. package/dist/auth-B-h0BHg7.mjs +2 -0
  24. package/dist/auth-B6tswVxH.mjs +2 -0
  25. package/dist/{auth-C50SqX9F.mjs → auth-clmqFEWU.mjs} +3 -3
  26. package/dist/{auth-token-DvNoIhRL.mjs → auth-token-DW4dJVdj.mjs} +1 -1
  27. package/dist/{autoconfig-ldsgXxa6.mjs → autoconfig-C0ynlGHf.mjs} +23 -23
  28. package/dist/{basin-catalog-CtKFiH-n.mjs → basin-catalog-TehR1sKZ.mjs} +11 -11
  29. package/dist/billing-B2KusU6g.mjs +22 -0
  30. package/dist/{blocks-DnNrvi8s.mjs → blocks-BFulF68V.mjs} +1 -1
  31. package/dist/body-parser-DoewLePl.mjs +2 -0
  32. package/dist/body-unions-DNs981Ia.mjs +2 -0
  33. package/dist/bot-management-CXHXgrQC.mjs +9 -0
  34. package/dist/{botnet-feed-lD9s2oLA.mjs → botnet-feed-UyK7Rfp6.mjs} +1 -1
  35. package/dist/brand-protection-kv1ba80i.mjs +14 -0
  36. package/dist/browser-run-D-vRoZmf.mjs +40 -0
  37. package/dist/build-BzJGqb2o.mjs +2 -0
  38. package/dist/build-FFxzigo4.mjs +2 -0
  39. package/dist/{builds-D3mAH87h.mjs → builds-BbxINHRP.mjs} +27 -27
  40. package/dist/cache-BacNNtLu.mjs +36 -0
  41. package/dist/{cf-CpC4giTf.mjs → cf-BQ_LRiut.mjs} +2 -2
  42. package/dist/{chunk-DSGVRFIS-vdfri8fR.mjs → chunk-DSGVRFIS-BaNZNW-M.mjs} +1 -1
  43. package/dist/chunk-SOBRPAPT-QTjnHSNs.mjs +363 -0
  44. package/dist/{cli-Cm4Twas4.mjs → cli-B7vslRfu.mjs} +1 -1
  45. package/dist/{client-side-security-BRn7KBpu.mjs → client-side-security-bzB9JosR.mjs} +6 -6
  46. package/dist/{cloud-connector-DqkOIRDr.mjs → cloud-connector-BHtf37R5.mjs} +2 -2
  47. package/dist/{cloudflared-DDp_8PTK.mjs → cloudflared-QDdHMUEY.mjs} +1 -1
  48. package/dist/{cloudforce-one-B9k8vhso.mjs → cloudforce-one-DWBPQDA3.mjs} +126 -124
  49. package/dist/{command--Y_QAiU2.mjs → command-AVwd7XjE.mjs} +1 -1
  50. package/dist/{command-DlI7Z_7j.mjs → command-B87T_f2f.mjs} +1 -1
  51. package/dist/{command-QHmV62Fv.mjs → command-CEHhi3t0.mjs} +1 -1
  52. package/dist/{command-B-_ba4rQ.mjs → command-CYmQE79n.mjs} +1 -1
  53. package/dist/{command-DsOv6z9q.mjs → command-CbxXc5IW.mjs} +1 -1
  54. package/dist/{command-BKNQsGqu.mjs → command-Ce8CVLth.mjs} +1 -1
  55. package/dist/{command-MxFFWqMg.mjs → command-CqDudQZs.mjs} +1 -1
  56. package/dist/{command-BV8-laJK.mjs → command-D4YcwpVp.mjs} +1 -1
  57. package/dist/{command-BVz2aES3.mjs → command-D895kdlh.mjs} +1 -1
  58. package/dist/{command-yOG9VUtq.mjs → command-D9Qyi1B0.mjs} +1 -1
  59. package/dist/{command-CfOqnqlN.mjs → command-DeutqL1n.mjs} +1 -1
  60. package/dist/{command-Dn39o5xQ.mjs → command-Dl9ICrRK.mjs} +1 -1
  61. package/dist/{command-CN8NFLs2.mjs → command-DtCSe8Hy.mjs} +1 -1
  62. package/dist/{command-BsCFkho-.mjs → command-DwzVtmb3.mjs} +1 -1
  63. package/dist/{command-CQMRxiDz.mjs → command-wtBubtZ4.mjs} +1 -1
  64. package/dist/{completions-BA52jTea.mjs → completions-BvdKtzsX.mjs} +1 -1
  65. package/dist/{connector-interrupts-zL7pxPn6.mjs → connector-interrupts-dUPW6Ya_.mjs} +2 -2
  66. package/dist/{connector-telemetry-events-PL4Fqqvu.mjs → connector-telemetry-events-DWVCqnhn.mjs} +1 -1
  67. package/dist/{connector-telemetry-snapshots-DyBSuEFB.mjs → connector-telemetry-snapshots-CeMP3qeI.mjs} +1 -1
  68. package/dist/{connectors-D8H6rQz9.mjs → connectors-DZFGNw3i.mjs} +4 -4
  69. package/dist/{containers-D4sa-Eoy.mjs → containers-B06OGOEB.mjs} +212 -212
  70. package/dist/{containers-Db-eWudu.mjs → containers-DCzQCo79.mjs} +8 -8
  71. package/dist/{content-scan-DUVq09i8.mjs → content-scan-XhnNJqXf.mjs} +4 -4
  72. package/dist/{context-BvLXzoMs.mjs → context-BY1Eh_Qe.mjs} +1 -1
  73. package/dist/{cps-CqaRliZZ.mjs → cps-CohlxvuN.mjs} +2 -2
  74. package/dist/create-DmLDMvrj.mjs +2 -0
  75. package/dist/{csam-scanner-DsXvOOsZ.mjs → csam-scanner-BV4bHq8v.mjs} +2 -4
  76. package/dist/custom-csrs-BVdMQjYq.mjs +18 -0
  77. package/dist/{custom-hostnames-Cj_csfo_.mjs → custom-hostnames-r-CxhSa1.mjs} +5 -5
  78. package/dist/custom-nameservers-CapMDyly.mjs +12 -0
  79. package/dist/custom-pages-BVIniWfq.mjs +38 -0
  80. package/dist/d1-nJCOJZb8.mjs +50 -0
  81. package/dist/{delegate-CMfEjvHn.mjs → delegate-CcL6RoGw.mjs} +1 -1
  82. package/dist/delegate.mjs +1 -1
  83. package/dist/{deploy-DDbmxkiX.mjs → deploy-DJMnWFNk.mjs} +1 -1
  84. package/dist/{deploy-context-DsEVu7bf.mjs → deploy-context-YCW3eqP1.mjs} +15 -15
  85. package/dist/{deploy-input-BA_3Q2Xu.mjs → deploy-input-CQLBXFEB.mjs} +1 -1
  86. package/dist/{dev-BS156bim.mjs → dev-GsYHvMah.mjs} +1 -1
  87. package/dist/{diagnostics-BmkQnSEb.mjs → diagnostics-C3nqxsAO.mjs} +4 -4
  88. package/dist/{dist-DehXZozc.mjs → dist-D-ihn_mV.mjs} +42 -33
  89. package/dist/{dls-DciZC_gQ.mjs → dls-N1x8sAK3.mjs} +3 -3
  90. package/dist/{dns-C2YPspGN.mjs → dns-DATWP-PF.mjs} +36 -30
  91. package/dist/{dns-firewall-CRfde07f.mjs → dns-firewall-n3Y2ui6W.mjs} +8 -8
  92. package/dist/{docs-CYjyBA8q.mjs → docs-CRc_WOXh.mjs} +1 -1
  93. package/dist/{dry-run-gy0Hl9xo.mjs → dry-run-kJbjn4kG.mjs} +1 -1
  94. package/dist/{durable-objects-DcI97y4p.mjs → durable-objects-DHK9w-vO.mjs} +2 -2
  95. package/dist/{email-auth-CMCQAu99.mjs → email-auth-ptdqNSTZ.mjs} +1 -1
  96. package/dist/email-domains-uL22-zRY.mjs +14 -0
  97. package/dist/{email-routing-7p9dr5Ue.mjs → email-routing-CV43rMJC.mjs} +15 -13
  98. package/dist/{email-security-Bu0fAYh-.mjs → email-security-DK_SJ0yi.mjs} +38 -38
  99. package/dist/{email-sending-OpMZNaHZ.mjs → email-sending-CTQafGec.mjs} +17 -17
  100. package/dist/{error-sanitization-DG8WSzHe.mjs → error-sanitization-BkgtZ0Vx.mjs} +1 -1
  101. package/dist/error-sanitization-D069tpKk.mjs +2 -0
  102. package/dist/{errors-C5RGao2J.mjs → errors-VG1mgwJl.mjs} +1 -1
  103. package/dist/{field-extractors-BfsNjd0e.mjs → field-extractors-jcZ_bAGc.mjs} +2 -2
  104. package/dist/{firewall-CJ-VIOk1.mjs → firewall-CW-fAI9m.mjs} +30 -14
  105. package/dist/{flagship-C5PTR1ND.mjs → flagship-RiLnDwfJ.mjs} +8 -8
  106. package/dist/{fraud-B7hwBheX.mjs → fraud-DvfBBTe8.mjs} +2 -2
  107. package/dist/get-3XNn0upb.mjs +2 -0
  108. package/dist/global-options-DiKj2cQy.mjs +2 -0
  109. package/dist/{google-tag-gateway-D7iFDVEa.mjs → google-tag-gateway-C5WYsSXv.mjs} +2 -2
  110. package/dist/{healthchecks-B4jTcKV7.mjs → healthchecks-BA1fmzTm.mjs} +5 -5
  111. package/dist/{hyperdrive-1432DM-p.mjs → hyperdrive-Ch6klUp3.mjs} +4 -4
  112. package/dist/iam-LlGEzRCq.mjs +62 -0
  113. package/dist/{images-Ttea4khD.mjs → images-C5WqUXkK.mjs} +11 -11
  114. package/dist/index.mjs +1 -1
  115. package/dist/{init-BeYrAg7Q.mjs → init-EVsjBrOz.mjs} +2 -2
  116. package/dist/{intel-CJznBf5n.mjs → intel-vcWyslaX.mjs} +18 -19
  117. package/dist/{interactive-DsU8VDvK.mjs → interactive-BCDFSPtq.mjs} +1 -1
  118. package/dist/{internal-DOho_iA0.mjs → internal-BhV9WjLp.mjs} +1 -1
  119. package/dist/{ips-BgNoRwFN.mjs → ips-CqHjVsqd.mjs} +1 -1
  120. package/dist/{k2-Cj1ORHul.mjs → k2-CZT2Pd5J.mjs} +2 -2
  121. package/dist/kv-Ipa7dnvF.mjs +12 -0
  122. package/dist/{lazy-command-DeTzOWvU.mjs → lazy-command-DbKVgdGT.mjs} +1 -1
  123. package/dist/{leaked-credential-checks-21Wc7OqL.mjs → leaked-credential-checks-EzT4TTjO.mjs} +4 -4
  124. package/dist/{live-BfrWKfq8.mjs → live-C9L1bNuE.mjs} +1 -1
  125. package/dist/load-balancers-Cb3VkSfc.mjs +84 -0
  126. package/dist/local-D5Vq6ooZ.mjs +2 -0
  127. package/dist/{local-CvzO-cQH.mjs → local-DIJ7SIKC.mjs} +1 -1
  128. package/dist/{local-runtime-DOpR_Tnc.mjs → local-runtime-BZjgkacr.mjs} +1 -1
  129. package/dist/{login-CVWkMh1L.mjs → login-DG5ebyab.mjs} +1 -1
  130. package/dist/login-DRJugxya.mjs +2 -0
  131. package/dist/logpush-C5Gw7F_9.mjs +68 -0
  132. package/dist/logs-y3REfHbb.mjs +51 -0
  133. package/dist/magic-network-monitoring-BZBGZB6M.mjs +34 -0
  134. package/dist/{magic-transit-BhP424T-.mjs → magic-transit-BPV_POf5.mjs} +129 -129
  135. package/dist/{managed-defense-6l_B3hn_.mjs → managed-defense-BaUBSUcz.mjs} +3 -3
  136. package/dist/{managed-transforms-D7FMBsnq.mjs → managed-transforms-CjkjLzMC.mjs} +2 -2
  137. package/dist/{mcp-BUOfMkBP.mjs → mcp-RPtrISTy.mjs} +6 -6
  138. package/dist/{mesh-B1RrhAT1.mjs → mesh-DZ4QHBPE.mjs} +5 -5
  139. package/dist/{migrate-BTU8AvlP.mjs → migrate-CRIUqGi2.mjs} +1 -1
  140. package/dist/{monetization-Da3ooFLC.mjs → monetization-CVZqM8Xo.mjs} +9 -5
  141. package/dist/{network-CjhSzhMm.mjs → network-DLt2JUo1.mjs} +15 -15
  142. package/dist/{network-interconnects-DEQD6GM8.mjs → network-interconnects-9nS5jL__.mjs} +10 -10
  143. package/dist/o11y-ySxrnP1Z.mjs +88 -0
  144. package/dist/{oauth-Dnog5v-Q.mjs → oauth-CFVUl-Wv.mjs} +1 -1
  145. package/dist/{oauth-DdXkpU44.mjs → oauth-Cidoyxfp.mjs} +1 -1
  146. package/dist/observability-C-KNh__y.mjs +4 -0
  147. package/dist/ohttp-gateway-B5nCl4s3.mjs +8 -0
  148. package/dist/organizations-DbeeWUL4.mjs +71 -0
  149. package/dist/output-BZQEl3mK.mjs +2 -0
  150. package/dist/package-B7RgwuFR.mjs +2 -0
  151. package/dist/{page-rules-D2eFbKWb.mjs → page-rules-DRw763O1.mjs} +4 -4
  152. package/dist/{pages-DYZDvWK6.mjs → pages-DfQnxiTk.mjs} +12 -12
  153. package/dist/{pay-per-crawl-CgPFv5HT.mjs → pay-per-crawl-EHYtSKxX.mjs} +13 -13
  154. package/dist/{pay-per-use-BIQrsrTy.mjs → pay-per-use-wdEhl8k4.mjs} +14 -12
  155. package/dist/{pipelines-D6pkhlpm.mjs → pipelines-DbyrI6F4.mjs} +11 -11
  156. package/dist/precursor-Dx8lN4UJ.mjs +4 -0
  157. package/dist/previews-DEVNSip2.mjs +6 -0
  158. package/dist/{progress-B-CVX0kn.mjs → progress-yvPscjYg.mjs} +1 -1
  159. package/dist/{prompt-DJF_Rs5S.mjs → prompt-CEpZ-lQZ.mjs} +1 -1
  160. package/dist/{queues-DaqLO-UO.mjs → queues-DgMc7Z6A.mjs} +18 -18
  161. package/dist/{r2-DDIU9JN3.mjs → r2-BpTVicIq.mjs} +43 -43
  162. package/dist/{radar-D59qCgld.mjs → radar-DW-S1VUh.mjs} +11 -11
  163. package/dist/{raw-fetch-BrOxDN9k.mjs → raw-fetch-Cl5spWC3.mjs} +1 -1
  164. package/dist/{ready-DgE08svD.mjs → ready-d0li0X6r.mjs} +1 -1
  165. package/dist/realtime-DMKHLYF4.mjs +170 -0
  166. package/dist/registrar-D23gfKBi.mjs +43 -0
  167. package/dist/{registrar-sandbox-uzs3eOKk.mjs → registrar-sandbox-lVLB1-mC.mjs} +4 -4
  168. package/dist/{reporting-Dx2YTick.mjs → reporting-WX8P3Y0k.mjs} +2 -2
  169. package/dist/{request-headers-DHzBX7dQ.mjs → request-headers-C0FpeBhz.mjs} +1 -1
  170. package/dist/{request-tracers-B49cBKkj.mjs → request-tracers-qd7XOAka.mjs} +2 -2
  171. package/dist/resource-sharing-B2ZSt_cA.mjs +36 -0
  172. package/dist/{rules-CjgLSlUC.mjs → rules-CB0QQTB3.mjs} +5 -5
  173. package/dist/rulesets-DmqwixUC.mjs +42 -0
  174. package/dist/{rum-vPEpMS_h.mjs → rum-BZ_24qZU.mjs} +9 -9
  175. package/dist/{run-BZ6Fj3jQ.mjs → run-BOKI1uWa.mjs} +1 -1
  176. package/dist/run-DBqOjD1P.mjs +2 -0
  177. package/dist/{schema-DuLIZRhA.mjs → schema-Dj9STsWI.mjs} +1 -1
  178. package/dist/{schema-cache-C_rvto6Y.mjs → schema-cache-5NkOj7Y3.mjs} +1 -1
  179. package/dist/schema-flags-CXm9iIv6.mjs +4 -0
  180. package/dist/{scim-BA7XbsSu.mjs → scim-DchxaJfE.mjs} +8 -8
  181. package/dist/{secrets-store-MEUNt1Ph.mjs → secrets-store-oAft1cFE.mjs} +5 -5
  182. package/dist/security-insights-DMm0qg_m.mjs +62 -0
  183. package/dist/{security-txt-DikhnR2L.mjs → security-txt-CIt0494b.mjs} +2 -2
  184. package/dist/{session-BOnam-Wv.mjs → session-vzNfUhPl.mjs} +1 -1
  185. package/dist/{shared-DmmWSObC.mjs → shared-MK-_lkbn.mjs} +1 -1
  186. package/dist/{signed-url-C-24KbWB.mjs → signed-url-gNangfwc.mjs} +1 -1
  187. package/dist/{smart-shield-DPqLMz7M.mjs → smart-shield-Boy_qbqd.mjs} +6 -6
  188. package/dist/{snippets-Bi3Uq1DF.mjs → snippets-DdoDYXW-.mjs} +3 -3
  189. package/dist/{spawn-C3hzWVrJ.mjs → spawn-B5F4OIHG.mjs} +1 -1
  190. package/dist/{spectrum-BaWKMoAl.mjs → spectrum-DLYIHelC.mjs} +3 -3
  191. package/dist/{speed-DShjlpAs.mjs → speed-DugG9Tm9.mjs} +2 -2
  192. package/dist/{sql-DCoFf15T.mjs → sql-Bb56llsb.mjs} +2 -2
  193. package/dist/src-BoSDeQ9m.mjs +133 -0
  194. package/dist/{ssl-C4nt4pJK.mjs → ssl-Bg4X3WGk.mjs} +24 -24
  195. package/dist/startup-profile-DQVkZZpb.mjs +2 -0
  196. package/dist/{startup-profile-CFJ_Lu1c.mjs → startup-profile-DZL2DC44.mjs} +1 -1
  197. package/dist/state-DW3QZtfh.mjs +2 -0
  198. package/dist/{state-DmjHXZat.mjs → state-mr5ux1Nb.mjs} +1 -1
  199. package/dist/{stream-CpZbnSpH.mjs → stream-BuZYDbNR.mjs} +21 -21
  200. package/dist/{tags-BIjQ3Kjh.mjs → tags-SKz2odE_.mjs} +12 -6
  201. package/dist/{telemetry-BDhqOpUw.mjs → telemetry-B4zmCpT0.mjs} +1 -1
  202. package/dist/telemetry-DkDUr4KK.mjs +2 -0
  203. package/dist/tenant-custom-nameservers-BhkhBerL.mjs +8 -0
  204. package/dist/tenants-DD-GMq0K.mjs +13 -0
  205. package/dist/{tools-C-vmgYSv.mjs → tools-KW_4hvzY.mjs} +1 -1
  206. package/dist/{tunnels-CXAO2CeL.mjs → tunnels-D90ztENM.mjs} +6 -6
  207. package/dist/{turnstile-Ctm0rs0q.mjs → turnstile-DhSU_Xar.mjs} +4 -4
  208. package/dist/ui-xjCox-gU.mjs +2 -0
  209. package/dist/{update-check-D_Wtw0_D.mjs → update-check-CRttabfu.mjs} +1 -1
  210. package/dist/{update-check-Dc7cRFlx.mjs → update-check-HltjTMDE.mjs} +1 -1
  211. package/dist/update-check-worker.mjs +1 -1
  212. package/dist/{url-normalization-DOfc2Q7a.mjs → url-normalization-K7gkmPvG.mjs} +2 -2
  213. package/dist/{url-scanner-J8M3X2tR.mjs → url-scanner-BRdWwka4.mjs} +3 -3
  214. package/dist/{user-BaF0qvvO.mjs → user-Cmb1_Wu5.mjs} +50 -52
  215. package/dist/{vectorize-D5qiggZU.mjs → vectorize-BTBerJME.mjs} +11 -11
  216. package/dist/verify-B9ILCohg.mjs +2 -0
  217. package/dist/verify-BCuWaO-L.mjs +2 -0
  218. package/dist/version-6Bpy6Bgt.mjs +2 -0
  219. package/dist/{waiting-rooms-BdmAq7ul.mjs → waiting-rooms-LymmKIGr.mjs} +16 -14
  220. package/dist/{web-assets-BySw_Tme.mjs → web-assets-LHPQsrnY.mjs} +21 -21
  221. package/dist/{web3-BKkKf1RF.mjs → web3-BsOio0Ae.mjs} +12 -12
  222. package/dist/workers-BnLiOjZf.mjs +39 -0
  223. package/dist/{workers-builds-CVJ4FqzB.mjs → workers-builds-sKpITeRk.mjs} +4 -4
  224. package/dist/{workers-for-platforms-mzdtmr6r.mjs → workers-for-platforms-BGp6yr6P.mjs} +9 -9
  225. package/dist/workers-vpc-D8lefWDo.mjs +12 -0
  226. package/dist/{workflows-Cr957c4U.mjs → workflows-B-ZIG3y7.mjs} +22 -22
  227. package/dist/{wrangler-migration-DZV7-4Fp.mjs → wrangler-migration-6E6wT_LZ.mjs} +67 -58
  228. package/dist/zaraz-BBKki5WS.mjs +22 -0
  229. package/dist/{zero-trust-BVCvQJ4e.mjs → zero-trust-BZDXM5r6.mjs} +487 -409
  230. package/dist/{zones-BzyjOT10.mjs → zones-B-UV_DGE.mjs} +24 -24
  231. package/package.json +16 -16
  232. package/dist/abuse-reports-zPrsxbRz.mjs +0 -24
  233. package/dist/ai-audit-DI4Rw2wl.mjs +0 -6
  234. package/dist/ai-search-QOenIzDL.mjs +0 -74
  235. package/dist/analytics-CQ-Yt1mm.mjs +0 -17
  236. package/dist/analytics-engine-CdrY5-95.mjs +0 -4
  237. package/dist/api-X3wKppsT.mjs +0 -3
  238. package/dist/argo-BiefH8wc.mjs +0 -14
  239. package/dist/auth-Czzy5Rs_.mjs +0 -2
  240. package/dist/auth-D5Yj9eYU.mjs +0 -2
  241. package/dist/billing-BrLJqlOf.mjs +0 -22
  242. package/dist/body-parser-BKcZS9iJ.mjs +0 -2
  243. package/dist/bot-management-BSBVuKc0.mjs +0 -9
  244. package/dist/brand-protection-Byoa1hvj.mjs +0 -26
  245. package/dist/browser-run-BSVANGzU.mjs +0 -40
  246. package/dist/build-CPKxZ3kL.mjs +0 -2
  247. package/dist/build-Dwd1_7o0.mjs +0 -2
  248. package/dist/cache-0xCdyNg9.mjs +0 -36
  249. package/dist/chunk-3PJ54H4K-CY8EY_n2.mjs +0 -363
  250. package/dist/create-BtmuVqVL.mjs +0 -2
  251. package/dist/custom-csrs-Dl_daAbX.mjs +0 -10
  252. package/dist/custom-nameservers-Bw2P7F_W.mjs +0 -8
  253. package/dist/custom-pages-CJ7ecSX6.mjs +0 -20
  254. package/dist/d1-BsWI546w.mjs +0 -89
  255. package/dist/email-domains-1Nx60ETD.mjs +0 -12
  256. package/dist/error-sanitization-B025CygB.mjs +0 -2
  257. package/dist/get-Be821dio.mjs +0 -2
  258. package/dist/iam-DuZenYtc.mjs +0 -48
  259. package/dist/kv-CTyuvcAz.mjs +0 -12
  260. package/dist/load-balancers-DMTsh-9q.mjs +0 -72
  261. package/dist/local-CWTti4ot.mjs +0 -2
  262. package/dist/login-Djz5mvHJ.mjs +0 -2
  263. package/dist/logpush-OMhp7VgE.mjs +0 -44
  264. package/dist/logs-BSyyNwso.mjs +0 -35
  265. package/dist/magic-cloud-networking-DD29yMnE.mjs +0 -68
  266. package/dist/magic-network-monitoring-DRRvSrDP.mjs +0 -34
  267. package/dist/o11y-DeNxXxcp.mjs +0 -86
  268. package/dist/oauth-clients-UnbMcHkx.mjs +0 -14
  269. package/dist/oauth-scopes-DbtnZVO4.mjs +0 -4
  270. package/dist/organization-IsxVyWol.mjs +0 -73
  271. package/dist/organizations-p8Mgo8A7.mjs +0 -4
  272. package/dist/origin-post-quantum-encryption-Bwysyttf.mjs +0 -6
  273. package/dist/output-BJEgbI0G.mjs +0 -2
  274. package/dist/package-BOE_De2L.mjs +0 -2
  275. package/dist/precursor-B35P8h6h.mjs +0 -4
  276. package/dist/previews-B1mqjXaJ.mjs +0 -6
  277. package/dist/realtime-DWjdrDzv.mjs +0 -168
  278. package/dist/registrar-uYOU1U27.mjs +0 -43
  279. package/dist/resource-sharing-CIsLVAcK.mjs +0 -36
  280. package/dist/rulesets-C7_aZA7m.mjs +0 -34
  281. package/dist/run-D4-K_cbQ.mjs +0 -2
  282. package/dist/schema-flags-Cr6kleor.mjs +0 -4
  283. package/dist/security-insights-ZKtey62s.mjs +0 -40
  284. package/dist/src-jyCTFHcS.mjs +0 -131
  285. package/dist/startup-profile-D_Qjgca1.mjs +0 -2
  286. package/dist/state-C7lNNN31.mjs +0 -2
  287. package/dist/telemetry-BZdRnr26.mjs +0 -2
  288. package/dist/tenant-CqYoylyU.mjs +0 -10
  289. package/dist/tenant-custom-nameservers-DDzzdyY3.mjs +0 -8
  290. package/dist/ui-BUCBQ3Sq.mjs +0 -2
  291. package/dist/version-DNcdABcr.mjs +0 -2
  292. package/dist/workers-TS0oQ-XH.mjs +0 -39
  293. package/dist/workers-vpc-xB1hHFPd.mjs +0 -12
  294. package/dist/zaraz-C8__FhOh.mjs +0 -22
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{i as n,n as r,s as i}from"./auth-D5Yj9eYU.mjs";import{a,i as o,t as s}from"./context-BvLXzoMs.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-B-CVX0kn.mjs";import{t as d}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-BKcZS9iJ.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-DJF_Rs5S.mjs";import{n as ee,t as te}from"./raw-fetch-BrOxDN9k.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-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{i as n,n as r,s as i}from"./auth-B-h0BHg7.mjs";import{a,i as o,t as s}from"./context-BY1Eh_Qe.mjs";import{t as c}from"./output-BZQEl3mK.mjs";import{t as l}from"./dry-run-kJbjn4kG.mjs";import{t as u}from"./progress-yvPscjYg.mjs";import{t as d}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-DoewLePl.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-CEpZ-lQZ.mjs";import{n as ee,t as te}from"./raw-fetch-Cl5spWC3.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`]}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(b,{body:e,account_id:o}));c(t,{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 d=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`]}),f=await u(`Creating`,async()=>i.send(b,{body:d,account_id:o}));c(f,{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.`}))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>
7
7
 
@@ -19,9 +19,9 @@ Accepts the same properties as the list endpoint. \`id\` is always returned.
19
19
  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
20
20
  whitespace is trimmed before the length is checked. Control characters other
21
21
  than tab and line breaks return \`400\`.
22
- `}).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>
22
+ `}).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=e.body===void 0?void 0:p(e.body),o=await r(e),d=e.local?t:await s();if(e.accountId=d,e.body!==void 0){let e=i;new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let t=await u(`Creating`,async()=>o.send(x,{body:e,account_id:d,...n}));c(t,{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 f=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 m=await u(`Creating`,async()=>o.send(x,{body:f,account_id:d,...n}));c(m,{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
23
 
24
- 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 C={method:`POST`,path:t=>e`/accounts/${t.account_id}/client-secret`};function w(e){return e.usage(`$0 accounts billing create-setup-intent
24
+ 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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Updating`,async()=>i.send(S,{body:t,account_id:o,id:e.id}));c(r,{successLabel:`Updated`});return}let d=h({hostnames:e.hostnames,ip_subnets:e[`ip-subnets`],port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),f=await u(`Updating`,async()=>i.send(S,{body:d,account_id:o,id:e.id}));c(f,{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 C={method:`POST`,path:t=>e`/accounts/${t.account_id}/client-secret`};function w(e){return e.usage(`$0 accounts billing create-setup-intent
25
25
 
26
26
  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 T={command:`create-setup-intent`,describe:`Create Setup Intent`,builder:w,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(C,{account_id:i}));c(o,{successLabel:`Created`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/bad-debt`};function D(e){return e.usage(`$0 accounts billing get-bad-debt
27
27
 
@@ -35,9 +35,9 @@ Gets unpaid invoice information for an account.`).option(`dry-run`,{type:`boolea
35
35
 
36
36
  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 be={command:`list`,describe:`Get Account Billing History`,builder:ye,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(ve,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},xe={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-invoice`,body:`json`};function Se(e){return e.usage(`$0 accounts billing pay-invoice
37
37
 
38
- 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 Ce={command:`pay-invoice`,describe:`Pay Invoice`,builder:Se,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 we(e){return e.usage(`$0 accounts billing payment-methods create
38
+ 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 Ce={command:`pay-invoice`,describe:`Pay Invoice`,builder:Se,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(L,{body:e,account_id:o}));c(t,{successLabel:`Created`});return}let d=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`]}),f=await u(`Creating`,async()=>i.send(L,{body:d,account_id:o}));c(f,{successLabel:`Created`})})};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/payment-methods`,body:`json`};function we(e){return e.usage(`$0 accounts billing payment-methods create
39
39
 
40
- 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 Te={command:`create`,describe:`Create Payment Method`,builder:we,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 Ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function De(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
40
+ 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 Te={command:`create`,describe:`Create Payment Method`,builder:we,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(R,{body:e,account_id:o}));c(t,{successLabel:`Created`});return}let d=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`)}),f=await u(`Creating`,async()=>i.send(R,{body:d,account_id:o}));c(f,{successLabel:`Created`})})};var Ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function De(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
41
41
 
42
42
  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 Oe={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:De,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}))return;let o=await u(`Deleting`,async()=>n.send(Ee,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Deleted`})})};var ke={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ae(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
43
43
 
@@ -47,15 +47,17 @@ Lists all payment methods for an account.`).option(`page`,{type:`number`,descrip
47
47
 
48
48
  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 Le={command:`set-default <payment-method-id>`,describe:`Set Default Payment Method`,builder:Ie,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(Fe,{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 Re(e){return e.usage(`$0 accounts billing payment-methods update <payment-method-id>
49
49
 
50
- 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 ze={command:`update <payment-method-id>`,describe:`Update Payment Method`,builder:Re,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`})})},Be={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(Te).command(Oe).command(je).command(Pe).command(Le).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/invoices`,body:`json`};function Ve(e){return e.usage(`$0 accounts billing toggle-pdf-invoices
50
+ 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 ze={command:`update <payment-method-id>`,describe:`Update Payment Method`,builder:Re,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Updating`,async()=>i.send(z,{body:t,account_id:o,payment_method_id:e[`payment-method-id`]}));c(r,{successLabel:`Updated`});return}let d=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`)}),f=await u(`Updating`,async()=>i.send(z,{body:d,account_id:o,payment_method_id:e[`payment-method-id`]}));c(f,{successLabel:`Updated`})})},Be={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(Te).command(Oe).command(je).command(Pe).command(Le).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/invoices`,body:`json`};function Ve(e){return e.usage(`$0 accounts billing toggle-pdf-invoices
51
51
 
52
- 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 He={command:`toggle-pdf-invoices`,describe:`Toggle PDF Invoices`,builder:Ve,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`})})},Ue={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(T).command(O).command(j).command(N).command(I).command(Ce).command(He).command(xe).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var We={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories/${t.id}`};function Ge(e){return e.usage(`$0 accounts categories get <id>
52
+ 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 He={command:`toggle-pdf-invoices`,describe:`Toggle PDF Invoices`,builder:Ve,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Updating`,async()=>i.send(B,{body:e,account_id:o}));c(t,{successLabel:`Updated`});return}let d=h({toggle:e.toggle}),f=await u(`Updating`,async()=>i.send(B,{body:d,account_id:o}));c(f,{successLabel:`Updated`})})},Ue={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(T).command(O).command(j).command(N).command(I).command(Ce).command(He).command(xe).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var We={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories/${t.id}`};function Ge(e){return e.usage(`$0 accounts categories get <id>
53
53
 
54
- 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 Ke={command:`get <id>`,describe:`Get application category`,builder:Ge,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(We,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories`,query:[`limit`,`offset`,`cursor`],errors:{503:`ServiceUnavailableError`}};function Je(e){return e.usage("$0 accounts categories list\n\nList the categories available for classifying applications, ordered by name. Results are paginated by `offset` or `cursor`.").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. Ignored when `cursor` is provided."}).option(`cursor`,{type:`string`,description:"Opaque value from `result_info.cursor` of the previous response. Returns the\ncategories that follow it. `limit` may change between requests. An empty value\nis the same as no cursor. A modified cursor, or one returned by a different list,\nreturns `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`list`,describe:`List application categories`,builder:Je,handler:async e=>d({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,offset:e.offset,cursor:e.cursor};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(qe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},Xe={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(Ke).command(Ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ze(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 Qe={command:`create`,describe:`Create an Account`,builder:Ze,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&&m(a,[`name`],g(e.name,`name`,`text`)),e.standalone!==void 0&&m(a,[`standalone`],e.standalone),e.type!==void 0&&m(a,[`type`],e.type),e[`unit-id`]!==void 0&&m(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 $e={method:`DELETE`,path:t=>e`/accounts/${t.account_id}`};function et(e){return e.usage(`$0 accounts delete
54
+ 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 Ke={command:`get <id>`,describe:`Get application category`,builder:Ge,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(We,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories`,query:[`limit`,`offset`,`cursor`],errors:{503:`ServiceUnavailableError`}};function Je(e){return e.usage("$0 accounts categories list\n\nList the categories available for classifying applications, ordered by name. Results are paginated by `offset` or `cursor`.").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. Ignored when `cursor` is provided."}).option(`cursor`,{type:`string`,description:"Opaque value from `result_info.cursor` of the previous response. Returns the\ncategories that follow it. `limit` may change between requests. An empty value\nis the same as no cursor. A modified cursor, or one returned by a different list,\nreturns `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`list`,describe:`List application categories`,builder:Je,handler:async e=>d({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,offset:e.offset,cursor:e.cursor};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(qe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},Xe={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(Ke).command(Ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ze(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. Account names are limited to 65 UTF-8 bytes.").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, limited to 65 UTF-8 bytes.`}).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 of account being created. For self-serve customers, use standard. for enterprise customers, use enterprise.`,choices:[`standard`,`enterprise`],default:`standard`}).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 Qe={command:`create`,describe:`Create an Account`,builder:Ze,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=e.body===void 0?void 0:p(e.body),a=await r(e);if(e.body!==void 0){let e=i,r=await u(`Creating`,async()=>n(a,`POST`,`/accounts`,{body:e,headers:Object.keys(t).length>0?t:void 0}));c(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`Account name, limited to 65 UTF-8 bytes.`));let o={};e.name!==void 0&&m(o,[`name`],g(e.name,`name`,`text`)),e.standalone!==void 0&&m(o,[`standalone`],e.standalone),e.type!==void 0&&m(o,[`type`],e.type),e[`unit-id`]!==void 0&&m(o,[`unit`,`id`],g(e[`unit-id`],`unit-id`,`text`));let s=await u(`Creating`,async()=>n(a,`POST`,`/accounts`,{body:o,headers:Object.keys(t).length>0?t:void 0}));c(s,{successLabel:`Created`})})};var $e={method:`DELETE`,path:t=>e`/accounts/${t.account_id}`};function et(e){return e.usage(`$0 accounts delete
55
55
 
56
56
  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 tt={command:`delete`,describe:`Delete a specific account`,builder:et,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.`}))return;let o=await u(`Deleting`,async()=>n.send($e,{account_id:i}));c(o,{successLabel:`Deleted`})})};var nt={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/entitlements`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,405:`MethodNotAllowedError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function rt(e){return e.usage(`$0 accounts entitlements get
57
57
 
58
- Returns the list of entitlements (features and their allocations) for a given account or zone. Each entitlement describes a product feature the account or zone is permitted to use and the allocation value (boolean, count, range, enum, or string) that governs its behaviour.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`get`,describe:`Get account or zone Entitlements`,builder:rt,handler:async e=>d({command:`accounts entitlements 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 entitlements get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/entitlements`,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(nt,{account_or_zone:i,account_or_zone_id:d}));c(f,{successLabel:`Loaded`})})},at={command:`entitlements`,describe:`Operations for entitlements`,builder:e=>e.command(it).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ot={method:`GET`,path:t=>e`/accounts/${t.account_id}`};function st(e){return e.usage(`$0 accounts get
58
+ Returns the list of entitlements (features and their allocations) for a given account or zone. Each entitlement describes a product feature the account or zone is permitted to use and the allocation value (boolean, count, range, enum, or string) that governs its behaviour.
59
+
60
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`get`,describe:`Get account or zone Entitlements`,builder:rt,handler:async e=>d({command:`accounts entitlements 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 entitlements get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/entitlements`,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(nt,{account_or_zone:i,account_or_zone_id:d}));c(f,{successLabel:`Loaded`})})},at={command:`entitlements`,describe:`Operations for entitlements`,builder:e=>e.command(it).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ot={method:`GET`,path:t=>e`/accounts/${t.account_id}`};function st(e){return e.usage(`$0 accounts get
59
61
 
60
62
  Get information about a specific account that you are a member of.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ct={command:`get`,describe:`Account Details`,builder:st,handler:async e=>d({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(ot,{account_id:i}));c(o,{successLabel:`Loaded`})})};function lt(e){return e.usage(`$0 accounts list
61
63
 
@@ -67,7 +69,7 @@ Lists the available audit log product categories and the resource products each
67
69
 
68
70
  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'.
69
71
  Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
70
- `,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 Ct={command:`create`,describe:`Add Member`,builder:St,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:f(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:f(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(V,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var wt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Tt(e){return e.usage(`$0 accounts members delete <member-id>
72
+ `,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 Ct={command:`create`,describe:`Add Member`,builder:St,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:f(e.policies,`policies`)}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(V,{body:e,account_id:o}));c(t,{successLabel:`Created`});return}e.email===void 0&&(e.email=await _(`email`,`The contact email address of the user.`));let d=h({email:g(e.email,`email`,`text`),roles:e.roles,status:e.status,policies:f(e.policies,`policies`)}),m=await u(`Creating`,async()=>i.send(V,{body:d,account_id:o}));c(m,{successLabel:`Created`})})};var wt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Tt(e){return e.usage(`$0 accounts members delete <member-id>
71
73
 
72
74
  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 Et={command:`delete <member-id>`,describe:`Remove Member`,builder:Tt,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?`}))return;let o=await u(`Deleting`,async()=>n.send(wt,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Deleted`})})};var Dt={method:`GET`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Ot(e){return e.usage(`$0 accounts members get <member-id>
73
75
 
@@ -75,21 +77,23 @@ Get information about a specific member of an account.`).positional(`member-id`,
75
77
 
76
78
  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 Mt={command:`list`,describe:`List Members`,builder:jt,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(At,{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 Nt(e){return e.usage(`$0 accounts members update <member-id>
77
79
 
78
- 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 Pt={command:`update <member-id>`,describe:`Update Member`,builder:Nt,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:f(e.roles,`roles`),policies:f(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:f(e.roles,`roles`),policies:f(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`})})},Ft={command:`members`,describe:`Operations for members`,builder:e=>e.command(Ct).command(Et).command(kt).command(Mt).command(Pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/move`,body:`json`};function It(e){return e.usage(`$0 accounts move
80
+ 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 Pt={command:`update <member-id>`,describe:`Update Member`,builder:Nt,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:f(e.roles,`roles`),policies:f(e.policies,`policies`)}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Updating`,async()=>i.send(H,{body:t,account_id:o,member_id:e[`member-id`]}));c(r,{successLabel:`Updated`});return}let d=h({roles:f(e.roles,`roles`),policies:f(e.policies,`policies`)}),m=await u(`Updating`,async()=>i.send(H,{body:d,account_id:o,member_id:e[`member-id`]}));c(m,{successLabel:`Updated`})})},Ft={command:`members`,describe:`Operations for members`,builder:e=>e.command(Ct).command(Et).command(kt).command(Mt).command(Pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/move`,body:`json`};function It(e){return e.usage(`$0 accounts move
81
+
82
+ 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 Lt={command:`move`,describe:`Move account to organization`,builder:It,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(U,{body:e,account_id:o}));c(t,{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 d=h({destination_organization_id:g(e[`destination-organization-id`],`destination-organization-id`,`text`)}),f=await u(`Creating`,async()=>i.send(U,{body:d,account_id:o}));c(f,{successLabel:`Created`})})};var Rt={method:`GET`,path:t=>e`/accounts/${t.account_id}/organizations`};function zt(e){return e.usage(`$0 accounts organizations list
79
83
 
80
- 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 Lt={command:`move`,describe:`Move account to organization`,builder:It,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 Rt={method:`GET`,path:t=>e`/accounts/${t.account_id}/organizations`};function zt(e){return e.usage(`$0 accounts organization list
84
+ 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 Bt={command:`list`,describe:`List account organizations`,builder:zt,handler:async e=>d({command:`accounts organizations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts organizations 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(Rt,{account_id:i}));c(o,{successLabel:`Loaded`})})},Vt={command:`organizations`,describe:`View organizations associated with a Cloudflare account`,builder:e=>e.command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/profile`};function Ut(e){return e.usage(`$0 accounts profile get
81
85
 
82
- 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 Bt={command:`list`,describe:`List account organizations`,builder:zt,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(Rt,{account_id:i}));c(o,{successLabel:`Loaded`})})},Vt={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/profile`};function Ut(e){return e.usage(`$0 accounts profile get
86
+ Retrieves the business profile (name, email, phone, address, and external metadata) associated with this account's 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 Wt={command:`get`,describe:`Get account profile`,builder:Ut,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(Ht,{account_id:i}));c(o,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/profile`,body:`json`,response:!1};function Gt(e){return e.usage(`$0 accounts profile update
83
87
 
84
- 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 Wt={command:`get`,describe:`Get account profile`,builder:Ut,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(Ht,{account_id:i}));c(o,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/profile`,body:`json`,response:!1};function Gt(e){return e.usage(`$0 accounts profile update
88
+ Partially updates the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record, creating the profile if it does not exist. Changes apply to every account and organization sharing that profile. Omitted, empty, or null fields are left unchanged. Each profile field is limited to 1,000 UTF-8 bytes. 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:`Partial business profile update. Omitted, empty, or null fields remain unchanged. At least one of business name, address, phone, or email must be non-empty.`})}const Kt={command:`update`,describe:`Update account profile`,builder:Gt,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Updating`,async()=>i.send(W,{body:e,account_id:o}));c(t,{successLabel:`Updated`});return}let d=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`)}),f=await u(`Updating`,async()=>i.send(W,{body:d,account_id:o}));c(f,{successLabel:`Updated`})})},qt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(Wt).command(Kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/cancel-downgrade`,body:`json`};function Jt(e){return e.usage(`$0 accounts subscriptions cancel-delayed-downgrade
85
89
 
86
- 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 Kt={command:`update`,describe:`Update account profile`,builder:Gt,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`})})},qt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(Wt).command(Kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/cancel-downgrade`,body:`json`};function Jt(e){return e.usage(`$0 accounts subscriptions cancel-delayed-downgrade
90
+ 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 Yt={command:`cancel-delayed-downgrade`,describe:`Cancel Delayed Downgrade`,builder:Jt,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(G,{body:e,account_id:o}));c(t,{successLabel:`Created`});return}let d=h({subscription_ids:e[`subscription-ids`]}),f=await u(`Creating`,async()=>i.send(G,{body:d,account_id:o}));c(f,{successLabel:`Created`})})};var K={method:`POST`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`,body:`json`};function Xt(e){return e.usage(`$0 accounts subscriptions create-cancel-reason <subscription-identifier>
87
91
 
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 Yt={command:`cancel-delayed-downgrade`,describe:`Cancel Delayed Downgrade`,builder:Jt,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 Xt(e){return e.usage(`$0 accounts subscriptions create-cancel-reason <subscription-identifier>
92
+ Records a cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`other`,{type:`string`,description:`Additional cancellation details.`}).option(`reason-code`,{type:`string`,array:!0,description:`The cancellation reason codes.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Zt={command:`create-cancel-reason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:Xt,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Creating`,async()=>i.send(K,{body:t,account_id:o,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Created`});return}let d=h({other:g(e.other,`other`,`text`),reason_code:e[`reason-code`]}),f=await u(`Creating`,async()=>i.send(K,{body:d,account_id:o,subscription_identifier:e[`subscription-identifier`]}));c(f,{successLabel:`Created`})})};var q={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`,body:`json`};function Qt(e){return e.usage(`$0 accounts subscriptions create
89
93
 
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 Zt={command:`create-cancel-reason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:Xt,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 Qt(e){return e.usage(`$0 accounts subscriptions create
94
+ Creates an account or zone subscription.
91
95
 
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 $t={command:`create`,describe:`Create Subscription`,builder:Qt,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:f(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 m=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:f(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:m,account_or_zone:i,account_or_zone_id:d}));c(_,{successLabel:`Created`})})};var en={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`};function tn(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
96
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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 $t={command:`create`,describe:`Create Subscription`,builder:Qt,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:f(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=e.body===void 0?void 0:p(e.body),i=await r(e),d=e.zone===void 0?`accounts`:`zones`,m=d===`zones`?await o({zone:e.zone},i,{quiet:e.quiet}):e.local?t:await s();if(d===`zones`?e.zoneId=m:e.accountId=m,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(q,{body:e,account_or_zone:d,account_or_zone_id:m}));c(t,{successLabel:`Created`});return}let _=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:f(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`]}}),v=await u(`Creating`,async()=>i.send(q,{body:_,account_or_zone:d,account_or_zone_id:m}));c(v,{successLabel:`Created`})})};var en={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`};function tn(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
93
97
 
94
98
  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 nn={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:tn,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}))return;let o=await u(`Deleting`,async()=>n.send(en,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Deleted`})})};var rn={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,errors:{404:`NotFoundError`}};function an(e){return e.usage(`$0 accounts subscriptions get-by-identifier <subscription-identifier>
95
99
 
@@ -97,11 +101,13 @@ Gets an account subscription by identifier.`).positional(`subscription-identifie
97
101
 
98
102
  Gets the cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ln={command:`get-cancel-reason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:cn,handler:async e=>d({command:`accounts subscriptions get-cancel-reason`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions get-cancel-reason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(sn,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var un={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/subscriptions`};function dn(e){return e.usage(`$0 accounts subscriptions get
99
103
 
100
- 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 fn={command:`get`,describe:`List Subscriptions`,builder:dn,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(un,{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 pn(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
104
+ Lists all of an account or zone's subscriptions.
105
+
106
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fn={command:`get`,describe:`List Subscriptions`,builder:dn,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(un,{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 pn(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
101
107
 
102
- 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 mn={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:pn,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:f(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:f(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`})})},hn={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(Yt).command($t).command(Zt).command(nn).command(fn).command(on).command(ln).command(mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/tokens`,body:`json`};function gn(e){return e.usage(`$0 accounts tokens create
108
+ 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 mn={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:pn,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:f(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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Updating`,async()=>i.send(J,{body:t,account_id:o,subscription_identifier:e[`subscription-identifier`]}));c(r,{successLabel:`Updated`});return}let d=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:f(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=await u(`Updating`,async()=>i.send(J,{body:d,account_id:o,subscription_identifier:e[`subscription-identifier`]}));c(m,{successLabel:`Updated`})})},hn={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(Yt).command($t).command(Zt).command(nn).command(fn).command(on).command(ln).command(mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/tokens`,body:`json`};function gn(e){return e.usage(`$0 accounts tokens create
103
109
 
104
- 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 _n={command:`create`,describe:`Create Token`,builder:gn,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:f(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:f(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(Y,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var vn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function yn(e){return e.usage(`$0 accounts tokens delete <token-id>
110
+ 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 _n={command:`create`,describe:`Create Token`,builder:gn,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:f(e.policies,`policies`)}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Creating`,async()=>i.send(Y,{body:e,account_id:o}));c(t,{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 d=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:f(e.policies,`policies`)}),m=await u(`Creating`,async()=>i.send(Y,{body:d,account_id:o}));c(m,{successLabel:`Created`})})};var vn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function yn(e){return e.usage(`$0 accounts tokens delete <token-id>
105
111
 
106
112
  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 bn={command:`delete <token-id>`,describe:`Delete Token`,builder:yn,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.`}))return;let o=await u(`Deleting`,async()=>n.send(vn,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var xn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function Sn(e){return e.usage(`$0 accounts tokens get <token-id>
107
113
 
@@ -111,19 +117,19 @@ Find all available permission groups for Account Owned API Tokens. Each permissi
111
117
  The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
112
118
  The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kn={command:`list`,describe:`List Permission Groups`,builder:On,handler:async e=>d({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={name:e.name,scope:e.scope};if(e.dryRun){let e=await a();l({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Dn,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},An={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var jn={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}/value`};function Mn(e){return e.usage(`$0 accounts tokens roll <token-id>
113
119
 
114
- 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 Nn={command:`roll <token-id>`,describe:`Roll Token`,builder:Mn,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.`}))return;let o=await u(`Deleting`,async()=>n.send(jn,{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 Pn(e){return e.usage(`$0 accounts tokens update <token-id>
120
+ 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 Nn={command:`roll <token-id>`,describe:`Roll Token`,builder:Mn,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.`}))return;let o=await u(`Updating`,async()=>n.send(jn,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Updated`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`,body:`json`};function Pn(e){return e.usage(`$0 accounts tokens update <token-id>
115
121
 
116
- 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 Fn={command:`update <token-id>`,describe:`Update Token`,builder:Pn,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:f(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:f(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 Z={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/verify`};function In(e){return e.usage(`$0 accounts tokens verify
122
+ 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 Fn={command:`update <token-id>`,describe:`Update Token`,builder:Pn,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:f(e.policies,`policies`),status:e.status}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let t=n,r=await u(`Updating`,async()=>i.send(X,{body:t,account_id:o,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 d=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:f(e.policies,`policies`),status:e.status}),m=await u(`Updating`,async()=>i.send(X,{body:d,account_id:o,token_id:e[`token-id`]}));c(m,{successLabel:`Updated`})})};var Z={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/verify`};function In(e){return e.usage(`$0 accounts tokens verify
117
123
 
118
124
  Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ln={command:`verify`,describe:`Verify Token`,builder:In,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(Z,{account_id:i}));c(o,{successLabel:`Loaded`})})},Rn={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(_n).command(bn).command(Cn).command(En).command(Nn).command(Fn).command(Ln).command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var zn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/transformations`};function Bn(e){return e.usage(`$0 accounts transformations list
119
125
 
120
126
  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 Vn={command:`list`,describe:`List Image Resizing configurations for account`,builder:Bn,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(zn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Hn={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(Vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}`,body:`json`};function Un(e){return e.usage(`$0 accounts update
121
127
 
122
- 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
123
- 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 Wn={command:`update`,describe:`Update Account`,builder:Un,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 Gn(e){return e.usage(`$0 accounts ut-billing edit
128
+ Update an existing account. Account names are limited to 65 UTF-8 bytes.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name, limited to 65 UTF-8 bytes.`}).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
129
+ Two-Factor Authentication is enabled`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Wn={command:`update`,describe:`Update Account`,builder:Un,handler:async e=>d({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({id:g(e.id,`id`,`text`),name:g(e.name,`name`,`text`),settings:{abuse_contact_email:g(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}):p(e.body)});return}let n=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Updating`,async()=>i.send(Q,{body:e,account_id:o}));c(t,{successLabel:`Updated`});return}e.id===void 0&&(e.id=await _(`id`,`Identifier`)),e.name===void 0&&(e.name=await _(`name`,`Account name, limited to 65 UTF-8 bytes.`));let d=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`]}}),f=await u(`Updating`,async()=>i.send(Q,{body:d,account_id:o}));c(f,{successLabel:`Updated`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`,body:`json`,constants:{value:`on`}};function Gn(e){return e.usage(`$0 accounts ut-billing edit
124
130
 
125
131
  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.
126
132
  Note: once enabled, this setting cannot be set back to "off".
127
- `,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 Kn={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Gn,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 qn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`};function Jn(e){return e.usage(`$0 accounts ut-billing get
133
+ `,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 Kn={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Gn,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=e.body===void 0?void 0:p(e.body),i=await r(e),o=e.local?t:await s();if(e.accountId=o,e.body!==void 0){let e=n,t=await u(`Updating`,async()=>i.send($,{body:e,account_id:o}));c(t,{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 d=h({value:e.value}),f=await u(`Updating`,async()=>i.send($,{body:d,account_id:o}));c(f,{successLabel:`Updated`})})};var qn={method:`GET`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`};function Jn(e){return e.usage(`$0 accounts ut-billing get
128
134
 
129
135
  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 Yn={command:`get`,describe:`Get Unique Transformations billing setting`,builder:Jn,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(qn,{account_id:i}));c(o,{successLabel:`Loaded`})})},Xn={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Kn).command(Yn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Zn={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(Qe).command(tt).command(ct).command(ut).command(Lt).command(Wn).command(_e).command(Ue).command(Xe).command(at).command(xt).command(Ft).command(Vt).command(qt).command(hn).command(Rn).command(Hn).command(Xn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Zn as default};
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-D5Yj9eYU.mjs";import{i as n}from"./context-BvLXzoMs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-B-CVX0kn.mjs";import{t as o}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-DJF_Rs5S.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-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-B-h0BHg7.mjs";import{i as n}from"./context-BY1Eh_Qe.mjs";import{t as r}from"./output-BZQEl3mK.mjs";import{t as i}from"./dry-run-kJbjn4kG.mjs";import{t as a}from"./progress-yvPscjYg.mjs";import{t as o}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as s,t as c}from"./body-parser-DoewLePl.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-CEpZ-lQZ.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
- 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>
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=e.body===void 0?void 0:s(e.body),d=await t(e),p=await n({zone:e.zone},d,{quiet:e.quiet});if(e.zoneId=p,e.body!==void 0){let e=o,t=await a(`Creating`,async()=>d.send(f,{body:e,zone_id:p}));r(t,{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 m=c({certificate:l(e.certificate,`certificate`,`text`)}),h=await a(`Creating`,async()=>d.send(f,{body:m,zone_id:p}));r(h,{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
 
6
6
  Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:g,handler:async e=>o({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force}))return;let c=await a(`Deleting`,async()=>o.send(h,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Deleted`})})};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function y(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
7
7
 
@@ -9,6 +9,6 @@ Retrieves details about a specific root CA certificate in the custom origin trus
9
9
 
10
10
  Get Custom Origin Trust Store for a Zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List Custom Origin Trust Store Details`,builder:S,handler:async e=>o({command:`acm custom-trust-store list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){i({command:`cf acm custom-trust-store list`,method:`GET`,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`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(x,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},w={command:`custom-trust-store`,describe:`Operations for custom-trust-store`,builder:e=>e.command(m).command(_).command(b).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/total_tls`,body:`json`};function E(e){return e.usage(`$0 acm total-tls edit
11
11
 
12
- Set Total TLS Settings or disable the feature for a Zone.`).option(`certificate-authority`,{type:`string`,description:`The Certificate Authority that Total TLS certificates will be issued through.`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).coerce(`certificate-authority`,e=>l(e,`certificate-authority`,`text`)).option(`enabled`,{type:`boolean`,description:`If enabled, Total TLS will order a hostname specific TLS certificate for any proxied A, AAAA, or CNAME record in your zone.`}).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 D={command:`edit`,describe:`Enable or Disable Total TLS`,builder:E,handler:async e=>o({command:`acm total-tls edit`,classification:{safeFlags:[`certificate-authority`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm total-tls edit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/total_tls`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate_authority:e[`certificate-authority`],enabled:e.enabled}):s(e.body)});return}let o=await t(e),l=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(T,{body:t,zone_id:l}));r(n,{successLabel:`Created`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=c({certificate_authority:e[`certificate-authority`],enabled:e.enabled}),d=await a(`Creating`,async()=>o.send(T,{body:u,zone_id:l}));r(d,{successLabel:`Created`})})};var O={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/total_tls`};function k(e){return e.usage(`$0 acm total-tls get
12
+ Set Total TLS Settings or disable the feature for a Zone.`).option(`certificate-authority`,{type:`string`,description:`The Certificate Authority that Total TLS certificates will be issued through.`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).coerce(`certificate-authority`,e=>l(e,`certificate-authority`,`text`)).option(`enabled`,{type:`boolean`,description:`If enabled, Total TLS will order a hostname specific TLS certificate for any proxied A, AAAA, or CNAME record in your zone.`}).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 D={command:`edit`,describe:`Enable or Disable Total TLS`,builder:E,handler:async e=>o({command:`acm total-tls edit`,classification:{safeFlags:[`certificate-authority`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm total-tls edit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/total_tls`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate_authority:e[`certificate-authority`],enabled:e.enabled}):s(e.body)});return}let o=e.body===void 0?void 0:s(e.body),l=await t(e),u=await n({zone:e.zone},l,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=o,t=await a(`Creating`,async()=>l.send(T,{body:e,zone_id:u}));r(t,{successLabel:`Created`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let d=c({certificate_authority:e[`certificate-authority`],enabled:e.enabled}),f=await a(`Creating`,async()=>l.send(T,{body:d,zone_id:u}));r(f,{successLabel:`Created`})})};var O={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/total_tls`};function k(e){return e.usage(`$0 acm total-tls get
13
13
 
14
14
  Get Total TLS Settings for a Zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get`,describe:`Total TLS Settings Details`,builder:k,handler:async e=>o({command:`acm total-tls get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm total-tls get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/total_tls`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(O,{zone_id:s}));r(c,{successLabel:`Loaded`})})},j={command:`total-tls`,describe:`Operations for total-tls`,builder:e=>e.command(D).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`acm`,describe:`acm`,builder:e=>e.command(w).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{M as default};