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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
  22. package/dist/audit-logs-D9XxsVZm.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
  24. package/dist/auth-Ccm5viK_.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
  27. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  28. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
  29. package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
  30. package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
  31. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
  32. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
  33. package/dist/browser-run-ChXohmNG.mjs +42 -0
  34. package/dist/build-BRJnyeu8.mjs +2 -0
  35. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  36. package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
  37. package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
  38. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
  39. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  40. package/dist/cli-DJhpXf38.mjs +6 -0
  41. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
  42. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
  43. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
  44. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
  45. package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
  46. package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
  48. package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
  49. package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
  50. package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
  51. package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
  52. package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
  53. package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
  54. package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
  55. package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
  56. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
  57. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
  58. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
  59. package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
  60. package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
  61. package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
  62. package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
  63. package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
  64. package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
  65. package/dist/csam-scanner-DvLrPw45.mjs +10 -0
  66. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
  67. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
  68. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
  69. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
  70. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
  71. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
  72. package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
  73. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
  74. package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
  75. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
  76. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  77. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  78. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
  79. package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
  80. package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
  81. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
  82. package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
  83. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
  84. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
  85. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
  86. package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
  87. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
  88. package/dist/field-extractors-B_lFnwaL.mjs +9 -0
  89. package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
  90. package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
  91. package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
  92. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
  93. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
  94. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
  95. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
  96. package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
  97. package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
  98. package/dist/index.mjs +1 -1
  99. package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
  100. package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
  101. package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
  102. package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
  103. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
  104. package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
  105. package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
  106. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
  108. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
  109. package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
  110. package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
  111. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
  112. package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
  113. package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
  114. package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
  115. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
  117. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
  118. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
  119. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
  120. package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
  121. package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
  122. package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
  123. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  124. package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
  125. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
  126. package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
  127. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
  128. package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
  129. package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
  130. package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
  131. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
  132. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
  133. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  134. package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
  135. package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
  136. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
  137. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
  138. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
  139. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
  140. package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
  141. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
  142. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
  143. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
  144. package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
  145. package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
  146. package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
  147. package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
  148. package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
  149. package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
  150. package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
  151. package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
  152. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
  153. package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
  154. package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
  155. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
  156. package/dist/reporting-8aRJD5HX.mjs +14 -0
  157. package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
  158. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
  159. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
  160. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
  161. package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
  162. package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
  163. package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
  164. package/dist/run-CHNyLZLG.mjs +2 -0
  165. package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
  166. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
  167. package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
  168. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
  169. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
  170. package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
  171. package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
  172. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
  173. package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
  174. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  175. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
  176. package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
  177. package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
  178. package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
  179. package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
  180. package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
  181. package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
  182. package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
  183. package/dist/telemetry-Bdv5LZZs.mjs +2 -0
  184. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
  185. package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
  186. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
  187. package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
  188. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
  189. package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
  190. package/dist/update-check-Dld7rbLd.mjs +2 -0
  191. package/dist/update-check-worker.mjs +1 -1
  192. package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
  193. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
  194. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
  195. package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
  196. package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
  197. package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
  198. package/dist/version-CAuKDZAG.mjs +2 -0
  199. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
  200. package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
  201. package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
  202. package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
  203. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
  204. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
  205. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
  206. package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
  207. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  208. package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
  209. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
  210. package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
  211. package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
  212. package/package.json +11 -10
  213. package/dist/alerts-BSON-vFh.mjs +0 -2
  214. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  215. package/dist/auth-8Sm4uLGM.mjs +0 -2
  216. package/dist/autorag-kNrLiqDX.mjs +0 -2
  217. package/dist/brands-bBJgbbOH.mjs +0 -2
  218. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  219. package/dist/browser-run-CEptKZYl.mjs +0 -42
  220. package/dist/build-Bm6kGyzo.mjs +0 -2
  221. package/dist/clear-BW9vLgI3.mjs +0 -2
  222. package/dist/cli-R8h3OKZI.mjs +0 -6
  223. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  224. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  225. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  226. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  227. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  228. package/dist/health-CTaCeVyC.mjs +0 -2
  229. package/dist/internal-BYS7hO8c.mjs +0 -2
  230. package/dist/live-BJE_YWE1.mjs +0 -2
  231. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  232. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  233. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  234. package/dist/ready-B3pLxnjc.mjs +0 -2
  235. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  236. package/dist/refute-Dp3VodMn.mjs +0 -2
  237. package/dist/reporting-3kDVF5c8.mjs +0 -14
  238. package/dist/run-CUNhH5CQ.mjs +0 -2
  239. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  240. package/dist/scan-page-CxeudOzj.mjs +0 -2
  241. package/dist/search-B_P5ZTQj.mjs +0 -2
  242. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  243. package/dist/submission-info-_t78q2OE.mjs +0 -2
  244. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  245. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  246. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  247. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  248. package/dist/verify-5KcvRk-q.mjs +0 -2
  249. package/dist/version-B6MnUIqV.mjs +0 -2
  250. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{m as t,o as n}from"./chunk-2K52M2W5-CYxfQXUq.mjs";import{a as r,i,s as a}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{c as o,d as s,i as c,l,o as u,p as d,r as f,s as p,u as m}from"./oauth-CfEedDZi.mjs";import{t as h}from"./output-Co4xdFf6.mjs";import g from"node:path";function _(e,t,n){if(!e.profile)return;let r=n?` ${n}`:``;throw Error(`The --profile flag cannot be used with \`cf auth ${t}\`.${r}`)}function v(){if(n({allowGlobalAuthKey:!1})!==void 0)throw Error(`Cannot manage auth profiles while CLOUDFLARE_API_TOKEN is set. Unset CLOUDFLARE_API_TOKEN and try again.`)}const y={command:`create <name>`,describe:`Create or re-authenticate a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name for the auth profile`,demandOption:!0}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async n=>{_(n,`create`,"Pass the profile name as the command argument: `cf auth create <name>`."),v(),t(n.name);let a=u().configs.exists(n.name);await l({browser:n.browser,device:n.device,scopes:n.scopes,profile:n.name}),console.log(r(a?`Profile "${n.name}" re-authenticated.`:`Profile "${n.name}" created.`)),console.log(i(`Run ${e.code(`cf auth activate ${n.name}`)} to use this profile in a directory.`))}},b={command:`delete <name>`,describe:`Delete a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to delete`,demandOption:!0}),handler:async n=>{_(n,`delete`),v(),t(n.name);let a=u();if(!a.configs.exists(n.name))throw Error(`Profile "${n.name}" does not exist.`);let o=a.bindings.removeAllBindingsForProfile(n.name);if(o.length>0){console.log(r(`Removed directory bindings:`));for(let e of o)console.log(` ${e}`)}await m(n.name),a.configs.delete(n.name),console.log(r(`Profile "${n.name}" deleted.`));let s=a.bindings.getProfileForDirectory(process.cwd());s?console.log(r(`Active profile for this directory: ${s}.`)):a.configs.exists(`default`)?console.log(r(`This directory now uses the default profile.`)):console.log(i(`No active profile for this directory. Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`))}},x={command:`activate <name> [dir]`,describe:`Bind a named auth profile to a directory`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to activate`,demandOption:!0}).positional(`dir`,{type:`string`,description:`Directory to bind the profile to (defaults to current directory)`}),handler:e=>{_(e,`activate`,"Pass the profile name as the command argument: `cf auth activate <name>`."),v(),t(e.name);let n=u();if(!n.configs.exists(e.name))throw Error(`Profile "${e.name}" does not exist. Run \`cf auth create ${e.name}\` first.`);let i=e.dir??process.cwd();n.bindings.activate(e.name,i),console.log(r(`Profile "${e.name}" activated for "${g.resolve(i)}".`))}},S={command:`deactivate [dir]`,describe:`Remove the auth profile binding from a directory`,builder:e=>e.positional(`dir`,{type:`string`,description:`Directory to unbind (defaults to current directory). Must be the exact directory the profile was bound to.`}),handler:t=>{_(t,`deactivate`),v();let n=u(),a=t.dir??process.cwd(),{removedProfile:o,newResolution:s}=n.bindings.deactivate(a);console.log(r(`Profile "${o}" deactivated from "${g.resolve(a)}".`)),s.profile===void 0?console.log(i(`Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`)):s.profile==="default"?console.log(r(`This directory now uses the default profile.`)):console.log(r(`Now using: ${s.profile} (${s.source}).`))}},C={command:`list`,describe:`List all auth profiles`,handler:e=>{_(e,`list`);let t=u(),n=t.bindings.read(),r={};for(let[e,t]of Object.entries(n))(r[t]??=[]).push(e);h(t.configs.list().map(e=>({name:e,boundDirectories:r[e]??[]})))}},w={safeFlags:[`force`,`browser`,`device`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}},T={command:`login`,describe:`Authenticate with Cloudflare`,builder:e=>e.option(`force`,{type:`boolean`,alias:`f`,description:`Force re-authentication even if already logged in`,default:!1}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async t=>{_(t,`login`,"Run `cf auth create <name>` to authenticate a named profile.");let n=f();if(n!=="default"&&console.log(a(`This directory has profile "${n}" active. \`cf auth login\` updates the default profile, not "${n}".\nTo re-authenticate "${n}", run \`cf auth create ${n}\`.`)),d(`default`),!t.force&&o()){if(await p()){let t=s();console.log(r(`You are already logged in.`)),console.log(`${e.info(`Config file:`)} ${e.muted(c())}`),t?.expiration_time&&console.log(`${e.info(`Token expires:`)} ${new Date(t.expiration_time).toLocaleString()}`),console.log(i(`Run ${e.code(`cf auth login --force`)} to re-authenticate, or ${e.code(`cf auth logout`)} to log out.`));return}console.log(a(`Existing tokens are invalid or expired. Starting fresh login...
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{m as t,o as n}from"./chunk-2K52M2W5-CYxfQXUq.mjs";import{a as r,i,s as a}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{c as o,d as s,i as c,l,o as u,p as d,r as f,s as p,u as m}from"./oauth-CP82E1_0.mjs";import{t as h}from"./output-Co4xdFf6.mjs";import g from"node:path";function _(e,t,n){if(!e.profile)return;let r=n?` ${n}`:``;throw Error(`The --profile flag cannot be used with \`cf auth ${t}\`.${r}`)}function v(){if(n({allowGlobalAuthKey:!1})!==void 0)throw Error(`Cannot manage auth profiles while CLOUDFLARE_API_TOKEN is set. Unset CLOUDFLARE_API_TOKEN and try again.`)}const y={command:`create <name>`,describe:`Create or re-authenticate a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name for the auth profile`,demandOption:!0}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async n=>{_(n,`create`,"Pass the profile name as the command argument: `cf auth create <name>`."),v(),t(n.name);let a=u().configs.exists(n.name);await l({browser:n.browser,device:n.device,scopes:n.scopes,profile:n.name}),console.log(r(a?`Profile "${n.name}" re-authenticated.`:`Profile "${n.name}" created.`)),console.log(i(`Run ${e.code(`cf auth activate ${n.name}`)} to use this profile in a directory.`))}},b={command:`delete <name>`,describe:`Delete a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to delete`,demandOption:!0}),handler:async n=>{_(n,`delete`),v(),t(n.name);let a=u();if(!a.configs.exists(n.name))throw Error(`Profile "${n.name}" does not exist.`);let o=a.bindings.removeAllBindingsForProfile(n.name);if(o.length>0){console.log(r(`Removed directory bindings:`));for(let e of o)console.log(` ${e}`)}await m(n.name),a.configs.delete(n.name),console.log(r(`Profile "${n.name}" deleted.`));let s=a.bindings.getProfileForDirectory(process.cwd());s?console.log(r(`Active profile for this directory: ${s}.`)):a.configs.exists(`default`)?console.log(r(`This directory now uses the default profile.`)):console.log(i(`No active profile for this directory. Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`))}},x={command:`activate <name> [dir]`,describe:`Bind a named auth profile to a directory`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to activate`,demandOption:!0}).positional(`dir`,{type:`string`,description:`Directory to bind the profile to (defaults to current directory)`}),handler:e=>{_(e,`activate`,"Pass the profile name as the command argument: `cf auth activate <name>`."),v(),t(e.name);let n=u();if(!n.configs.exists(e.name))throw Error(`Profile "${e.name}" does not exist. Run \`cf auth create ${e.name}\` first.`);let i=e.dir??process.cwd();n.bindings.activate(e.name,i),console.log(r(`Profile "${e.name}" activated for "${g.resolve(i)}".`))}},S={command:`deactivate [dir]`,describe:`Remove the auth profile binding from a directory`,builder:e=>e.positional(`dir`,{type:`string`,description:`Directory to unbind (defaults to current directory). Must be the exact directory the profile was bound to.`}),handler:t=>{_(t,`deactivate`),v();let n=u(),a=t.dir??process.cwd(),{removedProfile:o,newResolution:s}=n.bindings.deactivate(a);console.log(r(`Profile "${o}" deactivated from "${g.resolve(a)}".`)),s.profile===void 0?console.log(i(`Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`)):s.profile==="default"?console.log(r(`This directory now uses the default profile.`)):console.log(r(`Now using: ${s.profile} (${s.source}).`))}},C={command:`list`,describe:`List all auth profiles`,handler:e=>{_(e,`list`);let t=u(),n=t.bindings.read(),r={};for(let[e,t]of Object.entries(n))(r[t]??=[]).push(e);h(t.configs.list().map(e=>({name:e,boundDirectories:r[e]??[]})))}},w={safeFlags:[`force`,`browser`,`device`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}},T={command:`login`,describe:`Authenticate with Cloudflare`,builder:e=>e.option(`force`,{type:`boolean`,alias:`f`,description:`Force re-authentication even if already logged in`,default:!1}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async t=>{_(t,`login`,"Run `cf auth create <name>` to authenticate a named profile.");let n=f();if(n!=="default"&&console.log(a(`This directory has profile "${n}" active. \`cf auth login\` updates the default profile, not "${n}".\nTo re-authenticate "${n}", run \`cf auth create ${n}\`.`)),d(`default`),!t.force&&o()){if(await p()){let t=s();console.log(r(`You are already logged in.`)),console.log(`${e.info(`Config file:`)} ${e.muted(c())}`),t?.expiration_time&&console.log(`${e.info(`Token expires:`)} ${new Date(t.expiration_time).toLocaleString()}`),console.log(i(`Run ${e.code(`cf auth login --force`)} to re-authenticate, or ${e.code(`cf auth logout`)} to log out.`));return}console.log(a(`Existing tokens are invalid or expired. Starting fresh login...
3
3
  `))}else t.force&&o()&&console.log(r(`Re-authenticating...
4
4
  `));if(console.log(r(`Starting OAuth login flow...
5
5
  `)),!await l({browser:t.browser,device:t.device,scopes:t.scopes,profile:`default`})){console.log(a(`CLOUDFLARE_API_TOKEN is set and takes precedence. Unset it to log in via OAuth.`));return}let u=s();console.log(`${e.info(`Config file:`)} ${e.muted(c())}`),u?.scopes&&(u.scopes.length>5?(console.log(`${e.info(`Scopes:`)} ${u.scopes.length} selected`),console.log(i(`Run ${e.code(`cf auth whoami`)} to see the full list.`))):console.log(`${e.info(`Scopes:`)} ${u.scopes.join(`, `)}`)),u?.expiration_time&&console.log(`${e.info(`Token expires:`)} ${new Date(u.expiration_time).toLocaleString()}`)}};export{y as a,C as c,_ as i,w as n,S as o,x as r,b as s,T as t};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{a as t}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{n}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as r,t as i}from"./login-CiQGR8ha.mjs";const a={...i,describe:!1,handler:async n=>{n.quiet||console.error(t(`${e.code(`cf login`)} is an alias for ${e.code(`cf auth login`)}. Authentication commands are under ${e.code(`cf auth`)}.`)),await i.handler(n)}};var o=n(a,{command:`login`,classification:r});export{o as default};
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{a as t}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import{n}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as r,t as i}from"./login-DT6Q1UJw.mjs";const a={...i,describe:!1,handler:async n=>{n.quiet||console.error(t(`${e.code(`cf login`)} is an alias for ${e.code(`cf auth login`)}. Authentication commands are under ${e.code(`cf auth`)}.`)),await i.handler(n)}};var o=n(a,{command:`login`,classification:r});export{o 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{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";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/logo-matches/download`,query:[`logo_id`,`offset`,`limit`],errors:{422:`UnprocessableEntityError`}};function u(e){return e.usage(`$0 logo-matches download 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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/logo-matches/download`,query:[`logo_id`,`offset`,`limit`],errors:{422:`UnprocessableEntityError`}};function u(e){return e.usage(`$0 logo-matches download get
3
3
 
4
4
  Return matches as CSV for logo queries based on ID`).option(`logo-id`,{type:`string`,description:`Logo ID`}).option(`offset`,{type:`string`,description:`Offset`}).option(`limit`,{type:`string`,description:`Limit`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Download matches for logo queries by ID`,builder:u,handler:async e=>c({command:`logo-matches download get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={logo_id:e[`logo-id`],offset:e.offset,limit:e.limit};if(e.dryRun){let e=await r();o({command:`cf logo-matches download get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/brand-protection/logo-matches/download`,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:`download`,describe:`Operations for download`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var p={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/logo-matches`,query:[`logo_id`,`offset`,`limit`],errors:{422:`UnprocessableEntityError`}};function m(e){return e.usage(`$0 logo-matches 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{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";import{n as f}from"./prompt-BAJpE3jV.mjs";function p(e){return e.usage(`$0 logos 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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";import{n as f}from"./prompt-KWYZvJWM.mjs";function p(e){return e.usage(`$0 logos create
3
3
 
4
4
  Return new saved logo queries created from image files`).option(`tag`,{type:`string`,description:`Tag`}).option(`match-type`,{type:`string`,description:`Match type`}).option(`threshold`,{type:`number`,description:`Threshold`}).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:`create`,describe:`Create new saved logo queries from image files`,builder:p,handler:async e=>l({command:`logos create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={tag:e.tag,match_type:e[`match-type`],threshold:e.threshold};if(e.dryRun){let t=await i();s({command:`cf logos create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/brand-protection/logos`,pathParams:{},query:l,bodyKind:`octet-stream`,body:e.body});return}let f=await r(e),p=e.local?t:await a();if(e.accountId=p,e.file){let t=d(e.file),r=await c(`Creating`,async()=>n(f,`POST`,`/accounts/${p}/brand-protection/logos`,{body:t,headers:{"Content-Type":`application/x-www-form-urlencoded`}}));o(r,{successLabel:`Created`});return}if(e.body){let t=u(e.body,`body`,`binary`),r=new URLSearchParams(Object.entries(l).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i=await c(`Creating`,async()=>n(f,`POST`,`/accounts/${p}/brand-protection/logos${r?`?`+r:``}`,{body:t,headers:{"Content-Type":`application/x-www-form-urlencoded`}}));o(i,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var h={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/brand-protection/logos/${t.logo_id}`,response:!1};function g(e){return e.usage(`$0 logos delete <logo-id>
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,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{a as p,n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/fields`};function g(e){return e.usage(`$0 logpush account-datasets fields get <dataset-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-MNz2D-PD.mjs";import{a as r,i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-KWYZvJWM.mjs";var h={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/fields`};function g(e){return e.usage(`$0 logpush account-datasets fields get <dataset-id>
3
3
 
4
- Lists all fields available for a dataset. The response result is. an object with key-value pairs, where keys are field names, and values are descriptions.`).positional(`dataset-id`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <dataset-id>`,describe:`List fields`,builder:g,handler:async e=>l({command:`logpush account-datasets fields get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-datasets fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/fields`,pathParams:{"account-or-zone":String(n),"dataset-id":String(e[`dataset-id`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(h,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));o(f,{successLabel:`Loaded`})})},v={command:`fields`,describe:`Operations for account-datasets.fields`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/jobs`};function te(e){return e.usage(`$0 logpush account-datasets jobs get <dataset-id>
4
+ Lists all fields available for a dataset. The response result is. an object with key-value pairs, where keys are field names, and values are descriptions.`).positional(`dataset-id`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <dataset-id>`,describe:`List fields`,builder:g,handler:async e=>l({command:`logpush account-datasets fields get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-datasets fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/fields`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(h,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));o(f,{successLabel:`Loaded`})})},v={command:`fields`,describe:`Operations for account-datasets.fields`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/jobs`};function te(e){return e.usage(`$0 logpush account-datasets jobs get <dataset-id>
5
5
 
6
- Lists Logpush jobs for an account or zone for a dataset.`).positional(`dataset-id`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <dataset-id>`,describe:`List Logpush jobs for a dataset`,builder:te,handler:async e=>l({command:`logpush account-datasets jobs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-datasets jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/jobs`,pathParams:{"account-or-zone":String(n),"dataset-id":String(e[`dataset-id`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(ee,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));o(f,{successLabel:`Loaded`})})},b={command:`jobs`,describe:`Operations for account-datasets.jobs`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`account-datasets`,describe:`Operations for account-datasets`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var S={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`,body:`json`};function C(e){return e.usage(`$0 logpush account-jobs create
6
+ Lists Logpush jobs for an account or zone for a dataset.`).positional(`dataset-id`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <dataset-id>`,describe:`List Logpush jobs for a dataset`,builder:te,handler:async e=>l({command:`logpush account-datasets jobs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-datasets jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/jobs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(ee,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));o(f,{successLabel:`Loaded`})})},b={command:`jobs`,describe:`Operations for account-datasets.jobs`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`account-datasets`,describe:`Operations for account-datasets`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var S={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`,body:`json`};function C(e){return e.usage(`$0 logpush account-jobs create
7
7
 
8
8
  Creates a new Logpush job for an account or zone.`).option(`dataset`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,choices:/* @__PURE__ */ `access_requests.account_abuse_protection_events.audit_logs.audit_logs_v2.biso_user_actions.casb_findings.device_posture_results.dex_application_tests.dex_device_state_events.dlp_forensic_copies.dns_firewall_logs.dns_logs.email_security_alerts.email_security_post_delivery_events.firewall_events.gateway_dns.gateway_http.gateway_network.http_requests.ipsec_logs.magic_bgp_logs.magic_ids_detections.mcp_portal_logs.mnm_flow_logs.nel_reports.network_analytics_logs.page_shield_events.sinkhole_http_logs.spectrum_events.ssh_logs.turnstile_events.warp_config_changes.warp_toggle_changes.websocket_analytics.workers_trace_events.zaraz_events.zero_trust_network_sessions`.split(`.`),default:`http_requests`}).coerce(`dataset`,e=>f(e,`dataset`,`text`)).option(`destination-conf`,{type:`string`,description:`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`}).option(`enabled`,{type:`boolean`,description:`Flag that indicates if the job is enabled.`,default:!1}).option(`filter`,{type:`string`,description:`The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/).`}).option(`filter-attack-traffic`,{type:`boolean`,description:"When true, excludes DDoS attack traffic from logs. This option is supported for the `http_requests`, `firewall_events`, and `network_analytics_logs` datasets.",default:!1}).option(`frequency`,{type:`string`,description:"This field is deprecated. Please use `max_upload_*` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your logs in larger quantities of smaller files. Setting frequency to low sends logs in smaller quantities of larger files.",choices:[`high`,`low`],default:`high`}).coerce(`frequency`,e=>f(e,`frequency`,`text`)).option(`kind`,{type:`string`,description:`The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset).`,choices:[`edge`],default:``}).coerce(`kind`,e=>f(e,`kind`,`text`)).option(`logpull-options`,{type:`string`,description:"This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the url (full url or just the query string) of your call here, and logpush will keep on making this call for you, setting start and end times appropriately."}).option(`name`,{type:`string`,description:`Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job.`}).option(`output-options-cve-2021-44228`,{type:`boolean`,description:"If set to true, will cause all occurrences of `${` in the generated files to be replaced with `x{`."}).option(`output-options-batch-prefix`,{type:`string`,description:`String to be prepended before each batch.`}).option(`output-options-batch-suffix`,{type:`string`,description:`String to be appended after each batch.`}).option(`output-options-field-delimiter`,{type:`string`,description:"String to join fields. This field be ignored when `record_template` is set."}).option(`output-options-field-names`,{type:`string`,array:!0,description:`List of field names to be included in the Logpush output. For the moment, there is no option to add all fields at once, so you must specify all the fields names you are interested in.`}).option(`output-options-merge-subrequests`,{type:`boolean`,description:"If set to true, subrequests will be merged into the parent request. Only supported for the `http_requests` dataset."}).option(`output-options-output-type`,{type:`string`,description:"Specifies the output type, such as `ndjson` or `csv`. This sets default values for the rest of the settings, depending on the chosen output type. Some formatting rules, like string quoting, are different between output types.",choices:[`ndjson`,`csv`]}).coerce(`output-options-output-type`,e=>f(e,`output-options-output-type`,`text`)).option(`output-options-record-delimiter`,{type:`string`,description:`String to be inserted in-between the records as separator.`}).option(`output-options-record-prefix`,{type:`string`,description:`String to be prepended before each record.`}).option(`output-options-record-suffix`,{type:`string`,description:`String to be appended after each record.`}).option(`output-options-record-template`,{type:`string`,description:"String to use as template for each record instead of the default json key value mapping. All fields used in the template must be present in `field_names` as well, otherwise they will end up as null. Format as a Go `text/template` without any standard functions, like conditionals, loops, sub-templates, etc."}).option(`output-options-sample-rate`,{type:`number`,description:"Specifies the sampling rate as a floating number greater than 0 and at most 1. Sampling is applied on top of filtering, and regardless of the current `sample_interval` of the data."}).option(`output-options-timestamp-format`,{type:`string`,description:"String to specify the format for timestamps, such as `unixnano`, `unix`, `rfc3339`, `rfc3339ms` or `rfc3339ns`.",choices:[`unixnano`,`unix`,`rfc3339`,`rfc3339ms`,`rfc3339ns`]}).coerce(`output-options-timestamp-format`,e=>f(e,`output-options-timestamp-format`,`text`)).option(`ownership-challenge`,{type:`string`,description:`Ownership challenge token to prove destination ownership.`}).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 ne={command:`create`,describe:`Create Logpush job`,builder:C,handler:async e=>l({command:`logpush account-jobs create`,classification:{safeFlags:[`dataset`,`enabled`,`filter-attack-traffic`,`frequency`,`kind`,`output-options-cve-2021-44228`,`output-options-merge-subrequests`,`output-options-output-type`,`output-options-timestamp-format`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({dataset:e.dataset,destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(S,{body:t,account_or_zone:m,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await p(`destination-conf`,`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`,{kind:`secret`}));let g=d({dataset:e.dataset,destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}),_=await c(`Creating`,async()=>l.send(S,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`};function ie(e){return e.usage(`$0 logpush account-jobs delete <job-id>
9
9
 
10
- Deletes a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,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 ae={command:`delete <job-id>`,describe:`Delete Logpush job`,builder:ie,handler:async e=>l({command:`logpush account-jobs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"job-id":String(e[`job-id`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=d:e.accountId=d,!await m({force:!!e.force,message:`This operation deletes the Logpush job.`})){process.stderr.write(`Aborted.
10
+ Deletes a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,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 ae={command:`delete <job-id>`,describe:`Delete Logpush job`,builder:ie,handler:async e=>l({command:`logpush account-jobs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"job-id":String(e[`job-id`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=d:e.accountId=d,!await m({force:!!e.force,message:`This operation deletes the Logpush job.`})){process.stderr.write(`Aborted.
11
11
  `);return}let f=await c(`Deleting`,async()=>l.send(re,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));o(f,{successLabel:`Deleted`})})};var oe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`};function w(e){return e.usage(`$0 logpush account-jobs get <job-id>
12
12
 
13
- Gets the details of a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <job-id>`,describe:`Get Logpush job details`,builder:w,handler:async e=>l({command:`logpush account-jobs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"job-id":String(e[`job-id`]??``),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(oe,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));o(f,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`};function D(e){return e.usage(`$0 logpush account-jobs list
13
+ Gets the details of a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <job-id>`,describe:`Get Logpush job details`,builder:w,handler:async e=>l({command:`logpush account-jobs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"job-id":String(e[`job-id`]??``)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(oe,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));o(f,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`};function D(e){return e.usage(`$0 logpush account-jobs list
14
14
 
15
15
  Lists Logpush jobs for an account or zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List Logpush jobs`,builder:D,handler:async e=>l({command:`logpush account-jobs list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();u===`zones`?e.zoneId=d:e.accountId=d;let f=await c(`Loading`,async()=>l.send(E,{account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Loaded`})})};var k={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`,body:`json`};function A(e){return e.usage(`$0 logpush account-jobs update <job-id>
16
16
 
17
- Updates a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,demandOption:!0}).option(`destination-conf`,{type:`string`,description:`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`}).option(`enabled`,{type:`boolean`,description:`Flag that indicates if the job is enabled.`}).option(`filter`,{type:`string`,description:`The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/).`}).option(`filter-attack-traffic`,{type:`boolean`,description:"When true, excludes DDoS attack traffic from logs. This option is supported for the `http_requests`, `firewall_events`, and `network_analytics_logs` datasets."}).option(`frequency`,{type:`string`,description:"This field is deprecated. Please use `max_upload_*` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your logs in larger quantities of smaller files. Setting frequency to low sends logs in smaller quantities of larger files.",choices:[`high`,`low`]}).coerce(`frequency`,e=>f(e,`frequency`,`text`)).option(`kind`,{type:`string`,description:`The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset).`,choices:[`edge`]}).coerce(`kind`,e=>f(e,`kind`,`text`)).option(`logpull-options`,{type:`string`,description:"This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the url (full url or just the query string) of your call here, and logpush will keep on making this call for you, setting start and end times appropriately."}).option(`name`,{type:`string`,description:`Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job.`}).option(`output-options-cve-2021-44228`,{type:`boolean`,description:"If set to true, will cause all occurrences of `${` in the generated files to be replaced with `x{`."}).option(`output-options-batch-prefix`,{type:`string`,description:`String to be prepended before each batch.`}).option(`output-options-batch-suffix`,{type:`string`,description:`String to be appended after each batch.`}).option(`output-options-field-delimiter`,{type:`string`,description:"String to join fields. This field be ignored when `record_template` is set."}).option(`output-options-field-names`,{type:`string`,array:!0,description:`List of field names to be included in the Logpush output. For the moment, there is no option to add all fields at once, so you must specify all the fields names you are interested in.`}).option(`output-options-merge-subrequests`,{type:`boolean`,description:"If set to true, subrequests will be merged into the parent request. Only supported for the `http_requests` dataset."}).option(`output-options-output-type`,{type:`string`,description:"Specifies the output type, such as `ndjson` or `csv`. This sets default values for the rest of the settings, depending on the chosen output type. Some formatting rules, like string quoting, are different between output types.",choices:[`ndjson`,`csv`]}).coerce(`output-options-output-type`,e=>f(e,`output-options-output-type`,`text`)).option(`output-options-record-delimiter`,{type:`string`,description:`String to be inserted in-between the records as separator.`}).option(`output-options-record-prefix`,{type:`string`,description:`String to be prepended before each record.`}).option(`output-options-record-suffix`,{type:`string`,description:`String to be appended after each record.`}).option(`output-options-record-template`,{type:`string`,description:"String to use as template for each record instead of the default json key value mapping. All fields used in the template must be present in `field_names` as well, otherwise they will end up as null. Format as a Go `text/template` without any standard functions, like conditionals, loops, sub-templates, etc."}).option(`output-options-sample-rate`,{type:`number`,description:"Specifies the sampling rate as a floating number greater than 0 and at most 1. Sampling is applied on top of filtering, and regardless of the current `sample_interval` of the data."}).option(`output-options-timestamp-format`,{type:`string`,description:"String to specify the format for timestamps, such as `unixnano`, `unix`, `rfc3339`, `rfc3339ms` or `rfc3339ns`.",choices:[`unixnano`,`unix`,`rfc3339`,`rfc3339ms`,`rfc3339ns`]}).coerce(`output-options-timestamp-format`,e=>f(e,`output-options-timestamp-format`,`text`)).option(`ownership-challenge`,{type:`string`,description:`Ownership challenge token to prove destination ownership.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`update <job-id>`,describe:`Update Logpush job`,builder:A,handler:async e=>l({command:`logpush account-jobs update`,classification:{safeFlags:[`enabled`,`filter-attack-traffic`,`frequency`,`kind`,`output-options-cve-2021-44228`,`output-options-merge-subrequests`,`output-options-output-type`,`output-options-timestamp-format`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"job-id":String(e[`job-id`]??``),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),p=e.zone===void 0?`accounts`:`zones`,m=p===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(p===`zones`?e.zoneId=m:e.accountId=m,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(k,{body:t,account_or_zone:p,account_or_zone_id:m,job_id:e[`job-id`]}));o(n,{successLabel:`Updated`});return}let h=d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}),g=await c(`Updating`,async()=>l.send(k,{body:h,account_or_zone:p,account_or_zone_id:m,job_id:e[`job-id`]}));o(g,{successLabel:`Updated`})})},M={command:`account-jobs`,describe:`Operations for account-jobs`,builder:e=>e.command(ne).command(ae).command(T).command(O).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/ownership`,body:`json`};function P(e){return e.usage(`$0 logpush account-ownership create
17
+ Updates a Logpush job.`).positional(`job-id`,{type:`string`,description:`Unique id of the job.`,demandOption:!0}).option(`destination-conf`,{type:`string`,description:`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`}).option(`enabled`,{type:`boolean`,description:`Flag that indicates if the job is enabled.`}).option(`filter`,{type:`string`,description:`The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/).`}).option(`filter-attack-traffic`,{type:`boolean`,description:"When true, excludes DDoS attack traffic from logs. This option is supported for the `http_requests`, `firewall_events`, and `network_analytics_logs` datasets."}).option(`frequency`,{type:`string`,description:"This field is deprecated. Please use `max_upload_*` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your logs in larger quantities of smaller files. Setting frequency to low sends logs in smaller quantities of larger files.",choices:[`high`,`low`]}).coerce(`frequency`,e=>f(e,`frequency`,`text`)).option(`kind`,{type:`string`,description:`The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset).`,choices:[`edge`]}).coerce(`kind`,e=>f(e,`kind`,`text`)).option(`logpull-options`,{type:`string`,description:"This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the url (full url or just the query string) of your call here, and logpush will keep on making this call for you, setting start and end times appropriately."}).option(`name`,{type:`string`,description:`Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job.`}).option(`output-options-cve-2021-44228`,{type:`boolean`,description:"If set to true, will cause all occurrences of `${` in the generated files to be replaced with `x{`."}).option(`output-options-batch-prefix`,{type:`string`,description:`String to be prepended before each batch.`}).option(`output-options-batch-suffix`,{type:`string`,description:`String to be appended after each batch.`}).option(`output-options-field-delimiter`,{type:`string`,description:"String to join fields. This field be ignored when `record_template` is set."}).option(`output-options-field-names`,{type:`string`,array:!0,description:`List of field names to be included in the Logpush output. For the moment, there is no option to add all fields at once, so you must specify all the fields names you are interested in.`}).option(`output-options-merge-subrequests`,{type:`boolean`,description:"If set to true, subrequests will be merged into the parent request. Only supported for the `http_requests` dataset."}).option(`output-options-output-type`,{type:`string`,description:"Specifies the output type, such as `ndjson` or `csv`. This sets default values for the rest of the settings, depending on the chosen output type. Some formatting rules, like string quoting, are different between output types.",choices:[`ndjson`,`csv`]}).coerce(`output-options-output-type`,e=>f(e,`output-options-output-type`,`text`)).option(`output-options-record-delimiter`,{type:`string`,description:`String to be inserted in-between the records as separator.`}).option(`output-options-record-prefix`,{type:`string`,description:`String to be prepended before each record.`}).option(`output-options-record-suffix`,{type:`string`,description:`String to be appended after each record.`}).option(`output-options-record-template`,{type:`string`,description:"String to use as template for each record instead of the default json key value mapping. All fields used in the template must be present in `field_names` as well, otherwise they will end up as null. Format as a Go `text/template` without any standard functions, like conditionals, loops, sub-templates, etc."}).option(`output-options-sample-rate`,{type:`number`,description:"Specifies the sampling rate as a floating number greater than 0 and at most 1. Sampling is applied on top of filtering, and regardless of the current `sample_interval` of the data."}).option(`output-options-timestamp-format`,{type:`string`,description:"String to specify the format for timestamps, such as `unixnano`, `unix`, `rfc3339`, `rfc3339ms` or `rfc3339ns`.",choices:[`unixnano`,`unix`,`rfc3339`,`rfc3339ms`,`rfc3339ns`]}).coerce(`output-options-timestamp-format`,e=>f(e,`output-options-timestamp-format`,`text`)).option(`ownership-challenge`,{type:`string`,description:`Ownership challenge token to prove destination ownership.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`update <job-id>`,describe:`Update Logpush job`,builder:A,handler:async e=>l({command:`logpush account-jobs update`,classification:{safeFlags:[`enabled`,`filter-attack-traffic`,`frequency`,`kind`,`output-options-cve-2021-44228`,`output-options-merge-subrequests`,`output-options-output-type`,`output-options-timestamp-format`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-jobs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i),"job-id":String(e[`job-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),p=e.zone===void 0?`accounts`:`zones`,m=p===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(p===`zones`?e.zoneId=m:e.accountId=m,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(k,{body:t,account_or_zone:p,account_or_zone_id:m,job_id:e[`job-id`]}));o(n,{successLabel:`Updated`});return}let h=d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:f(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:f(e[`logpull-options`],`logpull-options`,`text`),name:f(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:f(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:f(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:f(e[`output-options-field-delimiter`],`output-options-field-delimiter`,`text`),field_names:e[`output-options-field-names`],merge_subrequests:e[`output-options-merge-subrequests`],output_type:e[`output-options-output-type`],record_delimiter:f(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:f(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:f(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:f(e[`output-options-record-template`],`output-options-record-template`,`text`),sample_rate:e[`output-options-sample-rate`],timestamp_format:e[`output-options-timestamp-format`]},ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}),g=await c(`Updating`,async()=>l.send(k,{body:h,account_or_zone:p,account_or_zone_id:m,job_id:e[`job-id`]}));o(g,{successLabel:`Updated`})})},M={command:`account-jobs`,describe:`Operations for account-jobs`,builder:e=>e.command(ne).command(ae).command(T).command(O).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/ownership`,body:`json`};function P(e){return e.usage(`$0 logpush account-ownership create
18
18
 
19
19
  Gets a new ownership challenge sent to your destination.`).option(`destination-conf`,{type:`string`,description:`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const F={command:`create`,describe:`Get ownership challenge`,builder:P,handler:async e=>l({command:`logpush account-ownership create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf logpush account-ownership create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/ownership`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(N,{body:t,account_or_zone:m,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await p(`destination-conf`,`Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.`,{kind:`secret`}));let g=d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`)}),_=await c(`Creating`,async()=>l.send(N,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var I={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/ownership/validate`,body:`json`};function L(e){return e.usage(`$0 logpush account-ownership validate create
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{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,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-BAJpE3jV.mjs";var v={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/available`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function y(e){return e.usage(`$0 logs datasets available
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-MNz2D-PD.mjs";import{a as i,i as a,t as o}from"./context-q-6bMSL-.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-DaQ4MzBI.mjs";import{t as u}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-KWYZvJWM.mjs";var v={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/available`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function y(e){return e.usage(`$0 logs datasets available
3
3
 
4
4
  Returns all dataset types that this account or zone can create. Each entry includes the dataset schema and timestamp field. The schema shows all possible fields for a dataset. However, not all fields may be available for your account or zone. When creating or updating a dataset, only fields available to your account or zone can be enabled. If you request a field that is not available, you will receive an error.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`available`,describe:`List available account or zone datasets`,builder:y,handler:async e=>u({command:`logs datasets available`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf logs datasets available`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/available`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(v,{account_or_zone:u,account_or_zone_id:d}));s(f,{successLabel:`Loaded`})})};var x={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function S(e){return e.usage(`$0 logs datasets create
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{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{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BAJpE3jV.mjs";import{n as _,t as v}from"./raw-fetch-yY-wX5Xx.mjs";function y(e){return e.usage(`$0 magic-cloud-networking catalog-syncs 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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-KWYZvJWM.mjs";import{n as _,t as v}from"./raw-fetch-Cy09TjHc.mjs";function y(e){return e.usage(`$0 magic-cloud-networking catalog-syncs create
3
3
 
4
4
  Create a new Catalog Sync (Closed Beta).`).option(`forwarded`,{type:`string`,description:`The forwarded header`}).option(`description`,{type:`string`,description:`The description field`}).option(`destination-type`,{type:`string`,description:`The destination_type field`,choices:[`NONE`,`ZERO_TRUST_LIST`]}).coerce(`destination-type`,e=>p(e,`destination-type`,`text`)).option(`name`,{type:`string`,description:`The name field`}).option(`policy`,{type:`string`,description:`The policy field`}).option(`update-mode`,{type:`string`,description:`The update_mode field`,choices:[`AUTO`,`MANUAL`]}).coerce(`update-mode`,e=>p(e,`update-mode`,`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 ee={command:`create`,describe:`Create Catalog Sync`,builder:y,handler:async e=>l({command:`magic-cloud-networking catalog-syncs create`,classification:{safeFlags:[`destination-type`,`update-mode`,`dry-run`]}},e,async()=>{let l={};if(e.forwarded!==void 0&&(l.forwarded=String(e.forwarded)),e.dryRun){let t=await i();s({command:`cf magic-cloud-networking catalog-syncs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/cloud/catalog-syncs`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),destination_type:e[`destination-type`],name:p(e.name,`name`,`text`),policy:p(e.policy,`policy`,`text`),update_mode:e[`update-mode`]}):d(e.body)});return}let g=await r(e),_=e.local?t:await a();if(e.accountId=_,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n(g,`POST`,`/accounts/${_}/magic/cloud/catalog-syncs`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Created`});return}e[`destination-type`]===void 0&&(e[`destination-type`]=await h(`destination-type`,`The destination_type field`,[`NONE`,`ZERO_TRUST_LIST`])),e.name===void 0&&(e.name=await m(`name`,`The name field`)),e[`update-mode`]===void 0&&(e[`update-mode`]=await h(`update-mode`,`The update_mode field`,[`AUTO`,`MANUAL`]));let v={};e.description!==void 0&&u(v,[`description`],p(e.description,`description`,`text`)),e[`destination-type`]!==void 0&&u(v,[`destination_type`],e[`destination-type`]),e.name!==void 0&&u(v,[`name`],p(e.name,`name`,`text`)),e.policy!==void 0&&u(v,[`policy`],p(e.policy,`policy`,`text`)),e[`update-mode`]!==void 0&&u(v,[`update_mode`],e[`update-mode`]);let y=await c(`Creating`,async()=>n(g,`POST`,`/accounts/${_}/magic/cloud/catalog-syncs`,{body:v,headers:Object.keys(l).length>0?l:void 0}));o(y,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/magic/cloud/catalog-syncs/${t.sync_id}`,query:[`delete_destination`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function te(e){return e.usage(`$0 magic-cloud-networking catalog-syncs delete <sync-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{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,r as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BAJpE3jV.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/mnm/config`,body:`json`};function ee(e){return e.usage(`$0 magic-network-monitoring configs 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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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,i as h,n as g}from"./prompt-KWYZvJWM.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/mnm/config`,body:`json`};function ee(e){return e.usage(`$0 magic-network-monitoring configs create
3
3
 
4
4
  Create a new network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`,default:1}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Create account configuration`,builder:ee,handler:async e=>l({command:`magic-network-monitoring configs create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf magic-network-monitoring configs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({default_sampling:e[`default-sampling`],name:p(e.name,`name`,`text`),router_ips:e[`router-ips`],warp_devices:d(e[`warp-devices`],`warp-devices`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e[`default-sampling`]===void 0)throw Error(`--default-sampling is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`The account name.`));let h=f({default_sampling:e[`default-sampling`],name:p(e.name,`name`,`text`),router_ips:e[`router-ips`],warp_devices:d(e[`warp-devices`],`warp-devices`)}),g=await c(`Creating`,async()=>n.send(_,{body:h,account_id:l}));o(g,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/mnm/config`};function b(e){return e.usage(`$0 magic-network-monitoring configs delete
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{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{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-BAJpE3jV.mjs";import{n as v,t as ee}from"./raw-fetch-yY-wX5Xx.mjs";var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/magic/advanced_dns_protection/configs/dns_protection/rules`};function ne(e){return e.usage(`$0 magic-transit advanced-dns-protection configs dns protection rules bulk-delete
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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-KWYZvJWM.mjs";import{n as v,t as ee}from"./raw-fetch-Cy09TjHc.mjs";var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/magic/advanced_dns_protection/configs/dns_protection/rules`};function ne(e){return e.usage(`$0 magic-transit advanced-dns-protection configs dns protection rules bulk-delete
3
3
 
4
4
  Delete all DNS Protection rules 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 re={command:`bulk-delete`,describe:`Delete all DNS Protection rules.`,builder:ne,handler:async e=>l({command:`magic-transit advanced-dns-protection configs dns protection rules bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf magic-transit advanced-dns-protection configs dns protection rules bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/magic/advanced_dns_protection/configs/dns_protection/rules`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await _({force:!!e.force})){process.stderr.write(`Aborted.
5
5
  `);return}let u=await c(`Deleting`,async()=>n.send(te,{account_id:l}));o(u,{successLabel:`Deleted`})})};var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/magic/advanced_dns_protection/configs/dns_protection/rules`,body:`json`};function ie(e){return e.usage(`$0 magic-transit advanced-dns-protection configs dns protection rules create
@@ -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,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{i as u,n 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`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/repos/${t.repo_id}/scans/${t.scan_id}/report`,errors:{404:`NotFoundError`}};function g(e){return e.usage(`$0 managed-defense vulnerability-discovery reports get <scan-id>
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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n 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-KWYZvJWM.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/repos/${t.repo_id}/scans/${t.scan_id}/report`,errors:{404:`NotFoundError`}};function g(e){return e.usage(`$0 managed-defense vulnerability-discovery reports get <scan-id>
3
3
 
4
4
  Gets the repository projection of the active operator-reviewed scan report. \`scan_id\` is the customer scan's stable request ID.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`repo-id`,{type:`string`,description:`Repo ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <scan-id>`,describe:`Get reviewed vulnerability report`,builder:g,handler:async e=>l({command:`managed-defense vulnerability-discovery reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/repos/${e[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(e[`repo-id`]))}/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}/report`,pathParams:{"repo-id":String(e[`repo-id`]??``),"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(h,{account_id:l,repo_id:e[`repo-id`],scan_id:e[`scan-id`]}));o(u,{successLabel:`Loaded`})})},v={command:`reports`,describe:`Operations for vulnerability-discovery.reports`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 managed-defense vulnerability-discovery repositories create
5
5
 
@@ -9,10 +9,10 @@ Gets repository metadata, source readiness, and customer scan history.`).positio
9
9
 
10
10
  Lists repositories available for vulnerability discovery in an account.`).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List repositories`,builder:T,handler:async e=>l({command:`managed-defense vulnerability-discovery repositories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,cursor:e.cursor};if(e.dryRun){let e=await i();s({command:`cf managed-defense vulnerability-discovery repositories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/managed-defense/vulnerability-discovery/repos`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(w,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},D={command:`repositories`,describe:`Operations for vulnerability-discovery.repositories`,builder:e=>e.command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function O(e){return e.usage(`$0 managed-defense vulnerability-discovery scans create
11
11
 
12
- Submits repository intent for operator review. This endpoint does not immediately start execution. Worker-imported repositories must be ready; explicit \`repo_hosts\` must be authorized before the request is persisted.`).option(`idempotency-key`,{type:`string`,description:"Optional. Supply this header to safely retry a request. Required when `worker_script_name` is supplied."}).option(`repos`,{type:`string`,array:!0,description:`The repos field`}).option(`telemetry-window-end`,{type:`string`,description:`The telemetry_window.end field`}).option(`telemetry-window-start`,{type:`string`,description:`The telemetry_window.start 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)`}).check(e=>{if([`telemetry-window-end`,`telemetry-window-start`].some(t=>e[t]!==void 0)){let t=[`telemetry-window-end`,`telemetry-window-start`].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 --telemetry_window-* flag is set`)}return!0})}const k={command:`create`,describe:`Create scan`,builder:O,handler:async e=>l({command:`managed-defense vulnerability-discovery scans create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`idempotency-key`]!==void 0&&(l[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({repos:e.repos,telemetry_window:{end:p(e[`telemetry-window-end`],`telemetry-window-end`,`text`),start:p(e[`telemetry-window-start`],`telemetry-window-start`,`text`)}}):d(e.body)});return}let m=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Created`});return}if(e.repos===void 0)throw Error(`--repos is required (or pass --body with this field set).`);let g={};e.repos!==void 0&&u(g,[`repos`],e.repos),e[`telemetry-window-end`]!==void 0&&u(g,[`telemetry_window`,`end`],p(e[`telemetry-window-end`],`telemetry-window-end`,`text`)),e[`telemetry-window-start`]!==void 0&&u(g,[`telemetry_window`,`start`],p(e[`telemetry-window-start`],`telemetry-window-start`,`text`));let _=await c(`Creating`,async()=>n(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:g,headers:Object.keys(l).length>0?l:void 0}));o(_,{successLabel:`Created`})})};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans/${t.scan_id}`,errors:{404:`NotFoundError`}};function j(e){return e.usage(`$0 managed-defense vulnerability-discovery scans get <scan-id>
12
+ Submits repository intent for operator review. This endpoint does not immediately start execution. Worker-imported repositories must be ready; explicit \`repo_hosts\` must be authorized before the request is persisted.`).option(`idempotency-key`,{type:`string`,description:"Optional. Supply this header to safely retry a request. Required when `worker_script_name` is supplied."}).option(`repos`,{type:`string`,array:!0,description:`The repos field`}).option(`telemetry-window-end`,{type:`string`,description:`The telemetry_window.end field`}).option(`telemetry-window-start`,{type:`string`,description:`The telemetry_window.start 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)`}).check(e=>{if([`telemetry-window-end`,`telemetry-window-start`].some(t=>e[t]!==void 0)){let t=[`telemetry-window-end`,`telemetry-window-start`].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 --telemetry_window-* flag is set`)}return!0})}const k={command:`create`,describe:`Create scan`,builder:O,handler:async e=>l({command:`managed-defense vulnerability-discovery scans create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`idempotency-key`]!==void 0&&(l[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({repos:e.repos,telemetry_window:{end:p(e[`telemetry-window-end`],`telemetry-window-end`,`text`),start:p(e[`telemetry-window-start`],`telemetry-window-start`,`text`)}}):d(e.body)});return}let m=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Created`});return}if(e.repos===void 0)throw Error(`--repos is required (or pass --body with this field set).`);let g={};e.repos!==void 0&&u(g,[`repos`],e.repos),e[`telemetry-window-end`]!==void 0&&u(g,[`telemetry_window`,`end`],p(e[`telemetry-window-end`],`telemetry-window-end`,`text`)),e[`telemetry-window-start`]!==void 0&&u(g,[`telemetry_window`,`start`],p(e[`telemetry-window-start`],`telemetry-window-start`,`text`));let _=await c(`Creating`,async()=>n(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:g,headers:Object.keys(l).length>0?l:void 0}));o(_,{successLabel:`Created`})})};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans/${t.scan_id}/report`,errors:{404:`NotFoundError`}};function j(e){return e.usage(`$0 managed-defense vulnerability-discovery scans get-report <scan-id>
13
13
 
14
- Gets one customer-requested scan across its review and execution lifecycle.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get <scan-id>`,describe:`Get scan`,builder:j,handler:async e=>l({command:`managed-defense vulnerability-discovery scans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/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),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(A,{account_id:l,scan_id:e[`scan-id`]}));o(u,{successLabel:`Loaded`})})};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans/${t.scan_id}/report`,errors:{404:`NotFoundError`}};function P(e){return e.usage(`$0 managed-defense vulnerability-discovery scans getReport <scan-id>
14
+ Gets the active operator-reviewed scan report. Repository metadata records report readiness even when no publication is available.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get-report <scan-id>`,describe:`Get reviewed vulnerability report`,builder:j,handler:async e=>l({command:`managed-defense vulnerability-discovery scans get-report`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans get-report`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}/report`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(A,{account_id:l,scan_id:e[`scan-id`]}));o(u,{successLabel:`Loaded`})})};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans/${t.scan_id}`,errors:{404:`NotFoundError`}};function P(e){return e.usage(`$0 managed-defense vulnerability-discovery scans get <scan-id>
15
15
 
16
- Gets the active operator-reviewed scan report. Repository metadata records report readiness even when no publication is available.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`getReport <scan-id>`,describe:`Get reviewed vulnerability report`,builder:P,handler:async e=>l({command:`managed-defense vulnerability-discovery scans getReport`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans getReport`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}/report`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(N,{account_id:l,scan_id:e[`scan-id`]}));o(u,{successLabel:`Loaded`})})};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans`,query:[`limit`,`cursor`,`status`,`repo`],errors:{404:`NotFoundError`}};function L(e){return e.usage(`$0 managed-defense vulnerability-discovery scans list
16
+ Gets one customer-requested scan across its review and execution lifecycle.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get <scan-id>`,describe:`Get scan`,builder:P,handler:async e=>l({command:`managed-defense vulnerability-discovery scans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf managed-defense vulnerability-discovery scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/managed-defense/vulnerability-discovery/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),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(N,{account_id:l,scan_id:e[`scan-id`]}));o(u,{successLabel:`Loaded`})})};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/managed-defense/vulnerability-discovery/scans`,query:[`limit`,`cursor`,`status`,`repo`],errors:{404:`NotFoundError`}};function L(e){return e.usage(`$0 managed-defense vulnerability-discovery scans list
17
17
 
18
- Lists customer-requested scans across review and execution lifecycle states.`).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`status`,{type:`string`,description:`Repeat parameter or provide comma-separated values.`}).option(`repo`,{type:`string`,description:`Repo`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`list`,describe:`List scans`,builder:L,handler:async e=>l({command:`managed-defense vulnerability-discovery scans list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,cursor:e.cursor,status:e.status,repo:e.repo};if(e.dryRun){let e=await i();s({command:`cf managed-defense vulnerability-discovery scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(I,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},z={command:`scans`,describe:`Operations for vulnerability-discovery.scans`,builder:e=>e.command(k).command(M).command(F).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`vulnerability-discovery`,describe:`Operations for vulnerability-discovery`,builder:e=>e.command(v).command(D).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`managed-defense`,describe:`managed-defense`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{V as default};
18
+ Lists customer-requested scans across review and execution lifecycle states.`).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`status`,{type:`string`,description:`Repeat parameter or provide comma-separated values.`}).option(`repo`,{type:`string`,description:`Repo`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`list`,describe:`List scans`,builder:L,handler:async e=>l({command:`managed-defense vulnerability-discovery scans list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,cursor:e.cursor,status:e.status,repo:e.repo};if(e.dryRun){let e=await i();s({command:`cf managed-defense vulnerability-discovery scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(I,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},z={command:`scans`,describe:`Operations for vulnerability-discovery.scans`,builder:e=>e.command(k).command(F).command(M).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`vulnerability-discovery`,describe:`Operations for vulnerability-discovery`,builder:e=>e.command(v).command(D).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`managed-defense`,describe:`managed-defense`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{V as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-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:`DELETE`,path:t=>e`/zones/${t.zone_id}/managed_headers`,response:!1};function f(e){return e.usage(`$0 managed-transforms delete
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./prompt-KWYZvJWM.mjs";var d={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/managed_headers`,response:!1};function f(e){return e.usage(`$0 managed-transforms delete
3
3
 
4
4
  Disables all Managed Transforms.`).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 p={command:`delete`,describe:`Delete Managed Transforms`,builder:f,handler:async e=>o({command:`managed-transforms delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf managed-transforms delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/managed_headers`,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});if(e.zoneId=s,!await u({force:!!e.force})){process.stderr.write(`Aborted.
5
5
  `);return}let c=await a(`Deleting`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Deleted`})})};var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/managed_headers`};function h(e){return e.usage(`$0 managed-transforms 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,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";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/matches/download`,query:[`id`,`offset`,`limit`,`include_domain_id`,`include_dismissed`],errors:{422:`UnprocessableEntityError`}};function u(e){return e.usage(`$0 matches download 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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/matches/download`,query:[`id`,`offset`,`limit`,`include_domain_id`,`include_dismissed`],errors:{422:`UnprocessableEntityError`}};function u(e){return e.usage(`$0 matches download get
3
3
 
4
4
  Return matches as CSV for string queries based on ID`).option(`id`,{type:`string`,description:`ID`}).option(`offset`,{type:`number`,description:`Offset`}).option(`limit`,{type:`number`,description:`Limit`}).option(`include-domain-id`,{type:`boolean`,description:`Include domain ID`}).option(`include-dismissed`,{type:`boolean`,description:`Include dismissed`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Download matches for string queries by ID`,builder:u,handler:async e=>c({command:`matches download get`,classification:{safeFlags:[`include-domain-id`,`include-dismissed`,`dry-run`]}},e,async()=>{let c={id:e.id,offset:e.offset,limit:e.limit,include_domain_id:e[`include-domain-id`],include_dismissed:e[`include-dismissed`]};if(e.dryRun){let e=await r();o({command:`cf matches download get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/brand-protection/matches/download`,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:`download`,describe:`Operations for download`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var p={method:`GET`,path:t=>e`/accounts/${t.account_id}/brand-protection/matches`,query:[`id`,`offset`,`limit`,`include_domain_id`,`include_dismissed`],errors:{422:`UnprocessableEntityError`}};function m(e){return e.usage(`$0 matches 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,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}/access/ai-controls/mcp/analytics/tool-calls/timeseries`,query:[`granularity`,`aggregate`,`tz`,`days`],errors:{400:`BadRequestError`}};function _(e){return e.usage(`$0 mcp portals account-tool-call-analytics
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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-KWYZvJWM.mjs";var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/ai-controls/mcp/analytics/tool-calls/timeseries`,query:[`granularity`,`aggregate`,`tz`,`days`],errors:{400:`BadRequestError`}};function _(e){return e.usage(`$0 mcp portals account-tool-call-analytics
3
3
 
4
4
  Returns daily or monthly tool-call counts across the account.`).option(`granularity`,{type:`string`,description:`Granularity`,choices:[`daily`,`monthly`]}).option(`aggregate`,{type:`string`,description:`Aggregate`,choices:[`true`,`false`]}).option(`tz`,{type:`string`,description:`Tz`}).option(`days`,{type:`number`,description:`Daily trailing-window size; defaults to 7 and is ignored for monthly`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`account-tool-call-analytics`,describe:`Account-global MCP tool-call timeseries`,builder:_,handler:async e=>c({command:`mcp portals account-tool-call-analytics`,classification:{safeFlags:[`granularity`,`aggregate`,`dry-run`]}},e,async()=>{let c={granularity:e.granularity,aggregate:e.aggregate,tz:e.tz,days:e.days};if(e.dryRun){let e=await r();o({command:`cf mcp portals account-tool-call-analytics`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/access/ai-controls/mcp/analytics/tool-calls/timeseries`,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`})})};var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/ai-controls/mcp/portals`,body:`json`,errors:{400:`BadRequestError`}};function b(e){return e.usage(`$0 mcp portals create
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{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{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BAJpE3jV.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/warp_connector/${t.tunnel_id}/configurations`};function v(e){return e.usage(`$0 mesh nodes configurations get <tunnel-id>
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-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-KWYZvJWM.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/warp_connector/${t.tunnel_id}/configurations`};function v(e){return e.usage(`$0 mesh nodes configurations get <tunnel-id>
3
3
 
4
4
  Gets the high-availability configuration for a Mesh node.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <tunnel-id>`,describe:`Get Mesh node HA configuration`,builder:v,handler:async e=>l({command:`mesh nodes configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf mesh nodes configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/warp_connector/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(_,{account_id:l,tunnel_id:e[`tunnel-id`]}));o(u,{successLabel:`Loaded`})})};var b={method:`PUT`,path:t=>e`/accounts/${t.account_id}/warp_connector/${t.tunnel_id}/configurations`,body:`json`};function x(e){return e.usage(`$0 mesh nodes configurations update <tunnel-id>
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import"./ui-BtIBQeaG.mjs";import{i as t,r as n,t as r}from"./wrangler-migration-DxTB5yPT.mjs";function i(e){return e.positional(`path`,{type:`string`,description:`Path to a Wrangler configuration file`}).option(`bundler`,{choices:[`vite`,`wrangler`],description:`Bundler to use in the migrated project (defaults to vite when @cloudflare/vite-plugin is declared, otherwise wrangler)`}).option(`dry-run`,{type:`boolean`,default:!1,description:`Show the files that would change without writing them`}).option(`force`,{type:`boolean`,default:!1,description:`Run even if the Git worktree is not clean`}).option(`install`,{type:`boolean`,default:!0,description:`Install cf as a project dependency (use --no-install to skip)`})}function a(t){console.log(e.muted(t===`vite`?`Using the Vite bundler because @cloudflare/vite-plugin is declared. Pass --bundler wrangler to override.`:`Using the Wrangler bundler because @cloudflare/vite-plugin is not declared. Pass --bundler vite to override.`))}const o={command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,builder:i,handler:async e=>{let i=await n(e.path),o=e.bundler??await r(i);e.bundler===void 0&&a(o),await t(i,{bundler:o,dryRun:e[`dry-run`],force:e.force,installDependencies:e.install})}};export{o as default};
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import"./ui-BtIBQeaG.mjs";import{i as t,r as n,t as r}from"./wrangler-migration-R9TQ_4Qd.mjs";function i(e){return e.positional(`path`,{type:`string`,description:`Path to a Wrangler configuration file`}).option(`bundler`,{choices:[`vite`,`wrangler`],description:`Bundler to use in the migrated project (defaults to vite when @cloudflare/vite-plugin is declared, otherwise wrangler)`}).option(`dry-run`,{type:`boolean`,default:!1,description:`Show the files that would change without writing them`}).option(`force`,{type:`boolean`,default:!1,description:`Run even if the Git worktree is not clean`}).option(`install`,{type:`boolean`,default:!0,description:`Install cf as a project dependency (use --no-install to skip)`})}function a(t){console.log(e.muted(t===`vite`?`Using the Vite bundler because @cloudflare/vite-plugin is declared. Pass --bundler wrangler to override.`:`Using the Wrangler bundler because @cloudflare/vite-plugin is not declared. Pass --bundler vite to override.`))}const o={command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,builder:i,handler:async e=>{let i=await n(e.path),o=e.bundler??await r(i);e.bundler===void 0&&a(o),await t(i,{bundler:o,dryRun:e[`dry-run`],force:e.force,installDependencies:e.install})}};export{o 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{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{n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/monetization`,body:`json`,constants:{acceptedTermsOfService:!0}};function g(e){return e.usage(`$0 monetization account-eligibility check
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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{n as m}from"./prompt-KWYZvJWM.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/monetization`,body:`json`,constants:{acceptedTermsOfService:!0}};function g(e){return e.usage(`$0 monetization account-eligibility check
3
3
 
4
4
  Checks the account or zone for Monetization Gateway eligibility and returns its pending, approved, or rejected decision.`).option(`accepted-terms-of-service`,{type:`boolean`,description:`Confirms acceptance of the Monetization Gateway terms of service.`}).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 _={command:`check`,describe:`Check account or zone monetization eligibility`,builder:g,handler:async e=>l({command:`monetization account-eligibility check`,classification:{safeFlags:[`accepted-terms-of-service`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf monetization account-eligibility check`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/monetization`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({acceptedTermsOfService:e[`accepted-terms-of-service`]}):u(e.body)});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,p=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=p:e.accountId=p,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(h,{body:t,account_or_zone:d,account_or_zone_id:p}));o(n,{successLabel:`Created`});return}if(e[`accepted-terms-of-service`]===void 0)throw Error(`--accepted-terms-of-service is required (or pass --body with this field set).`);let m=f({acceptedTermsOfService:e[`accepted-terms-of-service`]}),g=await c(`Creating`,async()=>l.send(h,{body:m,account_or_zone:d,account_or_zone_id:p}));o(g,{successLabel:`Created`})})};var v={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/monetization`,errors:{404:`NotFoundError`}};function y(e){return e.usage(`$0 monetization account-eligibility 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,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:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}/associations`};function h(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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-KWYZvJWM.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}/associations`};function h(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-id>
3
3
 
4
4
  Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:h,handler:async e=>c({command:`mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}/associations`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},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(m,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));a(u,{successLabel:`Loaded`})})},_={command:`associations`,describe:`Operations for associations`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,body:`json`};function y(e){return e.usage(`$0 mtls-certificates create
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";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,body:`json`};function h(e){return e.usage(`$0 network routes cidr 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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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-KWYZvJWM.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,body:`json`};function h(e){return e.usage(`$0 network routes cidr create
3
3
 
4
4
  Routes a private network through a Cloudflare Tunnel.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`,default:``}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).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:`create`,describe:`Create a tunnel route`,builder:h,handler:async e=>c({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`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}));a(n,{successLabel:`Created`});return}e.network===void 0&&(e.network=await f(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let h=u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`};function v(e){return e.usage(`$0 network routes cidr delete <route-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,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}/cni/cnis`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 network-interconnects cnis 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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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-KWYZvJWM.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/cni/cnis`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 network-interconnects cnis create
3
3
 
4
4
  Creates a new Cloud Network Interconnect (CNI) for private network connectivity between Cloudflare and your infrastructure. CNIs enable dedicated, high-performance network links.`).option(`account`,{type:`string`,description:`Customer account tag`}).option(`bgp-customer-asn`,{type:`number`,description:`ASN used on the customer end of the BGP session`}).option(`bgp-extra-prefixes`,{type:`string`,array:!0,description:`Extra set of static prefixes to advertise to the customer's end of the session
5
5
  Prefixes containing host bits will be normalized to contain network bits only.
@@ -1,11 +1,11 @@
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,i as h,n as g}from"./prompt-BAJpE3jV.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/observability/agents/sessions`,query:[`service`,`agent`,`from`,`to`,`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`,504:`GatewayTimeoutError`}};function ee(e){return e.usage(`$0 o11y agents sessions 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-MNz2D-PD.mjs";import{a as r,i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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,i as h,n as g}from"./prompt-KWYZvJWM.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/observability/agents/sessions`,query:[`service`,`agent`,`from`,`to`,`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`,504:`GatewayTimeoutError`}};function ee(e){return e.usage(`$0 o11y agents sessions list
3
3
 
4
4
  List the Sessions of one Agent in one Worker service observed in the window, most recently active first. A Session groups the Traces containing an invocation of the Agent with the same gen_ai.conversation.id. Results describe observed activity in the window, not complete history.`).option(`service`,{type:`string`,description:`Worker service that emitted the Agent invocations.`,demandOption:!0}).option(`agent`,{type:`string`,description:`Agent name reported by the invocations (gen_ai.agent.name).`,demandOption:!0}).option(`from`,{type:`number`,description:`Start of the window, as Unix epoch milliseconds. Clamped to the 7-day retention period.`,demandOption:!0}).option(`to`,{type:`number`,description:`End of the window, as Unix epoch milliseconds. Must be later than from.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Opaque cursor returned in result_info.cursors.after.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`List Agent sessions`,builder:ee,handler:async e=>l({command:`o11y agents sessions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={service:e.service,agent:e.agent,from:e.from,to:e.to,cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let e=await r();s({command:`cf o11y agents sessions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/observability/agents/sessions`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(_,{account_id:u,...i}));o(d,{successLabel:`Loaded`})})};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/observability/agents/sessions/${t.conversationId}/runs`,query:[`service`,`agent`,`from`,`to`,`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`,504:`GatewayTimeoutError`}};function v(e){return e.usage(`$0 o11y agents sessions runs <conversationId>
5
5
 
6
6
  List the Trace-level runs of one Session, newest invocation first. A run is a Trace containing an invocation of the Agent in the Conversation; the Agent need not own the Trace.`).positional(`conversation-id`,{type:`string`,description:`GenAI conversation identifier (gen_ai.conversation.id) of the Session.`,demandOption:!0}).option(`service`,{type:`string`,description:`Worker service that emitted the Agent invocations.`,demandOption:!0}).option(`agent`,{type:`string`,description:`Agent name reported by the invocations (gen_ai.agent.name).`,demandOption:!0}).option(`from`,{type:`number`,description:`Start of the window, as Unix epoch milliseconds. Clamped to the 7-day retention period.`,demandOption:!0}).option(`to`,{type:`number`,description:`End of the window, as Unix epoch milliseconds. Must be later than from.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Opaque cursor returned in result_info.cursors.after.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`runs <conversationId>`,describe:`List Agent session runs`,builder:v,handler:async e=>l({command:`o11y agents sessions runs`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={service:e.service,agent:e.agent,from:e.from,to:e.to,cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let t=await r();s({command:`cf o11y agents sessions runs`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/observability/agents/sessions/${e[`conversation-id`]==null?`<conversation-id>`:encodeURIComponent(String(e[`conversation-id`]))}/runs`,pathParams:{"conversation-id":String(e[`conversation-id`]??``)},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(ne,{account_id:u,conversationId:e[`conversation-id`],...i}));o(d,{successLabel:`Loaded`})})},re={command:`sessions`,describe:`Operations for agents.sessions`,builder:e=>e.command(te).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ie={command:`agents`,describe:`Operations for agents`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/workers/observability/destinations`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function ae(e){return e.usage(`$0 o11y destinations create
7
7
 
8
- Create a new Workers Observability Telemetry Destination.`).option(`configuration-type`,{type:`string`,description:`The configuration.type field`,choices:[`logpush`]}).coerce(`configuration-type`,e=>p(e,`configuration-type`,`text`)).option(`configuration-url`,{type:`string`,description:`The configuration.url field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`name`,{type:`string`,description:`The name field`}).option(`skip-preflight-check`,{type:`boolean`,description:`The skipPreflightCheck 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 oe={command:`create`,describe:`Create Destination`,builder:ae,handler:async e=>l({command:`o11y destinations create`,classification:{safeFlags:[`configuration-type`,`enabled`,`skip-preflight-check`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf o11y destinations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/observability/destinations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({configuration:{type:e[`configuration-type`],url:p(e[`configuration-url`],`configuration-url`,`text`)},enabled:e.enabled,name:p(e.name,`name`,`text`),skipPreflightCheck:e[`skip-preflight-check`]}):u(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),n=await c(`Creating`,async()=>i.send(b,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}if(e[`configuration-type`]===void 0&&(e[`configuration-type`]=await h(`configuration-type`,`The configuration.type field`,[`logpush`])),e[`configuration-url`]===void 0&&(e[`configuration-url`]=await m(`configuration-url`,`The configuration.url field`)),e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`The name field`));let d=f({configuration:{type:e[`configuration-type`],url:p(e[`configuration-url`],`configuration-url`,`text`)},enabled:e.enabled,name:p(e.name,`name`,`text`),skipPreflightCheck:e[`skip-preflight-check`]}),g=await c(`Creating`,async()=>i.send(b,{body:d,account_id:l}));o(g,{successLabel:`Created`})})};var se={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/observability/destinations/${t.slug}`,errors:{401:`UnauthorizedError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function ce(e){return e.usage(`$0 o11y destinations delete <slug>
8
+ Create a new Workers Observability Telemetry Destination.`).option(`configuration-logpush-dataset`,{type:`string`,description:`The configuration.logpushDataset field`,choices:[`opentelemetry-traces`,`opentelemetry-logs`,`opentelemetry-metrics`]}).coerce(`configuration-logpush-dataset`,e=>p(e,`configuration-logpush-dataset`,`text`)).option(`configuration-type`,{type:`string`,description:`The configuration.type field`,choices:[`logpush`]}).coerce(`configuration-type`,e=>p(e,`configuration-type`,`text`)).option(`configuration-url`,{type:`string`,description:`The configuration.url field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`name`,{type:`string`,description:`The name field`}).option(`skip-preflight-check`,{type:`boolean`,description:`The skipPreflightCheck 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 oe={command:`create`,describe:`Create Destination`,builder:ae,handler:async e=>l({command:`o11y destinations create`,classification:{safeFlags:[`configuration-logpush-dataset`,`configuration-type`,`enabled`,`skip-preflight-check`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf o11y destinations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/observability/destinations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({configuration:{logpushDataset:e[`configuration-logpush-dataset`],type:e[`configuration-type`],url:p(e[`configuration-url`],`configuration-url`,`text`)},enabled:e.enabled,name:p(e.name,`name`,`text`),skipPreflightCheck:e[`skip-preflight-check`]}):u(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),n=await c(`Creating`,async()=>i.send(b,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}if(e[`configuration-logpush-dataset`]===void 0&&(e[`configuration-logpush-dataset`]=await h(`configuration-logpush-dataset`,`The configuration.logpushDataset field`,[`opentelemetry-traces`,`opentelemetry-logs`,`opentelemetry-metrics`])),e[`configuration-type`]===void 0&&(e[`configuration-type`]=await h(`configuration-type`,`The configuration.type field`,[`logpush`])),e[`configuration-url`]===void 0&&(e[`configuration-url`]=await m(`configuration-url`,`The configuration.url field`)),e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`The name field`));let d=f({configuration:{logpushDataset:e[`configuration-logpush-dataset`],type:e[`configuration-type`],url:p(e[`configuration-url`],`configuration-url`,`text`)},enabled:e.enabled,name:p(e.name,`name`,`text`),skipPreflightCheck:e[`skip-preflight-check`]}),g=await c(`Creating`,async()=>i.send(b,{body:d,account_id:l}));o(g,{successLabel:`Created`})})};var se={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/observability/destinations/${t.slug}`,errors:{401:`UnauthorizedError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function ce(e){return e.usage(`$0 o11y destinations delete <slug>
9
9
 
10
10
  Delete a Workers Observability Telemetry Destination.`).positional(`slug`,{type:`string`,description:`Slug`,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 le={command:`delete <slug>`,describe:`Delete Destination`,builder:ce,handler:async e=>l({command:`o11y destinations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf o11y destinations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/observability/destinations/${e.slug==null?`<slug>`:encodeURIComponent(String(e.slug))}`,pathParams:{slug:String(e.slug??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force})){process.stderr.write(`Aborted.
11
11
  `);return}let u=await c(`Deleting`,async()=>i.send(se,{account_id:l,slug:e.slug}));o(u,{successLabel:`Deleted`})})};var ue={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/observability/destinations`,query:[`page`,`perPage`,`order`,`orderBy`],errors:{401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function de(e){return e.usage(`$0 o11y destinations list
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,f as t,n}from"./oauth-CfEedDZi.mjs";export{n as getActiveAccountId,e as getOrSelectAccountId,t as resolveProfile};
2
+ import{a as e,f as t,n}from"./oauth-CP82E1_0.mjs";export{n as getActiveAccountId,e as getOrSelectAccountId,t as resolveProfile};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";import{n as i,t as a}from"./version-B6MnUIqV.mjs";import{n as o}from"./blocks-Bat9A8V_.mjs";import{n as s,t as c}from"./project-settings-nBMEx1f-.mjs";import{a as l,n as u,t as d}from"./cf-Bq4pA4n6.mjs";import{i as f,n as p,o as m,s as h}from"./dist-uRuGmkMB.mjs";import{n as g}from"./interactive-BW9T1D1q.mjs";import{n as _}from"./context-A6T-NKPI.mjs";import{relative as v}from"node:path";function y(t,n={}){let{cwd:r=process.cwd(),output:i=process.stderr}=n,a=n.columns??(i.columns||80),l=s(r),u=l?v(r,l):c,d=l?`To make this the project's default account, add accountId to ${u}:`:`To make this the project's default account, create ${u}:`,f=/* @__PURE__ */ new Set([`accountId`,u]),m=o(d,Math.max(20,a-3)).map(t=>t.split(` `).map(t=>{let n=t.replace(/:$/,``);return f.has(n)?`${e.code(n)}${t.slice(n.length)}`:t}).join(` `));p.info(m.join(`
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";import{n as i,t as a}from"./version-CAuKDZAG.mjs";import{n as o}from"./blocks-Bat9A8V_.mjs";import{n as s,t as c}from"./project-settings-nBMEx1f-.mjs";import{a as l,n as u,t as d}from"./cf-Bq4pA4n6.mjs";import{i as f,n as p,o as m,s as h}from"./dist-uRuGmkMB.mjs";import{n as g}from"./interactive-BW9T1D1q.mjs";import{n as _}from"./context-q-6bMSL-.mjs";import{relative as v}from"node:path";function y(t,n={}){let{cwd:r=process.cwd(),output:i=process.stderr}=n,a=n.columns??(i.columns||80),l=s(r),u=l?v(r,l):c,d=l?`To make this the project's default account, add accountId to ${u}:`:`To make this the project's default account, create ${u}:`,f=/* @__PURE__ */ new Set([`accountId`,u]),m=o(d,Math.max(20,a-3)).map(t=>t.split(` `).map(t=>{let n=t.replace(/:$/,``);return f.has(n)?`${e.code(n)}${t.slice(n.length)}`:t}).join(` `));p.info(m.join(`
3
3
  `),{output:i});let h=`accountId: ${e.jsonString(JSON.stringify(t))},`,g=l?[h]:[`import { defineConfig } from "cf/config";`,``,`export default defineConfig({`,` ${h}`,`});`],_=` `.repeat(3);i.write(`\n${g.map(e=>e&&_+e).join(`
4
4
  `)}\n\n`)}const b={debug:(...e)=>{process.env.DEBUG&&console.error(...e)},info:(...e)=>console.error(...e),log:(...e)=>console.error(...e),warn:(...e)=>console.error(...e),error:(...e)=>console.error(...e)};var x=class extends Error{};async function S(e){if(g())throw new x;n(i);let t=await m({message:e});if(h(t)||typeof t!=`string`)throw new r(130,{cancelled:!0});return t}async function C(e,a){if(g())throw new x;n(i);let o=await f({message:e,options:a.choices.map(({title:e,value:t})=>({label:e,value:t}))});if(h(o)||typeof o!=`string`)throw new r(130,{cancelled:!0});return t()||y(o),o}const w=d({logger:b,userAgent:a,prompt:S,select:C,isNoDefaultValueProvidedError:e=>e instanceof x});async function T(e,t){return w.getOrSelectAccountId({account_id:e,compliance_region:t?.complianceRegion??await _(t)})}function E(){return w.getActiveAccountId({})}async function D(){return w.fetchAllAccounts({compliance_region:await _()},{throwOnEmpty:!1})}async function O(e){if(e?.scopes&&!l(e.scopes))throw Error(`One or more of the requested scopes are not valid cf OAuth scopes.`);return w.login({compliance_region:await _()},{browser:e?.browser??!0,device:e?.device??!0,...e?.scopes&&{scopes:e.scopes},...e?.profile&&{profile:e.profile}})}function k(e){return w.logout(e)}function A(e){w.setProfile(e)}function j(){return w.getActiveProfile()}function M(){return u({logger:b})}function N(e,t=process.cwd()){let n=M().resolve({profile:e,cwd:t});return A(n),n}function P(){return w.getOAuthTokenFromLocalState()}function F(){return w.readAuthCredentials()?.oauth_token!==void 0}function I(){return w.readAuthCredentials()}function L(){return w.getCredentialStore().path()}export{T as a,F as c,I as d,N as f,L as i,O as l,E as n,M as o,A as p,j as r,P as s,D as t,k as u};
@@ -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";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/oauth_clients`,body:`json`};function g(e){return e.usage(`$0 oauth-clients 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-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.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-KWYZvJWM.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/oauth_clients`,body:`json`};function g(e){return e.usage(`$0 oauth-clients create
3
3
 
4
4
  Create a new OAuth client for an account.`).option(`allowed-cors-origins`,{type:`string`,array:!0,description:`Array of allowed CORS origins.`}).option(`client-name`,{type:`string`,description:`Human-readable name of the OAuth client.`}).option(`client-uri`,{type:`string`,description:`URL of the home page of the client.`}).option(`grant-types`,{type:`string`,array:!0,description:"Array of OAuth grant types the client is allowed to use. `authorization_code` is required; `refresh_token` may be included optionally."}).option(`logo-uri`,{type:`string`,description:`URL of the client's logo.`}).option(`optional-scopes`,{type:`string`,array:!0,description:"Scopes that the authorizing user may decline during consent. Each value must also appear in `scopes`. The scopes `openid`, `offline`, and `offline_access` cannot be optional."}).option(`policy-uri`,{type:`string`,description:`URL that points to a privacy policy document.`}).option(`post-logout-redirect-uris`,{type:`string`,array:!0,description:`Array of allowed post-logout redirect URIs.`}).option(`redirect-uris`,{type:`string`,array:!0,description:`Array of allowed redirect URIs for the client.`}).option(`response-types`,{type:`string`,array:!0,description:`Array of OAuth response types the client is allowed to use.`}).option(`scopes`,{type:`string`,array:!0,description:"Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes `offline_access` and `openid` are added or removed automatically based on `grant_types` and `response_types`."}).option(`token-endpoint-auth-method`,{type:`string`,description:`The authentication method the client uses at the token endpoint.`,choices:[`none`,`client_secret_basic`,`client_secret_post`]}).coerce(`token-endpoint-auth-method`,e=>d(e,`token-endpoint-auth-method`,`text`)).option(`tos-uri`,{type:`string`,description:`URL that points to a terms of service document.`}).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 _={command:`create`,describe:`Create OAuth Client`,builder:g,handler:async e=>c({command:`oauth-clients create`,classification:{safeFlags:[`token-endpoint-auth-method`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf oauth-clients create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/oauth_clients`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({allowed_cors_origins:e[`allowed-cors-origins`],client_name:d(e[`client-name`],`client-name`,`text`),client_uri:d(e[`client-uri`],`client-uri`,`text`),grant_types:e[`grant-types`],logo_uri:d(e[`logo-uri`],`logo-uri`,`text`),optional_scopes:e[`optional-scopes`],policy_uri:d(e[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:e[`post-logout-redirect-uris`],redirect_uris:e[`redirect-uris`],response_types:e[`response-types`],scopes:e.scopes,token_endpoint_auth_method:e[`token-endpoint-auth-method`],tos_uri:d(e[`tos-uri`],`tos-uri`,`text`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}if(e[`client-name`]===void 0&&(e[`client-name`]=await f(`client-name`,`Human-readable name of the OAuth client.`)),e[`grant-types`]===void 0)throw Error(`--grant-types is required (or pass --body with this field set).`);if(e[`redirect-uris`]===void 0)throw Error(`--redirect-uris is required (or pass --body with this field set).`);if(e[`response-types`]===void 0)throw Error(`--response-types is required (or pass --body with this field set).`);if(e.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);e[`token-endpoint-auth-method`]===void 0&&(e[`token-endpoint-auth-method`]=await p(`token-endpoint-auth-method`,`The authentication method the client uses at the token endpoint.`,[`none`,`client_secret_basic`,`client_secret_post`]));let g=u({allowed_cors_origins:e[`allowed-cors-origins`],client_name:d(e[`client-name`],`client-name`,`text`),client_uri:d(e[`client-uri`],`client-uri`,`text`),grant_types:e[`grant-types`],logo_uri:d(e[`logo-uri`],`logo-uri`,`text`),optional_scopes:e[`optional-scopes`],policy_uri:d(e[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:e[`post-logout-redirect-uris`],redirect_uris:e[`redirect-uris`],response_types:e[`response-types`],scopes:e.scopes,token_endpoint_auth_method:e[`token-endpoint-auth-method`],tos_uri:d(e[`tos-uri`],`tos-uri`,`text`)}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/oauth_clients/${t.oauth_client_id}/rotate_secret`};function y(e){return e.usage(`$0 oauth-clients delete-rotated-secret <oauth-client-id>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{n as e}from"./auth-C6u9qIGO.mjs";import{t}from"./output-Co4xdFf6.mjs";import{t as n}from"./dry-run-C2KjGX10.mjs";import{t as r}from"./progress-D5po7ScB.mjs";import{t as i}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";var a={method:`GET`,path:()=>`/oauth/scopes`};function o(e){return e.usage(`$0 oauth-scopes list
2
+ import{n as e}from"./auth-MNz2D-PD.mjs";import{t}from"./output-Co4xdFf6.mjs";import{t as n}from"./dry-run-C2KjGX10.mjs";import{t as r}from"./progress-DaQ4MzBI.mjs";import{t as i}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";var a={method:`GET`,path:()=>`/oauth/scopes`};function o(e){return e.usage(`$0 oauth-scopes list
3
3
 
4
4
  List all available OAuth scopes. This endpoint requires authentication but has no authorization role requirements.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`list`,describe:`List OAuth Scopes`,builder:o,handler:async o=>i({command:`oauth-scopes list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf oauth-scopes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/oauth/scopes`,pathParams:{},bodyKind:`none`});return}let i=await e(o),s=await r(`Loading`,async()=>i.send(a));t(s,{successLabel:`Loaded`})})},c={command:`oauth-scopes`,describe:`oauth-scopes`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};