cf 1.0.0-beta.16 → 1.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/dist/_meta/commands.json +6117 -4540
  2. package/dist/_meta/schemas.json +5016 -3257
  3. package/dist/{abuse-reports-17K-TRhO.mjs → abuse-reports-Ce-g5uZP.mjs} +6 -6
  4. package/dist/{access-BwB7sg1D.mjs → access-BtsMwesh.mjs} +1 -1
  5. package/dist/{accounts-BnIGu_ac.mjs → accounts-X5QVzEUW.mjs} +27 -21
  6. package/dist/{acm-CQRcu_zw.mjs → acm-C_NepMi6.mjs} +1 -1
  7. package/dist/{addressing-Qcm9jd3C.mjs → addressing-BkQY1hoA.mjs} +18 -18
  8. package/dist/{agent-memory-B3xN9I6-.mjs → agent-memory-1OPgC3lK.mjs} +6 -6
  9. package/dist/{ai-BRKOCckA.mjs → ai-Bb0_Zknm.mjs} +1 -1
  10. package/dist/{ai-audit-Cd9Rc2Fc.mjs → ai-audit-DuEjVdML.mjs} +1 -1
  11. package/dist/{ai-gateway-BWU5064V.mjs → ai-gateway-Cm2vWMSI.mjs} +42 -42
  12. package/dist/ai-search-DDRpxyOM.mjs +79 -0
  13. package/dist/{ai-security-Dn0Ee6QS.mjs → ai-security-A2STvE1b.mjs} +5 -5
  14. package/dist/{alerting-BXTiMfXo.mjs → alerting-CIwSk-Ks.mjs} +1 -1
  15. package/dist/{analytics-Jyd04TRW.mjs → analytics-H--uM3DA.mjs} +7 -7
  16. package/dist/{analytics-engine-CzrNfUeh.mjs → analytics-engine-Alu7cllT.mjs} +1 -1
  17. package/dist/{api-security-DRBHZaf_.mjs → api-security-D-pcnhUL.mjs} +26 -26
  18. package/dist/{argo-DiQt0pSb.mjs → argo-Lvmcx3am.mjs} +1 -1
  19. package/dist/{artifacts-eBZ4YN53.mjs → artifacts-xT5S-mVa.mjs} +1 -1
  20. package/dist/{audit-logs-Bb4HTZay.mjs → audit-logs-DEoRBLkU.mjs} +1 -1
  21. package/dist/{auth-C6My1gI6.mjs → auth-B73lQS2h.mjs} +1 -1
  22. package/dist/auth-DMzEmOhG.mjs +2 -0
  23. package/dist/{auth-eVI_UEt8.mjs → auth-Db1KT0vm.mjs} +1 -1
  24. package/dist/{auth-token-Cfj2yehs.mjs → auth-token-D9XIPlwf.mjs} +1 -1
  25. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  26. package/dist/{basin-catalog-Cwk1RSMX.mjs → basin-catalog-DFHt3cWi.mjs} +1 -1
  27. package/dist/{billing-CfV8oi6A.mjs → billing-Bm2JNSGa.mjs} +6 -6
  28. package/dist/body-parser-DnBfDdx3.mjs +2 -0
  29. package/dist/{bot-management-CH4_Kewx.mjs → bot-management-CSr38g-O.mjs} +4 -4
  30. package/dist/{botnet-feed-Cg_Wp8ei.mjs → botnet-feed-ebeWWSJj.mjs} +1 -1
  31. package/dist/{brand-protection-Cp2ckWou.mjs → brand-protection-BCn9Mv-d.mjs} +5 -5
  32. package/dist/browser-run-BcWxzhAn.mjs +42 -0
  33. package/dist/build-BRJnyeu8.mjs +2 -0
  34. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  35. package/dist/{builds-B2RBgVL9.mjs → builds-BMwDzi7G.mjs} +39 -39
  36. package/dist/{cache-yvrYPvRI.mjs → cache-_VaTLC5T.mjs} +1 -1
  37. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  38. package/dist/cli-P3q5DG3W.mjs +6 -0
  39. package/dist/{client-side-security-D50iZjd_.mjs → client-side-security-CjSXrpa9.mjs} +1 -1
  40. package/dist/{cloud-connector-wvSGdxWT.mjs → cloud-connector-BPJBeP06.mjs} +1 -1
  41. package/dist/{cloudforce-one-j6vlmaMB.mjs → cloudforce-one-DXX31GMi.mjs} +189 -189
  42. package/dist/{command-CM_f48gs.mjs → command-BXiA79DP.mjs} +1 -1
  43. package/dist/{command-CmUtmu5j.mjs → command-BbsPxJBT.mjs} +1 -1
  44. package/dist/{command-BDpm-U8z.mjs → command-Bkc04OyY.mjs} +1 -1
  45. package/dist/{command-BSbhJRmu.mjs → command-BtTc28ql.mjs} +1 -1
  46. package/dist/{command-DFRsim8q.mjs → command-CBZhxmKD.mjs} +1 -1
  47. package/dist/{command-BbO3sBQ2.mjs → command-CL7LLXM7.mjs} +1 -1
  48. package/dist/{command-DQojhTEQ.mjs → command-CYyfigfC.mjs} +1 -1
  49. package/dist/{command-DiqRELHF.mjs → command-CxWLFv5Y.mjs} +1 -1
  50. package/dist/{command-74P4_CTx.mjs → command-DDcBC4px.mjs} +1 -1
  51. package/dist/{command-Dr4PEvB2.mjs → command-NoxvOARP.mjs} +1 -1
  52. package/dist/{completions-oD1EcuHk.mjs → completions-CrDmwKnK.mjs} +1 -1
  53. package/dist/{connector-interrupts-DP4rbOe8.mjs → connector-interrupts-V4HGULCM.mjs} +1 -1
  54. package/dist/{connector-telemetry-events-BQGBQwzR.mjs → connector-telemetry-events-D9mTcfbJ.mjs} +1 -1
  55. package/dist/{connector-telemetry-snapshots-DBO0Mdcj.mjs → connector-telemetry-snapshots-COrPVKol.mjs} +1 -1
  56. package/dist/{connectors-BSVr3Kz1.mjs → connectors-DvVlxGDx.mjs} +1 -1
  57. package/dist/{containers-BTqAeVV2.mjs → containers-Bt2zFsFd.mjs} +8 -8
  58. package/dist/{containers-BOpKpipz.mjs → containers-BtcOgwm5.mjs} +2 -2
  59. package/dist/{content-scan-B9Keyxe-.mjs → content-scan-DldLmTjy.mjs} +1 -1
  60. package/dist/{context-B-vEsyrK.mjs → context-C_a8oSY9.mjs} +1 -1
  61. package/dist/cps-REo1OWP1.mjs +6 -0
  62. package/dist/csam-scanner-CIbbdoJK.mjs +10 -0
  63. package/dist/{custom-csrs-DM5X-K6H.mjs → custom-csrs-iGNc3rSZ.mjs} +1 -1
  64. package/dist/{custom-hostnames-BBjqaiFF.mjs → custom-hostnames-BNxYbTyu.mjs} +15 -15
  65. package/dist/{custom-nameservers-C0NDMLPJ.mjs → custom-nameservers-BMJoTSlQ.mjs} +1 -1
  66. package/dist/custom-pages-Qdemt1Fm.mjs +21 -0
  67. package/dist/{d1-hin5PmxW.mjs → d1-DvCiQibO.mjs} +8 -8
  68. package/dist/{deploy-Bo7FtE44.mjs → deploy-K664XPOb.mjs} +1 -1
  69. package/dist/{deploy-context-ClvBD87y.mjs → deploy-context-ClNVJYlR.mjs} +13 -13
  70. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  71. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  72. package/dist/{diagnostics-LZuMrGjK.mjs → diagnostics-Cw0mtcep.mjs} +2 -2
  73. package/dist/{dls-Bq8k3iy-.mjs → dls-DoqfqutH.mjs} +1 -1
  74. package/dist/{dns-ry5E2Bsa.mjs → dns-DC6WcO3m.mjs} +21 -21
  75. package/dist/{dns-firewall-zavP5Qxj.mjs → dns-firewall-DpQH9BCE.mjs} +9 -9
  76. package/dist/{docs-B08YtL0U.mjs → docs-CqNRBHab.mjs} +1 -1
  77. package/dist/{durable-objects-B9fo41B1.mjs → durable-objects-CJDDy3CC.mjs} +1 -1
  78. package/dist/{email-auth-D9LGjFlh.mjs → email-auth--NHg1TjG.mjs} +1 -1
  79. package/dist/{email-routing-6iDnNPhY.mjs → email-routing-COjENK55.mjs} +13 -13
  80. package/dist/{email-security-ty4ufRnJ.mjs → email-security-rdjH95T2.mjs} +38 -38
  81. package/dist/{email-sending-d7LO_Cz_.mjs → email-sending-26VJhR6Q.mjs} +18 -18
  82. package/dist/{field-extractors-DkgQ7PSw.mjs → field-extractors-DBOvGOwz.mjs} +2 -2
  83. package/dist/{firewall-Q88YyEwD.mjs → firewall-D8K93ffF.mjs} +20 -20
  84. package/dist/{flagship-CzI8zhd6.mjs → flagship-CHdmCmvQ.mjs} +11 -11
  85. package/dist/{fraud-CvFXTR0w.mjs → fraud-CY4TV5Vc.mjs} +1 -1
  86. package/dist/{google-tag-gateway-Y2zbyey8.mjs → google-tag-gateway-DzSt4wlz.mjs} +1 -1
  87. package/dist/healthchecks-B52Mf3uL.mjs +22 -0
  88. package/dist/{hostnames-B3k7fIUL.mjs → hostnames-BMITIM8P.mjs} +1 -1
  89. package/dist/{hyperdrive-BWGYz95H.mjs → hyperdrive-CHsW0r6Z.mjs} +1 -1
  90. package/dist/{iam-AXco_qmt.mjs → iam-o1n9eUXf.mjs} +9 -9
  91. package/dist/{images-BzYh8y0u.mjs → images-CJHAGxX6.mjs} +37 -37
  92. package/dist/index.mjs +1 -1
  93. package/dist/{init-DlenHBtS.mjs → init-CqQDL6i3.mjs} +1 -1
  94. package/dist/{intel-BBi3i_GU.mjs → intel-B3S1gxUg.mjs} +1 -1
  95. package/dist/{ips-CWG2b7AM.mjs → ips-q_UJMiy8.mjs} +1 -1
  96. package/dist/{k2-DXdMe3Cb.mjs → k2-BNqVZnDN.mjs} +2 -2
  97. package/dist/{kv-FUd7UdDu.mjs → kv-B0nXSOcW.mjs} +1 -1
  98. package/dist/{lazy-command-BC8rIlHu.mjs → lazy-command-4ccdBqrc.mjs} +1 -1
  99. package/dist/{leaked-credential-checks-BufVA9vL.mjs → leaked-credential-checks-BXwIjlTs.mjs} +1 -1
  100. package/dist/load-balancers-DJtMztJ0.mjs +76 -0
  101. package/dist/{login-DVbXZ_Tv.mjs → login-D-1FiBNv.mjs} +1 -1
  102. package/dist/{login-BJr2PBaJ.mjs → login-chQP8825.mjs} +1 -1
  103. package/dist/{logo-matches-BluaPvMa.mjs → logo-matches-qVYq8tWL.mjs} +1 -1
  104. package/dist/{logos-CXtmYWEJ.mjs → logos-tnIahhcu.mjs} +1 -1
  105. package/dist/{logpush-DCYgrqz0.mjs → logpush-D4s3pJRw.mjs} +24 -24
  106. package/dist/{logs-as60IP29.mjs → logs-cw7UL5V2.mjs} +3 -3
  107. package/dist/{magic-cloud-networking-0RsHugUF.mjs → magic-cloud-networking-CLEHztNY.mjs} +1 -1
  108. package/dist/{magic-network-monitoring-CPqvZdcb.mjs → magic-network-monitoring-DRwygeVq.mjs} +9 -9
  109. package/dist/{magic-transit-ClPyGzOE.mjs → magic-transit-BFopRdPs.mjs} +170 -170
  110. package/dist/{managed-defense-P4_QWSbK.mjs → managed-defense-D5kpmq0T.mjs} +9 -9
  111. package/dist/{managed-transforms-CUwQXMij.mjs → managed-transforms-CT4jjnzJ.mjs} +2 -2
  112. package/dist/{matches-BjckDBW1.mjs → matches-ClJ_24EY.mjs} +1 -1
  113. package/dist/{mcp-C2EG2c7L.mjs → mcp-50os3IRG.mjs} +10 -10
  114. package/dist/{mesh-CpMZA7Xt.mjs → mesh-jxtQP8sS.mjs} +2 -2
  115. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  116. package/dist/{monetization-DypuCZmU.mjs → monetization-D6cCDi-h.mjs} +4 -4
  117. package/dist/{network-DQ5Ridgy.mjs → network-dnWHB2uY.mjs} +27 -25
  118. package/dist/{network-interconnects-ifU4JhGE.mjs → network-interconnects-Cf8qSVdt.mjs} +1 -1
  119. package/dist/{o11y-CzssfRHt.mjs → o11y-oMSg1pG4.mjs} +49 -49
  120. package/dist/{oauth-BNTiErBG.mjs → oauth-BfBdHhPS.mjs} +1 -1
  121. package/dist/{oauth-BDdhqasa.mjs → oauth-DDOiiH7h.mjs} +1 -1
  122. package/dist/{oauth-clients-gknNcBdV.mjs → oauth-clients-XDmoe-b4.mjs} +1 -1
  123. package/dist/{oauth-scopes-BJeSanuF.mjs → oauth-scopes-D9VYGuTs.mjs} +1 -1
  124. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  125. package/dist/organization-94lHeeOs.mjs +75 -0
  126. package/dist/{organizations-kfFFW4uO.mjs → organizations-BJf3UTFi.mjs} +1 -1
  127. package/dist/{origin-post-quantum-encryption-DfrnptJ1.mjs → origin-post-quantum-encryption-DMytVSUZ.mjs} +1 -1
  128. package/dist/{page-rules-ByrDMDBZ.mjs → page-rules-BUI-50oz.mjs} +4 -4
  129. package/dist/pages-CcdpCzHs.mjs +54 -0
  130. package/dist/pay-per-crawl-B1uHZn9j.mjs +38 -0
  131. package/dist/{pay-per-use-49EXt75f.mjs → pay-per-use-t066I5wm.mjs} +7 -7
  132. package/dist/{pipelines-Bvgh1BQZ.mjs → pipelines-Co6S044l.mjs} +8 -8
  133. package/dist/precursor-BftyvS86.mjs +4 -0
  134. package/dist/previews-BLhnhElx.mjs +7 -0
  135. package/dist/{progress-R-1tIuep.mjs → progress-Q5w9PNTT.mjs} +1 -1
  136. package/dist/{prompt-dgLm0iFJ.mjs → prompt-C0hKSr-R.mjs} +1 -1
  137. package/dist/{queries-EbIadtC5.mjs → queries-4MubO6Sz.mjs} +3 -3
  138. package/dist/{queues-C4GZ-O3f.mjs → queues-CteS5M92.mjs} +17 -17
  139. package/dist/{r2-DEuFfWBR.mjs → r2-2QpT_Gso.mjs} +24 -24
  140. package/dist/{radar-CDOERVcR.mjs → radar-ODKaK4FJ.mjs} +1 -1
  141. package/dist/{raw-fetch-BapeoreV.mjs → raw-fetch-CEOuoKl9.mjs} +1 -1
  142. package/dist/{realtime-D_A9Qgly.mjs → realtime-DkfU8uEX.mjs} +84 -84
  143. package/dist/registrar-DM6JTVPS.mjs +43 -0
  144. package/dist/{registrar-sandbox-BF3cYO3n.mjs → registrar-sandbox-BPNGf65G.mjs} +11 -9
  145. package/dist/{reporting-BWm9jIF8.mjs → reporting-5yFNXbJg.mjs} +1 -1
  146. package/dist/{request-headers-BRxv6NkA.mjs → request-headers-DXvswze2.mjs} +1 -1
  147. package/dist/request-tracers-BarLZY95.mjs +4 -0
  148. package/dist/{resource-sharing-C186jZv0.mjs → resource-sharing-BVEwBPs8.mjs} +19 -19
  149. package/dist/{rules-DYnGIU_0.mjs → rules-_C31X4Jz.mjs} +6 -6
  150. package/dist/{rulesets-BcNrbVcq.mjs → rulesets-8RwxoFhG.mjs} +6 -6
  151. package/dist/{rum-BDyRecfp.mjs → rum-CAUcpXpM.mjs} +6 -6
  152. package/dist/{run-BvDCuZ8q.mjs → run-DtFLvOHB.mjs} +1 -1
  153. package/dist/run-LcOb9rhI.mjs +2 -0
  154. package/dist/{schema-flags-DcKjAxI1.mjs → schema-flags-DibfxEF6.mjs} +1 -1
  155. package/dist/{scim-zn-CNCsc.mjs → scim-DX5XrQ4w.mjs} +1 -1
  156. package/dist/{secrets-store-CFhyQUV6.mjs → secrets-store-DSqqrr25.mjs} +1 -1
  157. package/dist/{security-insights-D8XgtCed.mjs → security-insights-FSktO04S.mjs} +1 -1
  158. package/dist/{security-txt-CCM-Vro0.mjs → security-txt-D2g3lQdg.mjs} +1 -1
  159. package/dist/{shared-ouAF7o4S.mjs → shared-eefMO8R4.mjs} +1 -1
  160. package/dist/smart-shield-IVb2sR0C.mjs +24 -0
  161. package/dist/{snippets-B2jBY0m_.mjs → snippets-cWwWficN.mjs} +2 -2
  162. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  163. package/dist/{spectrum-Cf_4cGE8.mjs → spectrum-DYiIBYRB.mjs} +1 -1
  164. package/dist/{speed-DoXdyIYK.mjs → speed-C7uiW2Wf.mjs} +1 -1
  165. package/dist/{sql-Bze4h80q.mjs → sql-TGV8qQMj.mjs} +1 -1
  166. package/dist/{src-BguQDHjS.mjs → src-BUH-P_zd.mjs} +5 -5
  167. package/dist/ssl-xQP_HbWN.mjs +139 -0
  168. package/dist/{stream-BcReYIHJ.mjs → stream-CfWgj8Cr.mjs} +55 -55
  169. package/dist/{submit-ldFVNfNC.mjs → submit-DxGr1T40.mjs} +1 -1
  170. package/dist/tags-LEJ2VYhQ.mjs +23 -0
  171. package/dist/{telemetry-Cojgz4Sv.mjs → telemetry-BHne10Yy.mjs} +1 -1
  172. package/dist/telemetry-BavSU4ku.mjs +2 -0
  173. package/dist/{tenant-AZ0EAsmT.mjs → tenant-7d5vwc6K.mjs} +1 -1
  174. package/dist/{tenant-custom-nameservers-aozjaasc.mjs → tenant-custom-nameservers-BkxlPr5O.mjs} +1 -1
  175. package/dist/{tunnels-CXez5LPB.mjs → tunnels-DlGODvwT.mjs} +4 -4
  176. package/dist/{turnstile-B2NQ8Nsk.mjs → turnstile-DhLkdhij.mjs} +5 -5
  177. package/dist/update-check-nLfkSfdz.mjs +2 -0
  178. package/dist/update-check-worker.mjs +1 -1
  179. package/dist/{update-check-BlyKN8m0.mjs → update-check-wvjOsnGK.mjs} +1 -1
  180. package/dist/{url-info-D_UqGiWD.mjs → url-info-CeoV5dBc.mjs} +1 -1
  181. package/dist/{url-normalization-CF1YHpIN.mjs → url-normalization-9NoaoRNh.mjs} +1 -1
  182. package/dist/{url-scanner-ChF3GO2U.mjs → url-scanner-w_-Sumz-.mjs} +8 -8
  183. package/dist/{user-BfWRsdJh.mjs → user-D33B3alX.mjs} +59 -59
  184. package/dist/{vectorize-CRYbWKg5.mjs → vectorize-Wp9De13y.mjs} +17 -17
  185. package/dist/version-B2RUUqGT.mjs +2 -0
  186. package/dist/{waiting-rooms-Crp7MVd9.mjs → waiting-rooms-BE8FloRd.mjs} +13 -13
  187. package/dist/{web-assets-CgyrPnT-.mjs → web-assets-ew0iaP7c.mjs} +35 -35
  188. package/dist/{web3-Cd0Yd0eQ.mjs → web3-BUyXBaqq.mjs} +6 -6
  189. package/dist/{workers-builds-f2nVw7EZ.mjs → workers-builds-DzU9NGno.mjs} +7 -7
  190. package/dist/{workers-for-platforms-DjeKp2uy.mjs → workers-for-platforms-B4xzFNxJ.mjs} +25 -22
  191. package/dist/{workers-CTwJpTfJ.mjs → workers-pP5tsDbD.mjs} +25 -22
  192. package/dist/{workers-vpc-B_L3TEg2.mjs → workers-vpc-Bre_t9Al.mjs} +1 -1
  193. package/dist/{workflows-CBPGf65x.mjs → workflows-DXYGKtqq.mjs} +1 -1
  194. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  195. package/dist/zaraz-DoH4QD0u.mjs +22 -0
  196. package/dist/{zero-trust-B9xY8zcn.mjs → zero-trust-DKt20rzE.mjs} +461 -458
  197. package/dist/{zone-CmwVqTI2.mjs → zone-BXM3p0JR.mjs} +1 -1
  198. package/dist/{zones-Bf0VVpMf.mjs → zones-CJdtqEBx.mjs} +21 -21
  199. package/package.json +11 -11
  200. package/dist/account-tags-povXTDAu.mjs +0 -15
  201. package/dist/ai-search-CJ3b8eot.mjs +0 -79
  202. package/dist/auth-OFqV2M4q.mjs +0 -2
  203. package/dist/body-parser-DkHKPkJ7.mjs +0 -2
  204. package/dist/browser-run-CfQ30dB6.mjs +0 -42
  205. package/dist/build-Bm6kGyzo.mjs +0 -2
  206. package/dist/certificate-authorities-BdMRaOnD.mjs +0 -6
  207. package/dist/cli-CsnoQloF.mjs +0 -6
  208. package/dist/client-certificates-CuWGvZSr.mjs +0 -13
  209. package/dist/cps-VRP794c5.mjs +0 -6
  210. package/dist/csam-scanner-C1jOgXVu.mjs +0 -10
  211. package/dist/ct-alerting-Y9vfa6Fo.mjs +0 -5
  212. package/dist/custom-certificates-CojTEC0E.mjs +0 -17
  213. package/dist/custom-pages-M4RUxcn6.mjs +0 -21
  214. package/dist/dcv-delegation-KOO8syyQ.mjs +0 -4
  215. package/dist/healthchecks-4Hz-6xYi.mjs +0 -22
  216. package/dist/keyless-certificates-B4ta_OGS.mjs +0 -13
  217. package/dist/keys-B9zvFzrf.mjs +0 -4
  218. package/dist/load-balancers-CWd9mSWM.mjs +0 -76
  219. package/dist/mtls-certificates-B5AWTU6u.mjs +0 -13
  220. package/dist/organization-CXAM41sd.mjs +0 -71
  221. package/dist/origin-ca-certificates-DwhYV3m_.mjs +0 -11
  222. package/dist/origin-tls-client-auth-COSxTc2q.mjs +0 -30
  223. package/dist/pages-DuGcBC6k.mjs +0 -54
  224. package/dist/pay-per-crawl-B3_Gn9Cj.mjs +0 -38
  225. package/dist/precursor-VobQf--m.mjs +0 -4
  226. package/dist/previews-DkwFHNRx.mjs +0 -7
  227. package/dist/registrar-X1YLlnmg.mjs +0 -43
  228. package/dist/request-tracers-CHWpiejG.mjs +0 -4
  229. package/dist/resource-tagging-BTagOZli.mjs +0 -4
  230. package/dist/run-roYb_Odh.mjs +0 -2
  231. package/dist/smart-shield-DwW7N92r.mjs +0 -24
  232. package/dist/ssl-u_0gUhPA.mjs +0 -45
  233. package/dist/tags-D_Hc_A-r.mjs +0 -4
  234. package/dist/telemetry-Ct_2AaO4.mjs +0 -2
  235. package/dist/update-check-BnGDxswi.mjs +0 -2
  236. package/dist/values-CLfxkAUJ.mjs +0 -4
  237. package/dist/version-CVlh2Zaq.mjs +0 -2
  238. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
  239. package/dist/zaraz-3VDxl0gF.mjs +0 -22
