cf 1.0.0-beta.28 → 1.0.0-beta.29

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 (328) hide show
  1. package/README.md +10 -3
  2. package/dist/_meta/commands.json +2240 -3181
  3. package/dist/_meta/hand-written-commands.json +38 -8
  4. package/dist/_meta/schemas.json +1683 -2505
  5. package/dist/{abuse-reports-D9edOyag.mjs → abuse-reports-DqXYX_6F.mjs} +10 -10
  6. package/dist/{access-CKCCSrrU.mjs → access-Cte4yyIz.mjs} +1 -1
  7. package/dist/{accounts-CNb9U9bK.mjs → accounts-G-x-_cEx.mjs} +58 -57
  8. package/dist/{acm-CdKTAToZ.mjs → acm-Bg3HqMGG.mjs} +7 -7
  9. package/dist/{addressing-eZI_C-b0.mjs → addressing-BwEofGEm.mjs} +46 -46
  10. package/dist/{agent-memory-BBHCEE7h.mjs → agent-memory-DhwZ2KRw.mjs} +15 -15
  11. package/dist/{ai-Csl_QNwv.mjs → ai-DWWRIQIt.mjs} +16 -16
  12. package/dist/{ai-audit-DlqWsQi-.mjs → ai-audit-CMEBz6ZP.mjs} +3 -3
  13. package/dist/ai-gateway-D2s0isU-.mjs +76 -0
  14. package/dist/ai-search-a0uqr9yJ.mjs +74 -0
  15. package/dist/{ai-security-DvU2iYkY.mjs → ai-security-H_RqjRoL.mjs} +4 -4
  16. package/dist/alerting-Bgp9rE4I.mjs +52 -0
  17. package/dist/analytics-CFYM82FD.mjs +17 -0
  18. package/dist/{analytics-engine-BlIecoOe.mjs → analytics-engine-BLiEaLxb.mjs} +2 -2
  19. package/dist/{api-security-DZ7GWOqD.mjs → api-security-B0YtHglt.mjs} +63 -63
  20. package/dist/{argo-Bh0_cj49.mjs → argo-BPwbzHY7.mjs} +7 -7
  21. package/dist/{artifacts-VZJWVq_6.mjs → artifacts-B6UwC2PH.mjs} +20 -20
  22. package/dist/{audit-logs-B8cGL4B9.mjs → audit-logs-kG97iEnI.mjs} +2 -2
  23. package/dist/auth-Czr8ChBB.mjs +2 -0
  24. package/dist/auth-DA1PHaHi.mjs +2 -0
  25. package/dist/auth-Dwfa4S3h.mjs +7 -0
  26. package/dist/{auth-token-DW4dJVdj.mjs → auth-token-CE3Wa5-b.mjs} +1 -1
  27. package/dist/{autoconfig-C0ynlGHf.mjs → autoconfig-B4tFR6ua.mjs} +120 -116
  28. package/dist/{basin-catalog-TehR1sKZ.mjs → basin-catalog-DzVEPupy.mjs} +17 -17
  29. package/dist/{billing-B2KusU6g.mjs → billing-TERxOuLR.mjs} +11 -11
  30. package/dist/{blocks-BFulF68V.mjs → blocks-C3Im7AT0.mjs} +1 -1
  31. package/dist/body-parser-HN91kAf0.mjs +2 -0
  32. package/dist/{body-unions-DNs981Ia.mjs → body-unions-D9OSaf4M.mjs} +1 -1
  33. package/dist/{bot-management-CXHXgrQC.mjs → bot-management-SZw9jTOC.mjs} +4 -4
  34. package/dist/{botnet-feed-UyK7Rfp6.mjs → botnet-feed-DjdAeUtb.mjs} +5 -5
  35. package/dist/brand-protection-BpA7Gmf1.mjs +18 -0
  36. package/dist/browser-run-BvjfMK3f.mjs +40 -0
  37. package/dist/build-CCwo_ydV.mjs +2 -0
  38. package/dist/{build-FFxzigo4.mjs → build-yQOzZg6Z.mjs} +1 -1
  39. package/dist/builds-tMa3sbQU.mjs +62 -0
  40. package/dist/{cache-BacNNtLu.mjs → cache-b_EPh6Is.mjs} +18 -18
  41. package/dist/cf-DmvZ2L51.mjs +18 -0
  42. package/dist/{chunk-DSGVRFIS-BaNZNW-M.mjs → chunk-DSGVRFIS-Cj7pO-YQ.mjs} +1 -1
  43. package/dist/chunk-Q5KVZMHK-WOCEMyET.mjs +363 -0
  44. package/dist/cli-Cc7ujzAy.mjs +4 -0
  45. package/dist/{client-side-security-bzB9JosR.mjs → client-side-security-DVkeCzcC.mjs} +14 -14
  46. package/dist/{cloud-connector-BHtf37R5.mjs → cloud-connector-MVf4acRR.mjs} +3 -3
  47. package/dist/{cloudflared-QDdHMUEY.mjs → cloudflared-BOkMl8Gm.mjs} +1 -1
  48. package/dist/cloudforce-one-KrCfQbRx.mjs +318 -0
  49. package/dist/{command-D895kdlh.mjs → command-BQbZw4Kx.mjs} +1 -1
  50. package/dist/command-BVct0Dvr.mjs +2 -0
  51. package/dist/{command-DeutqL1n.mjs → command-C4_lMRkw.mjs} +1 -1
  52. package/dist/command-CJ3ldWrA.mjs +2 -0
  53. package/dist/command-CyOdBNur.mjs +2 -0
  54. package/dist/command-D2XkyO1e.mjs +2 -0
  55. package/dist/command-DHODgfFZ.mjs +2 -0
  56. package/dist/command-DIIaZx_f.mjs +2 -0
  57. package/dist/command-DONwHpqZ.mjs +2 -0
  58. package/dist/command-DdYnSf-8.mjs +2 -0
  59. package/dist/command-DqOU7Ql2.mjs +2 -0
  60. package/dist/{command-CbxXc5IW.mjs → command-HW7k43qu.mjs} +1 -1
  61. package/dist/command-NqM0lo4a.mjs +2 -0
  62. package/dist/command-bwVDyMv4.mjs +2 -0
  63. package/dist/command-yzqs4m83.mjs +2 -0
  64. package/dist/{completions-BvdKtzsX.mjs → completions-0YKvIyBT.mjs} +2 -2
  65. package/dist/{connector-interrupts-dUPW6Ya_.mjs → connector-interrupts-CsunbRsr.mjs} +3 -3
  66. package/dist/{connector-telemetry-events-DWVCqnhn.mjs → connector-telemetry-events-DmQPD7xC.mjs} +3 -3
  67. package/dist/{connector-telemetry-snapshots-CeMP3qeI.mjs → connector-telemetry-snapshots-C62iHjC9.mjs} +3 -3
  68. package/dist/{connectors-DZFGNw3i.mjs → connectors-Bg0MU6ZT.mjs} +7 -7
  69. package/dist/{containers-DCzQCo79.mjs → containers-BiA_bpPR.mjs} +22 -21
  70. package/dist/{content-scan-XhnNJqXf.mjs → content-scan-4SA2nacB.mjs} +6 -6
  71. package/dist/{context-BY1Eh_Qe.mjs → context-BGm5_wTT.mjs} +1 -1
  72. package/dist/{cps-CohlxvuN.mjs → cps-WDmD3V5I.mjs} +3 -3
  73. package/dist/csam-scanner-Rmy-hBEA.mjs +8 -0
  74. package/dist/{custom-csrs-BVdMQjYq.mjs → custom-csrs-D-lvkyRV.mjs} +5 -5
  75. package/dist/{custom-hostnames-r-CxhSa1.mjs → custom-hostnames-B5BQX5m6.mjs} +12 -12
  76. package/dist/{custom-nameservers-CapMDyly.mjs → custom-nameservers-CZrRjcjx.mjs} +4 -4
  77. package/dist/{custom-pages-BVIniWfq.mjs → custom-pages-CWwjtfbj.mjs} +10 -10
  78. package/dist/d1-N81q-FAr.mjs +50 -0
  79. package/dist/{delegate-CcL6RoGw.mjs → delegate-livNdiwK.mjs} +1 -1
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/deploy-Ok4ncy06.mjs +2 -0
  82. package/dist/deploy-context-B_lLfxt7.mjs +55 -0
  83. package/dist/deploy-input-JZlEJwKB.mjs +2 -0
  84. package/dist/dev-DxbkJkzc.mjs +4 -0
  85. package/dist/{diagnostics-C3nqxsAO.mjs → diagnostics-DlJzpO8b.mjs} +7 -7
  86. package/dist/dialog-CD94-Kzw.mjs +2 -0
  87. package/dist/discover-D9FNaCDK.mjs +2 -0
  88. package/dist/discover-DGsMj9ZN.mjs +2 -0
  89. package/dist/{dist-D-ihn_mV.mjs → dist-BxhwE-W1.mjs} +193 -193
  90. package/dist/{dls-N1x8sAK3.mjs → dls-5OXuxLAB.mjs} +8 -8
  91. package/dist/{dns-DATWP-PF.mjs → dns-Burep9O7.mjs} +59 -69
  92. package/dist/{dns-firewall-n3Y2ui6W.mjs → dns-firewall-hUHaQ0DE.mjs} +8 -8
  93. package/dist/docs-BFVK88kB.mjs +3 -0
  94. package/dist/{dry-run-kJbjn4kG.mjs → dry-run-qsnRlRk6.mjs} +1 -1
  95. package/dist/{durable-objects-DHK9w-vO.mjs → durable-objects-D6R8S2Dk.mjs} +3 -3
  96. package/dist/email-auth--2KCzZNA.mjs +6 -0
  97. package/dist/email-routing-DzaExfVf.mjs +44 -0
  98. package/dist/{email-security-DK_SJ0yi.mjs → email-security-DwQJszzy.mjs} +71 -71
  99. package/dist/{email-sending-CTQafGec.mjs → email-sending-mQd2qB-o.mjs} +21 -21
  100. package/dist/errors-C_bGcR0X.mjs +11 -0
  101. package/dist/field-extractors-MVOizTlB.mjs +8 -0
  102. package/dist/{firewall-CW-fAI9m.mjs → firewall-DtSIlkfL.mjs} +19 -19
  103. package/dist/{flagship-RiLnDwfJ.mjs → flagship-9E5gwNki.mjs} +12 -12
  104. package/dist/{fraud-DvfBBTe8.mjs → fraud-DjqhVJdf.mjs} +3 -3
  105. package/dist/generate-BzOnRBij.mjs +2 -0
  106. package/dist/generate-DfxZtpn9.mjs +2 -0
  107. package/dist/{global-options-DiKj2cQy.mjs → global-options-4pyD17hd.mjs} +1 -1
  108. package/dist/{google-tag-gateway-C5WYsSXv.mjs → google-tag-gateway-BM5GmCZa.mjs} +3 -3
  109. package/dist/gt-BV-jij5q.mjs +4 -0
  110. package/dist/healthchecks-CEZ5f3XJ.mjs +20 -0
  111. package/dist/{hyperdrive-Ch6klUp3.mjs → hyperdrive-Da8hCcUw.mjs} +12 -12
  112. package/dist/{iam-LlGEzRCq.mjs → iam-BK6N7NdQ.mjs} +31 -31
  113. package/dist/{images-C5WqUXkK.mjs → images-3bCWE6Ml.mjs} +33 -33
  114. package/dist/index.mjs +1 -1
  115. package/dist/init-BgCF9K8h.mjs +43 -0
  116. package/dist/{intel-vcWyslaX.mjs → intel-BQ58CJLt.mjs} +30 -30
  117. package/dist/{interactive-BCDFSPtq.mjs → interactive-JBA3qOUa.mjs} +9 -9
  118. package/dist/{internal-BhV9WjLp.mjs → internal-CWPz0sBF.mjs} +2 -2
  119. package/dist/{ips-CqHjVsqd.mjs → ips-3WYegiVW.mjs} +2 -2
  120. package/dist/{k2-CZT2Pd5J.mjs → k2-Bc_hjmiv.mjs} +5 -5
  121. package/dist/{kv-Ipa7dnvF.mjs → kv-DbShBhhg.mjs} +6 -6
  122. package/dist/{lazy-command-DbKVgdGT.mjs → lazy-command-CbGyEqFK.mjs} +1 -1
  123. package/dist/leaked-credential-checks-DgPefxP9.mjs +16 -0
  124. package/dist/{live-C9L1bNuE.mjs → live-BTtMv1a6.mjs} +2 -2
  125. package/dist/load-balancers-C2hg52WA.mjs +84 -0
  126. package/dist/{local-DIJ7SIKC.mjs → local-B3zt9PXR.mjs} +1 -1
  127. package/dist/local-DRxctCh9.mjs +2 -0
  128. package/dist/local-runtime-BOnDiMDc.mjs +2 -0
  129. package/dist/{log-BWdaOGOW.mjs → log-Brx-wjJW.mjs} +3 -3
  130. package/dist/log-DBAHla_W.mjs +2 -0
  131. package/dist/login-CK3nn9a5.mjs +2 -0
  132. package/dist/{login-DG5ebyab.mjs → login-DiR-buzS.mjs} +3 -3
  133. package/dist/{logpush-C5Gw7F_9.mjs → logpush-CitvUX-J.mjs} +22 -22
  134. package/dist/{logs-y3REfHbb.mjs → logs-CfWHu4Ir.mjs} +14 -16
  135. package/dist/{magic-network-monitoring-BZBGZB6M.mjs → magic-network-monitoring-gU6yzzML.mjs} +17 -17
  136. package/dist/{magic-transit-BPV_POf5.mjs → magic-transit-B3JY9u5o.mjs} +139 -139
  137. package/dist/{managed-defense-BaUBSUcz.mjs → managed-defense-C_EQ-NYp.mjs} +9 -9
  138. package/dist/managed-transforms-DIGl6JkM.mjs +8 -0
  139. package/dist/{mcp-RPtrISTy.mjs → mcp-DqhQJVaz.mjs} +15 -15
  140. package/dist/{mesh-DZ4QHBPE.mjs → mesh-DXVZBNDC.mjs} +12 -12
  141. package/dist/{migrate-CRIUqGi2.mjs → migrate-CmXyk9vX.mjs} +1 -1
  142. package/dist/{monetization-CVZqM8Xo.mjs → monetization-CWg-mySr.mjs} +9 -9
  143. package/dist/{network-interconnects-9nS5jL__.mjs → network-interconnects-DhfKL5tG.mjs} +17 -19
  144. package/dist/{network-DLt2JUo1.mjs → network-jtgq5eb4.mjs} +24 -24
  145. package/dist/o11y-eYYs59X9.mjs +88 -0
  146. package/dist/oauth-BgDZMd72.mjs +5 -0
  147. package/dist/{oauth-Cidoyxfp.mjs → oauth-V37G-PaV.mjs} +1 -1
  148. package/dist/{observability-C-KNh__y.mjs → observability-CB72eC4T.mjs} +2 -2
  149. package/dist/{ohttp-gateway-B5nCl4s3.mjs → ohttp-gateway-K9ToEft8.mjs} +4 -4
  150. package/dist/{organizations-DbeeWUL4.mjs → organizations-BllV7l_c.mjs} +18 -19
  151. package/dist/output-hFMAotFl.mjs +2 -0
  152. package/dist/package-oNVeacC9.mjs +2 -0
  153. package/dist/page-rules-BVmi-ZFW.mjs +35 -0
  154. package/dist/pages-5spcBpX1.mjs +48 -0
  155. package/dist/{pay-per-crawl-EHYtSKxX.mjs → pay-per-crawl-BgsdGcBi.mjs} +18 -18
  156. package/dist/{pay-per-use-wdEhl8k4.mjs → pay-per-use-CzmI1kEA.mjs} +16 -16
  157. package/dist/pipelines-CbtmLRxt.mjs +40 -0
  158. package/dist/{precursor-Dx8lN4UJ.mjs → precursor-Dk8YOKf_.mjs} +2 -2
  159. package/dist/previews-Bv1HMMtO.mjs +6 -0
  160. package/dist/progress-DE_G09u2.mjs +2 -0
  161. package/dist/project-settings-D_S-UC8I.mjs +3 -0
  162. package/dist/prompt-D274Im1O.mjs +4 -0
  163. package/dist/{queues-DgMc7Z6A.mjs → queues-DGCYUr4g.mjs} +26 -26
  164. package/dist/{r2-BpTVicIq.mjs → r2-DtCk-Nfi.mjs} +51 -51
  165. package/dist/{radar-DW-S1VUh.mjs → radar-1CwqOsMZ.mjs} +150 -150
  166. package/dist/raw-fetch-DhlyWQtk.mjs +2 -0
  167. package/dist/{ready-d0li0X6r.mjs → ready-CcoEA7M7.mjs} +2 -2
  168. package/dist/{realtime-DMKHLYF4.mjs → realtime-DFUxwIG5.mjs} +80 -81
  169. package/dist/registrar-Cl1snz8z.mjs +43 -0
  170. package/dist/{registrar-sandbox-lVLB1-mC.mjs → registrar-sandbox-Cne9BVCZ.mjs} +9 -9
  171. package/dist/{reporting-WX8P3Y0k.mjs → reporting-D9FC-Z-3.mjs} +7 -7
  172. package/dist/request-headers-Bopp5lH_.mjs +2 -0
  173. package/dist/request-tracers-CSSB9_aW.mjs +4 -0
  174. package/dist/{resource-sharing-B2ZSt_cA.mjs → resource-sharing-D8yuzJm7.mjs} +18 -18
  175. package/dist/{rules-CB0QQTB3.mjs → rules-DzmOQ3MB.mjs} +8 -8
  176. package/dist/rulesets-DsTGcgbc.mjs +42 -0
  177. package/dist/{rum-BZ_24qZU.mjs → rum-DrJLI93T.mjs} +14 -14
  178. package/dist/run-C5yPsiO2.mjs +2 -0
  179. package/dist/run-CXWkMU3x.mjs +2 -0
  180. package/dist/schema-CfZOW8Zw.mjs +2 -0
  181. package/dist/{schema-cache-5NkOj7Y3.mjs → schema-cache-CtqAs0PP.mjs} +1 -1
  182. package/dist/schema-flags-DO3kLYBu.mjs +4 -0
  183. package/dist/{scim-DchxaJfE.mjs → scim-0OufLKru.mjs} +8 -8
  184. package/dist/{secrets-store-oAft1cFE.mjs → secrets-store-BQeLzFxv.mjs} +11 -11
  185. package/dist/{security-insights-DMm0qg_m.mjs → security-insights-D2pj8-O-.mjs} +20 -20
  186. package/dist/{security-txt-CIt0494b.mjs → security-txt-SKtgW4n-.mjs} +4 -4
  187. package/dist/session-COdP8BXD.mjs +2 -0
  188. package/dist/shared-D_2KLpP3.mjs +2 -0
  189. package/dist/{signed-url-gNangfwc.mjs → signed-url-CcE2zQ4Y.mjs} +2 -2
  190. package/dist/smart-shield-Dod9Gs6T.mjs +22 -0
  191. package/dist/snippets-DrrdpLnS.mjs +18 -0
  192. package/dist/spawn-DNf-Ge8d.mjs +5 -0
  193. package/dist/{spectrum-DLYIHelC.mjs → spectrum-CHBGZbZF.mjs} +11 -11
  194. package/dist/{speed-DugG9Tm9.mjs → speed-vOlHyG3v.mjs} +11 -11
  195. package/dist/sql-BCuLxGSf.mjs +4 -0
  196. package/dist/src-ByCoEqOw.mjs +133 -0
  197. package/dist/{ssl-Bg4X3WGk.mjs → ssl-BA_dcVwF.mjs} +60 -62
  198. package/dist/startup-profile-CyQk_f_L.mjs +2 -0
  199. package/dist/{startup-profile-DZL2DC44.mjs → startup-profile-uh-F0HRS.mjs} +3 -3
  200. package/dist/state-B6r-b_-d.mjs +2 -0
  201. package/dist/{state-mr5ux1Nb.mjs → state-CTLznbVs.mjs} +1 -1
  202. package/dist/static-assets-DGDoaJf1.mjs +386 -0
  203. package/dist/stream-CzlqY8hq.mjs +89 -0
  204. package/dist/{tags-SKz2odE_.mjs → tags-BLeaslAb.mjs} +8 -8
  205. package/dist/telemetry-COlodX5Z.mjs +2 -0
  206. package/dist/{telemetry-B4zmCpT0.mjs → telemetry-DF7A5Bpk.mjs} +1 -1
  207. package/dist/{tenant-custom-nameservers-BhkhBerL.mjs → tenant-custom-nameservers-C5rh6jPf.mjs} +4 -4
  208. package/dist/{tenants-DD-GMq0K.mjs → tenants-CRirmhxS.mjs} +3 -3
  209. package/dist/{tools-KW_4hvzY.mjs → tools-BRjRgZnj.mjs} +1 -1
  210. package/dist/tunnels-nLfIWPYT.mjs +27 -0
  211. package/dist/{turnstile-DhSU_Xar.mjs → turnstile-CZjXtBCr.mjs} +10 -10
  212. package/dist/ui-dWsVmFCG.mjs +2 -0
  213. package/dist/{update-check-HltjTMDE.mjs → update-check-CXMdVBhW.mjs} +1 -1
  214. package/dist/{update-check-CRttabfu.mjs → update-check-D_Oky9-u.mjs} +1 -1
  215. package/dist/update-check-worker.mjs +1 -1
  216. package/dist/{url-normalization-K7gkmPvG.mjs → url-normalization-DTKgJHE8.mjs} +4 -4
  217. package/dist/url-scanner-9XW3zLaU.mjs +16 -0
  218. package/dist/user-Bk1BIqZ5.mjs +103 -0
  219. package/dist/{vectorize-BTBerJME.mjs → vectorize-CgOfmWYq.mjs} +15 -15
  220. package/dist/version-CcuBNjqg.mjs +2 -0
  221. package/dist/waiting-rooms-C3nTKfK9.mjs +52 -0
  222. package/dist/{web-assets-LHPQsrnY.mjs → web-assets-CWU3jrit.mjs} +29 -29
  223. package/dist/{web3-BsOio0Ae.mjs → web3-CRpQ5sl4.mjs} +13 -13
  224. package/dist/workers-BZMvamn0.mjs +39 -0
  225. package/dist/{workers-for-platforms-BGp6yr6P.mjs → workers-for-platforms-C7F2ev-5.mjs} +18 -18
  226. package/dist/{workers-vpc-D8lefWDo.mjs → workers-vpc-ztEKvWmq.mjs} +6 -6
  227. package/dist/{workflows-B-ZIG3y7.mjs → workflows-Dd88_Nqc.mjs} +24 -24
  228. package/dist/{wrangler-migration-6E6wT_LZ.mjs → wrangler-migration-BzMTJPdI.mjs} +294 -294
  229. package/dist/zaraz-BFK0p28R.mjs +22 -0
  230. package/dist/{zero-trust-BZDXM5r6.mjs → zero-trust-Cdjfp0Ie.mjs} +441 -455
  231. package/dist/{zones-B-UV_DGE.mjs → zones-DDn5jk6I.mjs} +51 -51
  232. package/package.json +19 -19
  233. package/dist/ai-gateway-Lj4On37s.mjs +0 -74
  234. package/dist/ai-search-BxyhS3X7.mjs +0 -74
  235. package/dist/alerting-r0G2X9y9.mjs +0 -52
  236. package/dist/analytics-C6bfqm-W.mjs +0 -17
  237. package/dist/auth-B-h0BHg7.mjs +0 -2
  238. package/dist/auth-B6tswVxH.mjs +0 -2
  239. package/dist/auth-clmqFEWU.mjs +0 -7
  240. package/dist/body-parser-DoewLePl.mjs +0 -2
  241. package/dist/brand-protection-kv1ba80i.mjs +0 -14
  242. package/dist/browser-run-D-vRoZmf.mjs +0 -40
  243. package/dist/build-BzJGqb2o.mjs +0 -2
  244. package/dist/builds-BbxINHRP.mjs +0 -64
  245. package/dist/cf-BQ_LRiut.mjs +0 -18
  246. package/dist/chunk-SOBRPAPT-QTjnHSNs.mjs +0 -363
  247. package/dist/cli-B7vslRfu.mjs +0 -4
  248. package/dist/cloudforce-one-DWBPQDA3.mjs +0 -318
  249. package/dist/command-AVwd7XjE.mjs +0 -2
  250. package/dist/command-B87T_f2f.mjs +0 -2
  251. package/dist/command-CEHhi3t0.mjs +0 -2
  252. package/dist/command-CYmQE79n.mjs +0 -2
  253. package/dist/command-Ce8CVLth.mjs +0 -2
  254. package/dist/command-CqDudQZs.mjs +0 -2
  255. package/dist/command-D4YcwpVp.mjs +0 -2
  256. package/dist/command-D9Qyi1B0.mjs +0 -2
  257. package/dist/command-Dl9ICrRK.mjs +0 -2
  258. package/dist/command-DtCSe8Hy.mjs +0 -2
  259. package/dist/command-DwzVtmb3.mjs +0 -2
  260. package/dist/command-wtBubtZ4.mjs +0 -2
  261. package/dist/containers-B06OGOEB.mjs +0 -380
  262. package/dist/csam-scanner-BV4bHq8v.mjs +0 -8
  263. package/dist/d1-nJCOJZb8.mjs +0 -50
  264. package/dist/deploy-DJMnWFNk.mjs +0 -2
  265. package/dist/deploy-context-YCW3eqP1.mjs +0 -56
  266. package/dist/deploy-input-CQLBXFEB.mjs +0 -2
  267. package/dist/dev-GsYHvMah.mjs +0 -4
  268. package/dist/dialog-D5lus4M4.mjs +0 -2
  269. package/dist/discover-6kAmVMPp.mjs +0 -2
  270. package/dist/discover-C06Syc2B.mjs +0 -2
  271. package/dist/docs-CRc_WOXh.mjs +0 -3
  272. package/dist/email-auth-ptdqNSTZ.mjs +0 -6
  273. package/dist/email-domains-uL22-zRY.mjs +0 -14
  274. package/dist/email-routing-CV43rMJC.mjs +0 -44
  275. package/dist/errors-VG1mgwJl.mjs +0 -11
  276. package/dist/field-extractors-jcZ_bAGc.mjs +0 -8
  277. package/dist/generate-CeeWW3eX.mjs +0 -3
  278. package/dist/generate-D6V4Q58z.mjs +0 -2
  279. package/dist/gt-BQkaDQDq.mjs +0 -3
  280. package/dist/healthchecks-BA1fmzTm.mjs +0 -20
  281. package/dist/init-EVsjBrOz.mjs +0 -43
  282. package/dist/leaked-credential-checks-EzT4TTjO.mjs +0 -16
  283. package/dist/load-balancers-Cb3VkSfc.mjs +0 -84
  284. package/dist/local-D5Vq6ooZ.mjs +0 -2
  285. package/dist/local-runtime-BZjgkacr.mjs +0 -2
  286. package/dist/log-DZfik9Jk.mjs +0 -2
  287. package/dist/login-DRJugxya.mjs +0 -2
  288. package/dist/managed-transforms-CjkjLzMC.mjs +0 -8
  289. package/dist/o11y-ySxrnP1Z.mjs +0 -88
  290. package/dist/oauth-CFVUl-Wv.mjs +0 -4
  291. package/dist/output-BZQEl3mK.mjs +0 -2
  292. package/dist/package-B7RgwuFR.mjs +0 -2
  293. package/dist/page-rules-DRw763O1.mjs +0 -38
  294. package/dist/pages-DfQnxiTk.mjs +0 -48
  295. package/dist/pipelines-DbyrI6F4.mjs +0 -40
  296. package/dist/previews-DEVNSip2.mjs +0 -6
  297. package/dist/progress-yvPscjYg.mjs +0 -2
  298. package/dist/project-settings-nBMEx1f-.mjs +0 -3
  299. package/dist/prompt-CEpZ-lQZ.mjs +0 -4
  300. package/dist/raw-fetch-Cl5spWC3.mjs +0 -2
  301. package/dist/registrar-D23gfKBi.mjs +0 -43
  302. package/dist/request-headers-C0FpeBhz.mjs +0 -2
  303. package/dist/request-tracers-qd7XOAka.mjs +0 -4
  304. package/dist/rulesets-DmqwixUC.mjs +0 -42
  305. package/dist/run-BOKI1uWa.mjs +0 -2
  306. package/dist/run-DBqOjD1P.mjs +0 -2
  307. package/dist/schema-Dj9STsWI.mjs +0 -2
  308. package/dist/schema-flags-CXm9iIv6.mjs +0 -4
  309. package/dist/session-vzNfUhPl.mjs +0 -2
  310. package/dist/shared-MK-_lkbn.mjs +0 -2
  311. package/dist/smart-shield-Boy_qbqd.mjs +0 -22
  312. package/dist/snippets-DdoDYXW-.mjs +0 -18
  313. package/dist/spawn-B5F4OIHG.mjs +0 -5
  314. package/dist/sql-Bb56llsb.mjs +0 -4
  315. package/dist/src-BoSDeQ9m.mjs +0 -133
  316. package/dist/startup-profile-DQVkZZpb.mjs +0 -2
  317. package/dist/state-DW3QZtfh.mjs +0 -2
  318. package/dist/stream-BuZYDbNR.mjs +0 -89
  319. package/dist/telemetry-DkDUr4KK.mjs +0 -2
  320. package/dist/tunnels-D90ztENM.mjs +0 -27
  321. package/dist/ui-xjCox-gU.mjs +0 -2
  322. package/dist/url-scanner-BRdWwka4.mjs +0 -16
  323. package/dist/user-Cmb1_Wu5.mjs +0 -103
  324. package/dist/version-6Bpy6Bgt.mjs +0 -2
  325. package/dist/waiting-rooms-LymmKIGr.mjs +0 -52
  326. package/dist/workers-BnLiOjZf.mjs +0 -39
  327. package/dist/workers-builds-sKpITeRk.mjs +0 -14
  328. package/dist/zaraz-BBKki5WS.mjs +0 -22
