cf 1.0.0-beta.15 → 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 (237) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
  22. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
  24. package/dist/auth-OFqV2M4q.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  27. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
  28. package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
  29. package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
  30. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
  31. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
  32. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  33. package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
  34. package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
  35. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
  36. package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
  37. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
  38. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
  39. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
  40. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
  41. package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
  42. package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
  43. package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
  44. package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
  45. package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
  46. package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
  48. package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
  49. package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
  50. package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
  51. package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
  52. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
  53. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
  54. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
  55. package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
  56. package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
  57. package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
  58. package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
  59. package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
  60. package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
  61. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  62. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
  63. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
  64. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
  65. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
  66. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
  67. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
  68. package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
  69. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
  70. package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
  71. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
  72. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
  73. package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
  74. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
  75. package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
  76. package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
  77. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
  78. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
  79. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
  80. package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
  81. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
  82. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  83. package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
  84. package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
  85. package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
  86. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
  87. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
  88. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
  89. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
  90. package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
  91. package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
  92. package/dist/index.mjs +1 -1
  93. package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
  94. package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
  95. package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
  96. package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
  97. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
  98. package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
  99. package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
  100. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  101. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
  102. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  103. package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
  104. package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
  105. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
  106. package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
  107. package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
  108. package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
  109. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
  110. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
  111. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
  112. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
  113. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
  114. package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
  115. package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
  116. package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
  117. package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
  118. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
  119. package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
  120. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
  121. package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
  122. package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
  123. package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
  124. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
  125. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
  126. package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
  127. package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
  128. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
  129. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
  130. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
  131. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
  132. package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
  133. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
  134. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
  135. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
  136. package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
  137. package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
  138. package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
  139. package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
  140. package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
  141. package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
  142. package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
  143. package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
  144. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
  145. package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
  146. package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
  147. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
  148. package/dist/reporting-BWm9jIF8.mjs +14 -0
  149. package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  150. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
  151. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
  152. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
  153. package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
  154. package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
  155. package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
  156. package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
  157. package/dist/run-roYb_Odh.mjs +2 -0
  158. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  159. package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
  160. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
  161. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
  162. package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
  163. package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
  164. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
  165. package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
  166. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
  167. package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
  168. package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
  169. package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
  170. package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
  171. package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
  172. package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
  173. package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
  174. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  175. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  176. package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
  177. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
  178. package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
  179. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
  180. package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
  181. package/dist/update-check-BnGDxswi.mjs +2 -0
  182. package/dist/update-check-worker.mjs +1 -1
  183. package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
  184. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
  185. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
  186. package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
  187. package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
  188. package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
  189. package/dist/version-CVlh2Zaq.mjs +2 -0
  190. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
  191. package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
  192. package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
  193. package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
  194. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
  195. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
  196. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
  197. package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
  198. package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
  199. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
  200. package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
  201. package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
  202. package/package.json +3 -2
  203. package/dist/alerts-BSON-vFh.mjs +0 -2
  204. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  205. package/dist/auth-8Sm4uLGM.mjs +0 -2
  206. package/dist/autorag-kNrLiqDX.mjs +0 -2
  207. package/dist/brands-bBJgbbOH.mjs +0 -2
  208. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  209. package/dist/browser-run-CEptKZYl.mjs +0 -42
  210. package/dist/clear-BW9vLgI3.mjs +0 -2
  211. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  212. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  213. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  214. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  215. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  216. package/dist/health-CTaCeVyC.mjs +0 -2
  217. package/dist/internal-BYS7hO8c.mjs +0 -2
  218. package/dist/live-BJE_YWE1.mjs +0 -2
  219. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  220. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  221. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  222. package/dist/ready-B3pLxnjc.mjs +0 -2
  223. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  224. package/dist/refute-Dp3VodMn.mjs +0 -2
  225. package/dist/reporting-3kDVF5c8.mjs +0 -14
  226. package/dist/run-CUNhH5CQ.mjs +0 -2
  227. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  228. package/dist/scan-page-CxeudOzj.mjs +0 -2
  229. package/dist/search-B_P5ZTQj.mjs +0 -2
  230. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  231. package/dist/submission-info-_t78q2OE.mjs +0 -2
  232. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  233. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  234. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  235. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  236. package/dist/verify-5KcvRk-q.mjs +0 -2
  237. package/dist/version-B6MnUIqV.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./prompt-BAJpE3jV.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(e){return e.usage(`$0 ai-security custom-topics get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./prompt-dgLm0iFJ.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(e){return e.usage(`$0 ai-security custom-topics get
3
3
 
4
4
  Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the \`cf.llm.prompt.custom_topic_categories\` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:f,handler:async e=>o({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`,body:`json`};function h(e){return e.usage("$0 ai-security custom-topics update\n\nUpdate the custom topic list of the zone, overwriting it entirely with the topics in the request, so include every topic you want to keep. Changes can take up to a minute to propagate. Each entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic` description, which the classifier scores prompts against while AI Security for Apps is enabled. The following rules apply: - A zone can hold at most 20 topics. - `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens. - `topic` must be 2–50 printable ASCII characters. - Labels must be unique within the zone, and so must topic descriptions.").option(`topics`,{type:`string`,description:`Custom topic categories for AI Security for Apps content detection. 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(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:h,handler:async e=>o({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({topics:c(e.topics,`topics`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,!await u({force:!!e.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`})){process.stderr.write(`Aborted.
5
5
  `);return}if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(m,{body:t,zone_id:d}));r(n,{successLabel:`Deleted`});return}let f=l({topics:c(e.topics,`topics`)}),p=await a(`Deleting`,async()=>o.send(m,{body:f,zone_id:d}));r(p,{successLabel:`Deleted`})})},_={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/settings`};function y(e){return e.usage(`$0 ai-security get
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BAJpE3jV.mjs";import{n as h,t as g}from"./raw-fetch-yY-wX5Xx.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function v(e){return e.usage(`$0 alerting available-alerts list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-dgLm0iFJ.mjs";import{n as h,t as g}from"./raw-fetch-BapeoreV.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function v(e){return e.usage(`$0 alerting available-alerts list
3
3
 
4
4
  Gets a list of all alert types for which an account is eligible.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`Get Alert Types`,builder:v,handler:async e=>c({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(_,{account_id:l}));a(u,{successLabel:`Loaded`})})},te={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/destinations/eligible`};function re(e){return e.usage(`$0 alerting destinations eligible get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,r as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-BAJpE3jV.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(e){return e.usage(`$0 analytics latency colos get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,r as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(e){return e.usage(`$0 analytics latency colos get
3
3
 
4
4
  Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:g,handler:async e=>l({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(h,{zone_id:r}));o(a,{successLabel:`Loaded`})})},v={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency`,query:[`bins`]};function b(e){return e.usage(`$0 analytics latency get
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/analytics_engine/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`,504:`GatewayTimeoutError`}};function p(e){return e.usage(`$0 analytics_engine sql query
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/analytics_engine/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`,504:`GatewayTimeoutError`}};function p(e){return e.usage(`$0 analytics-engine sql query
3
3
 
4
- Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).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)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const m={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:p,handler:async e=>l({command:`analytics_engine sql query`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf analytics_engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:e.body});return}let l=await r(e),p=e.local?t:await a();if(e.accountId=p,e.file){let t=d(e.file),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}if(e.body){let t=u(e.body,`body`,`binary`),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}let m=await c(`Loading`,async()=>l.send(f,{account_id:p}));o(m,{successLabel:`Loaded`})})},h={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`analytics_engine`,describe:`analytics_engine`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
4
+ Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).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)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const m={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:p,handler:async e=>l({command:`analytics-engine sql query`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf analytics-engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:e.body});return}let l=await r(e),p=e.local?t:await a();if(e.accountId=p,e.file){let t=d(e.file),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}if(e.body){let t=u(e.body,`body`,`binary`),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}let m=await c(`Loading`,async()=>l.send(f,{account_id:p}));o(m,{successLabel:`Loaded`})})},h={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`analytics-engine`,describe:`analytics-engine`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,i as a,t as o}from"./context-A6T-NKPI.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-D5po7ScB.mjs";import{t as u}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{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-BAJpE3jV.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,i as a,t as o}from"./context-B-vEsyrK.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-R-1tIuep.mjs";import{t as u}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{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-dgLm0iFJ.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
3
3
 
4
4
  Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).coerce(`kind`,e=>m(e,`kind`,`text`)).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema 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 y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>u({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):d(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=d(e.body),i=await l(`Creating`,async()=>t.send(v,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await g(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await h(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await h(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),o=await l(`Creating`,async()=>t.send(v,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
5
5
 
@@ -128,7 +128,7 @@ Replaces a credential set. All fields must be provided.`).positional(`credential
128
128
 
129
129
  Creates and starts a new vulnerability scan. The response may include non-fatal warnings in the \`messages\` array.`).option(`credential-sets-attacker`,{type:`string`,description:`Credential set ID for the attacker.`}).option(`credential-sets-owner`,{type:`string`,description:`Credential set ID for the resource owner.`}).option(`open-api`,{type:`string`,description:`OpenAPI schema definition for the API under test. The scanner
130
130
  uses this to discover endpoints and construct requests.
131
- `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).coerce(`scan-type`,e=>m(e,`scan-type`,`text`)).option(`target-environment-id`,{type:`string`,description:`The target environment to scan.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a new vulnerability scan. The `scan_type` discriminator selects the scan variant and its required context fields. "}).check(e=>{if([`credential-sets-attacker`,`credential-sets-owner`].some(t=>e[t]!==void 0)){let t=[`credential-sets-attacker`,`credential-sets-owner`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --credential_sets-* flag is set`)}return!0})}const an={command:`create`,describe:`Create scan`,builder:rn,handler:async e=>u({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(Y,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`open-api`]===void 0&&(e[`open-api`]=await h(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),e[`scan-type`]===void 0&&(e[`scan-type`]=await g(`scan-type`,`The scan_type field`,[`bola`])),e[`target-environment-id`]===void 0&&(e[`target-environment-id`]=await h(`target-environment-id`,`The target environment to scan.`));let u=p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}),f=await l(`Creating`,async()=>n.send(Y,{body:u,account_id:a}));s(f,{successLabel:`Created`})})};var on={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function sn(e){return e.usage("$0 api-security vulnerability-scanner scans delete <scan-id>\n\nDeletes a scan and all associated data. Only scans in a terminal state (`finished`, `failed`) may be deleted. Attempting to delete a scan that is still being created or executed (`created`, `scheduled`, `planning`, `running`) returns `400`.").positional(`scan-id`,{type:`string`,description:`Scan 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 cn={command:`delete <scan-id>`,describe:`Delete scan`,builder:sn,handler:async e=>u({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`})){process.stderr.write(`Aborted.
131
+ `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).coerce(`scan-type`,e=>m(e,`scan-type`,`text`)).option(`target-environment-id`,{type:`string`,description:`The target environment to scan.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a new vulnerability scan. The `scan_type` discriminator selects the scan variant and its required context fields. "})}const an={command:`create`,describe:`Create scan`,builder:rn,handler:async e=>u({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(Y,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`credential-sets-attacker`]===void 0&&(e[`credential-sets-attacker`]=await h(`credential-sets-attacker`,`Credential set ID for the attacker.`)),e[`credential-sets-owner`]===void 0&&(e[`credential-sets-owner`]=await h(`credential-sets-owner`,`Credential set ID for the resource owner.`)),e[`open-api`]===void 0&&(e[`open-api`]=await h(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),e[`scan-type`]===void 0&&(e[`scan-type`]=await g(`scan-type`,`The scan_type field`,[`bola`])),e[`target-environment-id`]===void 0&&(e[`target-environment-id`]=await h(`target-environment-id`,`The target environment to scan.`));let u=p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}),f=await l(`Creating`,async()=>n.send(Y,{body:u,account_id:a}));s(f,{successLabel:`Created`})})};var on={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function sn(e){return e.usage("$0 api-security vulnerability-scanner scans delete <scan-id>\n\nDeletes a scan and all associated data. Only scans in a terminal state (`finished`, `failed`) may be deleted. Attempting to delete a scan that is still being created or executed (`created`, `scheduled`, `planning`, `running`) returns `400`.").positional(`scan-id`,{type:`string`,description:`Scan 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 cn={command:`delete <scan-id>`,describe:`Delete scan`,builder:sn,handler:async e=>u({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`})){process.stderr.write(`Aborted.
132
132
  `);return}let u=await l(`Deleting`,async()=>n.send(on,{account_id:a,scan_id:e[`scan-id`]}));s(u,{successLabel:`Deleted`})})};var ln={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function un(e){return e.usage(`$0 api-security vulnerability-scanner scans get <scan-id>
133
133
 
134
134
  Returns a single scan by ID.`).positional(`scan-id`,{type:`string`,description:`Scan identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dn={command:`get <scan-id>`,describe:`Get scan`,builder:un,handler:async e=>u({command:`api-security vulnerability-scanner scans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ln,{account_id:a,scan_id:e[`scan-id`]}));s(u,{successLabel:`Loaded`})})};var fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans`,query:[`page`,`per_page`]};function pn(e){return e.usage(`$0 api-security vulnerability-scanner scans list
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-BAJpE3jV.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
3
3
 
4
4
  Returns the number of zones that have Argo Smart Routing enabled for the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`count-zones-enabled-for-account`,describe:`Get count of zones with Argo Smart Routing enabled for account`,builder:h,handler:async e=>l({command:`argo smart-routing count-zones-enabled-for-account`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf argo smart-routing count-zones-enabled-for-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/argo/count_zones_enabled`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(m,{account_id:l}));o(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:()=>`/user/argo/count_zones_enabled`};function v(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-user
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BAJpE3jV.mjs";import{n as m,t as h}from"./raw-fetch-yY-wX5Xx.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 artifacts namespaces create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-dgLm0iFJ.mjs";import{n as m,t as h}from"./raw-fetch-BapeoreV.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 artifacts namespaces create
3
3
 
4
4
  Creates an empty Artifacts namespace for an account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`unrestricted`,`us`,`eu`,`fedramp`],default:`unrestricted`}).coerce(`jurisdiction`,e=>d(e,`jurisdiction`,`text`)).option(`namespace`,{type:`string`,description:`The namespace 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 v={command:`create`,describe:`Create a namespace`,builder:_,handler:async e=>c({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.namespace===void 0&&(e.namespace=await f(`namespace`,`The namespace field`));let m=u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}),h=await s(`Creating`,async()=>c.send(g,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces/${t.namespace}`,response:!1,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function te(e){return e.usage(`$0 artifacts namespaces delete <namespace>
5
5
 
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function u(e){return e.usage(`$0 audit-logs list
3
+
4
+ Gets a list of audit logs for an account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`Get account audit logs`,builder:u,handler:async e=>c({command:`audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let c={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){let e=await r();o({command:`cf audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/audit_logs`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})},f={command:`audit-logs`,describe:`audit-logs`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{a as t,i as n,s as r}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{c as i,d as a,i as o,p as s,r as c,t as l,u}from"./oauth-CfEedDZi.mjs";import{t as d}from"./auth-token-DkkYg4DP.mjs";import{t as f}from"./output-Co4xdFf6.mjs";import{n as p}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{a as m,c as h,i as g,n as _,o as v,r as y,s as b,t as x}from"./login-CiQGR8ha.mjs";const S={command:`logout`,describe:`Log out and remove stored credentials`,handler:async a=>{g(a,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let l=c();l!=="default"&&console.log(r(`This directory has profile "${l}" active. \`cf auth logout\` removes the default profile's token, not "${l}".\nTo delete "${l}", run \`cf auth delete ${l}\`.`)),s(`default`);let d=i(),f=!!process.env.CLOUDFLARE_API_TOKEN;if(!d){f?(console.log(t(`No cf OAuth credentials found, but CLOUDFLARE_API_TOKEN environment variable is set.`)),console.log(t(`Unset it with: unset CLOUDFLARE_API_TOKEN`))):(console.log(t(`You are not currently logged in.`)),console.log(n(`Run ${e.code(`cf auth login`)} to authenticate.`)));return}console.log(t(`Logging out...`)),await u(`default`),console.log(`${e.info(`Removed:`)} OAuth tokens from ${e.muted(o())}`),f&&(console.log(``),console.log(r(`CLOUDFLARE_API_TOKEN environment variable is still set.`)),console.log(t(`You will remain authenticated via the env var. Unset it with: unset CLOUDFLARE_API_TOKEN`)))}},C={command:`whoami`,describe:`Show current user and authentication status`,builder:e=>e,handler:async e=>{let t=process.env.CLOUDFLARE_API_TOKEN,n=a(),r;r=t?`CLOUDFLARE_API_TOKEN environment variable`:n?.oauth_token?`OAuth token from ${o()}`:`none`;let i;try{i=await d()}catch{f({authenticated:!1,error:`Not logged in`});return}let{createCloudflareClientWithToken:s}=await import(`./auth-8Sm4uLGM.mjs`),{default:c}=await import(`./get-By1q8YlI.mjs`),u=s({apiToken:i}),p,m=[],[h,g]=await Promise.allSettled([u.send(c),l()]);if(h.status===`fulfilled`){let e=h.value;e&&`email`in e&&typeof e.email==`string`&&(p=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,h.reason);g.status===`fulfilled`?m=g.value:process.env.DEBUG&&console.error(`Account lookup error:`,g.reason);let _=h.status===`fulfilled`||g.status===`fulfilled`,v={authenticated:!0,authSource:r,tokenValid:_,...p&&{email:p},accounts:m};n?.oauth_token&&(v.scopes=n.scopes,v.expiresAt=n.expiration_time),f(v)}},w={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(p(x,{command:`auth login`,classification:_})).command(T(S,`auth logout`)).command(T(C,`auth whoami`)).command(T(m,`auth create`,[`browser`,`device`])).command(T(b,`auth delete`)).command(T(y,`auth activate`)).command(T(v,`auth deactivate`)).command(T(h,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e,t,n=[],r){return p(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{w as default};
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{a as t,i as n,s as r}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{c as i,d as a,i as o,p as s,r as c,t as l,u}from"./oauth-BNTiErBG.mjs";import{t as d}from"./auth-token-Cfj2yehs.mjs";import{t as f}from"./output-Co4xdFf6.mjs";import{n as p}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{a as m,c as h,i as g,n as _,o as v,r as y,s as b,t as x}from"./login-BJr2PBaJ.mjs";const S={command:`logout`,describe:`Log out and remove stored credentials`,handler:async a=>{g(a,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let l=c();l!=="default"&&console.log(r(`This directory has profile "${l}" active. \`cf auth logout\` removes the default profile's token, not "${l}".\nTo delete "${l}", run \`cf auth delete ${l}\`.`)),s(`default`);let d=i(),f=!!process.env.CLOUDFLARE_API_TOKEN;if(!d){f?(console.log(t(`No cf OAuth credentials found, but CLOUDFLARE_API_TOKEN environment variable is set.`)),console.log(t(`Unset it with: unset CLOUDFLARE_API_TOKEN`))):(console.log(t(`You are not currently logged in.`)),console.log(n(`Run ${e.code(`cf auth login`)} to authenticate.`)));return}console.log(t(`Logging out...`)),await u(`default`),console.log(`${e.info(`Removed:`)} OAuth tokens from ${e.muted(o())}`),f&&(console.log(``),console.log(r(`CLOUDFLARE_API_TOKEN environment variable is still set.`)),console.log(t(`You will remain authenticated via the env var. Unset it with: unset CLOUDFLARE_API_TOKEN`)))}},C={command:`whoami`,describe:`Show current user and authentication status`,builder:e=>e,handler:async e=>{let t=process.env.CLOUDFLARE_API_TOKEN,n=a(),r;r=t?`CLOUDFLARE_API_TOKEN environment variable`:n?.oauth_token?`OAuth token from ${o()}`:`none`;let i;try{i=await d()}catch{f({authenticated:!1,error:`Not logged in`});return}let{createCloudflareClientWithToken:s}=await import(`./auth-OFqV2M4q.mjs`),{default:c}=await import(`./get-By1q8YlI.mjs`),u=s({apiToken:i}),p,m=[],[h,g]=await Promise.allSettled([u.send(c),l()]);if(h.status===`fulfilled`){let e=h.value;e&&`email`in e&&typeof e.email==`string`&&(p=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,h.reason);g.status===`fulfilled`?m=g.value:process.env.DEBUG&&console.error(`Account lookup error:`,g.reason);let _=h.status===`fulfilled`||g.status===`fulfilled`,v={authenticated:!0,authSource:r,tokenValid:_,...p&&{email:p},accounts:m};n?.oauth_token&&(v.scopes=n.scopes,v.expiresAt=n.expiration_time),f(v)}},w={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(p(x,{command:`auth login`,classification:_})).command(T(S,`auth logout`)).command(T(C,`auth whoami`)).command(T(m,`auth create`,[`browser`,`device`])).command(T(b,`auth delete`)).command(T(y,`auth activate`)).command(T(v,`auth deactivate`)).command(T(h,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e,t,n=[],r){return p(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{w as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./auth-eVI_UEt8.mjs";import"./context-B-vEsyrK.mjs";import"./oauth-BNTiErBG.mjs";import"./auth-token-Cfj2yehs.mjs";export{e as createCloudflareClientWithToken};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t,t as n}from"./api-eMuS5GI1.mjs";import{a as r,n as i}from"./context-A6T-NKPI.mjs";import"./oauth-CfEedDZi.mjs";import{t as a}from"./auth-token-DkkYg4DP.mjs";import{n as o}from"./request-headers-D_eQn93b.mjs";const s=6e4;function c(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}var l={method:`GET`,path:()=>`/accounts`,query:[`name`,`page`,`per_page`,`direction`]},u={method:`GET`,path:()=>`/memberships`,query:[`account.name`,`page`,`per_page`,`order`,`direction`,`name`,`status`]};function d(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream||e instanceof URLSearchParams}function f(e){return Object.keys(e).some(e=>e.toLowerCase()===`content-type`)}async function p(e){let t=e.headers.get(`content-type`)??``;try{return t.includes(`application/json`)?await e.json():await e.text()}catch{return null}}function m(e,t,n){if(n!=null&&n!==``){if(Array.isArray(n)){for(let r of n)m(e,t,r);return}e.append(t,String(n))}}function h(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))m(t,n,r);return t.toString()}function g(e,t,n){let r=new URL(t.endsWith(`/`)?t:`${t}/`),i=new URL(e.startsWith(`/`)?e.slice(1):e,r);if(i.origin!==r.origin)throw Error(`Refusing to send an authenticated request to ${i.origin} (expected ${r.origin})`);let a=h(n??{});return a&&(i.search=a),i.toString()}const _=/* @__PURE__ */ new WeakMap,v=/* @__PURE__ */ new WeakMap;async function y(e,n,r,i={}){let a=e.baseUrl,o=g(r,a,i.query),s={...i.headers},l;i.body!==void 0&&(d(i.body)||typeof i.body==`string`&&f(s)?l=i.body:(s[`Content-Type`]??=`application/json`,l=JSON.stringify(i.body)));let u=i.timeout===void 0&&c(l)?v.get(e):void 0,m=i.timeout??_.get(e)??6e4,h;try{h=await(u??e).fetch(o,{method:n,headers:s,body:l,signal:i.signal},{timeoutInSeconds:i.timeout===void 0?void 0:i.timeout/1e3,abortSignal:i.signal})}catch(e){throw i.signal?.aborted?Error(`Request aborted`):e===`timeout`||e instanceof Error&&e.name===`AbortError`?Error(u?`Request timed out`:`Request timed out after ${m}ms`):e instanceof Error?Error(`Request failed: ${e.message}`):e}if(!h.ok)throw new t({statusCode:h.status,body:await p(h),rawResponse:{status:h.status,statusText:h.statusText,url:h.url||o,headers:h.headers,redirected:h.redirected,type:h.type}});if(h.status===204)return null;let y=h.headers.get(`content-type`)??``;if(!y.includes(`application/json`)&&i.preserveNonJsonBytes)return Buffer.from(await h.arrayBuffer());let b=await h.text();if(b===``)return null;if(!y.includes(`application/json`))return b;let x=JSON.parse(b);if(x.success===!1){let e=x.errors?.map(e=>e.message).filter(Boolean).join(`, `)||`unknown error`;throw new t({message:`API error: ${e}`,statusCode:h.status,body:x})}return`result`in x?x.result:x}function b(e){let t={baseUrl:e.baseURL??`https://api.cloudflare.com/client/v4`,auth:async()=>({headers:{Authorization:`Bearer ${e.apiToken}`}}),headers:e.defaultHeaders,timeoutInSeconds:(e.timeout??6e4)/1e3,maxRetries:0,fetch:e.fetch??globalThis.fetch},r=new n(t);return _.set(r,e.timeout??6e4),e.timeout===void 0&&v.set(r,new n({...t,timeoutInSeconds:void 0})),r}async function x(t){let n=await r();if(n)return n;try{let n=await a(),r=e({compliance_region:await i()}),s=t-Date.now();if(s<=0)return;let c=b({apiToken:n,baseURL:r,defaultHeaders:o()}),d={timeoutInSeconds:s/1e3,maxRetries:0},[f,p]=await Promise.allSettled([c.send(l,{per_page:50},d),c.send(u,{per_page:50},d)]);if(f.status===`rejected`)return;let m=f.value;if((m.result_info?.total_count??m.result.length)>m.result.length)return;let h=m.result;if(p.status===`fulfilled`){let e=p.value.result??[];if((p.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));h=h.filter(e=>t.has(e.id))}return h.length===1?h[0]?.id:void 0}catch{return}}async function S(t){let n=e({compliance_region:await i()});if(t.local){let{createLocalFetch:e}=await import(`./local-DxWDQDnG.mjs`);return b({apiToken:`cf-local-mode-no-auth`,baseURL:n,defaultHeaders:o(),fetch:e({persistTo:t.persistTo,apiBaseUrl:n})})}return b({apiToken:await a(),baseURL:n,defaultHeaders:o()})}export{x as a,c,y as i,s as l,S as n,u as o,h as r,l as s,b as t};
2
+ import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t,t as n}from"./api-eMuS5GI1.mjs";import{a as r,n as i}from"./context-B-vEsyrK.mjs";import"./oauth-BNTiErBG.mjs";import{t as a}from"./auth-token-Cfj2yehs.mjs";import{n as o}from"./request-headers-BRxv6NkA.mjs";const s=6e4;function c(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}var l={method:`GET`,path:()=>`/accounts`,query:[`name`,`page`,`per_page`,`direction`]},u={method:`GET`,path:()=>`/memberships`,query:[`account.name`,`page`,`per_page`,`order`,`direction`,`name`,`status`]};function d(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream||e instanceof URLSearchParams}function f(e){return Object.keys(e).some(e=>e.toLowerCase()===`content-type`)}async function p(e){let t=e.headers.get(`content-type`)??``;try{return t.includes(`application/json`)?await e.json():await e.text()}catch{return null}}function m(e,t,n){if(n!=null&&n!==``){if(Array.isArray(n)){for(let r of n)m(e,t,r);return}e.append(t,String(n))}}function h(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))m(t,n,r);return t.toString()}function g(e,t,n){let r=new URL(t.endsWith(`/`)?t:`${t}/`),i=new URL(e.startsWith(`/`)?e.slice(1):e,r);if(i.origin!==r.origin)throw Error(`Refusing to send an authenticated request to ${i.origin} (expected ${r.origin})`);let a=h(n??{});return a&&(i.search=a),i.toString()}const _=/* @__PURE__ */ new WeakMap,v=/* @__PURE__ */ new WeakMap;async function y(e,n,r,i={}){let a=e.baseUrl,o=g(r,a,i.query),s={...i.headers},l;i.body!==void 0&&(d(i.body)||typeof i.body==`string`&&f(s)?l=i.body:(s[`Content-Type`]??=`application/json`,l=JSON.stringify(i.body)));let u=i.timeout===void 0&&c(l)?v.get(e):void 0,m=i.timeout??_.get(e)??6e4,h;try{h=await(u??e).fetch(o,{method:n,headers:s,body:l,signal:i.signal},{timeoutInSeconds:i.timeout===void 0?void 0:i.timeout/1e3,abortSignal:i.signal})}catch(e){throw i.signal?.aborted?Error(`Request aborted`):e===`timeout`||e instanceof Error&&e.name===`AbortError`?Error(u?`Request timed out`:`Request timed out after ${m}ms`):e instanceof Error?Error(`Request failed: ${e.message}`):e}if(!h.ok)throw new t({statusCode:h.status,body:await p(h),rawResponse:{status:h.status,statusText:h.statusText,url:h.url||o,headers:h.headers,redirected:h.redirected,type:h.type}});if(h.status===204)return null;let y=h.headers.get(`content-type`)??``;if(!y.includes(`application/json`)&&i.preserveNonJsonBytes)return Buffer.from(await h.arrayBuffer());let b=await h.text();if(b===``)return null;if(!y.includes(`application/json`))return b;let x=JSON.parse(b);if(x.success===!1){let e=x.errors?.map(e=>e.message).filter(Boolean).join(`, `)||`unknown error`;throw new t({message:`API error: ${e}`,statusCode:h.status,body:x})}return`result`in x?x.result:x}function b(e){let t={baseUrl:e.baseURL??`https://api.cloudflare.com/client/v4`,auth:async()=>({headers:{Authorization:`Bearer ${e.apiToken}`}}),headers:e.defaultHeaders,timeoutInSeconds:(e.timeout??6e4)/1e3,maxRetries:0,fetch:e.fetch??globalThis.fetch},r=new n(t);return _.set(r,e.timeout??6e4),e.timeout===void 0&&v.set(r,new n({...t,timeoutInSeconds:void 0})),r}async function x(t){let n=await r();if(n)return n;try{let n=await a(),r=e({compliance_region:await i()}),s=t-Date.now();if(s<=0)return;let c=b({apiToken:n,baseURL:r,defaultHeaders:o()}),d={timeoutInSeconds:s/1e3,maxRetries:0},[f,p]=await Promise.allSettled([c.send(l,{per_page:50},d),c.send(u,{per_page:50},d)]);if(f.status===`rejected`)return;let m=f.value;if((m.result_info?.total_count??m.result.length)>m.result.length)return;let h=m.result;if(p.status===`fulfilled`){let e=p.value.result??[];if((p.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));h=h.filter(e=>t.has(e.id))}return h.length===1?h[0]?.id:void 0}catch{return}}async function S(t){let n=e({compliance_region:await i()});if(t.local){let{createLocalFetch:e}=await import(`./local-DxWDQDnG.mjs`);return b({apiToken:`cf-local-mode-no-auth`,baseURL:n,defaultHeaders:o(),fetch:e({persistTo:t.persistTo,apiBaseUrl:n})})}return b({apiToken:await a(),baseURL:n,defaultHeaders:o()})}export{x as a,c,y as i,s as l,S as n,u as o,h as r,l as s,b as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{o as e}from"./chunk-2K52M2W5-CYxfQXUq.mjs";import{s as t}from"./oauth-CfEedDZi.mjs";async function n(){let n=e({allowGlobalAuthKey:!1});if(n&&`apiToken`in n)return n.apiToken;let r=await t();if(r)return r;throw Error(`No authentication token found.
2
+ import{o as e}from"./chunk-2K52M2W5-CYxfQXUq.mjs";import{s as t}from"./oauth-BNTiErBG.mjs";async function n(){let n=e({allowGlobalAuthKey:!1});if(n&&`apiToken`in n)return n.apiToken;let r=await t();if(r)return r;throw Error(`No authentication token found.
3
3
 
4
4
  Please set one of the following:
5
5
  1. Set the CLOUDFLARE_API_TOKEN environment variable
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BAJpE3jV.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/basin-catalog/${t.bucket_name}/credential`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 basin-catalog credentials create <bucket-name>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/basin-catalog/${t.bucket_name}/credential`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 basin-catalog credentials create <bucket-name>
3
3
 
4
4
  Store authentication credentials for a catalog. These credentials are used to authenticate with R2 storage when performing catalog operations.`).positional(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`token`,{type:`string`,description:`Provides the Cloudflare API token for accessing R2.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to store catalog credentials.`})}const g={command:`create <bucket-name>`,describe:`Store catalog credentials`,builder:h,handler:async e=>c({command:`basin-catalog credentials create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf basin-catalog credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/basin-catalog/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/credential`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`json`,body:e.body===void 0?u({token:d(e.token,`token`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p,bucket_name:e[`bucket-name`]}));a(n,{successLabel:`Created`});return}e.token===void 0&&(e.token=await f(`token`,`Provides the Cloudflare API token for accessing R2.`));let h=u({token:d(e.token,`token`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p,bucket_name:e[`bucket-name`]}));a(g,{successLabel:`Created`})})};var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/basin-catalog/${t.bucket_name}/credential/status`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function ee(e){return e.usage(`$0 basin-catalog credentials status <bucket-name>
5
5
 
@@ -1,20 +1,20 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-BAJpE3jV.mjs";var m={method:`POST`,path:()=>`/billing/address-validation`,body:`json`};function h(e){return e.usage(`$0 billing addresses validate
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:()=>`/billing/address-validation`,body:`json`};function h(e){return e.usage(`$0 billing addresses validate
3
3
 
4
- Validates a billing address and returns validated address suggestions. Authentication is not enforced to support pre-signup address validation flows, so credentials are accepted but not required.`).option(`address`,{type:`string`,description:`Address line 1.`}).option(`address2`,{type:`string`,description:`Address line 2.`}).option(`city`,{type:`string`,description:`City.`}).option(`country`,{type:`string`,description:`Country code.`}).option(`state`,{type:`string`,description:`State or province.`}).option(`zipcode`,{type:`string`,description:`Postal or 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 g={command:`validate`,describe:`Validate Billing Address`,builder:h,handler:async e=>c({command:`billing addresses validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf billing addresses validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/billing/address-validation`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),city:f(e.city,`city`,`text`),country:f(e.country,`country`,`text`),state:f(e.state,`state`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let t=await n(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(m,{body:n}));a(r,{successLabel:`Created`});return}let r=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),city:f(e.city,`city`,`text`),country:f(e.country,`country`,`text`),state:f(e.state,`state`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),i=await s(`Creating`,async()=>t.send(m,{body:r}));a(i,{successLabel:`Created`})})},_={command:`addresses`,describe:`Operations for addresses`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function y(e){return e.usage(`$0 billing profiles create
4
+ Validates a billing address and returns validated address suggestions. Authentication is not enforced to support pre-signup address validation flows, so credentials are accepted but not required.`).option(`address`,{type:`string`,description:`Address line 1.`}).option(`address2`,{type:`string`,description:`Address line 2.`}).option(`city`,{type:`string`,description:`City.`}).option(`country`,{type:`string`,description:`Country code.`}).option(`state`,{type:`string`,description:`State or province.`}).option(`zipcode`,{type:`string`,description:`Postal or 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 g={command:`validate`,describe:`Validate Billing Address`,builder:h,handler:async e=>c({command:`billing addresses validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf billing addresses validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/billing/address-validation`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),city:f(e.city,`city`,`text`),country:f(e.country,`country`,`text`),state:f(e.state,`state`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let t=await n(e);if(e.body){let n=l(e.body),r=await s(`Creating`,async()=>t.send(m,{body:n}));a(r,{successLabel:`Created`});return}let r=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),city:f(e.city,`city`,`text`),country:f(e.country,`country`,`text`),state:f(e.state,`state`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),i=await s(`Creating`,async()=>t.send(m,{body:r}));a(i,{successLabel:`Created`})})},_={command:`addresses`,describe:`Operations for addresses`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/billing/profile/payment-method`};function y(e){return e.usage(`$0 billing profiles create-payment-intent
5
5
 
6
- Creates a billing profile for an account.`).option(`address`,{type:`string`,description:`Street address line 1.`}).option(`address2`,{type:`string`,description:`Street address line 2 (apt, suite, etc.).`}).option(`billing-email`,{type:`string`,description:`Primary billing email address.`}).option(`buying-rate-plan`,{type:`string`,description:`Rate plan being purchased right after profile setup.`}).option(`captcha-challenge-jwt`,{type:`string`,description:`Captcha challenge JWT issued during onboarding.`}).option(`cf-turnstile-response`,{type:`string`,description:`Cloudflare Turnstile response.`}).option(`city`,{type:`string`,description:`City on the billing profile.`}).option(`company`,{type:`string`,description:`Company name on the billing profile.`}).option(`country`,{type:`string`,description:`ISO 3166-1 alpha-2 country code.`}).option(`first-name`,{type:`string`,description:`First name on the billing profile.`}).option(`h-captcha-response`,{type:`string`,description:`hCaptcha response.`}).option(`last-name`,{type:`string`,description:`Last name on the billing profile.`}).option(`preferred-locale`,{type:`string`,description:`Preferred locale for invoice rendering (BCP 47).`}).option(`secondary-billing-email`,{type:`string`,description:`Secondary billing email address for CC on invoices.`}).option(`state`,{type:`string`,description:`State or region on the billing profile.`}).option(`tax-id-type`,{type:`string`,description:`Type of tax ID provided.`}).option(`telephone`,{type:`string`,description:`Contact phone number.`}).option(`vat`,{type:`string`,description:`VAT identifier.`}).option(`zipcode`,{type:`string`,description:`ZIP or postal code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a billing profile.`})}const b={command:`create`,describe:`Create Billing Profile`,builder:y,handler:async e=>c({command:`billing profiles create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(v,{body:t,account_id:u}));a(n,{successLabel:`Created`});return}let p=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),m=await s(`Creating`,async()=>c.send(v,{body:p,account_id:u}));a(m,{successLabel:`Created`})})};var x={method:`POST`,path:t=>e`/accounts/${t.account_id}/billing/profile/payment-method`};function S(e){return e.usage(`$0 billing profiles createPaymentIntent
6
+ Creates a Stripe payment intent for adding or updating a payment method on the account's billing profile. 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 b={command:`create-payment-intent`,describe:`Create Payment Intent for Billing Profile`,builder:y,handler:async e=>c({command:`billing profiles create-payment-intent`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf billing profiles create-payment-intent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile/payment-method`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Creating`,async()=>c.send(v,{account_id:l}));a(u,{successLabel:`Created`})})};var x={method:`POST`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function S(e){return e.usage(`$0 billing profiles create
7
7
 
8
- Creates a Stripe payment intent for adding or updating a payment method on the account's billing profile. 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 C={command:`createPaymentIntent`,describe:`Create Payment Intent for Billing Profile`,builder:S,handler:async e=>c({command:`billing profiles createPaymentIntent`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf billing profiles createPaymentIntent`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile/payment-method`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Creating`,async()=>c.send(x,{account_id:l}));a(u,{successLabel:`Created`})})};var w={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/billing/profile`,response:!1};function T(e){return e.usage(`$0 billing profiles delete
8
+ Creates a billing profile for an account.`).option(`address`,{type:`string`,description:`Street address line 1.`}).option(`address2`,{type:`string`,description:`Street address line 2 (apt, suite, etc.).`}).option(`billing-email`,{type:`string`,description:`Primary billing email address.`}).option(`buying-rate-plan`,{type:`string`,description:`Rate plan being purchased right after profile setup.`}).option(`captcha-challenge-jwt`,{type:`string`,description:`Captcha challenge JWT issued during onboarding.`}).option(`cf-turnstile-response`,{type:`string`,description:`Cloudflare Turnstile response.`}).option(`city`,{type:`string`,description:`City on the billing profile.`}).option(`company`,{type:`string`,description:`Company name on the billing profile.`}).option(`country`,{type:`string`,description:`ISO 3166-1 alpha-2 country code.`}).option(`first-name`,{type:`string`,description:`First name on the billing profile.`}).option(`h-captcha-response`,{type:`string`,description:`hCaptcha response.`}).option(`last-name`,{type:`string`,description:`Last name on the billing profile.`}).option(`preferred-locale`,{type:`string`,description:`Preferred locale for invoice rendering (BCP 47).`}).option(`secondary-billing-email`,{type:`string`,description:`Secondary billing email address for CC on invoices.`}).option(`state`,{type:`string`,description:`State or region on the billing profile.`}).option(`tax-id-type`,{type:`string`,description:`Type of tax ID provided.`}).option(`telephone`,{type:`string`,description:`Contact phone number.`}).option(`vat`,{type:`string`,description:`VAT identifier.`}).option(`zipcode`,{type:`string`,description:`ZIP or postal code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a billing profile.`})}const C={command:`create`,describe:`Create Billing Profile`,builder:S,handler:async e=>c({command:`billing profiles create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(x,{body:t,account_id:u}));a(n,{successLabel:`Created`});return}let p=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),m=await s(`Creating`,async()=>c.send(x,{body:p,account_id:u}));a(m,{successLabel:`Created`})})};var w={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/billing/profile`,response:!1};function T(e){return e.usage(`$0 billing profiles delete
9
9
 
10
10
  Deletes the billing profile for an 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 E={command:`delete`,describe:`Delete Billing Profile`,builder:T,handler:async e=>c({command:`billing profiles delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf billing profiles delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force})){process.stderr.write(`Aborted.
11
11
  `);return}let u=await s(`Deleting`,async()=>c.send(w,{account_id:l}));a(u,{successLabel:`Deleted`})})};var D={method:`GET`,path:t=>e`/accounts/${t.account_id}/billing/profile`};function O(e){return e.usage(`$0 billing profiles get
12
12
 
13
- Gets the current billing profile for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get`,describe:`Get Billing Profile`,builder:O,handler:async e=>c({command:`billing profiles get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf billing profiles get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(D,{account_id:l}));a(u,{successLabel:`Loaded`})})};var A={method:`PUT`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function j(e){return e.usage(`$0 billing profiles update
13
+ Gets the current billing profile for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get`,describe:`Get Billing Profile`,builder:O,handler:async e=>c({command:`billing profiles get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf billing profiles get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(D,{account_id:l}));a(u,{successLabel:`Loaded`})})};var A={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function j(e){return e.usage(`$0 billing profiles update-email
14
14
 
15
- Updates the billing profile for an account.`).option(`address`,{type:`string`,description:`Street address line 1.`}).option(`address2`,{type:`string`,description:`Street address line 2 (apt, suite, etc.).`}).option(`billing-email`,{type:`string`,description:`Primary billing email address.`}).option(`buying-rate-plan`,{type:`string`,description:`Rate plan being purchased right after profile setup.`}).option(`captcha-challenge-jwt`,{type:`string`,description:`Captcha challenge JWT issued during onboarding.`}).option(`cf-turnstile-response`,{type:`string`,description:`Cloudflare Turnstile response.`}).option(`city`,{type:`string`,description:`City on the billing profile.`}).option(`company`,{type:`string`,description:`Company name on the billing profile.`}).option(`country`,{type:`string`,description:`ISO 3166-1 alpha-2 country code.`}).option(`first-name`,{type:`string`,description:`First name on the billing profile.`}).option(`h-captcha-response`,{type:`string`,description:`hCaptcha response.`}).option(`last-name`,{type:`string`,description:`Last name on the billing profile.`}).option(`preferred-locale`,{type:`string`,description:`Preferred locale for invoice rendering (BCP 47).`}).option(`secondary-billing-email`,{type:`string`,description:`Secondary billing email address for CC on invoices.`}).option(`state`,{type:`string`,description:`State or region on the billing profile.`}).option(`tax-id-type`,{type:`string`,description:`Type of tax ID provided.`}).option(`telephone`,{type:`string`,description:`Contact phone number.`}).option(`vat`,{type:`string`,description:`VAT identifier.`}).option(`zipcode`,{type:`string`,description:`ZIP or postal code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a billing profile.`})}const M={command:`update`,describe:`Update Billing Profile`,builder:j,handler:async e=>c({command:`billing profiles update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(A,{body:t,account_id:u}));a(n,{successLabel:`Updated`});return}let p=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),m=await s(`Updating`,async()=>c.send(A,{body:p,account_id:u}));a(m,{successLabel:`Updated`})})};var N={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function P(e){return e.usage(`$0 billing profiles updateEmail
15
+ Updates the billing email addresses and preferred locale for an account.`).option(`billing-email`,{type:`string`,description:`The billing_email field`}).option(`preferred-locale`,{type:`string`,description:`The preferred_locale field`}).option(`secondary-billing-email`,{type:`string`,description:`The secondary_billing_email 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 M={command:`update-email`,describe:`Update Billing Email`,builder:j,handler:async e=>c({command:`billing profiles update-email`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles update-email`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({billing_email:f(e[`billing-email`],`billing-email`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(A,{body:t,account_id:u}));a(n,{successLabel:`Updated`});return}let p=d({billing_email:f(e[`billing-email`],`billing-email`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`)}),m=await s(`Updating`,async()=>c.send(A,{body:p,account_id:u}));a(m,{successLabel:`Updated`})})};var N={method:`PUT`,path:t=>e`/accounts/${t.account_id}/billing/profile`,body:`json`};function P(e){return e.usage(`$0 billing profiles update
16
16
 
17
- Updates the billing email addresses and preferred locale for an account.`).option(`billing-email`,{type:`string`,description:`The billing_email field`}).option(`preferred-locale`,{type:`string`,description:`The preferred_locale field`}).option(`secondary-billing-email`,{type:`string`,description:`The secondary_billing_email 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 F={command:`updateEmail`,describe:`Update Billing Email`,builder:P,handler:async e=>c({command:`billing profiles updateEmail`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles updateEmail`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({billing_email:f(e[`billing-email`],`billing-email`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(N,{body:t,account_id:u}));a(n,{successLabel:`Updated`});return}let p=d({billing_email:f(e[`billing-email`],`billing-email`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`)}),m=await s(`Updating`,async()=>c.send(N,{body:p,account_id:u}));a(m,{successLabel:`Updated`})})},I={command:`profiles`,describe:`Billing profile with payment method, address, and invoice preferences`,builder:e=>e.command(b).command(C).command(E).command(k).command(M).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/billing/rate_plans/${t.public_key}`};function L(e){return e.usage(`$0 billing rate-plans get <public-key>
17
+ Updates the billing profile for an account.`).option(`address`,{type:`string`,description:`Street address line 1.`}).option(`address2`,{type:`string`,description:`Street address line 2 (apt, suite, etc.).`}).option(`billing-email`,{type:`string`,description:`Primary billing email address.`}).option(`buying-rate-plan`,{type:`string`,description:`Rate plan being purchased right after profile setup.`}).option(`captcha-challenge-jwt`,{type:`string`,description:`Captcha challenge JWT issued during onboarding.`}).option(`cf-turnstile-response`,{type:`string`,description:`Cloudflare Turnstile response.`}).option(`city`,{type:`string`,description:`City on the billing profile.`}).option(`company`,{type:`string`,description:`Company name on the billing profile.`}).option(`country`,{type:`string`,description:`ISO 3166-1 alpha-2 country code.`}).option(`first-name`,{type:`string`,description:`First name on the billing profile.`}).option(`h-captcha-response`,{type:`string`,description:`hCaptcha response.`}).option(`last-name`,{type:`string`,description:`Last name on the billing profile.`}).option(`preferred-locale`,{type:`string`,description:`Preferred locale for invoice rendering (BCP 47).`}).option(`secondary-billing-email`,{type:`string`,description:`Secondary billing email address for CC on invoices.`}).option(`state`,{type:`string`,description:`State or region on the billing profile.`}).option(`tax-id-type`,{type:`string`,description:`Type of tax ID provided.`}).option(`telephone`,{type:`string`,description:`Contact phone number.`}).option(`vat`,{type:`string`,description:`VAT identifier.`}).option(`zipcode`,{type:`string`,description:`ZIP or postal code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a billing profile.`})}const F={command:`update`,describe:`Update Billing Profile`,builder:P,handler:async e=>c({command:`billing profiles update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf billing profiles update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(N,{body:t,account_id:u}));a(n,{successLabel:`Updated`});return}let p=d({address:f(e.address,`address`,`text`),address2:f(e.address2,`address2`,`text`),billing_email:f(e[`billing-email`],`billing-email`,`text`),buying_rate_plan:f(e[`buying-rate-plan`],`buying-rate-plan`,`text`),captcha_challenge_jwt:f(e[`captcha-challenge-jwt`],`captcha-challenge-jwt`,`text`),cf_turnstile_response:f(e[`cf-turnstile-response`],`cf-turnstile-response`,`text`),city:f(e.city,`city`,`text`),company:f(e.company,`company`,`text`),country:f(e.country,`country`,`text`),first_name:f(e[`first-name`],`first-name`,`text`),h_captcha_response:f(e[`h-captcha-response`],`h-captcha-response`,`text`),last_name:f(e[`last-name`],`last-name`,`text`),preferred_locale:f(e[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:f(e[`secondary-billing-email`],`secondary-billing-email`,`text`),state:f(e.state,`state`,`text`),tax_id_type:f(e[`tax-id-type`],`tax-id-type`,`text`),telephone:f(e.telephone,`telephone`,`text`),vat:f(e.vat,`vat`,`text`),zipcode:f(e.zipcode,`zipcode`,`text`)}),m=await s(`Updating`,async()=>c.send(N,{body:p,account_id:u}));a(m,{successLabel:`Updated`})})},I={command:`profiles`,describe:`Billing profile with payment method, address, and invoice preferences`,builder:e=>e.command(C).command(b).command(E).command(k).command(F).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/billing/rate_plans/${t.public_key}`};function L(e){return e.usage(`$0 billing rate-plans get <public-key>
18
18
 
19
19
  Gets a rate plan's details by its public key (e.g., 'teams_free', 'cf_pro_20_20'). This is a public catalog endpoint, so authentication is not enforced and credentials are accepted but not required.`).positional(`public-key`,{type:`string`,description:`The public key identifier for the rate plan.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <public-key>`,describe:`Get Rate Plan by Public Key`,builder:L,handler:async e=>c({command:`billing rate-plans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf billing rate-plans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/billing/rate_plans/${e[`public-key`]==null?`<public-key>`:encodeURIComponent(String(e[`public-key`]))}`,pathParams:{"public-key":String(e[`public-key`]??``)},bodyKind:`none`});return}let t=await n(e),r=await s(`Loading`,async()=>t.send(ee,{public_key:e[`public-key`]}));a(r,{successLabel:`Loaded`})})},z={command:`rate-plans`,describe:`Operations for rate-plans`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`GET`,path:t=>e`/accounts/${t.account_id}/billable/usage/billable-metrics`,query:[`from`,`to`]};function V(e){return e.usage("$0 billing usage get-account-billable-metrics\n\nLists billable metrics available to the account through contracts and subscriptions that overlap the requested period. Results are deduplicated and ordered. If no qualifying contract exists, the result is an empty array. When `from` and `to` are omitted, the period defaults to the start of the current month through today. The maximum date range is 31 days.").option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get-account-billable-metrics`,describe:`List Account Billable Metrics (Version 2, Alpha, Restricted)`,builder:V,handler:async e=>c({command:`billing usage get-account-billable-metrics`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={from:e.from,to:e.to};if(e.dryRun){let e=await r();o({command:`cf billing usage get-account-billable-metrics`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage/billable-metrics`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(B,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var U={method:`GET`,path:t=>e`/accounts/${t.account_id}/billable/usage`,query:[`from`,`to`]};function W(e){return e.usage("$0 billing usage get-account-usage-v2\n\nReturns cost and usage data for a single Cloudflare account, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. **Note:** This endpoint serves `usage` records only; cost and pricing fields are absent from responses. To retrieve rated costs, use `POST` on the same path with `Metric: cost`. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days.").option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`get-account-usage-v2`,describe:`Get Account Usage (Version 2, Alpha, Restricted)`,builder:W,handler:async e=>c({command:`billing usage get-account-usage-v2`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={from:e.from,to:e.to};if(e.dryRun){let e=await r();o({command:`cf billing usage get-account-usage-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(U,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var K={method:`GET`,path:t=>e`/accounts/${t.account_id}/billable-usage/info`};function q(e){return e.usage(`$0 billing usage get-info-v1
20
20
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,i as d}from"./prompt-BAJpE3jV.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/bot_management/feedback`,body:`json`,response:!1};function p(e){return e.usage("$0 bot-management feedback create\n\nSubmit a feedback report for the specified zone. Use `type` to indicate whether the report is a false positive (good traffic flagged as bot) or a false negative (bot traffic missed). Furthermore, you can also use `expression` as a wirefilter to identify the affected traffic sample. See more accepted API fields and expression types at https://developers.cloudflare.com/bots/concepts/feedback-loop/#api-fields and https://developers.cloudflare.com/bots/concepts/feedback-loop/#expression-fields, respectively.").option(`description`,{type:`string`,description:`The description field`}).option(`expression`,{type:`string`,description:`Wirefilter expression describing the traffic being reported.`}).option(`first-request-seen-at`,{type:`string`,description:`The first_request_seen_at field`}).option(`last-request-seen-at`,{type:`string`,description:`The last_request_seen_at field`}).option(`requests`,{type:`number`,description:`The requests field`}).option(`subtype`,{type:`string`,description:`The subtype field`}).option(`type`,{type:`string`,description:`Type of feedback report.`,choices:[`false_positive`,`false_negative`]}).coerce(`type`,e=>l(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Submit a feedback report`,builder:p,handler:async e=>o({command:`bot-management feedback create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf bot-management feedback create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/bot_management/feedback`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:l(e.description,`description`,`text`),expression:l(e.expression,`expression`,`text`),first_request_seen_at:l(e[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:l(e[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:e.requests,subtype:l(e.subtype,`subtype`,`text`),type:e.type}):s(e.body)});return}let o=await t(e),p=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=p,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:p}));r(n,{successLabel:`Created`});return}if(e.description===void 0&&(e.description=await u(`description`,`The description field`)),e.expression===void 0&&(e.expression=await u(`expression`,`Wirefilter expression describing the traffic being reported.`)),e[`first-request-seen-at`]===void 0&&(e[`first-request-seen-at`]=await u(`first-request-seen-at`,`The first_request_seen_at field`)),e[`last-request-seen-at`]===void 0&&(e[`last-request-seen-at`]=await u(`last-request-seen-at`,`The last_request_seen_at field`)),e.requests===void 0)throw Error(`--requests is required (or pass --body with this field set).`);e.type===void 0&&(e.type=await d(`type`,`Type of feedback report.`,[`false_positive`,`false_negative`]));let m=c({description:l(e.description,`description`,`text`),expression:l(e.expression,`expression`,`text`),first_request_seen_at:l(e[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:l(e[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:e.requests,subtype:l(e.subtype,`subtype`,`text`),type:e.type}),h=await a(`Creating`,async()=>o.send(f,{body:m,zone_id:p}));r(h,{successLabel:`Created`})})};var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/bot_management/feedback`};function g(e){return e.usage(`$0 bot-management feedback list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,i as d}from"./prompt-dgLm0iFJ.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/bot_management/feedback`,body:`json`,response:!1};function p(e){return e.usage("$0 bot-management feedback create\n\nSubmit a feedback report for the specified zone. Use `type` to indicate whether the report is a false positive (good traffic flagged as bot) or a false negative (bot traffic missed). Furthermore, you can also use `expression` as a wirefilter to identify the affected traffic sample. See more accepted API fields and expression types at https://developers.cloudflare.com/bots/concepts/feedback-loop/#api-fields and https://developers.cloudflare.com/bots/concepts/feedback-loop/#expression-fields, respectively.").option(`description`,{type:`string`,description:`The description field`}).option(`expression`,{type:`string`,description:`Wirefilter expression describing the traffic being reported.`}).option(`first-request-seen-at`,{type:`string`,description:`The first_request_seen_at field`}).option(`last-request-seen-at`,{type:`string`,description:`The last_request_seen_at field`}).option(`requests`,{type:`number`,description:`The requests field`}).option(`subtype`,{type:`string`,description:`The subtype field`}).option(`type`,{type:`string`,description:`Type of feedback report.`,choices:[`false_positive`,`false_negative`]}).coerce(`type`,e=>l(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Submit a feedback report`,builder:p,handler:async e=>o({command:`bot-management feedback create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf bot-management feedback create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/bot_management/feedback`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:l(e.description,`description`,`text`),expression:l(e.expression,`expression`,`text`),first_request_seen_at:l(e[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:l(e[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:e.requests,subtype:l(e.subtype,`subtype`,`text`),type:e.type}):s(e.body)});return}let o=await t(e),p=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=p,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:p}));r(n,{successLabel:`Created`});return}if(e.description===void 0&&(e.description=await u(`description`,`The description field`)),e.expression===void 0&&(e.expression=await u(`expression`,`Wirefilter expression describing the traffic being reported.`)),e[`first-request-seen-at`]===void 0&&(e[`first-request-seen-at`]=await u(`first-request-seen-at`,`The first_request_seen_at field`)),e[`last-request-seen-at`]===void 0&&(e[`last-request-seen-at`]=await u(`last-request-seen-at`,`The last_request_seen_at field`)),e.requests===void 0)throw Error(`--requests is required (or pass --body with this field set).`);e.type===void 0&&(e.type=await d(`type`,`Type of feedback report.`,[`false_positive`,`false_negative`]));let m=c({description:l(e.description,`description`,`text`),expression:l(e.expression,`expression`,`text`),first_request_seen_at:l(e[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:l(e[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:e.requests,subtype:l(e.subtype,`subtype`,`text`),type:e.type}),h=await a(`Creating`,async()=>o.send(f,{body:m,zone_id:p}));r(h,{successLabel:`Created`})})};var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/bot_management/feedback`};function g(e){return e.usage(`$0 bot-management feedback list
3
3
 
4
4
  Returns all feedback reports previously submitted for the specified zone. Feedback reports help improve detection by sharing samples of traffic that were misclassified as bots or humans.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`List zone feedback reports`,builder:g,handler:async e=>o({command:`bot-management feedback list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf bot-management feedback list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/bot_management/feedback`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(h,{zone_id:s}));r(c,{successLabel:`Loaded`})})},v={command:`feedback`,describe:`Operations for feedback`,builder:e=>e.command(m).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/bot_management`};function b(e){return e.usage(`$0 bot-management get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l}from"./prompt-BAJpE3jV.mjs";var u={method:`GET`,path:t=>e`/accounts/${t.account_id}/botnet_feed/asn/${t.asn_id}/day_report`,query:[`date`]};function d(e){return e.usage(`$0 botnet-feed asn day-report <asn-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l}from"./prompt-dgLm0iFJ.mjs";var u={method:`GET`,path:t=>e`/accounts/${t.account_id}/botnet_feed/asn/${t.asn_id}/day_report`,query:[`date`]};function d(e){return e.usage(`$0 botnet-feed asn day-report <asn-id>
3
3
 
4
4
  Gets all the data the botnet tracking database has for a given ASN registered to user account for given date. If no date is given, it will return results for the previous day.`).positional(`asn-id`,{type:`string`,description:`Asn ID`,demandOption:!0}).option(`date`,{type:`string`,description:`Date`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`day-report <asn-id>`,describe:`Get daily report`,builder:d,handler:async e=>c({command:`botnet-feed asn day-report`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={date:e.date};if(e.dryRun){let t=await r();o({command:`cf botnet-feed asn day-report`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/botnet_feed/asn/${e[`asn-id`]==null?`<asn-id>`:encodeURIComponent(String(e[`asn-id`]))}/day_report`,pathParams:{"asn-id":String(e[`asn-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>l.send(u,{account_id:d,asn_id:e[`asn-id`],...c}));a(f,{successLabel:`Loaded`})})};var p={method:`GET`,path:t=>e`/accounts/${t.account_id}/botnet_feed/asn/${t.asn_id}/full_report`};function m(e){return e.usage(`$0 botnet-feed asn full-report <asn-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BAJpE3jV.mjs";var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/brand-protection/logo/matches`,query:[`offset`,`limit`,`query_id`,`download`,`orderBy`,`order`]};function _(e){return e.usage(`$0 brand-protection logo-matches get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/brand-protection/logo/matches`,query:[`offset`,`limit`,`query_id`,`download`,`orderBy`,`order`]};function _(e){return e.usage(`$0 brand-protection logo-matches get
3
3
 
4
4
  Get paginated list of logo matches for a specific brand protection logo query`).option(`offset`,{type:`string`,description:`Offset`}).option(`limit`,{type:`string`,description:`Limit`}).option(`query-id`,{type:`string`,description:`Query ID`,demandOption:!0}).option(`download`,{type:`string`,description:`Download`}).option(`order-by`,{type:`string`,description:`Column to sort by. Options: 'matchedAt', 'domain', 'similarityScore', or 'registrar'`,choices:[`matchedAt`,`domain`,`similarityScore`,`registrar`]}).option(`order`,{type:`string`,description:`Sort order. Options: 'asc' (ascending) or 'desc' (descending)`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`List logo matches`,builder:_,handler:async e=>c({command:`brand-protection logo-matches get`,classification:{safeFlags:[`order-by`,`order`,`dry-run`]}},e,async()=>{let c={offset:e.offset,limit:e.limit,query_id:e[`query-id`],download:e.download,orderBy:e[`order-by`],order:e.order};if(e.dryRun){let e=await r();o({command:`cf brand-protection logo-matches get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/v2/brand-protection/logo/matches`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(g,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},y={command:`logo-matches`,describe:`Operations for logo-matches`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/brand-protection/logo/queries`,body:`json`};function x(e){return e.usage(`$0 brand-protection logos create
5
5