@@ -1,46 +1,46 @@
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-eVI_UEt8.mjs";import{a as r,i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-dgLm0iFJ.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-Db1KT0vm.mjs";import{a as r,i,t as a}from"./context-C_a8oSY9.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-Q5w9PNTT.mjs";import{t as l}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{n as u,r as d,t as f}from"./body-parser-DnBfDdx3.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,n as h}from"./prompt-C0hKSr-R.mjs";var g={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/fields`};function _(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),"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>
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 ee={command:`get <dataset-id>`,describe:`List fields`,builder:_,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(g,{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(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/datasets/${t.dataset_id}/jobs`};function b(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),"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
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 x={command:`get <dataset-id>`,describe:`List Logpush jobs for a dataset`,builder:b,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(y,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));o(f,{successLabel:`Loaded`})})},S={command:`jobs`,describe:`Operations for account-datasets.jobs`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},te={command:`account-datasets`,describe:`Operations for account-datasets`,builder:e=>e.command(v).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`,body:`json`};function ne(e){return e.usage(`$0 logpush account-jobs create
7
7
 
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>
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=>p(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=>p(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=>p(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=>p(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=>p(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 re={command:`create`,describe:`Create Logpush job`,builder:ne,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?f({dataset:e.dataset,destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:p(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:p(e[`logpull-options`],`logpull-options`,`text`),name:p(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:p(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:p(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:p(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:p(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:p(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:p(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:p(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:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(C,{body:t,account_or_zone:d,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await m(`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=f({dataset:e.dataset,destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:p(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:p(e[`logpull-options`],`logpull-options`,`text`),name:p(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:p(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:p(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:p(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:p(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:p(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:p(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:p(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:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}),_=await c(`Creating`,async()=>l.send(C,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`};function ae(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),"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
- `);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>
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 oe={command:`delete <job-id>`,describe:`Delete Logpush job`,builder:ae,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 h({force:!!e.force,message:`This operation deletes the Logpush job.`})){process.stderr.write(`Aborted.
11
+ `);return}let f=await c(`Deleting`,async()=>l.send(ie,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));o(f,{successLabel:`Deleted`})})};var w={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`};function T(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),"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
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 E={command:`get <job-id>`,describe:`Get Logpush job details`,builder:T,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(w,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));o(f,{successLabel:`Loaded`})})};var D={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`};function O(e){return e.usage(`$0 logpush account-jobs list
14
14
 
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>
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 k={command:`list`,describe:`List Logpush jobs`,builder:O,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(D,{account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Loaded`})})};var A={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs/${t.job_id}`,body:`json`};function j(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),"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
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=>p(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=>p(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=>p(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=>p(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 M={command:`update <job-id>`,describe:`Update Logpush job`,builder:j,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?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:p(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:p(e[`logpull-options`],`logpull-options`,`text`),name:p(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:p(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:p(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:p(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:p(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:p(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:p(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:p(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:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,m=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=m:e.accountId=m,e.body){let t=u(e.body),n=await c(`Updating`,async()=>l.send(A,{body:t,account_or_zone:d,account_or_zone_id:m,job_id:e[`job-id`]}));o(n,{successLabel:`Updated`});return}let h=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),enabled:e.enabled,filter:p(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`],frequency:e.frequency,kind:e.kind,logpull_options:p(e[`logpull-options`],`logpull-options`,`text`),name:p(e.name,`name`,`text`),output_options:{"CVE-2021-44228":e[`output-options-cve-2021-44228`],batch_prefix:p(e[`output-options-batch-prefix`],`output-options-batch-prefix`,`text`),batch_suffix:p(e[`output-options-batch-suffix`],`output-options-batch-suffix`,`text`),field_delimiter:p(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:p(e[`output-options-record-delimiter`],`output-options-record-delimiter`,`text`),record_prefix:p(e[`output-options-record-prefix`],`output-options-record-prefix`,`text`),record_suffix:p(e[`output-options-record-suffix`],`output-options-record-suffix`,`text`),record_template:p(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:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}),g=await c(`Updating`,async()=>l.send(A,{body:h,account_or_zone:d,account_or_zone_id:m,job_id:e[`job-id`]}));o(g,{successLabel:`Updated`})})},N={command:`account-jobs`,describe:`Operations for account-jobs`,builder:e=>e.command(re).command(oe).command(E).command(k).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/ownership`,body:`json`};function F(e){return e.usage(`$0 logpush account-ownership create
18
18
 
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
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 I={command:`create`,describe:`Get ownership challenge`,builder:F,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?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(P,{body:t,account_or_zone:d,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await m(`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=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),_=await c(`Creating`,async()=>l.send(P,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var L={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/ownership/validate`,body:`json`};function R(e){return e.usage(`$0 logpush account-ownership validate create
20
20
 
21
- Validates ownership challenge of the 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(`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 R={command:`create`,describe:`Validate ownership challenge`,builder:L,handler:async e=>l({command:`logpush account-ownership validate 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 validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/ownership/validate`,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`),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(I,{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`})),e[`ownership-challenge`]===void 0&&(e[`ownership-challenge`]=await p(`ownership-challenge`,`Ownership challenge token to prove destination ownership.`,{kind:`secret`}));let g=d({destination_conf:f(e[`destination-conf`],`destination-conf`,`text`),ownership_challenge:f(e[`ownership-challenge`],`ownership-challenge`,`text`)}),_=await c(`Creating`,async()=>l.send(I,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},z={command:`validate`,describe:`Operations for account-ownership.validate`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`account-ownership`,describe:`Operations for account-ownership`,builder:e=>e.command(F).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/destination/exists`,body:`json`};function H(e){return e.usage(`$0 logpush account-validate destination-exists-delete
21
+ Validates ownership challenge of the 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(`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 z={command:`create`,describe:`Validate ownership challenge`,builder:R,handler:async e=>l({command:`logpush account-ownership validate 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 validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/ownership/validate`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),ownership_challenge:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(L,{body:t,account_or_zone:d,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await m(`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`})),e[`ownership-challenge`]===void 0&&(e[`ownership-challenge`]=await m(`ownership-challenge`,`Ownership challenge token to prove destination ownership.`,{kind:`secret`}));let g=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),ownership_challenge:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}),_=await c(`Creating`,async()=>l.send(L,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},B={command:`validate`,describe:`Operations for account-ownership.validate`,builder:e=>e.command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`account-ownership`,describe:`Operations for account-ownership`,builder:e=>e.command(I).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var H={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/destination/exists`,body:`json`};function U(e){return e.usage(`$0 logpush account-validate destination-exists-delete
22
22
 
23
- Checks if there is an existing job with a 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 U={command:`destination-exists-delete`,describe:`Check destination exists`,builder:H,handler:async e=>l({command:`logpush account-validate destination-exists-delete`,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-validate destination-exists-delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/destination/exists`,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(V,{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(V,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var W={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/destination`,body:`json`};function G(e){return e.usage(`$0 logpush account-validate destination delete
23
+ Checks if there is an existing job with a 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 W={command:`destination-exists-delete`,describe:`Check destination exists`,builder:U,handler:async e=>l({command:`logpush account-validate destination-exists-delete`,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-validate destination-exists-delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/destination/exists`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,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:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await m(`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=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),_=await c(`Creating`,async()=>l.send(H,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})};var G={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/destination`,body:`json`};function K(e){return e.usage(`$0 logpush account-validate destination delete
24
24
 
25
- Validates 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 K={command:`delete`,describe:`Validate destination`,builder:G,handler:async e=>l({command:`logpush account-validate destination delete`,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-validate destination delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/destination`,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(W,{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(W,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},q={command:`destination`,describe:`Operations for account-validate.destination`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/origin`,body:`json`};function se(e){return e.usage(`$0 logpush account-validate origin create
25
+ Validates 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 q={command:`delete`,describe:`Validate destination`,builder:K,handler:async e=>l({command:`logpush account-validate destination delete`,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-validate destination delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/destination`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):u(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(G,{body:t,account_or_zone:d,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`destination-conf`]===void 0&&(e[`destination-conf`]=await m(`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=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),_=await c(`Creating`,async()=>l.send(G,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},se={command:`destination`,describe:`Operations for account-validate.destination`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/validate/origin`,body:`json`};function ce(e){return e.usage(`$0 logpush account-validate origin create
26
26
 
27
- Validates logpull origin with logpull_options.`).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ce={command:`create`,describe:`Validate origin`,builder:se,handler:async e=>l({command:`logpush account-validate origin 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-validate origin create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/origin`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?d({logpull_options:f(e[`logpull-options`],`logpull-options`,`text`)}):u(e.body)});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(J,{body:t,account_or_zone:m,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`logpull-options`]===void 0&&(e[`logpull-options`]=await p(`logpull-options`,"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."));let g=d({logpull_options:f(e[`logpull-options`],`logpull-options`,`text`)}),_=await c(`Creating`,async()=>l.send(J,{body:g,account_or_zone:m,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},le={command:`origin`,describe:`Operations for account-validate.origin`,builder:e=>e.command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ue={command:`account-validate`,describe:`Operations for account-validate`,builder:e=>e.command(U).command(q).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/zones/${t.zone_id}/logpush/edge/jobs`,body:`json`};function de(e){return e.usage(`$0 logpush edge create
27
+ Validates logpull origin with logpull_options.`).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(`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 le={command:`create`,describe:`Validate origin`,builder:ce,handler:async e=>l({command:`logpush account-validate origin 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-validate origin create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/logpush/validate/origin`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({logpull_options:p(e[`logpull-options`],`logpull-options`,`text`)}):u(e.body)});return}let l=await n(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=u(e.body),n=await c(`Creating`,async()=>l.send(J,{body:t,account_or_zone:d,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`logpull-options`]===void 0&&(e[`logpull-options`]=await m(`logpull-options`,"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."));let g=f({logpull_options:p(e[`logpull-options`],`logpull-options`,`text`)}),_=await c(`Creating`,async()=>l.send(J,{body:g,account_or_zone:d,account_or_zone_id:h}));o(_,{successLabel:`Created`})})},ue={command:`origin`,describe:`Operations for account-validate.origin`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},de={command:`account-validate`,describe:`Operations for account-validate`,builder:e=>e.command(W).command(se).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/zones/${t.zone_id}/logpush/edge/jobs`,body:`json`};function fe(e){return e.usage(`$0 logpush edge create
28
28
 
29
- Creates a new Instant Logs job for a zone.`).option(`fields`,{type:`string`,description:`Comma-separated list of fields.`}).option(`filter`,{type:`string`,description:`Filters to drill down into specific events.`}).option(`sample`,{type:`number`,description:`The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const X={command:`create`,describe:`Create Instant Logs job`,builder:de,handler:async e=>l({command:`logpush edge create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf logpush edge create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logpush/edge/jobs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({fields:f(e.fields,`fields`,`text`),filter:f(e.filter,`filter`,`text`),sample:e.sample}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Creating`,async()=>t.send(Y,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=d({fields:f(e.fields,`fields`,`text`),filter:f(e.filter,`filter`,`text`),sample:e.sample}),l=await c(`Creating`,async()=>t.send(Y,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var fe={method:`GET`,path:t=>e`/zones/${t.zone_id}/logpush/edge/jobs`};function pe(e){return e.usage(`$0 logpush edge get
29
+ Creates a new Instant Logs job for a zone.`).option(`fields`,{type:`string`,description:`Comma-separated list of fields.`}).option(`filter`,{type:`string`,description:`Filters to drill down into specific events.`}).option(`sample`,{type:`number`,description:`The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on.`}).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 pe={command:`create`,describe:`Create Instant Logs job`,builder:fe,handler:async e=>l({command:`logpush edge create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf logpush edge create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logpush/edge/jobs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({fields:p(e.fields,`fields`,`text`),filter:p(e.filter,`filter`,`text`),sample:e.sample}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Creating`,async()=>t.send(Y,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=f({fields:p(e.fields,`fields`,`text`),filter:p(e.filter,`filter`,`text`),sample:e.sample}),l=await c(`Creating`,async()=>t.send(Y,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var me={method:`GET`,path:t=>e`/zones/${t.zone_id}/logpush/edge/jobs`};function he(e){return e.usage(`$0 logpush edge get
30
30
 
31
- Lists Instant Logs jobs for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`get`,describe:`List Instant Logs jobs`,builder:pe,handler:async e=>l({command:`logpush edge get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf logpush edge get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logpush/edge/jobs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(fe,{zone_id:r}));o(a,{successLabel:`Loaded`})})},he={command:`edge`,describe:`Operations for edge`,builder:e=>e.command(X).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ge={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}/content`,query:[`version_id`]};function _e(e){return e.usage(`$0 logpush transformers content get <transformer-id>
31
+ Lists Instant Logs jobs for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`get`,describe:`List Instant Logs jobs`,builder:he,handler:async e=>l({command:`logpush edge get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf logpush edge get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logpush/edge/jobs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(me,{zone_id:r}));o(a,{successLabel:`Loaded`})})},_e={command:`edge`,describe:`Operations for edge`,builder:e=>e.command(pe).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ve={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}/content`,query:[`version_id`]};function ye(e){return e.usage(`$0 logpush transformers content get <transformer-id>
32
32
 
33
- Returns the SQL query content for a transformer. Without query params, returns the latest version. With \`version_id\`, returns the specified version.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`version-id`,{type:`number`,description:`Specific version ID to retrieve. When omitted, the latest version is returned.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`get <transformer-id>`,describe:`Get transformer content`,builder:_e,handler:async e=>l({command:`logpush transformers content get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={version_id:e[`version-id`]};if(e.dryRun){let t=await r();s({command:`cf logpush transformers content get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}/content`,pathParams:{"transformer-id":String(e[`transformer-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(ge,{account_id:u,transformer_id:e[`transformer-id`],...i}));o(d,{successLabel:`Loaded`})})},ye={command:`content`,describe:`Operations for transformers.content`,builder:e=>e.command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/accounts/${t.account_id}/logpush/transformers`,body:`json`};function be(e){return e.usage(`$0 logpush transformers create
33
+ Returns the SQL query content for a transformer. Without query params, returns the latest version. With \`version_id\`, returns the specified version.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`version-id`,{type:`number`,description:`Specific version ID to retrieve. When omitted, the latest version is returned.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`get <transformer-id>`,describe:`Get transformer content`,builder:ye,handler:async e=>l({command:`logpush transformers content get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={version_id:e[`version-id`]};if(e.dryRun){let t=await r();s({command:`cf logpush transformers content get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}/content`,pathParams:{"transformer-id":String(e[`transformer-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(ve,{account_id:u,transformer_id:e[`transformer-id`],...i}));o(d,{successLabel:`Loaded`})})},xe={command:`content`,describe:`Operations for transformers.content`,builder:e=>e.command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:t=>e`/accounts/${t.account_id}/logpush/transformers`,body:`json`};function Se(e){return e.usage(`$0 logpush transformers create
34
34
 
35
- Creates a new custom log transformer for an account.`).option(`code`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).option(`description`,{type:`string`,description:`Optional customer-provided description.`}).option(`name`,{type:`string`,description:`Customer-provided name for identification.`}).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 xe={command:`create`,describe:`Create transformer`,builder:be,handler:async e=>l({command:`logpush transformers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({code:f(e.code,`code`,`text`),description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`)}):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(Z,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.code===void 0&&(e.code=await p(`code`,`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`)),e.name===void 0&&(e.name=await p(`name`,`Customer-provided name for identification.`));let m=d({code:f(e.code,`code`,`text`),description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`)}),h=await c(`Creating`,async()=>i.send(Z,{body:m,account_id:l}));o(h,{successLabel:`Created`})})};var Se={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`,errors:{409:`ConflictError`}};function Ce(e){return e.usage(`$0 logpush transformers delete <transformer-id>
35
+ Creates a new custom log transformer for an account.`).option(`code`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).option(`description`,{type:`string`,description:`Optional customer-provided description.`}).option(`name`,{type:`string`,description:`Customer-provided name for identification.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ce={command:`create`,describe:`Create transformer`,builder:Se,handler:async e=>l({command:`logpush transformers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}):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(X,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.code===void 0&&(e.code=await m(`code`,`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`)),e.name===void 0&&(e.name=await m(`name`,`Customer-provided name for identification.`));let d=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),h=await c(`Creating`,async()=>i.send(X,{body:d,account_id:l}));o(h,{successLabel:`Created`})})};var we={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`,errors:{409:`ConflictError`}};function Te(e){return e.usage(`$0 logpush transformers delete <transformer-id>
36
36
 
37
- Deletes a custom log transformer. Returns 409 Conflict if any active logpush jobs reference the transformer.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const we={command:`delete <transformer-id>`,describe:`Delete transformer`,builder:Ce,handler:async e=>l({command:`logpush transformers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await m({force:!!e.force})){process.stderr.write(`Aborted.
38
- `);return}let u=await c(`Deleting`,async()=>i.send(Se,{account_id:l,transformer_id:e[`transformer-id`]}));o(u,{successLabel:`Deleted`})})};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`};function Ee(e){return e.usage(`$0 logpush transformers get <transformer-id>
37
+ Deletes a custom log transformer. Returns 409 Conflict if any active logpush jobs reference the transformer.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ee={command:`delete <transformer-id>`,describe:`Delete transformer`,builder:Te,handler:async e=>l({command:`logpush transformers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
38
+ `);return}let u=await c(`Deleting`,async()=>i.send(we,{account_id:l,transformer_id:e[`transformer-id`]}));o(u,{successLabel:`Deleted`})})};var De={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`};function Oe(e){return e.usage(`$0 logpush transformers get <transformer-id>
39
39
 
40
- Gets a single custom log transformer by ID.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`get <transformer-id>`,describe:`Get transformer`,builder:Ee,handler:async e=>l({command:`logpush transformers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(Te,{account_id:l,transformer_id:e[`transformer-id`]}));o(u,{successLabel:`Loaded`})})};var Oe={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers`};function ke(e){return e.usage(`$0 logpush transformers list
40
+ Gets a single custom log transformer by ID.`).positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ke={command:`get <transformer-id>`,describe:`Get transformer`,builder:Oe,handler:async e=>l({command:`logpush transformers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(De,{account_id:l,transformer_id:e[`transformer-id`]}));o(u,{successLabel:`Loaded`})})};var Ae={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers`};function je(e){return e.usage(`$0 logpush transformers list
41
41
 
42
- Lists all custom log transformers for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`list`,describe:`List transformers`,builder:ke,handler:async e=>l({command:`logpush transformers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf logpush transformers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logpush/transformers`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(Oe,{account_id:l}));o(u,{successLabel:`Loaded`})})};var Q={method:`POST`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/preview`,body:`json`};function je(e){return e.usage(`$0 logpush transformers preview
42
+ Lists all custom log transformers for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List transformers`,builder:je,handler:async e=>l({command:`logpush transformers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf logpush transformers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logpush/transformers`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(Ae,{account_id:l}));o(u,{successLabel:`Loaded`})})};var Z={method:`POST`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/preview`,body:`json`};function Ne(e){return e.usage(`$0 logpush transformers preview
43
43
 
44
- Executes a SQL transformer against a single input record and returns the transformed output. This is a stateless endpoint — nothing is persisted.`).option(`sql`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`preview`,describe:`Preview transformer`,builder:je,handler:async e=>l({command:`logpush transformers preview`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/preview`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({sql:f(e.sql,`sql`,`text`)}):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(`Loading`,async()=>i.send(Q,{body:t,account_id:l}));o(n,{successLabel:`Loaded`});return}e.sql===void 0&&(e.sql=await p(`sql`,`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`));let m=d({sql:f(e.sql,`sql`,`text`)}),h=await c(`Loading`,async()=>i.send(Q,{body:m,account_id:l}));o(h,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`,body:`json`};function Ne(e){return e.usage("$0 logpush transformers update <transformer-id>\n\nUpdates an existing custom log transformer. When `code` is provided, the SQL query is validated and a new version is created. When `code` is omitted, only the name and description are updated. Omitting `description` clears the existing description.").positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`code`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).option(`description`,{type:`string`,description:`Optional customer-provided description.`}).option(`name`,{type:`string`,description:`Customer-provided name for identification.`}).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 Pe={command:`update <transformer-id>`,describe:`Update transformer`,builder:Ne,handler:async e=>l({command:`logpush transformers update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({code:f(e.code,`code`,`text`),description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`)}):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(`Updating`,async()=>i.send($,{body:t,account_id:l,transformer_id:e[`transformer-id`]}));o(n,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await p(`name`,`Customer-provided name for identification.`));let m=d({code:f(e.code,`code`,`text`),description:f(e.description,`description`,`text`),name:f(e.name,`name`,`text`)}),h=await c(`Updating`,async()=>i.send($,{body:m,account_id:l,transformer_id:e[`transformer-id`]}));o(h,{successLabel:`Updated`})})};var Fe={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}/versions`,query:[`limit`]};function Ie(e){return e.usage(`$0 logpush transformers versions list
44
+ Executes a SQL transformer against a single input record and returns the transformed output. This is a stateless endpoint — nothing is persisted.`).option(`input`,{type:`string`,description:`A single log record to transform (JSON object). Provide as a JSON object or @path/to/file.json.`}).option(`sql`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).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 Pe={command:`preview`,describe:`Preview transformer`,builder:Ne,handler:async e=>l({command:`logpush transformers preview`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/preview`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({input:d(e.input,`input`,!0),sql:p(e.sql,`sql`,`text`)},[[`input`]]):u(e.body,[{path:[`input`],flag:`input`}])});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body,[{path:[`input`],flag:`input`}]),n=await c(`Loading`,async()=>i.send(Z,{body:t,account_id:l}));o(n,{successLabel:`Loaded`});return}if(e.input===void 0)throw Error(`--input is required (or pass --body with this field set).`);e.sql===void 0&&(e.sql=await m(`sql`,`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`));let h=f({input:d(e.input,`input`,!0),sql:p(e.sql,`sql`,`text`)},[[`input`]]),g=await c(`Loading`,async()=>i.send(Z,{body:h,account_id:l}));o(g,{successLabel:`Loaded`})})};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}`,body:`json`};function Fe(e){return e.usage("$0 logpush transformers update <transformer-id>\n\nUpdates an existing custom log transformer. When `code` is provided, the SQL query is validated and a new version is created. When `code` is omitted, only the name and description are updated. Omitting `description` clears the existing description.").positional(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`code`,{type:`string`,description:`The SQL transformer query. Maximum 32 KB. The query must contain a FROM clause referencing a valid logpush dataset.`}).option(`description`,{type:`string`,description:`Optional customer-provided description.`}).option(`name`,{type:`string`,description:`Customer-provided name for identification.`}).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 Ie={command:`update <transformer-id>`,describe:`Update transformer`,builder:Fe,handler:async e=>l({command:`logpush transformers update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf logpush transformers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}`,pathParams:{"transformer-id":String(e[`transformer-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}):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(`Updating`,async()=>i.send(Q,{body:t,account_id:l,transformer_id:e[`transformer-id`]}));o(n,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await m(`name`,`Customer-provided name for identification.`));let d=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),h=await c(`Updating`,async()=>i.send(Q,{body:d,account_id:l,transformer_id:e[`transformer-id`]}));o(h,{successLabel:`Updated`})})};var Le={method:`GET`,path:t=>e`/accounts/${t.account_id}/logpush/transformers/${t.transformer_id}/versions`,query:[`limit`]};function $(e){return e.usage(`$0 logpush transformers versions list
45
45
 
46
- Returns version metadata for a transformer, newest first. Each version corresponds to a SQL query update.`).option(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Maximum number of versions to return.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Le={command:`list`,describe:`List transformer versions`,builder:Ie,handler:async e=>l({command:`logpush transformers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={limit:e.limit};if(e.dryRun){let t=await r();s({command:`cf logpush transformers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}/versions`,pathParams:{"transformer-id":String(e[`transformer-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(Fe,{account_id:u,transformer_id:e[`transformer-id`],...i}));o(d,{successLabel:`Loaded`})})},Re={command:`versions`,describe:`Operations for transformers.versions`,builder:e=>e.command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ze={command:`transformers`,describe:`Operations for transformers`,builder:e=>e.command(xe).command(we).command(De).command(Ae).command(Me).command(Pe).command(ye).command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Be={command:`logpush`,describe:`logpush`,builder:e=>e.command(x).command(M).command(B).command(ue).command(he).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Be as default};
46
+ Returns version metadata for a transformer, newest first. Each version corresponds to a SQL query update.`).option(`transformer-id`,{type:`string`,description:`The transformer ID.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Maximum number of versions to return.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`list`,describe:`List transformer versions`,builder:$,handler:async e=>l({command:`logpush transformers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={limit:e.limit};if(e.dryRun){let t=await r();s({command:`cf logpush transformers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/logpush/transformers/${e[`transformer-id`]==null?`<transformer-id>`:encodeURIComponent(String(e[`transformer-id`]))}/versions`,pathParams:{"transformer-id":String(e[`transformer-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(Le,{account_id:u,transformer_id:e[`transformer-id`],...i}));o(d,{successLabel:`Loaded`})})},ze={command:`versions`,describe:`Operations for transformers.versions`,builder:e=>e.command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Be={command:`transformers`,describe:`Operations for transformers`,builder:e=>e.command(Ce).command(Ee).command(ke).command(Me).command(Pe).command(Ie).command(xe).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ve={command:`logpush`,describe:`logpush`,builder:e=>e.command(te).command(N).command(V).command(de).command(_e).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ve as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,i as a,t as o}from"./context-B-vEsyrK.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-R-1tIuep.mjs";import{t as u}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-dgLm0iFJ.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-Db1KT0vm.mjs";import{a as i,i as a,t as o}from"./context-C_a8oSY9.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-Q5w9PNTT.mjs";import{t as u}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{i as d,n as f,t as p}from"./body-parser-DnBfDdx3.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-C0hKSr-R.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
 
@@ -8,7 +8,7 @@ fields when absent.
8
8
  . Provide as a JSON array of objects or @path/to/file.json.`}).option(`filter`,{type:`string`,description:`Optional Logpush filter predicate to restrict which events are ingested.
9
9
  See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
10
10
  for syntax and examples.
11
- `}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. Defaults to\n`true` for supported datasets when omitted. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).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 C={command:`create`,describe:`Create an account or zone dataset`,builder:S,handler:async e=>u({command:`logs datasets create`,classification:{safeFlags:[`filter-attack-traffic`,`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 create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?p({dataset:m(e.dataset,`dataset`,`text`),fields:f(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}):d(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(x,{body:t,account_or_zone:u,account_or_zone_id:h}));s(r,{successLabel:`Created`});return}e.dataset===void 0&&(e.dataset=await g(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let _=p({dataset:m(e.dataset,`dataset`,`text`),fields:f(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}),v=await l(`Creating`,async()=>n.send(x,{body:_,account_or_zone:u,account_or_zone_id:h}));s(v,{successLabel:`Created`})})};var w={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/${t.dataset_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function T(e){return e.usage(`$0 logs datasets delete <dataset-id>
11
+ `}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. Defaults to\n`true` for supported datasets when omitted. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).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 C={command:`create`,describe:`Create an account or zone dataset`,builder:S,handler:async e=>u({command:`logs datasets create`,classification:{safeFlags:[`filter-attack-traffic`,`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 create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?p({dataset:m(e.dataset,`dataset`,`text`),fields:d(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(x,{body:t,account_or_zone:u,account_or_zone_id:h}));s(r,{successLabel:`Created`});return}e.dataset===void 0&&(e.dataset=await g(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let _=p({dataset:m(e.dataset,`dataset`,`text`),fields:d(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}),v=await l(`Creating`,async()=>n.send(x,{body:_,account_or_zone:u,account_or_zone_id:h}));s(v,{successLabel:`Created`})})};var w={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/${t.dataset_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function T(e){return e.usage(`$0 logs datasets delete <dataset-id>
12
12
 
13
13
  Deletes a Log Explorer dataset for the account or zone. Dataset deletion must not be protected.`).positional(`dataset-id`,{type:`string`,description:`Log Explorer dataset ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const E={command:`delete <dataset-id>`,describe:`Delete an account or zone dataset`,builder:T,handler:async e=>u({command:`logs datasets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(e[`dataset-id`]??``)},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();if(u===`zones`?e.zoneId=d:e.accountId=d,!await _({force:!!e.force,message:`This operation deletes a Log Explorer dataset for the account.`})){process.stderr.write(`Aborted.
14
14
  `);return}let f=await l(`Deleting`,async()=>n.send(w,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));s(f,{successLabel:`Deleted`})})};var D={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/${t.dataset_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function O(e){return e.usage(`$0 logs datasets get <dataset-id>
@@ -23,7 +23,7 @@ to an empty string (\`""\`) to clear the filter. Otherwise,
23
23
  replaces the dataset's filter entirely.
24
24
  See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
25
25
  for syntax and examples.
26
- `}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. If omitted,\nthe existing setting is left unchanged. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).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:`update <dataset-id>`,describe:`Update an account or zone dataset`,builder:P,handler:async e=>u({command:`logs datasets update`,classification:{safeFlags:[`deletion-protection`,`enabled`,`filter-attack-traffic`,`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 update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({deletion_protection:e[`deletion-protection`],enabled:e.enabled,fields:f(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}):d(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),r=await l(`Updating`,async()=>n.send(N,{body:t,account_or_zone:u,account_or_zone_id:h,dataset_id:e[`dataset-id`]}));s(r,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let g=p({deletion_protection:e[`deletion-protection`],enabled:e.enabled,fields:f(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}),_=await l(`Updating`,async()=>n.send(N,{body:g,account_or_zone:u,account_or_zone_id:h,dataset_id:e[`dataset-id`]}));s(_,{successLabel:`Updated`})})},I={command:`datasets`,describe:`Operations for datasets`,builder:e=>e.command(b).command(C).command(E).command(k).command(M).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function L(e){return e.usage(`$0 logs list get
26
+ `}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. If omitted,\nthe existing setting is left unchanged. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).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:`update <dataset-id>`,describe:`Update an account or zone dataset`,builder:P,handler:async e=>u({command:`logs datasets update`,classification:{safeFlags:[`deletion-protection`,`enabled`,`filter-attack-traffic`,`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 update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({deletion_protection:e[`deletion-protection`],enabled:e.enabled,fields:d(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(N,{body:t,account_or_zone:u,account_or_zone_id:h,dataset_id:e[`dataset-id`]}));s(r,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let g=p({deletion_protection:e[`deletion-protection`],enabled:e.enabled,fields:d(e.fields,`fields`),filter:m(e.filter,`filter`,`text`),filter_attack_traffic:e[`filter-attack-traffic`]}),_=await l(`Updating`,async()=>n.send(N,{body:g,account_or_zone:u,account_or_zone_id:h,dataset_id:e[`dataset-id`]}));s(_,{successLabel:`Updated`})})},I={command:`datasets`,describe:`Operations for datasets`,builder:e=>e.command(b).command(C).command(E).command(k).command(M).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function L(e){return e.usage(`$0 logs list get
27
27
 
28
28
  Lists R2 objects containing logs matching the provided query parameters.`).option(`start`,{type:`string`,description:`Start time in RFC3339 format.`,demandOption:!0}).option(`end`,{type:`string`,description:`End time in RFC3339 format.`,demandOption:!0}).option(`bucket`,{type:`string`,description:`R2 bucket name.`,demandOption:!0}).option(`prefix`,{type:`string`,description:`R2 bucket prefix logs are stored under.`}).option(`limit`,{type:`number`,description:`Maximum number of results to return.`}).option(`r2-access-key-id`,{type:`string`,description:`The R2-Access-Key-Id header`,demandOption:!0}).option(`r2-secret-access-key`,{type:`string`,description:`The R2-Secret-Access-Key header`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get`,describe:`List log files`,builder:L,handler:async e=>u({command:`logs list get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={start:e.start,end:e.end,bucket:e.bucket,prefix:e.prefix,limit:e.limit},u={};if(e[`r2-access-key-id`]!==void 0&&(u[`R2-Access-Key-Id`]=String(e[`r2-access-key-id`])),e[`r2-secret-access-key`]!==void 0&&(u[`R2-Secret-Access-Key`]=String(e[`r2-secret-access-key`])),e.dryRun){let e=await i();c({command:`cf logs list get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/list`,pathParams:{},query:a,bodyKind:`none`});return}let d=await r(e),f=e.local?t:await o();e.accountId=f;let p=await l(`Loading`,async()=>n(d,`GET`,`/accounts/${f}/logs/list`,{query:a,headers:Object.keys(u).length>0?u:void 0}));s(p,{successLabel:`Loaded`})})},R={command:`list`,describe:`Operations for list`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/query/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,507:`InsufficientStorageError`}};function B(e){return e.usage(`$0 logs query
29
29
 
@@ -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-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{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-dgLm0iFJ.mjs";import{n as _,t as v}from"./raw-fetch-BapeoreV.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-Db1KT0vm.mjs";import{a as i,t as a}from"./context-C_a8oSY9.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-Q5w9PNTT.mjs";import{t as l}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{a as u,n as d,t as f}from"./body-parser-DnBfDdx3.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-C0hKSr-R.mjs";import{n as _,t as v}from"./raw-fetch-CEOuoKl9.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