@@ -1,68 +1,68 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,i,t as a}from"./context-BY1Eh_Qe.mjs";import{t as o}from"./output-BZQEl3mK.mjs";import{t as s}from"./dry-run-kJbjn4kG.mjs";import{t as c}from"./progress-yvPscjYg.mjs";import{t as l}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as u,r as d,t as f}from"./body-parser-DoewLePl.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,n as h}from"./prompt-CEpZ-lQZ.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>
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{t as n}from"./dry-run-qsnRlRk6.mjs";import{a as r,i,t as a}from"./context-BGm5_wTT.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-hFMAotFl.mjs";import{t as c}from"./progress-DE_G09u2.mjs";import{t as l}from"./run-CXWkMU3x.mjs";import"./telemetry-COlodX5Z.mjs";import{i as u,r as d,t as f}from"./body-parser-HN91kAf0.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,n as h}from"./prompt-D274Im1O.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
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.
5
5
 
6
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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 v={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`})})},ee={command:`fields`,describe:`Operations for account-datasets.fields`,builder:e=>e.command(v).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>
6
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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 v={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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-datasets fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/fields`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let l=await t(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?o: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`]}));s(f,{successLabel:`Loaded`})})},ee={command:`fields`,describe:`Operations for account-datasets.fields`,builder:e=>e.command(v).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>
7
7
 
8
8
  Lists Logpush jobs for an account or zone for a dataset.
9
9
 
10
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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:()=>{}},C={command:`account-datasets`,describe:`Operations for account-datasets`,builder:e=>e.command(ee).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`,body:`json`};function te(e){return e.usage(`$0 logpush account-jobs create
10
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-datasets jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/jobs`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let l=await t(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?o: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`]}));s(f,{successLabel:`Loaded`})})},S={command:`jobs`,describe:`Operations for account-datasets.jobs`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},C={command:`account-datasets`,describe:`Operations for account-datasets`,builder:e=>e.command(ee).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logpush/jobs`,body:`json`};function te(e){return e.usage(`$0 logpush account-jobs create
11
11
 
12
12
  Creates a new Logpush job for an account or zone.
13
13
 
14
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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.ai_gateway_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(`max-upload-bytes`,{type:`number`,description:"The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log files may be much smaller than this batch size."}).option(`max-upload-interval-seconds`,{type:`number`,description:"The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; this means that log files may be sent in shorter intervals than this."}).option(`max-upload-records`,{type:`number`,description:"The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means that log files may contain many fewer lines than this."}).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 ne={command:`create`,describe:`Create Logpush job`,builder:te,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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(w,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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`)}),v=await c(`Creating`,async()=>d.send(w,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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>
14
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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.ai_gateway_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(`max-upload-bytes`,{type:`number`,description:"The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log files may be much smaller than this batch size."}).option(`max-upload-interval-seconds`,{type:`number`,description:"The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; this means that log files may be sent in shorter intervals than this."}).option(`max-upload-records`,{type:`number`,description:"The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means that log files may contain many fewer lines than this."}).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 ne={command:`create`,describe:`Create Logpush job`,builder:te,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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-jobs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/jobs`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(w,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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`)}),v=await c(`Creating`,async()=>u.send(w,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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>
15
15
 
16
16
  Deletes a Logpush job.
17
17
 
18
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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 h({force:!!e.force,message:`This operation deletes the Logpush job.`}))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 T(e){return e.usage(`$0 logpush account-jobs get <job-id>
18
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-jobs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a),"job-id":String(e[`job-id`]??``)},bodyKind:`none`});return}let l=await t(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?o:await a();if(u===`zones`?e.zoneId=d:e.accountId=d,!await h({force:!!e.force,message:`This operation deletes the Logpush job.`}))return;let f=await c(`Deleting`,async()=>l.send(re,{account_or_zone:u,account_or_zone_id:d,job_id:e[`job-id`]}));s(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 T(e){return e.usage(`$0 logpush account-jobs get <job-id>
19
19
 
20
20
  Gets the details of a Logpush job.
21
21
 
22
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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(oe,{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
22
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a),"job-id":String(e[`job-id`]??``)},bodyKind:`none`});return}let l=await t(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?o: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`]}));s(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
23
23
 
24
24
  Lists Logpush jobs for an account or zone.
25
25
 
26
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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>
26
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-jobs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/jobs`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},bodyKind:`none`});return}let l=await t(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?o: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}));s(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>
27
27
 
28
28
  Updates a Logpush job.
29
29
 
30
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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(`max-upload-bytes`,{type:`number`,description:"The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log files may be much smaller than this batch size."}).option(`max-upload-interval-seconds`,{type:`number`,description:"The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; this means that log files may be sent in shorter intervals than this."}).option(`max-upload-records`,{type:`number`,description:"The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means that log files may contain many fewer lines than this."}).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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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=e.body===void 0?void 0:u(e.body),d=await n(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body!==void 0){let t=l,n=await c(`Updating`,async()=>d.send(A,{body:t,account_or_zone:m,account_or_zone_id:h,job_id:e[`job-id`]}));o(n,{successLabel:`Updated`});return}let g=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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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(`Updating`,async()=>d.send(A,{body:g,account_or_zone:m,account_or_zone_id:h,job_id:e[`job-id`]}));o(_,{successLabel:`Updated`})})},N={command:`account-jobs`,describe:`Operations for account-jobs`,builder:e=>e.command(ne).command(ae).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
30
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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(`max-upload-bytes`,{type:`number`,description:"The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log files may be much smaller than this batch size."}).option(`max-upload-interval-seconds`,{type:`number`,description:"The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; this means that log files may be sent in shorter intervals than this."}).option(`max-upload-records`,{type:`number`,description:"The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means that log files may contain many fewer lines than this."}).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-jobs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/jobs/${e[`job-id`]==null?`<job-id>`:encodeURIComponent(String(e[`job-id`]))}`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a),"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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),m=e.zone===void 0?`accounts`:`zones`,h=m===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(m===`zones`?e.zoneId=h:e.accountId=h,e.body!==void 0){let t=l,n=await c(`Updating`,async()=>u.send(A,{body:t,account_or_zone:m,account_or_zone_id:h,job_id:e[`job-id`]}));s(n,{successLabel:`Updated`});return}let g=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`),max_upload_bytes:e[`max-upload-bytes`],max_upload_interval_seconds:e[`max-upload-interval-seconds`],max_upload_records:e[`max-upload-records`],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(`Updating`,async()=>u.send(A,{body:g,account_or_zone:m,account_or_zone_id:h,job_id:e[`job-id`]}));s(_,{successLabel:`Updated`})})},N={command:`account-jobs`,describe:`Operations for account-jobs`,builder:e=>e.command(ne).command(ae).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
31
31
 
32
32
  Gets a new ownership challenge sent to your destination.
33
33
 
34
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(P,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>d.send(P,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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
34
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-ownership create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/ownership`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(P,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>u.send(P,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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
35
35
 
36
36
  Validates ownership challenge of the destination.
37
37
 
38
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(L,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),ownership_challenge:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}),v=await c(`Creating`,async()=>d.send(L,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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
38
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-ownership validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/ownership/validate`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},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`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`],[`ownership_challenge`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(L,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`),ownership_challenge:p(e[`ownership-challenge`],`ownership-challenge`,`text`)}),v=await c(`Creating`,async()=>u.send(L,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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
39
39
 
40
40
  Checks if there is an existing job with a destination.
41
41
 
42
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(H,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>d.send(H,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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
42
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-validate destination-exists-delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/validate/destination/exists`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(H,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>u.send(H,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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
43
43
 
44
44
  Validates destination.
45
45
 
46
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(G,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>d.send(G,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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
46
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-validate destination delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/validate/destination`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},bodyKind:`json`,body:e.body===void 0?f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}):d(e.body),sensitiveBodyPaths:[[`destination_conf`]]});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(G,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=f({destination_conf:p(e[`destination-conf`],`destination-conf`,`text`)}),v=await c(`Creating`,async()=>u.send(G,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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
47
47
 
48
48
  Validates logpull origin with logpull_options.
49
49
 
50
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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=e.body===void 0?void 0:u(e.body),d=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>d.send(J,{body:e,account_or_zone:h,account_or_zone_id:g}));o(t,{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 _=f({logpull_options:p(e[`logpull-options`],`logpull-options`,`text`)}),v=await c(`Creating`,async()=>d.send(J,{body:_,account_or_zone:h,account_or_zone_id:g}));o(v,{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
50
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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,i=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;n({command:`cf logpush account-validate origin create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${i}/${a}/logpush/validate/origin`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(a)},bodyKind:`json`,body:e.body===void 0?f({logpull_options:p(e[`logpull-options`],`logpull-options`,`text`)}):d(e.body)});return}let l=e.body===void 0?void 0:d(e.body),u=await t(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?o:await a();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let e=l,t=await c(`Creating`,async()=>u.send(J,{body:e,account_or_zone:h,account_or_zone_id:g}));s(t,{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 _=f({logpull_options:p(e[`logpull-options`],`logpull-options`,`text`)}),v=await c(`Creating`,async()=>u.send(J,{body:_,account_or_zone:h,account_or_zone_id:g}));s(v,{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
51
51
 
52
- 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=e.body===void 0?void 0:u(e.body),r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>r.send(Y,{body:e,zone_id:a}));o(n,{successLabel:`Created`});return}let l=f({fields:p(e.fields,`fields`,`text`),filter:p(e.filter,`filter`,`text`),sample:e.sample}),d=await c(`Creating`,async()=>r.send(Y,{body:l,zone_id:a}));o(d,{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
52
+ 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){n({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}):d(e.body)});return}let r=e.body===void 0?void 0:d(e.body),a=await t(e),o=await i({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=r,t=await c(`Creating`,async()=>a.send(Y,{body:e,zone_id:o}));s(t,{successLabel:`Created`});return}let l=f({fields:p(e.fields,`fields`,`text`),filter:p(e.filter,`filter`,`text`),sample:e.sample}),u=await c(`Creating`,async()=>a.send(Y,{body:l,zone_id:o}));s(u,{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
53
53
 
54
- 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>
54
+ 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){n({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 r=await t(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let o=await c(`Loading`,async()=>r.send(me,{zone_id:a}));s(o,{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>
55
55
 
56
- 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
56
+ 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();n({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 t(e),u=e.local?o:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(ve,{account_id:u,transformer_id:e[`transformer-id`],...i}));s(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
57
57
 
58
- 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=e.body===void 0?void 0:u(e.body),l=await n(e),d=e.local?t:await a();if(e.accountId=d,e.body!==void 0){let e=i,t=await c(`Creating`,async()=>l.send(X,{body:e,account_id:d}));o(t,{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 h=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),g=await c(`Creating`,async()=>l.send(X,{body:h,account_id:d}));o(g,{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>
58
+ 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();n({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`)}):d(e.body)});return}let i=e.body===void 0?void 0:d(e.body),l=await t(e),u=e.local?o:await a();if(e.accountId=u,e.body!==void 0){let e=i,t=await c(`Creating`,async()=>l.send(X,{body:e,account_id:u}));s(t,{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 h=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),g=await c(`Creating`,async()=>l.send(X,{body:h,account_id:u}));s(g,{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>
59
59
 
60
- 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}))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>
60
+ 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();n({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 t(e),l=e.local?o:await a();if(e.accountId=l,!await h({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(we,{account_id:l,transformer_id:e[`transformer-id`]}));s(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>
61
61
 
62
- 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
62
+ 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();n({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 t(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(De,{account_id:l,transformer_id:e[`transformer-id`]}));s(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
63
63
 
64
- 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
64
+ 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();n({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 t(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(Ae,{account_id:l}));s(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
65
65
 
66
- 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=e.body===void 0?void 0:u(e.body,[{path:[`input`],flag:`input`}]),l=await n(e),h=e.local?t:await a();if(e.accountId=h,e.body!==void 0){let e=i,t=await c(`Loading`,async()=>l.send(Z,{body:e,account_id:h}));o(t,{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 g=f({input:d(e.input,`input`,!0),sql:p(e.sql,`sql`,`text`)},[[`input`]]),_=await c(`Loading`,async()=>l.send(Z,{body:g,account_id:h}));o(_,{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=e.body===void 0?void 0:u(e.body),l=await n(e),d=e.local?t:await a();if(e.accountId=d,e.body!==void 0){let t=i,n=await c(`Updating`,async()=>l.send(Q,{body:t,account_id:d,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 h=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),g=await c(`Updating`,async()=>l.send(Q,{body:h,account_id:d,transformer_id:e[`transformer-id`]}));o(g,{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
66
+ 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. Shape: {"<key>": unknown}.`}).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();n({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:u(e.input,`input`,!0),sql:p(e.sql,`sql`,`text`)},[[`input`]]):d(e.body,[{path:[`input`],flag:`input`}])});return}let i=e.body===void 0?void 0:d(e.body,[{path:[`input`],flag:`input`}]),l=await t(e),h=e.local?o:await a();if(e.accountId=h,e.body!==void 0){let e=i,t=await c(`Loading`,async()=>l.send(Z,{body:e,account_id:h}));s(t,{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 g=f({input:u(e.input,`input`,!0),sql:p(e.sql,`sql`,`text`)},[[`input`]]),_=await c(`Loading`,async()=>l.send(Z,{body:g,account_id:h}));s(_,{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();n({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`)}):d(e.body)});return}let i=e.body===void 0?void 0:d(e.body),l=await t(e),u=e.local?o:await a();if(e.accountId=u,e.body!==void 0){let t=i,n=await c(`Updating`,async()=>l.send(Q,{body:t,account_id:u,transformer_id:e[`transformer-id`]}));s(n,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await m(`name`,`Customer-provided name for identification.`));let h=f({code:p(e.code,`code`,`text`),description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),g=await c(`Updating`,async()=>l.send(Q,{body:h,account_id:u,transformer_id:e[`transformer-id`]}));s(g,{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
67
67
 
68
- 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(C).command(N).command(V).command(de).command(_e).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ve as default};
68
+ 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();n({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 t(e),u=e.local?o:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(Le,{account_id:u,transformer_id:e[`transformer-id`],...i}));s(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(C).command(N).command(V).command(de).command(_e).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ve as default};
@@ -1,51 +1,49 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{i as n,n as r}from"./auth-B-h0BHg7.mjs";import{a as i,i as a,t as o}from"./context-BY1Eh_Qe.mjs";import{t as s}from"./output-BZQEl3mK.mjs";import{t as c}from"./dry-run-kJbjn4kG.mjs";import{t as l}from"./progress-yvPscjYg.mjs";import{t as u}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{a as d,n as f,t as p}from"./body-parser-DoewLePl.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-CEpZ-lQZ.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-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-DA1PHaHi.mjs";import{t as r}from"./dry-run-qsnRlRk6.mjs";import{a as i,i as a,t as o}from"./context-BGm5_wTT.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-hFMAotFl.mjs";import{t as l}from"./progress-DE_G09u2.mjs";import{t as u}from"./run-CXWkMU3x.mjs";import"./telemetry-COlodX5Z.mjs";import{o as d,r as f,t as p}from"./body-parser-HN91kAf0.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-D274Im1O.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.
5
5
 
6
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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
6
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const 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`,a=e.zone??t??`<account-id>`;r({command:`cf logs datasets available`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/logs/explorer/datasets/available`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},bodyKind:`none`});return}let t=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},t,{quiet:e.quiet}):e.local?s:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>t.send(v,{account_or_zone:u,account_or_zone_id:d}));c(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
7
7
 
8
8
  Create a new Log Explorer dataset for the account or zone. List available account or zone datasets to see the dataset types and fields you can use. The \`fields\` property is optional. If not specified, all available fields will be enabled. For dataset field definitions, see: https://developers.cloudflare.com/logs/logpush/logpush-job/datasets/
9
9
 
10
10
  Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dataset`,{type:`string`,description:"Dataset type name to create (e.g. `http_requests`)."}).option(`fields`,{type:`string`,description:`Controls which fields the API ingests. Defaults to all available
11
- fields when absent.
12
- . 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.
11
+ fields when absent. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"enabled": boolean, "name": string}].`}).option(`filter`,{type:`string`,description:`Optional Logpush filter predicate to restrict which events are ingested.
13
12
  See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
14
13
  for syntax and examples.
15
- `}).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=e.body===void 0?void 0:f(e.body),u=await r(e),h=e.zone===void 0?`accounts`:`zones`,_=h===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();if(h===`zones`?e.zoneId=_:e.accountId=_,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>u.send(x,{body:e,account_or_zone:h,account_or_zone_id:_}));s(t,{successLabel:`Created`});return}e.dataset===void 0&&(e.dataset=await g(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let v=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`]}),y=await l(`Creating`,async()=>u.send(x,{body:v,account_or_zone:h,account_or_zone_id:_}));s(y,{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>
14
+ `}).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`,a=e.zone??t??`<account-id>`;r({command:`cf logs datasets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},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 t=e.body===void 0?void 0:f(e.body),u=await n(e),h=e.zone===void 0?`accounts`:`zones`,_=h===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?s:await o();if(h===`zones`?e.zoneId=_:e.accountId=_,e.body!==void 0){let e=t,n=await l(`Creating`,async()=>u.send(x,{body:e,account_or_zone:h,account_or_zone_id:_}));c(n,{successLabel:`Created`});return}e.dataset===void 0&&(e.dataset=await g(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let v=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`]}),y=await l(`Creating`,async()=>u.send(x,{body:v,account_or_zone:h,account_or_zone_id:_}));c(y,{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>
16
15
 
17
16
  Deletes a Log Explorer dataset for the account or zone. Dataset deletion must not be protected.
18
17
 
19
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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.`}))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>
18
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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`,a=e.zone??t??`<account-id>`;r({command:`cf logs datasets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/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(a),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let t=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},t,{quiet:e.quiet}):e.local?s: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.`}))return;let f=await l(`Deleting`,async()=>t.send(w,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));c(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>
20
19
 
21
20
  Retrieve a single Log Explorer dataset by ID for the account or zone.
22
21
 
23
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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})}const k={command:`get <dataset-id>`,describe:`Get an account or zone dataset`,builder:O,handler:async e=>u({command:`logs datasets get`,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 get`,method:`GET`,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();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(D,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));s(f,{successLabel:`Loaded`})})};var A={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets`,query:[`include_zones`],errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function j(e){return e.usage(`$0 logs datasets list
22
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).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})}const k={command:`get <dataset-id>`,describe:`Get an account or zone dataset`,builder:O,handler:async e=>u({command:`logs datasets get`,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`,a=e.zone??t??`<account-id>`;r({command:`cf logs datasets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/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(a),"dataset-id":String(e[`dataset-id`]??``)},bodyKind:`none`});return}let t=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},t,{quiet:e.quiet}):e.local?s:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>t.send(D,{account_or_zone:u,account_or_zone_id:d,dataset_id:e[`dataset-id`]}));c(f,{successLabel:`Loaded`})})};var A={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets`,query:[`include_zones`],errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function j(e){return e.usage(`$0 logs datasets list
24
23
 
25
24
  Returns all Log Explorer datasets configured for the account or zone. Pass \`include_zones=true\` to also include zone-level datasets that belong to this account or zone. List responses omit the \`fields\` property; use the single-dataset endpoint to retrieve field configuration.
26
25
 
27
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`include-zones`,{type:`boolean`,description:`Set to true to include zone-scoped datasets belonging to this account.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List account or zone datasets`,builder:j,handler:async e=>u({command:`logs datasets list`,classification:{safeFlags:[`include-zones`,`dry-run`]}},e,async()=>{let n={include_zones:e[`include-zones`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf logs datasets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(A,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var N={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/${t.dataset_id}`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function P(e){return e.usage(`$0 logs datasets update <dataset-id>
26
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`include-zones`,{type:`boolean`,description:`Set to true to include zone-scoped datasets belonging to this account.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List account or zone datasets`,builder:j,handler:async e=>u({command:`logs datasets list`,classification:{safeFlags:[`include-zones`,`dry-run`]}},e,async()=>{let t={include_zones:e[`include-zones`]};if(e.dryRun){let n=e.zone===void 0?await i():void 0,a=e.zone===void 0?`accounts`:`zones`,o=e.zone??n??`<account-id>`;r({command:`cf logs datasets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${a}/${o}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(a),"account-or-zone-id":String(o)},query:t,bodyKind:`none`});return}let u=await n(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?s:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(A,{account_or_zone:d,account_or_zone_id:f,...t}));c(p,{successLabel:`Loaded`})})};var N={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/logs/explorer/datasets/${t.dataset_id}`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function P(e){return e.usage(`$0 logs datasets update <dataset-id>
28
27
 
29
28
  Updates the enabled state and/or field configuration of an account or zone dataset.
30
29
 
31
30
  Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).positional(`dataset-id`,{type:`string`,description:`Log Explorer dataset ID.`,demandOption:!0}).option(`deletion-protection`,{type:`boolean`,description:"Set to `false` to allow deletion of this dataset."}).option(`enabled`,{type:`boolean`,description:`Whether to enable or disable log ingest for this dataset.`}).option(`fields`,{type:`string`,description:`Controls which fields the API ingests after the update. Defaults
32
- to all available fields when absent.
33
- . 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
31
+ to all available fields when absent. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"enabled": boolean, "name": string}].`}).option(`filter`,{type:`string`,description:`Optional Logpush filter predicate to restrict which events are
34
32
  ingested. If omitted, the existing filter is left unchanged. Set
35
33
  to an empty string (\`""\`) to clear the filter. Otherwise,
36
34
  replaces the dataset's filter entirely.
37
35
  See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
38
36
  for syntax and examples.
39
- `}).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=e.body===void 0?void 0:f(e.body),u=await r(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>u.send(N,{body:t,account_or_zone:h,account_or_zone_id:g,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 _=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`]}),v=await l(`Updating`,async()=>u.send(N,{body:_,account_or_zone:h,account_or_zone_id:g,dataset_id:e[`dataset-id`]}));s(v,{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
37
+ `}).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`,a=e.zone??t??`<account-id>`;r({command:`cf logs datasets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/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(a),"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 t=e.body===void 0?void 0:f(e.body),u=await n(e),h=e.zone===void 0?`accounts`:`zones`,g=h===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?s:await o();if(h===`zones`?e.zoneId=g:e.accountId=g,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>u.send(N,{body:n,account_or_zone:h,account_or_zone_id:g,dataset_id:e[`dataset-id`]}));c(r,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let _=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`]}),v=await l(`Updating`,async()=>u.send(N,{body:_,account_or_zone:h,account_or_zone_id:g,dataset_id:e[`dataset-id`]}));c(v,{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
40
38
 
41
- 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 R={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`})})},ee={command:`list`,describe:`Operations for list`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 logs query
39
+ 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 R={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();r({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 n(e),f=e.local?s:await o();e.accountId=f;let p=await l(`Loading`,async()=>t(d,`GET`,`/accounts/${f}/logs/list`,{query:a,headers:Object.keys(u).length>0?u:void 0}));c(p,{successLabel:`Loaded`})})},ee={command:`list`,describe:`Operations for list`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 logs query
42
40
 
43
41
  Run a SQL query against account or zone-level datasets. Timestamp fields are RFC3339 strings. Filter with: WHERE {timestamp_field} >= now() - INTERVAL '30' DAY WHERE {timestamp_field} >= '2026-04-01T00:00:00Z' WHERE {timestamp_field} BETWEEN '2026-04-01T00:00:00Z' AND '2026-04-30T23:59:59Z' List configured account or zone datasets to see enabled account or zone-level datasets. Zone-level datasets will not appear here. List available account or zone datasets to inspect their schemas and timestamp fields. For more information about the datasets, and the meaning of each field, check out https://developers.cloudflare.com/logs/logpush/logpush-job/datasets/
44
42
 
45
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Plain-text request body (without JSON quotes)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const B={command:`query`,describe:`Run a log query`,builder:z,handler:async e=>u({command:`logs query`,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 query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/query/sql`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`octet-stream`,body:e.file===void 0?e.body:{file:e.file}});return}if(e.body===void 0&&e.file===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let u=e.file===void 0?m(e.body,`body`,`binary`):void 0,d=await r(e),f=e.zone===void 0?`accounts`:`zones`,p=f===`zones`?await a({zone:e.zone},d,{quiet:e.quiet}):e.local?t:await o();if(f===`zones`?e.zoneId=p:e.accountId=p,e.file!==void 0){let t=h(e.file),r=await l(`Loading`,async()=>n(d,`POST`,`/${f}/${p}/logs/explorer/query/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));s(r,{successLabel:`Loaded`})}else if(e.body!==void 0){let e=u,t=await l(`Loading`,async()=>n(d,`POST`,`/${f}/${p}/logs/explorer/query/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));s(t,{successLabel:`Loaded`})}})};var V={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/rayids/${t.ray_id}`,query:[`fields`,`timestamps`]};function H(e){return e.usage(`$0 logs rayid get <ray-id>
43
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Plain-text request body (without JSON quotes)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const B={command:`query`,describe:`Run a log query`,builder:z,handler:async e=>u({command:`logs query`,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`,a=e.zone??t??`<account-id>`;r({command:`cf logs query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/logs/explorer/query/sql`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},bodyKind:`octet-stream`,body:e.file===void 0?e.body:{file:e.file}});return}if(e.body===void 0&&e.file===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let u=e.file===void 0?m(e.body,`body`,`binary`):void 0,d=await n(e),f=e.zone===void 0?`accounts`:`zones`,p=f===`zones`?await a({zone:e.zone},d,{quiet:e.quiet}):e.local?s:await o();if(f===`zones`?e.zoneId=p:e.accountId=p,e.file!==void 0){let n=h(e.file),r=await l(`Loading`,async()=>t(d,`POST`,`/${f}/${p}/logs/explorer/query/sql`,{body:n,headers:{"Content-Type":`text/plain`}}));c(r,{successLabel:`Loaded`})}else if(e.body!==void 0){let e=u,n=await l(`Loading`,async()=>t(d,`POST`,`/${f}/${p}/logs/explorer/query/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));c(n,{successLabel:`Loaded`})}})};var V={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/rayids/${t.ray_id}`,query:[`fields`,`timestamps`]};function H(e){return e.usage(`$0 logs rayid get <ray-id>
46
44
 
47
- The \`/rayids\` api route allows lookups by specific rayid. The rayids route will return zero, one, or more records (ray ids are not unique).`).positional(`ray-id`,{type:`string`,description:`Ray identifier.`,demandOption:!0}).option(`fields`,{type:`string`,description:"The `/received` route by default returns a limited set of fields, and allows customers to override the default field set by specifying individual fields. The reasons for this are: 1. Most customers require only a small subset of fields, but that subset varies from customer to customer; 2. Flat schema is much easier to work with downstream (importing into BigTable etc); 3. Performance (time to process, file size). If `?fields=` is not specified, default field set is returned. This default field set may change at any time. When `?fields=` is provided, each record is returned with the specified fields. `fields` must be specified as a comma separated list without any whitespaces, and all fields must exist. The order in which fields are specified does not matter, and the order of fields in the response is not specified."}).option(`timestamps`,{type:`string`,description:"By default, timestamps in responses are returned as Unix nanosecond integers. The `?timestamps=` argument can be set to change the format in which response timestamps are returned. Possible values are: `unix`, `unixnano`, `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers; `rfc3339` returns timestamps as strings.",choices:[`unix`,`unixnano`,`rfc3339`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <ray-id>`,describe:`Get logs RayIDs`,builder:H,handler:async e=>u({command:`logs rayid get`,classification:{safeFlags:[`timestamps`,`dry-run`]}},e,async()=>{let t={fields:e.fields,timestamps:e.timestamps};if(e.dryRun){c({command:`cf logs rayid get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/rayids/${e[`ray-id`]==null?`<ray-id>`:encodeURIComponent(String(e[`ray-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ray-id":String(e[`ray-id`]??``)},query:t,bodyKind:`none`});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(V,{zone_id:i,ray_id:e[`ray-id`],...t}));s(o,{successLabel:`Loaded`})})},W={command:`rayid`,describe:`Operations for rayid`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/received/fields`};function K(e){return e.usage(`$0 logs received fields get
45
+ The \`/rayids\` api route allows lookups by specific rayid. The rayids route will return zero, one, or more records (ray ids are not unique).`).positional(`ray-id`,{type:`string`,description:`Ray identifier.`,demandOption:!0}).option(`fields`,{type:`string`,description:"The `/received` route by default returns a limited set of fields, and allows customers to override the default field set by specifying individual fields. The reasons for this are: 1. Most customers require only a small subset of fields, but that subset varies from customer to customer; 2. Flat schema is much easier to work with downstream (importing into BigTable etc); 3. Performance (time to process, file size). If `?fields=` is not specified, default field set is returned. This default field set may change at any time. When `?fields=` is provided, each record is returned with the specified fields. `fields` must be specified as a comma separated list without any whitespaces, and all fields must exist. The order in which fields are specified does not matter, and the order of fields in the response is not specified."}).option(`timestamps`,{type:`string`,description:"By default, timestamps in responses are returned as Unix nanosecond integers. The `?timestamps=` argument can be set to change the format in which response timestamps are returned. Possible values are: `unix`, `unixnano`, `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers; `rfc3339` returns timestamps as strings.",choices:[`unix`,`unixnano`,`rfc3339`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <ray-id>`,describe:`Get logs RayIDs`,builder:H,handler:async e=>u({command:`logs rayid get`,classification:{safeFlags:[`timestamps`,`dry-run`]}},e,async()=>{let t={fields:e.fields,timestamps:e.timestamps};if(e.dryRun){r({command:`cf logs rayid get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/rayids/${e[`ray-id`]==null?`<ray-id>`:encodeURIComponent(String(e[`ray-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"ray-id":String(e[`ray-id`]??``)},query:t,bodyKind:`none`});return}let i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});e.zoneId=o;let s=await l(`Loading`,async()=>i.send(V,{zone_id:o,ray_id:e[`ray-id`],...t}));c(s,{successLabel:`Loaded`})})},W={command:`rayid`,describe:`Operations for rayid`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/received/fields`};function K(e){return e.usage(`$0 logs received fields get
48
46
 
49
- Lists all fields available. The response is json object with key-value pairs, where keys are field names, and values are descriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get`,describe:`List fields`,builder:K,handler:async e=>u({command:`logs received fields get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf logs received fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/received/fields`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(G,{zone_id:n}));s(i,{successLabel:`Loaded`})})},J={command:`fields`,describe:`Operations for received.fields`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/received`,query:[`start`,`end`,`fields`,`sample`,`count`,`timestamps`]};function X(e){return e.usage('$0 logs received get\n\nThe `/received` api route allows customers to retrieve their edge HTTP logs. The basic access pattern is "give me all the logs for zone Z for minute M", where the minute M refers to the time records were received at Cloudflare\'s central data center. `start` is inclusive, and `end` is exclusive. Because of that, to get all data, at minutely cadence, starting at 10AM, the proper values are: `start=2018-05-20T10:00:00Z&end=2018-05-20T10:01:00Z`, then `start=2018-05-20T10:01:00Z&end=2018-05-20T10:02:00Z` and so on; the overlap will be handled properly.').option(`start`,{type:`string`,description:`Sets the (inclusive) beginning of the requested time frame. This can be a unix timestamp (in seconds or nanoseconds), or an absolute timestamp that conforms to RFC 3339. At this point in time, it cannot exceed a time in the past greater than seven days.`}).option(`end`,{type:`string`,description:"Sets the (exclusive) end of the requested time frame. This can be a unix timestamp (in seconds or nanoseconds), or an absolute timestamp that conforms to RFC 3339. `end` must be at least five minutes earlier than now and must be later than `start`. Difference between `start` and `end` must be not greater than one hour.",demandOption:!0}).option(`fields`,{type:`string`,description:"The `/received` route by default returns a limited set of fields, and allows customers to override the default field set by specifying individual fields. The reasons for this are: 1. Most customers require only a small subset of fields, but that subset varies from customer to customer; 2. Flat schema is much easier to work with downstream (importing into BigTable etc); 3. Performance (time to process, file size). If `?fields=` is not specified, default field set is returned. This default field set may change at any time. When `?fields=` is provided, each record is returned with the specified fields. `fields` must be specified as a comma separated list without any whitespaces, and all fields must exist. The order in which fields are specified does not matter, and the order of fields in the response is not specified."}).option(`sample`,{type:`number`,description:"When `?sample=` is provided, a sample of matching records is returned. If `sample=0.1` then 10% of records will be returned. Sampling is random: repeated calls will not only return different records, but likely will also vary slightly in number of returned records. When `?count=` is also specified, `count` is applied to the number of returned records, not the sampled records. So, with `sample=0.05` and `count=7`, when there is a total of 100 records available, approximately five will be returned. When there are 1000 records, seven will be returned. When there are 10,000 records, seven will be returned."}).option(`count`,{type:`number`,description:"When `?count=` is provided, the response will contain up to `count` results. Since results are not sorted, you are likely to get different data for repeated requests. `count` must be an integer > 0."}).option(`timestamps`,{type:`string`,description:"By default, timestamps in responses are returned as Unix nanosecond integers. The `?timestamps=` argument can be set to change the format in which response timestamps are returned. Possible values are: `unix`, `unixnano`, `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers; `rfc3339` returns timestamps as strings.",choices:[`unix`,`unixnano`,`rfc3339`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get`,describe:`Get logs received`,builder:X,handler:async e=>u({command:`logs received get`,classification:{safeFlags:[`timestamps`,`dry-run`]}},e,async()=>{let t={start:e.start,end:e.end,fields:e.fields,sample:e.sample,count:e.count,timestamps:e.timestamps};if(e.dryRun){c({command:`cf logs received get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/received`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(Y,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})},Q={command:`received`,describe:`Received log operations`,builder:e=>e.command(Z).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $(e){return e.usage(`$0 logs retrieve get
47
+ Lists all fields available. The response is json object with key-value pairs, where keys are field names, and values are descriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get`,describe:`List fields`,builder:K,handler:async e=>u({command:`logs received fields get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf logs received fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/received/fields`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>t.send(G,{zone_id:i}));c(o,{successLabel:`Loaded`})})},J={command:`fields`,describe:`Operations for received.fields`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/zones/${t.zone_id}/logs/received`,query:[`start`,`end`,`fields`,`sample`,`count`,`timestamps`]};function X(e){return e.usage('$0 logs received get\n\nThe `/received` api route allows customers to retrieve their edge HTTP logs. The basic access pattern is "give me all the logs for zone Z for minute M", where the minute M refers to the time records were received at Cloudflare\'s central data center. `start` is inclusive, and `end` is exclusive. Because of that, to get all data, at minutely cadence, starting at 10AM, the proper values are: `start=2018-05-20T10:00:00Z&end=2018-05-20T10:01:00Z`, then `start=2018-05-20T10:01:00Z&end=2018-05-20T10:02:00Z` and so on; the overlap will be handled properly.').option(`start`,{type:`string`,description:`Sets the (inclusive) beginning of the requested time frame. This can be a unix timestamp (in seconds or nanoseconds), or an absolute timestamp that conforms to RFC 3339. At this point in time, it cannot exceed a time in the past greater than seven days.`}).option(`end`,{type:`string`,description:"Sets the (exclusive) end of the requested time frame. This can be a unix timestamp (in seconds or nanoseconds), or an absolute timestamp that conforms to RFC 3339. `end` must be at least five minutes earlier than now and must be later than `start`. Difference between `start` and `end` must be not greater than one hour.",demandOption:!0}).option(`fields`,{type:`string`,description:"The `/received` route by default returns a limited set of fields, and allows customers to override the default field set by specifying individual fields. The reasons for this are: 1. Most customers require only a small subset of fields, but that subset varies from customer to customer; 2. Flat schema is much easier to work with downstream (importing into BigTable etc); 3. Performance (time to process, file size). If `?fields=` is not specified, default field set is returned. This default field set may change at any time. When `?fields=` is provided, each record is returned with the specified fields. `fields` must be specified as a comma separated list without any whitespaces, and all fields must exist. The order in which fields are specified does not matter, and the order of fields in the response is not specified."}).option(`sample`,{type:`number`,description:"When `?sample=` is provided, a sample of matching records is returned. If `sample=0.1` then 10% of records will be returned. Sampling is random: repeated calls will not only return different records, but likely will also vary slightly in number of returned records. When `?count=` is also specified, `count` is applied to the number of returned records, not the sampled records. So, with `sample=0.05` and `count=7`, when there is a total of 100 records available, approximately five will be returned. When there are 1000 records, seven will be returned. When there are 10,000 records, seven will be returned."}).option(`count`,{type:`number`,description:"When `?count=` is provided, the response will contain up to `count` results. Since results are not sorted, you are likely to get different data for repeated requests. `count` must be an integer > 0."}).option(`timestamps`,{type:`string`,description:"By default, timestamps in responses are returned as Unix nanosecond integers. The `?timestamps=` argument can be set to change the format in which response timestamps are returned. Possible values are: `unix`, `unixnano`, `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers; `rfc3339` returns timestamps as strings.",choices:[`unix`,`unixnano`,`rfc3339`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get`,describe:`Get logs received`,builder:X,handler:async e=>u({command:`logs received get`,classification:{safeFlags:[`timestamps`,`dry-run`]}},e,async()=>{let t={start:e.start,end:e.end,fields:e.fields,sample:e.sample,count:e.count,timestamps:e.timestamps};if(e.dryRun){r({command:`cf logs received get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/logs/received`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});e.zoneId=o;let s=await l(`Loading`,async()=>i.send(Y,{zone_id:o,...t}));c(s,{successLabel:`Loaded`})})},Q={command:`received`,describe:`Received log operations`,builder:e=>e.command(Z).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $(e){return e.usage(`$0 logs retrieve get
50
48
 
51
- Returns logs stored in R2 that match 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(`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 te={command:`get`,describe:`Retrieve logs`,builder:$,handler:async e=>u({command:`logs retrieve get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={start:e.start,end:e.end,bucket:e.bucket,prefix:e.prefix},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 retrieve get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/retrieve`,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/retrieve`,{query:a,headers:Object.keys(u).length>0?u:void 0}));s(p,{successLabel:`Loaded`})})},ne={command:`retrieve`,describe:`Operations for retrieve`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},re={command:`logs`,describe:`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,builder:e=>e.command(B).command(I).command(ee).command(W).command(Q).command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{re as default};
49
+ Returns logs stored in R2 that match 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(`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 te={command:`get`,describe:`Retrieve logs`,builder:$,handler:async e=>u({command:`logs retrieve get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={start:e.start,end:e.end,bucket:e.bucket,prefix:e.prefix},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();r({command:`cf logs retrieve get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/logs/retrieve`,pathParams:{},query:a,bodyKind:`none`});return}let d=await n(e),f=e.local?s:await o();e.accountId=f;let p=await l(`Loading`,async()=>t(d,`GET`,`/accounts/${f}/logs/retrieve`,{query:a,headers:Object.keys(u).length>0?u:void 0}));c(p,{successLabel:`Loaded`})})},ne={command:`retrieve`,describe:`Operations for retrieve`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},re={command:`logs`,describe:`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,builder:e=>e.command(B).command(I).command(ee).command(W).command(Q).command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{re as default};