cf 1.0.0-beta.14 → 1.0.0-beta.16

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 (458) hide show
  1. package/README.md +10 -0
  2. package/dist/_meta/commands.json +6545 -3180
  3. package/dist/_meta/hand-written-commands.json +35 -2
  4. package/dist/_meta/schemas.json +7031 -4599
  5. package/dist/abuse-reports-17K-TRhO.mjs +24 -0
  6. package/dist/{access-k1QjF5rE.mjs → access-BwB7sg1D.mjs} +1 -1
  7. package/dist/account-tags-povXTDAu.mjs +15 -0
  8. package/dist/accounts-BnIGu_ac.mjs +132 -0
  9. package/dist/acm-CQRcu_zw.mjs +15 -0
  10. package/dist/addressing-Qcm9jd3C.mjs +105 -0
  11. package/dist/agent-memory-B3xN9I6-.mjs +34 -0
  12. package/dist/ai-BRKOCckA.mjs +31 -0
  13. package/dist/ai-audit-Cd9Rc2Fc.mjs +6 -0
  14. package/dist/ai-gateway-BWU5064V.mjs +80 -0
  15. package/dist/ai-search-CJ3b8eot.mjs +79 -0
  16. package/dist/ai-security-Dn0Ee6QS.mjs +10 -0
  17. package/dist/alerting-BXTiMfXo.mjs +56 -0
  18. package/dist/analytics-Jyd04TRW.mjs +17 -0
  19. package/dist/analytics-engine-CzrNfUeh.mjs +4 -0
  20. package/dist/api-eMuS5GI1.mjs +3 -0
  21. package/dist/api-security-DRBHZaf_.mjs +154 -0
  22. package/dist/argo-DiQt0pSb.mjs +14 -0
  23. package/dist/artifacts-eBZ4YN53.mjs +43 -0
  24. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  25. package/dist/auth-C6My1gI6.mjs +2 -0
  26. package/dist/auth-OFqV2M4q.mjs +2 -0
  27. package/dist/auth-eVI_UEt8.mjs +2 -0
  28. package/dist/{auth-token-Dop0wLCw.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  29. package/dist/{autoconfig-RQ3HS4m1.mjs → autoconfig-B0ESZ8DJ.mjs} +2 -2
  30. package/dist/basin-catalog-Cwk1RSMX.mjs +46 -0
  31. package/dist/billing-CfV8oi6A.mjs +23 -0
  32. package/dist/blocks-Bat9A8V_.mjs +5 -0
  33. package/dist/bot-management-CH4_Kewx.mjs +9 -0
  34. package/dist/botnet-feed-Cg_Wp8ei.mjs +11 -0
  35. package/dist/brand-protection-Cp2ckWou.mjs +27 -0
  36. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  37. package/dist/build-Bm6kGyzo.mjs +2 -0
  38. package/dist/{build-CCe7IrWT.mjs → build-sBpqm9ga.mjs} +1 -1
  39. package/dist/builds-B2RBgVL9.mjs +71 -0
  40. package/dist/cache-yvrYPvRI.mjs +45 -0
  41. package/dist/certificate-authorities-BdMRaOnD.mjs +6 -0
  42. package/dist/cf-Bq4pA4n6.mjs +18 -0
  43. package/dist/{chunk-TAK63GWY-DdMktrgc.mjs → chunk-2HLTAS5V-D7COzUOd.mjs} +2 -2
  44. package/dist/chunk-2K52M2W5-CYxfQXUq.mjs +363 -0
  45. package/dist/{chunk-DSGVRFIS-CPI5cYtB.mjs → chunk-DSGVRFIS-C5SqiTOz.mjs} +1 -1
  46. package/dist/{cli-ht4q6i2y.mjs → cli-CsnoQloF.mjs} +1 -1
  47. package/dist/client-certificates-CuWGvZSr.mjs +13 -0
  48. package/dist/client-side-security-D50iZjd_.mjs +63 -0
  49. package/dist/cloud-connector-wvSGdxWT.mjs +6 -0
  50. package/dist/{cloudflared-D83U8Yn3.mjs → cloudflared-By8BzYXc.mjs} +1 -1
  51. package/dist/cloudforce-one-j6vlmaMB.mjs +405 -0
  52. package/dist/{command-9VAc7b30.mjs → command-74P4_CTx.mjs} +1 -1
  53. package/dist/{command-B_Ixlz8Q.mjs → command-BDpm-U8z.mjs} +1 -1
  54. package/dist/{command-OHov3PEc.mjs → command-BSbhJRmu.mjs} +1 -1
  55. package/dist/{command-DjEJaOwV.mjs → command-BbO3sBQ2.mjs} +1 -1
  56. package/dist/{command-CtVUNm__.mjs → command-Bgb-3yPg.mjs} +1 -1
  57. package/dist/{command-DtgJilOK.mjs → command-C6w1OdoC.mjs} +1 -1
  58. package/dist/{command-CyJQ40fc.mjs → command-CM_f48gs.mjs} +1 -1
  59. package/dist/command-CmUtmu5j.mjs +2 -0
  60. package/dist/{command-Bpzp8Mz2.mjs → command-DCQgsd2U.mjs} +1 -1
  61. package/dist/{command-SmWD-MeI.mjs → command-DFRsim8q.mjs} +1 -1
  62. package/dist/command-DQojhTEQ.mjs +2 -0
  63. package/dist/{command-CUNMrMou.mjs → command-DZfKHiru.mjs} +1 -1
  64. package/dist/{command-BtDY_MKv.mjs → command-DiqRELHF.mjs} +1 -1
  65. package/dist/{command-DXaRn1ls.mjs → command-DppVezAB.mjs} +1 -1
  66. package/dist/{command-Ckb9FufU.mjs → command-Dr4PEvB2.mjs} +1 -1
  67. package/dist/{completions-CuqAO3N_.mjs → completions-oD1EcuHk.mjs} +1 -1
  68. package/dist/config.mjs +0 -0
  69. package/dist/connector-interrupts-DP4rbOe8.mjs +6 -0
  70. package/dist/connector-telemetry-events-BQGBQwzR.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-DBO0Mdcj.mjs +6 -0
  72. package/dist/connectors-BSVr3Kz1.mjs +15 -0
  73. package/dist/containers-BOpKpipz.mjs +376 -0
  74. package/dist/containers-BTqAeVV2.mjs +78 -0
  75. package/dist/content-scan-B9Keyxe-.mjs +14 -0
  76. package/dist/{context-BBLtgdR1.mjs → context-B-vEsyrK.mjs} +2 -2
  77. package/dist/{cps-C5phNoVU.mjs → cps-VRP794c5.mjs} +3 -3
  78. package/dist/create-OXylMu6m.mjs +2 -0
  79. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  80. package/dist/ct-alerting-Y9vfa6Fo.mjs +5 -0
  81. package/dist/custom-certificates-CojTEC0E.mjs +17 -0
  82. package/dist/custom-csrs-DM5X-K6H.mjs +11 -0
  83. package/dist/custom-hostnames-BBjqaiFF.mjs +27 -0
  84. package/dist/custom-nameservers-C0NDMLPJ.mjs +9 -0
  85. package/dist/custom-pages-M4RUxcn6.mjs +21 -0
  86. package/dist/{d1-EQMUlHTJ.mjs → d1-hin5PmxW.mjs} +31 -31
  87. package/dist/dcv-delegation-KOO8syyQ.mjs +4 -0
  88. package/dist/delegate.mjs +0 -0
  89. package/dist/{deploy-B22sEVHd.mjs → deploy-Bo7FtE44.mjs} +1 -1
  90. package/dist/deploy-context-ClvBD87y.mjs +56 -0
  91. package/dist/{deploy-input-BCjcuP6u.mjs → deploy-input-BqJ7GVZ-.mjs} +1 -1
  92. package/dist/{dev-ClhhXuNU.mjs → dev-EtnMYA7K.mjs} +1 -1
  93. package/dist/diagnostics-LZuMrGjK.mjs +15 -0
  94. package/dist/{dist-DmRM6WSZ.mjs → dist-DZRTPMMA.mjs} +4 -4
  95. package/dist/dls-Bq8k3iy-.mjs +17 -0
  96. package/dist/dns-firewall-zavP5Qxj.mjs +71 -0
  97. package/dist/dns-ry5E2Bsa.mjs +144 -0
  98. package/dist/docs-B08YtL0U.mjs +3 -0
  99. package/dist/{dotenv-DpXaxfho.mjs → dotenv-usOKkeW7.mjs} +3 -3
  100. package/dist/{dry-run-DRj2_uV3.mjs → dry-run-C2KjGX10.mjs} +1 -1
  101. package/dist/durable-objects-B9fo41B1.mjs +6 -0
  102. package/dist/email-auth-D9LGjFlh.mjs +6 -0
  103. package/dist/email-routing-6iDnNPhY.mjs +45 -0
  104. package/dist/email-security-ty4ufRnJ.mjs +158 -0
  105. package/dist/email-sending-d7LO_Cz_.mjs +47 -0
  106. package/dist/error-sanitization-CIQOep3I.mjs +2 -0
  107. package/dist/error-sanitization-pOyzm2F1.mjs +2 -0
  108. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  109. package/dist/firewall-Q88YyEwD.mjs +36 -0
  110. package/dist/flagship-CzI8zhd6.mjs +28 -0
  111. package/dist/fraud-CvFXTR0w.mjs +22 -0
  112. package/dist/get-By1q8YlI.mjs +2 -0
  113. package/dist/get-CRKvqCu6.mjs +2 -0
  114. package/dist/get-iPUHxD1r.mjs +2 -0
  115. package/dist/google-tag-gateway-Y2zbyey8.mjs +6 -0
  116. package/dist/healthchecks-4Hz-6xYi.mjs +22 -0
  117. package/dist/{hostnames-DvaUSzsj.mjs → hostnames-B3k7fIUL.mjs} +6 -6
  118. package/dist/hyperdrive-BWGYz95H.mjs +37 -0
  119. package/dist/iam-AXco_qmt.mjs +52 -0
  120. package/dist/images-BzYh8y0u.mjs +71 -0
  121. package/dist/index.mjs +1 -1
  122. package/dist/{init-Da8pe296.mjs → init-DlenHBtS.mjs} +2 -2
  123. package/dist/intel-BBi3i_GU.mjs +76 -0
  124. package/dist/ips-CWG2b7AM.mjs +4 -0
  125. package/dist/k2-DXdMe3Cb.mjs +11 -0
  126. package/dist/keyless-certificates-B4ta_OGS.mjs +13 -0
  127. package/dist/keys-B9zvFzrf.mjs +4 -0
  128. package/dist/kv-FUd7UdDu.mjs +15 -0
  129. package/dist/{lazy-command-CDWwCsD2.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  130. package/dist/leaked-credential-checks-BufVA9vL.mjs +18 -0
  131. package/dist/{load-balancers-Bu9pd2SV.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  132. package/dist/{local-BcPM4I0s.mjs → local-Dil4fTWX.mjs} +1 -1
  133. package/dist/local-DxWDQDnG.mjs +2 -0
  134. package/dist/{local-runtime-BHKyRlCP.mjs → local-runtime-B7TKFu6E.mjs} +1 -1
  135. package/dist/login-BJr2PBaJ.mjs +5 -0
  136. package/dist/login-DVbXZ_Tv.mjs +2 -0
  137. package/dist/logo-matches-BluaPvMa.mjs +6 -0
  138. package/dist/logos-CXtmYWEJ.mjs +7 -0
  139. package/dist/logpush-DCYgrqz0.mjs +46 -0
  140. package/dist/logs-as60IP29.mjs +36 -0
  141. package/dist/magic-cloud-networking-0RsHugUF.mjs +71 -0
  142. package/dist/magic-network-monitoring-CPqvZdcb.mjs +36 -0
  143. package/dist/magic-transit-ClPyGzOE.mjs +386 -0
  144. package/dist/managed-defense-P4_QWSbK.mjs +18 -0
  145. package/dist/managed-transforms-CUwQXMij.mjs +9 -0
  146. package/dist/matches-BjckDBW1.mjs +6 -0
  147. package/dist/mcp-C2EG2c7L.mjs +32 -0
  148. package/dist/mesh-CpMZA7Xt.mjs +26 -0
  149. package/dist/{migrate-CZNq63Uj.mjs → migrate-6e5mJ79R.mjs} +1 -1
  150. package/dist/monetization-DypuCZmU.mjs +20 -0
  151. package/dist/mtls-certificates-B5AWTU6u.mjs +13 -0
  152. package/dist/network-DQ5Ridgy.mjs +50 -0
  153. package/dist/network-interconnects-ifU4JhGE.mjs +72 -0
  154. package/dist/o11y-CzssfRHt.mjs +93 -0
  155. package/dist/{oauth-n8um6MFk.mjs → oauth-BDdhqasa.mjs} +1 -1
  156. package/dist/oauth-BNTiErBG.mjs +4 -0
  157. package/dist/oauth-clients-gknNcBdV.mjs +16 -0
  158. package/dist/oauth-scopes-BJeSanuF.mjs +4 -0
  159. package/dist/organization-CXAM41sd.mjs +71 -0
  160. package/dist/organizations-kfFFW4uO.mjs +4 -0
  161. package/dist/origin-ca-certificates-DwhYV3m_.mjs +11 -0
  162. package/dist/origin-post-quantum-encryption-DfrnptJ1.mjs +6 -0
  163. package/dist/origin-tls-client-auth-COSxTc2q.mjs +30 -0
  164. package/dist/output-Co4xdFf6.mjs +2 -0
  165. package/dist/page-rules-ByrDMDBZ.mjs +39 -0
  166. package/dist/{pages-Bn0Sg1ay.mjs → pages-DuGcBC6k.mjs} +29 -29
  167. package/dist/path-DRw6Y-nd.mjs +2 -0
  168. package/dist/pay-per-crawl-B3_Gn9Cj.mjs +38 -0
  169. package/dist/pay-per-use-49EXt75f.mjs +33 -0
  170. package/dist/pipelines-Bvgh1BQZ.mjs +44 -0
  171. package/dist/precursor-VobQf--m.mjs +4 -0
  172. package/dist/previews-DkwFHNRx.mjs +7 -0
  173. package/dist/progress-R-1tIuep.mjs +2 -0
  174. package/dist/prompt-dgLm0iFJ.mjs +4 -0
  175. package/dist/queries-EbIadtC5.mjs +9 -0
  176. package/dist/queues-C4GZ-O3f.mjs +57 -0
  177. package/dist/r2-DEuFfWBR.mjs +128 -0
  178. package/dist/{radar-CdvQL4xm.mjs → radar-CDOERVcR.mjs} +150 -150
  179. package/dist/raw-fetch-BapeoreV.mjs +2 -0
  180. package/dist/realtime-D_A9Qgly.mjs +172 -0
  181. package/dist/registrar-X1YLlnmg.mjs +43 -0
  182. package/dist/registrar-sandbox-BF3cYO3n.mjs +56 -0
  183. package/dist/{registry-PI6sO95I.mjs → registry-CRnk93ur.mjs} +1 -1
  184. package/dist/reporting-BWm9jIF8.mjs +14 -0
  185. package/dist/{request-headers-D8L95bEQ.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  186. package/dist/request-tracers-CHWpiejG.mjs +4 -0
  187. package/dist/resolve-BpgXeklt.mjs +2 -0
  188. package/dist/resolve-C3FmNlSO.mjs +2 -0
  189. package/dist/resource-sharing-C186jZv0.mjs +40 -0
  190. package/dist/resource-tagging-BTagOZli.mjs +4 -0
  191. package/dist/rules-DYnGIU_0.mjs +18 -0
  192. package/dist/rulesets-BcNrbVcq.mjs +37 -0
  193. package/dist/rum-BDyRecfp.mjs +30 -0
  194. package/dist/{run-CW2Cgi0S.mjs → run-BvDCuZ8q.mjs} +1 -1
  195. package/dist/run-roYb_Odh.mjs +2 -0
  196. package/dist/{schema-elj12WOx.mjs → schema-S3pUZwpI.mjs} +1 -1
  197. package/dist/{schema-flags-BTItUu1K.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  198. package/dist/scim-zn-CNCsc.mjs +18 -0
  199. package/dist/secrets-store-CFhyQUV6.mjs +24 -0
  200. package/dist/security-insights-D8XgtCed.mjs +40 -0
  201. package/dist/security-txt-CCM-Vro0.mjs +9 -0
  202. package/dist/session-Cq3YNLoI.mjs +2 -0
  203. package/dist/shared-ouAF7o4S.mjs +2 -0
  204. package/dist/smart-shield-DwW7N92r.mjs +24 -0
  205. package/dist/snippets-B2jBY0m_.mjs +20 -0
  206. package/dist/{spawn-D07wH-MH.mjs → spawn-DQttFH05.mjs} +1 -1
  207. package/dist/{spectrum-B6qkjR_Z.mjs → spectrum-Cf_4cGE8.mjs} +16 -16
  208. package/dist/speed-DoXdyIYK.mjs +24 -0
  209. package/dist/sql-Bze4h80q.mjs +4 -0
  210. package/dist/src-BguQDHjS.mjs +125 -0
  211. package/dist/ssl-u_0gUhPA.mjs +45 -0
  212. package/dist/{startup-profile-CrtCP-6-.mjs → startup-profile-BOaseXnO.mjs} +1 -1
  213. package/dist/startup-profile-BwEZFVGS.mjs +2 -0
  214. package/dist/{state-DIiIGEtR.mjs → state-Boubf1X6.mjs} +1 -1
  215. package/dist/state-CODDG9Nx.mjs +2 -0
  216. package/dist/stream-BcReYIHJ.mjs +102 -0
  217. package/dist/submit-ldFVNfNC.mjs +4 -0
  218. package/dist/{tags-CX23P4jg.mjs → tags-D_Hc_A-r.mjs} +2 -2
  219. package/dist/{telemetry-ZlCi5Xhc.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  220. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  221. package/dist/tenant-AZ0EAsmT.mjs +10 -0
  222. package/dist/tenant-custom-nameservers-aozjaasc.mjs +9 -0
  223. package/dist/theme-BGHWSKCw.mjs +6 -0
  224. package/dist/{tools-CSc5DmFi.mjs → tools-BCCRUENY.mjs} +1 -1
  225. package/dist/tunnels-CXez5LPB.mjs +29 -0
  226. package/dist/turnstile-B2NQ8Nsk.mjs +33 -0
  227. package/dist/ui-BtIBQeaG.mjs +2 -0
  228. package/dist/{update-check-HFkPml6x.mjs → update-check-BlyKN8m0.mjs} +1 -1
  229. package/dist/update-check-BnGDxswi.mjs +2 -0
  230. package/dist/update-check-worker.mjs +1 -1
  231. package/dist/url-info-D_UqGiWD.mjs +4 -0
  232. package/dist/url-normalization-CF1YHpIN.mjs +9 -0
  233. package/dist/url-scanner-ChF3GO2U.mjs +16 -0
  234. package/dist/{user-rXca0J9M.mjs → user-BfWRsdJh.mjs} +58 -58
  235. package/dist/values-CLfxkAUJ.mjs +4 -0
  236. package/dist/vectorize-CRYbWKg5.mjs +32 -0
  237. package/dist/version-CVlh2Zaq.mjs +2 -0
  238. package/dist/{waiting-rooms-DrA3-0bw.mjs → waiting-rooms-Crp7MVd9.mjs} +25 -25
  239. package/dist/web-assets-CgyrPnT-.mjs +64 -0
  240. package/dist/web3-Cd0Yd0eQ.mjs +28 -0
  241. package/dist/workers-CTwJpTfJ.mjs +40 -0
  242. package/dist/workers-builds-f2nVw7EZ.mjs +14 -0
  243. package/dist/workers-for-platforms-DjeKp2uy.mjs +40 -0
  244. package/dist/workers-vpc-B_L3TEg2.mjs +13 -0
  245. package/dist/workflows-CBPGf65x.mjs +52 -0
  246. package/dist/{wrangler-migration-C6FKHER1.mjs → wrangler-migration-DxTB5yPT.mjs} +1 -1
  247. package/dist/zaraz-3VDxl0gF.mjs +22 -0
  248. package/dist/zero-trust-B9xY8zcn.mjs +957 -0
  249. package/dist/zone-CmwVqTI2.mjs +4 -0
  250. package/dist/zones-Bf0VVpMf.mjs +124 -0
  251. package/package.json +17 -19
  252. package/dist/Page-BShsqCXr.mjs +0 -2
  253. package/dist/abuse-reports-CVv52Q2w.mjs +0 -24
  254. package/dist/account-tags-RhvWOkOf.mjs +0 -15
  255. package/dist/accounts--3lrEkmu.mjs +0 -125
  256. package/dist/acm-BJxINEcu.mjs +0 -15
  257. package/dist/addressing-BqByG9JW.mjs +0 -105
  258. package/dist/agent-memory-D4dQMGbh.mjs +0 -34
  259. package/dist/ai-CRkQ4pjC.mjs +0 -31
  260. package/dist/ai-audit-fMSn4c5L.mjs +0 -6
  261. package/dist/ai-gateway-CbhvQK4L.mjs +0 -80
  262. package/dist/ai-search-CvVSnOA0.mjs +0 -79
  263. package/dist/ai-security-Z_qpI92I.mjs +0 -10
  264. package/dist/alerting-CpbCB8br.mjs +0 -56
  265. package/dist/alerts-BSON-vFh.mjs +0 -2
  266. package/dist/analytics-DkY9dOP1.mjs +0 -17
  267. package/dist/analytics_engine-DE_jvlx_.mjs +0 -4
  268. package/dist/api-security-BHnOU5MM.mjs +0 -154
  269. package/dist/argo-DhC5L_aN.mjs +0 -14
  270. package/dist/args-CfbYkeXd.mjs +0 -2
  271. package/dist/artifacts-CrIupY7P.mjs +0 -43
  272. package/dist/audit-logs-BjeBxTox.mjs +0 -4
  273. package/dist/auth-BNYfOMl0.mjs +0 -2
  274. package/dist/auth-CAWalgW0.mjs +0 -2
  275. package/dist/auth-DOwC01PW.mjs +0 -2
  276. package/dist/autorag-kNrLiqDX.mjs +0 -2
  277. package/dist/banner-D03JEqRs.mjs +0 -2
  278. package/dist/basin-catalog-DZ7QV-_N.mjs +0 -46
  279. package/dist/billing-BFyte9fL.mjs +0 -23
  280. package/dist/bot-management-DXcbV3am.mjs +0 -9
  281. package/dist/botnet-feed-bGGp_cwX.mjs +0 -11
  282. package/dist/brand-protection-DN36XkxH.mjs +0 -27
  283. package/dist/brands-bBJgbbOH.mjs +0 -2
  284. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  285. package/dist/browser-run-hHD1RT43.mjs +0 -42
  286. package/dist/build-BhpWYgNm.mjs +0 -2
  287. package/dist/builds-6aO61R9R.mjs +0 -71
  288. package/dist/cache-C5YJpMqi.mjs +0 -45
  289. package/dist/certificate-authorities-CbqDAktQ.mjs +0 -6
  290. package/dist/cf-oRSQKirD.mjs +0 -18
  291. package/dist/chunk-NDZDTP46-Civns3WA.mjs +0 -361
  292. package/dist/clear-BW9vLgI3.mjs +0 -2
  293. package/dist/cli-types-9oYmRTHJ.mjs +0 -2
  294. package/dist/client-certificates-balaN_my.mjs +0 -13
  295. package/dist/client-side-security-3_4Ermmg.mjs +0 -63
  296. package/dist/cloud-connector-avx27sLw.mjs +0 -6
  297. package/dist/cloudforce-one-CXdeqJ9l.mjs +0 -405
  298. package/dist/command-DPX9sJVi.mjs +0 -2
  299. package/dist/command-OWe3v69l.mjs +0 -2
  300. package/dist/connector-interrupts-ftd10Du-.mjs +0 -6
  301. package/dist/connector-telemetry-events-TwDZYdEM.mjs +0 -6
  302. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  303. package/dist/connector-telemetry-snapshots-CZxkOuC3.mjs +0 -6
  304. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  305. package/dist/connectors-6lVSr-fd.mjs +0 -15
  306. package/dist/containers-Dqs_ZnO2.mjs +0 -78
  307. package/dist/containers-ncw3bd3a.mjs +0 -376
  308. package/dist/content-scan-BWFbqfQ0.mjs +0 -14
  309. package/dist/csamScanner-BwZNZu0A.mjs +0 -10
  310. package/dist/ct-alerting-DPp3qLqO.mjs +0 -5
  311. package/dist/custom-certificates-pfpZcr06.mjs +0 -17
  312. package/dist/custom-csrs-DrvGRAkl.mjs +0 -11
  313. package/dist/custom-hostnames-wGtmFbz1.mjs +0 -27
  314. package/dist/custom-nameservers-HTG6MPKv.mjs +0 -9
  315. package/dist/custom-pages-DqEHBSVt.mjs +0 -21
  316. package/dist/dcv-delegation-D6nj0Z5N.mjs +0 -4
  317. package/dist/deploy-context-DmG9rgPO.mjs +0 -56
  318. package/dist/diagnostics-tqHjq-Pl.mjs +0 -15
  319. package/dist/dls-BEHj4X9T.mjs +0 -17
  320. package/dist/dns-firewall-zwbkutyf.mjs +0 -71
  321. package/dist/dns-n4mfYBZg.mjs +0 -144
  322. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  323. package/dist/durable-objects-CQ2dHhho.mjs +0 -6
  324. package/dist/email-auth-DOi6yOt3.mjs +0 -6
  325. package/dist/email-routing-WcSPt22u.mjs +0 -45
  326. package/dist/email-security-BXu3OGay.mjs +0 -158
  327. package/dist/email-sending-B9zTlIjt.mjs +0 -47
  328. package/dist/error-sanitization-DE_zSrXw.mjs +0 -2
  329. package/dist/error-sanitization-DOCQ9Ykh.mjs +0 -2
  330. package/dist/errors-_sob7Ihu.mjs +0 -3
  331. package/dist/fieldExtractors-B37m2lKW.mjs +0 -9
  332. package/dist/firewall-CRtYO0Ha.mjs +0 -36
  333. package/dist/flagship-DvTFZSay.mjs +0 -28
  334. package/dist/fraud-uSyibsit.mjs +0 -22
  335. package/dist/google-tag-gateway-BFXiiokq.mjs +0 -6
  336. package/dist/health-CTaCeVyC.mjs +0 -2
  337. package/dist/healthchecks-27u7b7Jb.mjs +0 -22
  338. package/dist/hyperdrive-BzJvPdu6.mjs +0 -37
  339. package/dist/iam-Dl3cU9GI.mjs +0 -52
  340. package/dist/images-C2OkI1j7.mjs +0 -71
  341. package/dist/intel-DoB1g_K7.mjs +0 -76
  342. package/dist/internal-BYS7hO8c.mjs +0 -2
  343. package/dist/ips-BRt68epr.mjs +0 -4
  344. package/dist/k2-_eq5ZY2t.mjs +0 -11
  345. package/dist/keyless-certificates-DaO2yqYu.mjs +0 -13
  346. package/dist/keys-7BQ3Zq6Y.mjs +0 -4
  347. package/dist/kv-BTYCXKML.mjs +0 -15
  348. package/dist/leaked-credential-checks-CPHOK_dE.mjs +0 -18
  349. package/dist/live-BJE_YWE1.mjs +0 -2
  350. package/dist/local-BundUuDT.mjs +0 -2
  351. package/dist/login-BBYC_BtH.mjs +0 -2
  352. package/dist/login-D2uoWhWh.mjs +0 -5
  353. package/dist/logo-matches-Bc1DQ4-g.mjs +0 -6
  354. package/dist/logos-X5B8z7Iv.mjs +0 -7
  355. package/dist/logpush-C2ENi1et.mjs +0 -46
  356. package/dist/logs-BKDz7kBW.mjs +0 -36
  357. package/dist/magic-cloud-networking-B60Gld8A.mjs +0 -71
  358. package/dist/magic-network-monitoring-CxXI3Y-H.mjs +0 -36
  359. package/dist/magic-transit-ZCSaCbl8.mjs +0 -386
  360. package/dist/managed-defense-DrxMb7xi.mjs +0 -18
  361. package/dist/managed-transforms-AI7KrRU1.mjs +0 -9
  362. package/dist/matches-rPMLS3Ip.mjs +0 -6
  363. package/dist/mcp-DXUMvEWt.mjs +0 -32
  364. package/dist/mesh-MmBCQ37q.mjs +0 -26
  365. package/dist/monetization-DQE5VtUO.mjs +0 -20
  366. package/dist/mtls-certificates-DwkEb-Hy.mjs +0 -13
  367. package/dist/network-BcfobxQY.mjs +0 -50
  368. package/dist/network-interconnects-BU3tN_Ab.mjs +0 -72
  369. package/dist/o11y-BBv7nedp.mjs +0 -93
  370. package/dist/oauth-BUr8bPwo.mjs +0 -9
  371. package/dist/oauth-clients-qWVImhHE.mjs +0 -16
  372. package/dist/oauth-scopes-CdeIgJIx.mjs +0 -4
  373. package/dist/organization-CJeOVWH7.mjs +0 -71
  374. package/dist/organizations-BpfoqZcG.mjs +0 -4
  375. package/dist/origin-ca-certificates-Bimf07RF.mjs +0 -11
  376. package/dist/origin-post-quantum-encryption-CM-If38w.mjs +0 -6
  377. package/dist/origin-tls-client-auth-BPwYPhc9.mjs +0 -30
  378. package/dist/output-BOe-3AQG.mjs +0 -2
  379. package/dist/page-rules-DOeekMrj.mjs +0 -39
  380. package/dist/pay-per-crawl-qJpseNNx.mjs +0 -38
  381. package/dist/pay-per-use-C1MWKJ4O.mjs +0 -33
  382. package/dist/pipelines-rCwXQw6S.mjs +0 -44
  383. package/dist/precursor-Bk8Pp6jT.mjs +0 -4
  384. package/dist/previews-BEheHO3T.mjs +0 -4
  385. package/dist/progress-CQqDtgmF.mjs +0 -2
  386. package/dist/prompt-C8FyienX.mjs +0 -3
  387. package/dist/queries-DJ8looyq.mjs +0 -9
  388. package/dist/queues-BBH9Q-Tt.mjs +0 -57
  389. package/dist/r2-CdJKpP2w.mjs +0 -128
  390. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  391. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  392. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  393. package/dist/raw-fetch-DbXN3SlE.mjs +0 -2
  394. package/dist/ready-B3pLxnjc.mjs +0 -2
  395. package/dist/realtime-onrXppzh.mjs +0 -172
  396. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  397. package/dist/refute-Dp3VodMn.mjs +0 -2
  398. package/dist/registrar-CbEBc5IE.mjs +0 -43
  399. package/dist/registrar-sandbox-BJhn1HFT.mjs +0 -56
  400. package/dist/reporting-bXZY6obP.mjs +0 -14
  401. package/dist/request-tracers-CihskC2A.mjs +0 -4
  402. package/dist/resolve-CaTBV-c6.mjs +0 -2
  403. package/dist/resolve-DCGSzUDQ.mjs +0 -2
  404. package/dist/resource-sharing-DDqcCHVs.mjs +0 -40
  405. package/dist/resource-tagging-D63RpBce.mjs +0 -4
  406. package/dist/rules-CAW0-Wde.mjs +0 -18
  407. package/dist/rulesets-CPir63Qc.mjs +0 -37
  408. package/dist/rum-BfwTcuup.mjs +0 -30
  409. package/dist/run-DEynXvCc.mjs +0 -2
  410. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  411. package/dist/scan-page-CxeudOzj.mjs +0 -2
  412. package/dist/scim-CtZ1FeQE.mjs +0 -18
  413. package/dist/search-B_P5ZTQj.mjs +0 -2
  414. package/dist/secrets-store-BIuBYUJT.mjs +0 -24
  415. package/dist/security-insights-DfUus0bs.mjs +0 -40
  416. package/dist/security-txt-CgZOsAIZ.mjs +0 -9
  417. package/dist/session-BcM8Vyyx.mjs +0 -2
  418. package/dist/shared-CpS23WwR.mjs +0 -2
  419. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  420. package/dist/smart-shield-ClgB7r-9.mjs +0 -24
  421. package/dist/snippets-DLO3iFAg.mjs +0 -20
  422. package/dist/speed-DX5X2EIR.mjs +0 -24
  423. package/dist/sql-CF044HDW.mjs +0 -4
  424. package/dist/src-BMATTZU_.mjs +0 -125
  425. package/dist/ssl-CM-rChEC.mjs +0 -45
  426. package/dist/startup-profile-D662WI9s.mjs +0 -2
  427. package/dist/state-D7uNYnoi.mjs +0 -2
  428. package/dist/stream-5EmUOQvy.mjs +0 -102
  429. package/dist/submission-info-_t78q2OE.mjs +0 -2
  430. package/dist/submit-lEAaRSMR.mjs +0 -4
  431. package/dist/telemetry-0Y5hAtCX.mjs +0 -2
  432. package/dist/tenant-DnI7QziH.mjs +0 -10
  433. package/dist/tenant-custom-nameservers-MR0dlcGm.mjs +0 -9
  434. package/dist/theme-CQ_TYifs.mjs +0 -6
  435. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  436. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  437. package/dist/tunnels-NzYpsfi_.mjs +0 -29
  438. package/dist/turnstile-M7sKCEz3.mjs +0 -33
  439. package/dist/ui-YmjF66Ct.mjs +0 -5
  440. package/dist/update-check-aTutXNRd.mjs +0 -2
  441. package/dist/url-info-Dos9VOXV.mjs +0 -4
  442. package/dist/url-normalization-CZbFOq_v.mjs +0 -9
  443. package/dist/url-scanner-B7quLPGW.mjs +0 -16
  444. package/dist/values-D-rrZrDa.mjs +0 -4
  445. package/dist/vectorize-D2tf_oA8.mjs +0 -32
  446. package/dist/verify-5KcvRk-q.mjs +0 -2
  447. package/dist/version-BGnqDvNR.mjs +0 -2
  448. package/dist/web-assets-DQAfvPT9.mjs +0 -64
  449. package/dist/web3-MI0GQDnu.mjs +0 -28
  450. package/dist/workers-By6Pf8fv.mjs +0 -40
  451. package/dist/workers-builds-6YsWsCmC.mjs +0 -14
  452. package/dist/workers-for-platforms-DL8fC1qR.mjs +0 -40
  453. package/dist/workers-vpc-BYx6sbgd.mjs +0 -13
  454. package/dist/workflows-ByQLnV0E.mjs +0 -52
  455. package/dist/zaraz-CgbpmA85.mjs +0 -22
  456. package/dist/zero-trust-CpjTkkWt.mjs +0 -837
  457. package/dist/zone-DnKIe6po.mjs +0 -4
  458. package/dist/zones--5ZzsDmQ.mjs +0 -124
@@ -1,125 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-BcPM4I0s.mjs";import{i as t,n}from"./auth-CAWalgW0.mjs";import{a as r,i,t as a}from"./context-BBLtgdR1.mjs";import{t as o}from"./output-BOe-3AQG.mjs";import{t as s}from"./dry-run-DRj2_uV3.mjs";import{t as c}from"./progress-CQqDtgmF.mjs";import{t as l}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-C8FyienX.mjs";import{t as v}from"./cli-types-9oYmRTHJ.mjs";import{n as ee,t as te}from"./raw-fetch-DbXN3SlE.mjs";function y(e){return e.usage(`$0 accounts applications create
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. `})}const b={command:`create`,describe:`Create application`,builder:y,handler:async t=>l({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.applications.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}if(t[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);t[`human-id`]===void 0&&(t[`human-id`]=await h(`human-id`,`Human-readable identifier for the application.`)),t.name===void 0&&(t.name=await h(`name`,`Application name.`));let u=p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}),f=await c(`Creating`,async()=>i.accounts.applications.create({body:u,account_id:l}));o(f,{successLabel:`Created`})})};function x(e){return e.usage(`$0 accounts applications delete <id>
5
-
6
- Delete a custom application and all of its versions. Deletion is rejected when other resources reference the application.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const S={command:`delete <id>`,describe:`Delete application`,builder:x,handler:async t=>l({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force,message:`This operation deletes the custom application and all of its versions. This action cannot be undone.`})){process.stderr.write(`Aborted.
7
- `);return}let u=await c(`Deleting`,async()=>i.accounts.applications.delete({account_id:l,id:t.id}));o(u,{successLabel:`Deleted`})})};function C(e){return e.usage(`$0 accounts applications get <id>
8
-
9
- Retrieve an application available to the account by its numeric application ID.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <id>`,describe:`Get application`,builder:C,handler:async t=>l({command:`accounts applications get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.applications.get({account_id:l,id:t.id}));o(u,{successLabel:`Loaded`})})};function T(e){return e.usage("$0 accounts applications list\n\nList the applications available to an account, both the applications Cloudflare curates and the custom applications the account has defined. Results are paginated. Use `filter` and `search` to narrow the list, `order_by` to sort it, and `fields` to reduce each result to only the properties you need. Use `lookup` to find complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. It ranks matches by relevance and uses the same filters, fields, and pagination as listing. `lookup` cannot be combined with `search`. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:"Filter applications using `key:value` format. Supported filter keys:\n- `name`: application name (for example, `name:HR`).\n- `id`: application ID (for example, `id:498`).\n- `human_id`: human-readable ID (for example, `human_id:HR`).\n- `hostname`: hostname or support domain (for example, `hostname:portal.example.com`).\n- `source`: application source name (for example, `source:cloudflare`).\n- `ip_subnet`: CIDR containment; returns applications where a stored subnet contains the search value (for example, `ip_subnet:10.0.1.5/32` matches `10.0.0.0/16`).\n- `category_id`: category ID (for example, `category_id:12`).\n- `category_name`: category name (for example, `category_name:HR`).\n- `supported`: supported Cloudflare product. Values: `GATEWAY`, `ACCESS`, `CASB`.\n- `review_status`: account-specific Gateway review status. Values: `approved`, `unapproved`, `in_review`, `unreviewed`."}).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`order-by`,{type:`string`,description:`Order results using field:direction format. Supported fields are name, id, human_id,
10
- category_id, application_type, application_confidence_score, and gen_ai_score.
11
- Supported directions are asc and desc. Ignored when search is provided; results are
12
- ranked by relevance instead. Also ignored when lookup is provided.`}).option(`search`,{type:`string`,description:`Fuzzy search across application name and hostnames. Results are ranked by relevance. Must be between 2 and 200 characters. Can be combined with filter parameters.`}).option(`lookup`,{type:`string`,description:`Find complete, case-insensitive application name mentions in a phrase or
13
- rule sentence. Misspelled names do not match. Returns matching applications
14
- ranked by relevance. Must be between 2 and 1000 characters. Uses the same
15
- filters, fields, and pagination as listing. \`search\` cannot be combined
16
- with lookup. Results are ranked by relevance, so \`order_by\` is ignored.`}).option(`fields`,{type:`string`,description:"Return only the listed properties on each application, as a comma-separated list.\nUse this to keep responses small when you only need part of each application, for\nexample populating a picker with `fields=id,name` instead of downloading every\nhostname and IP subnet.\n\nOmit this parameter to receive the full application object, including\nwhen lookup is used.\n\n`id` is always returned.\n\nSelectable properties: `id`, `name`, `human_id`, `version`, `hostnames`,\n`support_domains`, `ip_subnets`, `port_protocols`, `supported`, `gen_ai_score`,\n`application_confidence_score`, `created_at`, `updated_at`, `review_status`.\n\nUnknown or empty property names return `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List applications`,builder:T,handler:async t=>l({command:`accounts applications list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={filter:t.filter,limit:t.limit,offset:t.offset,order_by:t[`order-by`],search:t.search,lookup:t.lookup,fields:t.fields};if(t.dryRun){let e=await r();s({command:`cf accounts applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.applications.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 accounts applications update <id>
17
-
18
- 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. `})}const O={command:`update <id>`,describe:`Update application`,builder:D,handler:async t=>l({command:`accounts applications update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts applications update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/applications/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`json`,body:t.body===void 0?p({hostnames:t.hostnames,ip_subnets:t[`ip-subnets`],port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.applications.update({...e,account_id:l,id:t.id}));o(n,{successLabel:`Updated`});return}let u=p({hostnames:t.hostnames,ip_subnets:t[`ip-subnets`],port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}),f=await c(`Updating`,async()=>i.accounts.applications.update({...u,account_id:l,id:t.id}));o(f,{successLabel:`Updated`})})},k={command:`applications`,describe:`List Cloudflare-curated and custom applications, and manage custom applications`,builder:e=>e.command(b).command(S).command(w).command(E).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 accounts billing createSetupIntent
19
-
20
- 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 j={command:`createSetupIntent`,describe:`Create Setup Intent`,builder:A,handler:async t=>l({command:`accounts billing createSetupIntent`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing createSetupIntent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/client-secret`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Creating`,async()=>i.accounts.billing.createSetupIntent({account_id:l}));o(u,{successLabel:`Created`})})};function M(e){return e.usage(`$0 accounts billing getBadDebt
21
-
22
- Gets bad debt information for an account, including outstanding invoices and total debt amount.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`getBadDebt`,describe:`Get Account Bad Debt`,builder:M,handler:async t=>l({command:`accounts billing getBadDebt`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing getBadDebt`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/bad-debt`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.billing.getBadDebt({account_id:l}));o(u,{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 accounts billing getCredits
23
-
24
- Gets the credit balance and eligibility for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`getCredits`,describe:`Get Account Credits`,builder:P,handler:async t=>l({command:`accounts billing getCredits`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing getCredits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/credits`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.billing.getCredits({account_id:l}));o(u,{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 accounts billing getReceiptPdf <receipt-id>
25
-
26
- Downloads a receipt as a PDF document.`).positional(`receipt-id`,{type:`string`,description:`Receipt identifier.`,demandOption:!0}).option(`doctype`,{type:`string`,description:`The document type to generate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const L={command:`getReceiptPdf <receipt-id>`,describe:`Get Receipt PDF`,builder:I,handler:async t=>l({command:`accounts billing getReceiptPdf`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{let i={doctype:t.doctype};if(t.dryRun){let e=await r();s({command:`cf accounts billing getReceiptPdf`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/receipts/${t[`receipt-id`]==null?`<receipt-id>`:encodeURIComponent(String(t[`receipt-id`]))}/pdf`,pathParams:{"receipt-id":String(t[`receipt-id`]??``)},query:i,bodyKind:`none`});return}await n(t);let o=t.local?e:await a();t.accountId=o;let l=new URLSearchParams(Object.entries(i).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await c(`Loading`,async()=>te(`/accounts/${o}/receipts/${encodeURIComponent(String(t[`receipt-id`]))}/pdf${l?`?`+l:``}`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));ee(t.text===!0?u.toString(`utf-8`):u)})};function R(e){return e.usage(`$0 accounts billing getUnpaidInvoices
27
-
28
- Gets unpaid invoice information for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`getUnpaidInvoices`,describe:`Get Unpaid Invoices`,builder:R,handler:async t=>l({command:`accounts billing getUnpaidInvoices`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing getUnpaidInvoices`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/unpaid-invoice`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.billing.getUnpaidInvoices({account_id:l}));o(u,{successLabel:`Loaded`})})};function B(e){return e.usage(`$0 accounts billing history list
29
-
30
- 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 V={command:`list`,describe:`Get Account Billing History`,builder:B,handler:async t=>l({command:`accounts billing history list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`],status:t.status};if(t.dryRun){let e=await r();s({command:`cf accounts billing history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/history`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.billing.history.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})},H={command:`history`,describe:`Operations for billing.history`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 accounts billing payBadDebt
31
-
32
- Pays outstanding bad debt for an account. Discovers all debt automatically and handles invoice deduplication.`).option(`payment-method-id`,{type:`string`,description:`The payment method to use. If omitted, the default payment method is used.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const W={command:`payBadDebt`,describe:`Pay Bad Debt`,builder:U,handler:async t=>l({command:`accounts billing payBadDebt`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payBadDebt`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-bad-debt`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...e,account_id:l}));o(n,{successLabel:`Created`});return}let u=p({payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`)}),f=await c(`Creating`,async()=>i.accounts.billing.payBadDebt({...u,account_id:l}));o(f,{successLabel:`Created`})})};function G(e){return e.usage(`$0 accounts billing payInvoice
33
-
34
- 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 K={command:`payInvoice`,describe:`Pay Invoice`,builder:G,handler:async t=>l({command:`accounts billing payInvoice`,classification:{safeFlags:[`validate-payment-method`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payInvoice`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-invoice`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({invoice_id:m(t[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:t[`validate-payment-method`]}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.billing.payInvoice({...e,account_id:l}));o(n,{successLabel:`Created`});return}let u=p({invoice_id:m(t[`invoice-id`],`invoice-id`,`text`),payment_method_id:m(t[`payment-method-id`],`payment-method-id`,`text`),validate_payment_method:t[`validate-payment-method`]}),f=await c(`Creating`,async()=>i.accounts.billing.payInvoice({...u,account_id:l}));o(f,{successLabel:`Created`})})};function q(e){return e.usage(`$0 accounts billing payment-methods create
35
-
36
- 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=>m(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 J={command:`create`,describe:`Create Payment Method`,builder:q,handler:async t=>l({command:`accounts billing payment-methods create`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:t.type,zipcode:m(t.zipcode,`zipcode`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}let u=p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:t.type,zipcode:m(t.zipcode,`zipcode`,`text`)}),f=await c(`Creating`,async()=>i.accounts.billing.paymentMethods.create({body:u,account_id:l}));o(f,{successLabel:`Created`})})};function Y(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
37
-
38
- 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 X={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Y,handler:async t=>l({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force})){process.stderr.write(`Aborted.
39
- `);return}let u=await c(`Deleting`,async()=>i.accounts.billing.paymentMethods.delete({account_id:l,payment_method_id:t[`payment-method-id`]}));o(u,{successLabel:`Deleted`})})};function Z(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
40
-
41
- Gets a specific payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`get <payment-method-id>`,describe:`Get Payment Method`,builder:Z,handler:async t=>l({command:`accounts billing payment-methods get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.billing.paymentMethods.get({account_id:l,payment_method_id:t[`payment-method-id`]}));o(u,{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 accounts billing payment-methods list
42
-
43
- Lists all payment methods for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`List Payment Methods`,builder:ne,handler:async t=>l({command:`accounts billing payment-methods list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.billing.paymentMethods.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})};function ie(e){return e.usage(`$0 accounts billing payment-methods setDefault <payment-method-id>
44
-
45
- 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 ae={command:`setDefault <payment-method-id>`,describe:`Set Default Payment Method`,builder:ie,handler:async t=>l({command:`accounts billing payment-methods setDefault`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods setDefault`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}/set-as-default`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Creating`,async()=>i.accounts.billing.paymentMethods.setDefault({account_id:l,payment_method_id:t[`payment-method-id`]}));o(u,{successLabel:`Created`})})};function oe(e){return e.usage(`$0 accounts billing payment-methods update <payment-method-id>
46
-
47
- 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=>m(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 se={command:`update <payment-method-id>`,describe:`Update Payment Method`,builder:oe,handler:async t=>l({command:`accounts billing payment-methods update`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing payment-methods update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/payment-methods/${t[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(t[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(t[`payment-method-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:t.type,zipcode:m(t.zipcode,`zipcode`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:e,account_id:l,payment_method_id:t[`payment-method-id`]}));o(n,{successLabel:`Updated`});return}let u=p({address:m(t.address,`address`,`text`),address2:m(t.address2,`address2`,`text`),bank_account_type:m(t[`bank-account-type`],`bank-account-type`,`text`),bank_code:m(t[`bank-code`],`bank-code`,`text`),bank_country:m(t[`bank-country`],`bank-country`,`text`),bank_name:m(t[`bank-name`],`bank-name`,`text`),bank_routing_number:m(t[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:m(t[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:m(t.city,`city`,`text`),country:m(t.country,`country`,`text`),default:t.default,device_data:m(t[`device-data`],`device-data`,`text`),first_name:m(t[`first-name`],`first-name`,`text`),last_name:m(t[`last-name`],`last-name`,`text`),nick_name:m(t[`nick-name`],`nick-name`,`text`),payment_account_email:m(t[`payment-account-email`],`payment-account-email`,`text`),payment_email:m(t[`payment-email`],`payment-email`,`text`),payment_gateway:m(t[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:m(t[`payment-nonce`],`payment-nonce`,`text`),state:m(t.state,`state`,`text`),type:t.type,zipcode:m(t.zipcode,`zipcode`,`text`)}),f=await c(`Updating`,async()=>i.accounts.billing.paymentMethods.update({body:u,account_id:l,payment_method_id:t[`payment-method-id`]}));o(f,{successLabel:`Updated`})})},ce={command:`payment-methods`,describe:`Operations for billing.payment-methods`,builder:e=>e.command(J).command(X).command(Q).command(re).command(ae).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function le(e){return e.usage(`$0 accounts billing togglePdfInvoices
48
-
49
- 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 ue={command:`togglePdfInvoices`,describe:`Toggle PDF Invoices`,builder:le,handler:async t=>l({command:`accounts billing togglePdfInvoices`,classification:{safeFlags:[`toggle`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts billing togglePdfInvoices`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/invoices`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({toggle:t.toggle}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...e,account_id:l}));o(n,{successLabel:`Updated`});return}let u=p({toggle:t.toggle}),f=await c(`Updating`,async()=>i.accounts.billing.togglePdfInvoices({...u,account_id:l}));o(f,{successLabel:`Updated`})})},de={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(j).command(N).command(F).command(L).command(z).command(W).command(K).command(ue).command(H).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function fe(e){return e.usage(`$0 accounts categories get <id>
50
-
51
- 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 pe={command:`get <id>`,describe:`Get application category`,builder:fe,handler:async t=>l({command:`accounts categories get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts categories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/categories/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}`,pathParams:{id:String(t.id??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.categories.get({account_id:l,id:t.id}));o(u,{successLabel:`Loaded`})})};function me(e){return e.usage(`$0 accounts categories list
52
-
53
- List the categories available for classifying applications. Results are paginated.`).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0; negative values are clamped to 0.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list`,describe:`List application categories`,builder:me,handler:async t=>l({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={limit:t.limit,offset:t.offset};if(t.dryRun){let e=await r();s({command:`cf accounts categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/categories`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.categories.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})},ge={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(pe).command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _e(e){return e.usage("$0 accounts create\n\nCreate an Account. To create the Account within an Organization, provide `unit.id` and omit `standalone`. To create a standalone Free Account, provide `standalone: true` and omit `unit`. Providing both fields is invalid. If you omit both fields, Cloudflare can determine the destination only when the User is an administrator of exactly one Organization. Cloudflare creates the Account in that Organization; otherwise, the request returns an error.").option(`idempotency-key`,{type:`string`,description:`Optional key that identifies an Account-creation request. Free Account creation can require exactly one valid key, so API clients should send a key with every Account-creation request. Reuse the same key when retrying the same request.`}).option(`name`,{type:`string`,description:`Account name`}).option(`standalone`,{type:`boolean`,description:"Set to `true` and omit `unit` to create a standalone Free Account. If provided, this field must be `true`."}).option(`unit-id`,{type:`string`,description:`Tenant unit ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Parameters for account creation`})}const ve={command:`create`,describe:`Create an Account`,builder:_e,handler:async e=>l({command:`accounts create`,classification:{safeFlags:[`standalone`,`dry-run`]}},e,async()=>{let r={};if(e[`idempotency-key`]!==void 0&&(r[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){s({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),standalone:e.standalone,unit:{id:m(e[`unit-id`],`unit-id`,`text`)}}):d(e.body)});return}let i=await n(e);if(e.body){let n=d(e.body),a=await c(`Creating`,async()=>t(i,`POST`,`/accounts`,{body:n,headers:Object.keys(r).length>0?r:void 0}));o(a,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Account name`));let a={};e.name!==void 0&&u(a,[`name`],m(e.name,`name`,`text`)),e.standalone!==void 0&&u(a,[`standalone`],e.standalone),e[`unit-id`]!==void 0&&u(a,[`unit`,`id`],m(e[`unit-id`],`unit-id`,`text`));let l=await c(`Creating`,async()=>t(i,`POST`,`/accounts`,{body:Object.keys(a).length>0?a:void 0,headers:Object.keys(r).length>0?r:void 0}));o(l,{successLabel:`Created`})})};function ye(e){return e.usage(`$0 accounts delete
54
-
55
- 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 be={command:`delete`,describe:`Delete a specific account`,builder:ye,handler:async t=>l({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
56
- `);return}let u=await c(`Deleting`,async()=>i.accounts.delete({account_id:l}));o(u,{successLabel:`Deleted`})})};function xe(e){return e.usage(`$0 accounts get
57
-
58
- 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 Se={command:`get`,describe:`Account Details`,builder:xe,handler:async t=>l({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.get({account_id:l}));o(u,{successLabel:`Loaded`})})};function Ce(e){return e.usage(`$0 accounts list
59
-
60
- List all accounts you have ownership or verified access to.`).option(`name`,{type:`string`,description:`Name of the account.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`list`,describe:`List Accounts`,builder:v(Ce),handler:async e=>l({command:`accounts list`,classification:{safeFlags:[`direction`,`dry-run`]}},e,async()=>{let t={name:e.name,page:e.page,per_page:e[`per-page`],direction:e.direction};if(e.dryRun){s({command:`cf accounts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=await c(`Loading`,async()=>r.accounts.list(t));o(i,{successLabel:`Loaded`})})};function Te(e){return e.usage("$0 accounts logs audit history <id>\n\nReturns the chronological change history for the resource identified by the given audit log entry. The endpoint first locates the source audit log entry by `id` (using `action_time` to narrow the lookup window), derives identifying filters from that entry, and then returns matching audit logs within the `since`/`before` window. The `result_info.history_status` field indicates the quality of the resource identification used: - `exact`: Resource was identified by the resource URI. - `approximate`: Resource was identified without the resource URI. - `unavailable`: The source audit log entry did not contain enough information to identify the resource; an empty result is returned.").positional(`id`,{type:`string`,description:`The ID of the audit log to fetch resource history for.`,demandOption:!0}).option(`action-time`,{type:`string`,description:"RFC3339 timestamp of the source audit log entry's action time. Used to narrow the source-entry lookup window. Provide the `action.time` value from the audit log identified by `id`.",demandOption:!0}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`history <id>`,describe:`Get resource change history from an account audit log entry (Version 2)`,builder:v(Te),handler:async t=>l({command:`accounts logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},t,async()=>{let i={action_time:t[`action-time`],since:t.since,before:t.before,direction:t.direction,limit:t.limit,cursor:t.cursor};if(t.dryRun){let e=await r();s({command:`cf accounts logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/audit/${t.id==null?`<id>`:encodeURIComponent(String(t.id))}/history`,pathParams:{id:String(t.id??``)},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.logs.audit.history({account_id:u,id:t.id,...i}));o(d,{successLabel:`Loaded`})})};function De(e){return e.usage(`$0 accounts logs audit list
61
-
62
- Gets a list of audit logs for an account.`).option(`account-name`,{type:`string`,description:`Filters by the account name.`}).option(`action-result`,{type:`string`,description:`Filters by whether the action was successful or not.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-context`,{type:`string`,description:"Filters by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email`,{type:`string`,description:`Filters by the actor's email address.`}).option(`actor-id`,{type:`string`,description:`Filters by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address`,{type:`string`,description:`The IP address where the action was initiated.`}).option(`actor-token-id`,{type:`string`,description:`Filters by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name`,{type:`string`,description:`Filters by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type`,{type:`string`,description:`Filters by the actor type.`}).option(`audit-log-id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`raw-cf-ray-id`,{type:`string`,description:`Filters by the response CF Ray ID.`}).option(`raw-method`,{type:`string`,description:`The HTTP method for the API call.`}).option(`raw-status-code`,{type:`string`,description:`The response status code that was returned.`}).option(`raw-uri`,{type:`string`,description:`Filters by the request URI.`}).option(`resource-id`,{type:`string`,description:`Filters by the resource ID.`}).option(`resource-product`,{type:`string`,description:`Filters audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type`,{type:`string`,description:`Filters audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope`,{type:`string`,description:`Filters by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`product-category`,{type:`string`,description:`Filters audit logs by one or more predefined product categories. Each product category expands into a curated set of resource_product values and is unioned with any explicit resource_product filter. Matched case-insensitively; unknown product categories return 400. Repeatable. Use the audit log product categories endpoint to discover the available values.`}).option(`zone-id`,{type:`string`,description:`Filters by the zone ID.`}).option(`zone-name`,{type:`string`,description:`Filters by the zone name associated with the change.`}).option(`account-name-not`,{type:`string`,description:`Filters out audit logs by the account name.`}).option(`action-result-not`,{type:`string`,description:`Filters out audit logs by whether the action was successful or not.`}).option(`action-type-not`,{type:`string`,description:`Filters out audit logs by the action type.`}).option(`actor-context-not`,{type:`string`,description:"Filters out audit logs by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email-not`,{type:`string`,description:`Filters out audit logs by the actor's email address.`}).option(`actor-id-not`,{type:`string`,description:`Filters out audit logs by the actor ID. This can be either the Account ID or User ID.`}).option(`actor-ip-address-not`,{type:`string`,description:`Filters out audit logs IP address where the action was initiated.`}).option(`actor-token-id-not`,{type:`string`,description:`Filters out audit logs by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name-not`,{type:`string`,description:`Filters out audit logs by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type-not`,{type:`string`,description:`Filters out audit logs by the actor type.`}).option(`audit-log-id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`raw-cf-ray-id-not`,{type:`string`,description:`Filters out audit logs by the response CF Ray ID.`}).option(`raw-method-not`,{type:`string`,description:`Filters out audit logs by the HTTP method for the API call.`}).option(`raw-status-code-not`,{type:`string`,description:`Filters out audit logs by the response status code that was returned.`}).option(`raw-uri-not`,{type:`string`,description:`Filters out audit logs by the request URI.`}).option(`resource-id-not`,{type:`string`,description:`Filters out audit logs by the resource ID.`}).option(`resource-product-not`,{type:`string`,description:`Filters out audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type-not`,{type:`string`,description:`Filters out audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope-not`,{type:`string`,description:`Filters out audit logs by the resource scope, specifying whether the resource is associated with an user, an account, a zone, or a membership.`}).option(`zone-id-not`,{type:`string`,description:`Filters out audit logs by the zone ID.`}).option(`zone-name-not`,{type:`string`,description:`Filters out audit logs by the zone name associated with the change.`}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`list`,describe:`Get account audit logs (Version 2)`,builder:v(De),handler:async t=>l({command:`accounts logs audit list`,classification:{safeFlags:[`direction`,`dry-run`]}},t,async()=>{let i={account_name:t[`account-name`],action_result:t[`action-result`],action_type:t[`action-type`],actor_context:t[`actor-context`],actor_email:t[`actor-email`],actor_id:t[`actor-id`],actor_ip_address:t[`actor-ip-address`],actor_token_id:t[`actor-token-id`],actor_token_name:t[`actor-token-name`],actor_type:t[`actor-type`],audit_log_id:t[`audit-log-id`],id:t.id,raw_cf_ray_id:t[`raw-cf-ray-id`],raw_method:t[`raw-method`],raw_status_code:t[`raw-status-code`],raw_uri:t[`raw-uri`],resource_id:t[`resource-id`],resource_product:t[`resource-product`],resource_type:t[`resource-type`],resource_scope:t[`resource-scope`],product_category:t[`product-category`],zone_id:t[`zone-id`],zone_name:t[`zone-name`],"account_name.not":t[`account-name-not`],"action_result.not":t[`action-result-not`],"action_type.not":t[`action-type-not`],"actor_context.not":t[`actor-context-not`],"actor_email.not":t[`actor-email-not`],"actor_id.not":t[`actor-id-not`],"actor_ip_address.not":t[`actor-ip-address-not`],"actor_token_id.not":t[`actor-token-id-not`],"actor_token_name.not":t[`actor-token-name-not`],"actor_type.not":t[`actor-type-not`],"audit_log_id.not":t[`audit-log-id-not`],"id.not":t[`id-not`],"raw_cf_ray_id.not":t[`raw-cf-ray-id-not`],"raw_method.not":t[`raw-method-not`],"raw_status_code.not":t[`raw-status-code-not`],"raw_uri.not":t[`raw-uri-not`],"resource_id.not":t[`resource-id-not`],"resource_product.not":t[`resource-product-not`],"resource_type.not":t[`resource-type-not`],"resource_scope.not":t[`resource-scope-not`],"zone_id.not":t[`zone-id-not`],"zone_name.not":t[`zone-name-not`],since:t.since,before:t.before,direction:t.direction,limit:t.limit,cursor:t.cursor};if(t.dryRun){let e=await r();s({command:`cf accounts logs audit list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/audit`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.logs.audit.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})};function ke(e){return e.usage(`$0 accounts logs audit product-categories
63
-
64
- Lists the available audit log product categories and the resource products each one expands to. Use these values with the product_category filter on the account audit logs endpoint.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`product-categories`,describe:`List account audit log product categories (Version 2)`,builder:ke,handler:async t=>l({command:`accounts logs audit product-categories`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts logs audit product-categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/audit/product_categories`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.logs.audit.productCategories({account_id:l}));o(u,{successLabel:`Loaded`})})},je={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(Ee).command(Oe).command(Ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Me={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ne(e){return e.usage(`$0 accounts members create
65
-
66
- 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'.
67
- Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
68
- `,choices:[`accepted`,`pending`]}).coerce(`status`,e=>m(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 Pe={command:`create`,describe:`Add Member`,builder:Ne,handler:async t=>l({command:`accounts members create`,classification:{safeFlags:[`status`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({email:m(t.email,`email`,`text`),roles:t.roles,status:t.status,policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.members.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}t.email===void 0&&(t.email=await h(`email`,`The contact email address of the user.`));let u=p({email:m(t.email,`email`,`text`),roles:t.roles,status:t.status,policies:f(t.policies,`policies`)}),g=await c(`Creating`,async()=>i.accounts.members.create({body:u,account_id:l}));o(g,{successLabel:`Created`})})};function Fe(e){return e.usage(`$0 accounts members delete <member-id>
69
-
70
- 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 Ie={command:`delete <member-id>`,describe:`Remove Member`,builder:Fe,handler:async t=>l({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
71
- `);return}let u=await c(`Deleting`,async()=>i.accounts.members.delete({account_id:l,member_id:t[`member-id`]}));o(u,{successLabel:`Deleted`})})};function Le(e){return e.usage(`$0 accounts members get <member-id>
72
-
73
- Get information about a specific member of an account.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`get <member-id>`,describe:`Member Details`,builder:Le,handler:async t=>l({command:`accounts members get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.members.get({account_id:l,member_id:t[`member-id`]}));o(u,{successLabel:`Loaded`})})};function ze(e){return e.usage(`$0 accounts members list
74
-
75
- 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 Be={command:`list`,describe:`List Members`,builder:v(ze),handler:async t=>l({command:`accounts members list`,classification:{safeFlags:[`order`,`status`,`direction`,`dry-run`]}},t,async()=>{let i={order:t.order,status:t.status,page:t.page,per_page:t[`per-page`],direction:t.direction};if(t.dryRun){let e=await r();s({command:`cf accounts members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.members.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})};function Ve(e){return e.usage(`$0 accounts members update <member-id>
76
-
77
- 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 He={command:`update <member-id>`,describe:`Update Member`,builder:Ve,handler:async t=>l({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/members/${t[`member-id`]==null?`<member-id>`:encodeURIComponent(String(t[`member-id`]))}`,pathParams:{"member-id":String(t[`member-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({roles:f(t.roles,`roles`),policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.members.update({body:e,account_id:l,member_id:t[`member-id`]}));o(n,{successLabel:`Updated`});return}let u=p({roles:f(t.roles,`roles`),policies:f(t.policies,`policies`)}),m=await c(`Updating`,async()=>i.accounts.members.update({body:u,account_id:l,member_id:t[`member-id`]}));o(m,{successLabel:`Updated`})})},Ue={command:`members`,describe:`Operations for members`,builder:e=>e.command(Pe).command(Ie).command(Re).command(Be).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function We(e){return e.usage(`$0 accounts move
78
-
79
- Move an account into a destination organization, either assigning a standalone account to an organization or moving it between organizations in the same hierarchy. Availability depends on the organization's capabilities. Authentication: A Global API key is required. User API Tokens do not include the required \`com.cloudflare.api.account.move\` permission.`).option(`destination-organization-id`,{type:`string`,description:`The ID of the organization to move the account into.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The destination organization ID is where the account is to be moved.`})}const Ge={command:`move`,describe:`Move account to organization`,builder:We,handler:async t=>l({command:`accounts move`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/move`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({destination_organization_id:m(t[`destination-organization-id`],`destination-organization-id`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.move({...e,account_id:l}));o(n,{successLabel:`Created`});return}t[`destination-organization-id`]===void 0&&(t[`destination-organization-id`]=await h(`destination-organization-id`,`The ID of the organization to move the account into.`));let u=p({destination_organization_id:m(t[`destination-organization-id`],`destination-organization-id`,`text`)}),f=await c(`Creating`,async()=>i.accounts.move({...u,account_id:l}));o(f,{successLabel:`Created`})})};function Ke(e){return e.usage('$0 accounts organization list\n\nRetrieve a list of the organizations that "contain" this account or are managing it. The returned list will be in order from "root" to "leaf", where the "leaf" will be the organization that _immediately_ contains the specified account. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.').option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`list`,describe:`List account organizations`,builder:Ke,handler:async t=>l({command:`accounts organization list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts organization list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/organizations`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.organization.list({account_id:l}));o(u,{successLabel:`Loaded`})})},Je={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ye(e){return e.usage("$0 accounts profile get\n\nRetrieves the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Profiles can be shared across accounts and organizations. Only available to members of an organization that contains the account. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Read` permission, which grants `com.cloudflare.api.account.read`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Xe={command:`get`,describe:`Get account profile`,builder:Ye,handler:async t=>l({command:`accounts profile get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/profile`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.profile.get({account_id:l}));o(u,{successLabel:`Loaded`})})};function Ze(e){return e.usage("$0 accounts profile update\n\nUpdates the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Changes apply to every account and organization sharing that profile. Omitted or empty fields are left unchanged. Only available to members of an organization that contains the account. Authentication: Use a Global API key, or a user-owned API Token scoped to the account with the `Account Settings Write` permission, which grants `com.cloudflare.api.account.update`.").option(`business-address`,{type:`string`,description:`The business_address field`}).option(`business-email`,{type:`string`,description:`The business_email field`}).option(`business-name`,{type:`string`,description:`The business_name field`}).option(`business-phone`,{type:`string`,description:`The business_phone field`}).option(`external-metadata`,{type:`string`,description:`The external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Qe={command:`update`,describe:`Update account profile`,builder:Ze,handler:async t=>l({command:`accounts profile update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts profile update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/profile`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({business_address:m(t[`business-address`],`business-address`,`text`),business_email:m(t[`business-email`],`business-email`,`text`),business_name:m(t[`business-name`],`business-name`,`text`),business_phone:m(t[`business-phone`],`business-phone`,`text`),external_metadata:m(t[`external-metadata`],`external-metadata`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.profile.update({body:e,account_id:l}));o(n,{successLabel:`Updated`});return}t[`business-address`]===void 0&&(t[`business-address`]=await h(`business-address`,`The business_address field`)),t[`business-email`]===void 0&&(t[`business-email`]=await h(`business-email`,`The business_email field`)),t[`business-name`]===void 0&&(t[`business-name`]=await h(`business-name`,`The business_name field`)),t[`business-phone`]===void 0&&(t[`business-phone`]=await h(`business-phone`,`The business_phone field`)),t[`external-metadata`]===void 0&&(t[`external-metadata`]=await h(`external-metadata`,`The external_metadata field`));let u=p({business_address:m(t[`business-address`],`business-address`,`text`),business_email:m(t[`business-email`],`business-email`,`text`),business_name:m(t[`business-name`],`business-name`,`text`),business_phone:m(t[`business-phone`],`business-phone`,`text`),external_metadata:m(t[`external-metadata`],`external-metadata`,`text`)}),f=await c(`Updating`,async()=>i.accounts.profile.update({body:u,account_id:l}));o(f,{successLabel:`Updated`})})},$e={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(Xe).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function et(e){return e.usage(`$0 accounts subscriptions cancelDelayedDowngrade
80
-
81
- 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 tt={command:`cancelDelayedDowngrade`,describe:`Cancel Delayed Downgrade`,builder:et,handler:async t=>l({command:`accounts subscriptions cancelDelayedDowngrade`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions cancelDelayedDowngrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({subscription_ids:t[`subscription-ids`]}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...e,account_id:l}));o(n,{successLabel:`Created`});return}let u=p({subscription_ids:t[`subscription-ids`]}),f=await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...u,account_id:l}));o(f,{successLabel:`Created`})})};function nt(e){return e.usage(`$0 accounts subscriptions create
82
-
83
- 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=>m(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 rt={command:`create`,describe:`Create Subscription`,builder:nt,handler:async t=>l({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf accounts subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:t.body===void 0?p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:t.frequency,rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}}):d(t.body)});return}let l=await n(t),u=t.zone===void 0?`accounts`:`zones`,h=u===`zones`?await i({zone:t.zone},l,{quiet:t.quiet}):t.local?e:await a();if(u===`zones`?t.zoneId=h:t.accountId=h,t.body){let e=d(t.body),n=await c(`Creating`,async()=>l.accounts.subscriptions.create({body:e,account_or_zone:u,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}let g=p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:t.frequency,rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}}),_=await c(`Creating`,async()=>l.accounts.subscriptions.create({body:g,account_or_zone:u,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};function it(e){return e.usage(`$0 accounts subscriptions createCancelReason <subscription-identifier>
84
-
85
- 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 at={command:`createCancelReason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:it,handler:async t=>l({command:`accounts subscriptions createCancelReason`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions createCancelReason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?p({other:m(t.other,`other`,`text`),reason_code:t[`reason-code`]}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...e,account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(n,{successLabel:`Created`});return}let u=p({other:m(t.other,`other`,`text`),reason_code:t[`reason-code`]}),f=await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...u,account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(f,{successLabel:`Created`})})};function ot(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
86
-
87
- 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 st={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:ot,handler:async t=>l({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force})){process.stderr.write(`Aborted.
88
- `);return}let u=await c(`Deleting`,async()=>i.accounts.subscriptions.delete({account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(u,{successLabel:`Deleted`})})};function ct(e){return e.usage(`$0 accounts subscriptions get
89
-
90
- 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 lt={command:`get`,describe:`List Subscriptions`,builder:ct,handler:async t=>l({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf accounts subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(t),u=t.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:t.zone},l,{quiet:t.quiet}):t.local?e:await a();u===`zones`?t.zoneId=d:t.accountId=d;let f=await c(`Loading`,async()=>l.accounts.subscriptions.get({account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Loaded`})})};function ut(e){return e.usage(`$0 accounts subscriptions getByIdentifier <subscription-identifier>
91
-
92
- Gets an account subscription by identifier.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dt={command:`getByIdentifier <subscription-identifier>`,describe:`Get Subscription`,builder:ut,handler:async t=>l({command:`accounts subscriptions getByIdentifier`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions getByIdentifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.subscriptions.getByIdentifier({account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(u,{successLabel:`Loaded`})})};function ft(e){return e.usage(`$0 accounts subscriptions getCancelReason <subscription-identifier>
93
-
94
- 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 pt={command:`getCancelReason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:ft,handler:async t=>l({command:`accounts subscriptions getCancelReason`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions getCancelReason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.subscriptions.getCancelReason({account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(u,{successLabel:`Loaded`})})};function mt(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
95
-
96
- 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=>m(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 ht={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:mt,handler:async t=>l({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/subscriptions/${t[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(t[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(t[`subscription-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:t.frequency,rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.subscriptions.update({body:e,account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(n,{successLabel:`Updated`});return}let u=p({app:{install_id:m(t[`app-install-id`],`app-install-id`,`text`)},component_values:f(t[`component-values`],`component-values`),frequency:t.frequency,rate_plan:{currency:m(t[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:t[`rate-plan-externally-managed`],id:m(t[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:t[`rate-plan-is-contract`],public_name:m(t[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(t[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:t[`rate-plan-sets`]}}),h=await c(`Updating`,async()=>i.accounts.subscriptions.update({body:u,account_id:l,subscription_identifier:t[`subscription-identifier`]}));o(h,{successLabel:`Updated`})})},gt={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(tt).command(rt).command(at).command(st).command(lt).command(dt).command(pt).command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _t(e){return e.usage(`$0 accounts tokens create
97
-
98
- 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 vt={command:`create`,describe:`Create Token`,builder:_t,handler:async t=>l({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.accounts.tokens.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}if(t.name===void 0&&(t.name=await h(`name`,`Token name.`)),t.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`)}),g=await c(`Creating`,async()=>i.accounts.tokens.create({body:u,account_id:l}));o(g,{successLabel:`Created`})})};function yt(e){return e.usage(`$0 accounts tokens delete <token-id>
99
-
100
- 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 bt={command:`delete <token-id>`,describe:`Delete Token`,builder:yt,handler:async t=>l({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
101
- `);return}let u=await c(`Deleting`,async()=>i.accounts.tokens.delete({account_id:l,token_id:t[`token-id`]}));o(u,{successLabel:`Deleted`})})};function xt(e){return e.usage(`$0 accounts tokens get <token-id>
102
-
103
- Get information about a specific Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <token-id>`,describe:`Token Details`,builder:xt,handler:async t=>l({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.tokens.get({account_id:l,token_id:t[`token-id`]}));o(u,{successLabel:`Loaded`})})};function Ct(e){return e.usage("$0 accounts tokens list\n\nList Account Owned API tokens created for this account. Callers with `com.cloudflare.api.account.token.list_self` permission only receive tokens they created. Results include active, disabled, and recently-expired tokens when `include_expired` is set to true.").option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`include-expired`,{type:`boolean`,description:`When true, includes recently-expired tokens in the response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wt={command:`list`,describe:`List Tokens`,builder:v(Ct),handler:async t=>l({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`],direction:t.direction,include_expired:t[`include-expired`]};if(t.dryRun){let e=await r();s({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.tokens.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})};function Tt(e){return e.usage(`$0 accounts tokens permission-groups list
104
-
105
- Find all available permission groups for Account Owned API Tokens. Each permission group indicates whether the caller can select it when creating a token. Token creation performs the authoritative permission check.`).option(`name`,{type:`string`,description:`Filter by the name of the permission group.
106
- The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
107
- The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`list`,describe:`List Permission Groups`,builder:Tt,handler:async t=>l({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={name:t.name,scope:t.scope};if(t.dryRun){let e=await r();s({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:i,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await a();t.accountId=u;let d=await c(`Loading`,async()=>l.accounts.tokens.permissionGroups.list({account_id:u,...i}));o(d,{successLabel:`Loaded`})})},Dt={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ot(e){return e.usage(`$0 accounts tokens roll <token-id>
108
-
109
- 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 kt={command:`roll <token-id>`,describe:`Roll Token`,builder:Ot,handler:async t=>l({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}/value`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await _({force:!!t.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
110
- `);return}let u=await c(`Deleting`,async()=>i.accounts.tokens.roll({account_id:l,token_id:t[`token-id`]}));o(u,{successLabel:`Deleted`})})};function At(e){return e.usage(`$0 accounts tokens update <token-id>
111
-
112
- 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=>m(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 jt={command:`update <token-id>`,describe:`Update Token`,builder:At,handler:async t=>l({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/${t[`token-id`]==null?`<token-id>`:encodeURIComponent(String(t[`token-id`]))}`,pathParams:{"token-id":String(t[`token-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`),status:t.status}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.tokens.update({body:e,account_id:l,token_id:t[`token-id`]}));o(n,{successLabel:`Updated`});return}if(t.name===void 0&&(t.name=await h(`name`,`Token name.`)),t.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:t[`condition-request-ip-in`],not_in:t[`condition-request-ip-not-in`]}},expires_on:m(t[`expires-on`],`expires-on`,`text`),name:m(t.name,`name`,`text`),not_before:m(t[`not-before`],`not-before`,`text`),policies:f(t.policies,`policies`),status:t.status}),g=await c(`Updating`,async()=>i.accounts.tokens.update({body:u,account_id:l,token_id:t[`token-id`]}));o(g,{successLabel:`Updated`})})};function Mt(e){return e.usage(`$0 accounts tokens verify
113
-
114
- Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nt={command:`verify`,describe:`Verify Token`,builder:Mt,handler:async t=>l({command:`accounts tokens verify`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({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 i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.tokens.verify({account_id:l}));o(u,{successLabel:`Loaded`})})},$={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(vt).command(bt).command(St).command(wt).command(kt).command(jt).command(Nt).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Pt(e){return e.usage(`$0 accounts transformations list
115
-
116
- 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 Ft={command:`list`,describe:`List Image Resizing configurations for account`,builder:Pt,handler:async t=>l({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({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 i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.transformations.list({account_id:l}));o(u,{successLabel:`Loaded`})})},It={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(Ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Lt(e){return e.usage(`$0 accounts update
117
-
118
- 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
119
- 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 Rt={command:`update`,describe:`Update Account`,builder:Lt,handler:async t=>l({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({id:m(t.id,`id`,`text`),name:m(t.name,`name`,`text`),settings:{abuse_contact_email:m(t[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:t[`settings-enforce-twofactor`]}}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.update({body:e,account_id:l}));o(n,{successLabel:`Updated`});return}t.id===void 0&&(t.id=await h(`id`,`Identifier`)),t.name===void 0&&(t.name=await h(`name`,`Account name`));let u=p({id:m(t.id,`id`,`text`),name:m(t.name,`name`,`text`),settings:{abuse_contact_email:m(t[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:t[`settings-enforce-twofactor`]}}),f=await c(`Updating`,async()=>i.accounts.update({body:u,account_id:l}));o(f,{successLabel:`Updated`})})};function zt(e){return e.usage(`$0 accounts ut-billing edit
120
-
121
- 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.
122
- Note: once enabled, this setting cannot be set back to "off".
123
- `,choices:[`on`]}).coerce(`value`,e=>m(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 Bt={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:zt,handler:async t=>l({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({value:t.value}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Updating`,async()=>i.accounts.utBilling.edit({...e,account_id:l}));o(n,{successLabel:`Updated`});return}t.value===void 0&&(t.value=await g(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let u=p({value:t.value}),f=await c(`Updating`,async()=>i.accounts.utBilling.edit({...u,account_id:l}));o(f,{successLabel:`Updated`})})};function Vt(e){return e.usage(`$0 accounts ut-billing get
124
-
125
- 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 Ht={command:`get`,describe:`Get Unique Transformations billing setting`,builder:Vt,handler:async t=>l({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({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 i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.accounts.utBilling.get({account_id:l}));o(u,{successLabel:`Loaded`})})},Ut={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Bt).command(Ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Wt={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(ve).command(be).command(Se).command(we).command(Ge).command(Rt).command(k).command(de).command(ge).command(Me).command(Ue).command(Je).command($e).command(gt).command($).command(It).command(Ut).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Wt as default};
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
- import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{a as l,n as u}from"./prompt-C8FyienX.mjs";function d(e){return e.usage(`$0 acm custom-trust-store create
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 f={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:d,handler:async u=>a({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate:c(u.certificate,`certificate`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Creating`,async()=>a.acm.customTrustStore.create({...e,zone_id:d}));n(t,{successLabel:`Created`});return}u.certificate===void 0&&(u.certificate=await l(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let f=s({certificate:c(u.certificate,`certificate`,`text`)}),p=await i(`Creating`,async()=>a.acm.customTrustStore.create({...f,zone_id:d}));n(p,{successLabel:`Created`})})};function p(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
5
-
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 m={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:p,handler:async o=>a({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
7
- `);return}let c=await i(`Deleting`,async()=>a.acm.customTrustStore.delete({zone_id:s,custom_origin_trust_store_id:o[`custom-origin-trust-store-id`]}));n(c,{successLabel:`Deleted`})})};function h(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
8
-
9
- Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).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})}const g={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:h,handler:async o=>a({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.acm.customTrustStore.get({zone_id:s,custom_origin_trust_store_id:o[`custom-origin-trust-store-id`]}));n(c,{successLabel:`Loaded`})})};function _(e){return e.usage(`$0 acm custom-trust-store list
10
-
11
- 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 v={command:`list`,describe:`List Custom Origin Trust Store Details`,builder:_,handler:async o=>a({command:`acm custom-trust-store list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],limit:o.limit,offset:o.offset};if(o.dryRun){r({command:`cf acm custom-trust-store list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.acm.customTrustStore.list({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})},y={command:`custom-trust-store`,describe:`Operations for custom-trust-store`,builder:e=>e.command(f).command(m).command(g).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 acm total-tls edit
12
-
13
- 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=>c(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 x={command:`edit`,describe:`Enable or Disable Total TLS`,builder:b,handler:async c=>a({command:`acm total-tls edit`,classification:{safeFlags:[`certificate-authority`,`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf acm total-tls edit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/acm/total_tls`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({certificate_authority:c[`certificate-authority`],enabled:c.enabled}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body),t=await i(`Creating`,async()=>a.acm.totalTls.edit({...e,zone_id:l}));n(t,{successLabel:`Created`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({certificate_authority:c[`certificate-authority`],enabled:c.enabled}),d=await i(`Creating`,async()=>a.acm.totalTls.edit({...u,zone_id:l}));n(d,{successLabel:`Created`})})};function S(e){return e.usage(`$0 acm total-tls get
14
-
15
- Get Total TLS Settings for a Zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get`,describe:`Total TLS Settings Details`,builder:S,handler:async o=>a({command:`acm total-tls get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf acm total-tls get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/total_tls`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.acm.totalTls.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},w={command:`total-tls`,describe:`Operations for total-tls`,builder:e=>e.command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},T={command:`acm`,describe:`acm`,builder:e=>e.command(y).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{T as default};