cf 1.0.0-beta.10 → 1.0.0-beta.12

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 (445) hide show
  1. package/bin/cf +1 -1
  2. package/dist/abuse-reports-Cy9RcWPu.mjs +24 -0
  3. package/dist/{access-D4DN4XZF.mjs → access-DwJm1qet.mjs} +1 -1
  4. package/dist/account-tags-d0RkEw6s.mjs +15 -0
  5. package/dist/accounts-BSd4b-1j.mjs +138 -0
  6. package/dist/{acm-OQqE8FMc.mjs → acm-BfI0p2sX.mjs} +8 -8
  7. package/dist/addressing-lfeJf7YB.mjs +93 -0
  8. package/dist/agent-context-DFEgYjEQ.mjs +2 -0
  9. package/dist/agent-memory-CP1qpn-y.mjs +34 -0
  10. package/dist/ai-audit-B_tSl78A.mjs +6 -0
  11. package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
  12. package/dist/ai-jFzFBANM.mjs +29 -0
  13. package/dist/ai-search-PTlpY1T9.mjs +79 -0
  14. package/dist/ai-security-CKGE547U.mjs +10 -0
  15. package/dist/alerting-CuxoqG3S.mjs +56 -0
  16. package/dist/analytics-NPND7aHB.mjs +20 -0
  17. package/dist/analytics_engine-BoapM9wd.mjs +4 -0
  18. package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
  19. package/dist/{api-security-CSuYMpMO.mjs → api-security-Nk_bg-Kg.mjs} +61 -61
  20. package/dist/{argo-DMfNmOV4.mjs → argo-DYfLQhd2.mjs} +5 -5
  21. package/dist/artifacts-BS6cEqCB.mjs +43 -0
  22. package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
  23. package/dist/auth-AobvBmz4.mjs +2 -0
  24. package/dist/auth-CBtzZ3Sw.mjs +2 -0
  25. package/dist/auth-CKotxfap.mjs +2 -0
  26. package/dist/auth-token-CtguMdmF.mjs +8 -0
  27. package/dist/autoconfig-PfnbLuEO.mjs +532 -0
  28. package/dist/{banner-ClclgnBn.mjs → banner-D03JEqRs.mjs} +1 -1
  29. package/dist/basin-catalog-Ddi-t3q9.mjs +46 -0
  30. package/dist/billing-CDMc4tvX.mjs +23 -0
  31. package/dist/bot-management-UrCM3P8K.mjs +9 -0
  32. package/dist/botnet-feed-CVwRm42k.mjs +11 -0
  33. package/dist/brand-protection-DfNf5REj.mjs +27 -0
  34. package/dist/browser-run-DVaiBLYX.mjs +46 -0
  35. package/dist/build-BKPVP5ip.mjs +2 -0
  36. package/dist/build-C4giET85.mjs +2 -0
  37. package/dist/builds-BG5DHqU3.mjs +71 -0
  38. package/dist/cache-C05hHXUp.mjs +45 -0
  39. package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-DyCFmZwR.mjs} +3 -3
  40. package/dist/cf-B9aqZZKD.mjs +18 -0
  41. package/dist/chunk-AUSY7DKT-BJX6Fdc4.mjs +312 -0
  42. package/dist/chunk-FT2NMTJB-DQ7s3x7Q.mjs +361 -0
  43. package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +2 -0
  44. package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
  45. package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
  46. package/dist/{cli-BeXSqJAj.mjs → cli-D9qlPB-6.mjs} +1 -1
  47. package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
  48. package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-B-m8rfM9.mjs} +7 -7
  49. package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-M4oIUqID.mjs} +15 -15
  50. package/dist/cloud-connector-B63Dwn6n.mjs +6 -0
  51. package/dist/cloudflared-B48cfu95.mjs +2 -0
  52. package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
  53. package/dist/{command-xU78ACNA.mjs → command-BQpXcGKV.mjs} +1 -1
  54. package/dist/{command-DUafPVUr.mjs → command-BWlpCtHe.mjs} +1 -1
  55. package/dist/{command-BOLlvEan.mjs → command-BlGILcTA.mjs} +1 -1
  56. package/dist/{command-K1-DZFJS.mjs → command-CKQlxypn.mjs} +1 -1
  57. package/dist/{command-C__qB2mo.mjs → command-CRl00uA2.mjs} +1 -1
  58. package/dist/{command-DZookrfw.mjs → command-CUkXxZsc.mjs} +1 -1
  59. package/dist/command-CXxh5Hce.mjs +2 -0
  60. package/dist/{command-BCag-xjk.mjs → command-CzvlHvov.mjs} +1 -1
  61. package/dist/{command-DxSJy_ym.mjs → command-DBaNgfA4.mjs} +1 -1
  62. package/dist/command-DEQSv-S1.mjs +2 -0
  63. package/dist/{command-BrHTpaji.mjs → command-DyE8v4sd.mjs} +1 -1
  64. package/dist/command-Rv2MR-eh.mjs +2 -0
  65. package/dist/{command-B6DqnUwt.mjs → command-SS1z_t68.mjs} +1 -1
  66. package/dist/{command-6YTtWltE.mjs → command-VuxpEvmH.mjs} +1 -1
  67. package/dist/{command-DzHL5LKI.mjs → command-ZBQ1WITj.mjs} +1 -1
  68. package/dist/{completions-Cm9brGAI.mjs → completions-lf50FBGm.mjs} +2 -2
  69. package/dist/connector-interrupts-DHN1KtUE.mjs +6 -0
  70. package/dist/connector-telemetry-events-CHg7FmXh.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-CSifYi9r.mjs +6 -0
  72. package/dist/connectors-0UwPUav-.mjs +15 -0
  73. package/dist/containers-DRzgE46U.mjs +375 -0
  74. package/dist/containers-DuIsM7lM.mjs +78 -0
  75. package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-COyTz0Wb.mjs} +8 -8
  76. package/dist/{context-CEOHpZgd.mjs → context-Bwkz4Lm_.mjs} +2 -2
  77. package/dist/{cps-BPQqyL2E.mjs → cps-B7_BJaAU.mjs} +3 -3
  78. package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-jez2EYXC.mjs} +3 -3
  79. package/dist/ct-alerting-CACDrY0E.mjs +5 -0
  80. package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-BBd92YlF.mjs} +8 -8
  81. package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-DTwBiNMX.mjs} +6 -6
  82. package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-DIWlqvN9.mjs} +15 -15
  83. package/dist/custom-nameservers-DISy8v8u.mjs +9 -0
  84. package/dist/custom-pages-BHXO_NFv.mjs +21 -0
  85. package/dist/d1-MvAQMvvo.mjs +89 -0
  86. package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
  87. package/dist/delegate.mjs +1 -1
  88. package/dist/{deploy-C4p6SzLH.mjs → deploy-BS47vZvJ.mjs} +1 -1
  89. package/dist/deploy-context-Cfushp8j.mjs +56 -0
  90. package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
  91. package/dist/{dev-BML-bpNU.mjs → dev-D8FGPKRt.mjs} +2 -2
  92. package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
  93. package/dist/{dialog-BlUXJKbA.mjs → dialog-CL1Zy4pn.mjs} +1 -1
  94. package/dist/discover-DIDEGKo3.mjs +2 -0
  95. package/dist/discover-P20XeGBF.mjs +2 -0
  96. package/dist/{dist-DW47TUGh.mjs → dist-8rP3V95o.mjs} +5 -5
  97. package/dist/dist-CYFkGHYv.mjs +487 -0
  98. package/dist/dls-8D00tqvC.mjs +17 -0
  99. package/dist/{dns-C9sUPsNt.mjs → dns-C-A5pwf3.mjs} +68 -68
  100. package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-DIiF4pro.mjs} +9 -9
  101. package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
  102. package/dist/dotenv-DpXaxfho.mjs +4 -0
  103. package/dist/dry-run-DmsbOMF1.mjs +2 -0
  104. package/dist/durable-objects-CnIqbj84.mjs +6 -0
  105. package/dist/{email-auth-BgvoEHJk.mjs → email-auth-v97Md32E.mjs} +3 -3
  106. package/dist/{email-routing-Bggn219w.mjs → email-routing-I29RG4hb.mjs} +24 -24
  107. package/dist/{email-security-_t7rzrzd.mjs → email-security-BCarmbky.mjs} +86 -86
  108. package/dist/email-sending-CsHk2HAJ.mjs +47 -0
  109. package/dist/error-sanitization-BWnGnB73.mjs +2 -0
  110. package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
  111. package/dist/errors-_sob7Ihu.mjs +3 -0
  112. package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
  113. package/dist/{firewall-CZEN8iA_.mjs → firewall-DpgFqJr3.mjs} +19 -19
  114. package/dist/flagship-BVaXXlsX.mjs +28 -0
  115. package/dist/{fraud-9_9hobAh.mjs → fraud-B5GQdEF2.mjs} +3 -3
  116. package/dist/{generate-CLqGOlOx.mjs → generate-CeeWW3eX.mjs} +1 -1
  117. package/dist/generate-D80-1GnZ.mjs +2 -0
  118. package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
  119. package/dist/gt-3bcLGJ7V.mjs +3 -0
  120. package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-BwYMnKSF.mjs} +12 -12
  121. package/dist/{hostnames-DdOube3R.mjs → hostnames-DhrGRFeI.mjs} +6 -6
  122. package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-DAA8Fazg.mjs} +10 -10
  123. package/dist/iam-sRKDU2Z3.mjs +52 -0
  124. package/dist/images-DXdekLVs.mjs +71 -0
  125. package/dist/index.mjs +1 -1
  126. package/dist/init-j47MT4Qe.mjs +39 -0
  127. package/dist/intel-CnVeSjIS.mjs +76 -0
  128. package/dist/interactive-Dqv0RWVU.mjs +42 -0
  129. package/dist/interactive-Wpd3FcDc.mjs +2 -0
  130. package/dist/{ips-PT_uQKAf.mjs → ips-COCUG8mk.mjs} +2 -2
  131. package/dist/k2-CmHkArHL.mjs +13 -0
  132. package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-l2_S__h3.mjs} +7 -7
  133. package/dist/keys-CDZreums.mjs +4 -0
  134. package/dist/kv-DkpKVimq.mjs +15 -0
  135. package/dist/{lazy-command-glNW3jzf.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
  136. package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-edbapECI.mjs} +10 -10
  137. package/dist/lifecycle-oud60haK.mjs +2 -0
  138. package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
  139. package/dist/{local-B5oRPTEN.mjs → local-C0lQ9sTg.mjs} +1 -1
  140. package/dist/local-D5L5Bwju.mjs +2 -0
  141. package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
  142. package/dist/login-BrjOuHKu.mjs +5 -0
  143. package/dist/login-DeOM4v0L.mjs +2 -0
  144. package/dist/logo-matches-CF8321pb.mjs +6 -0
  145. package/dist/logos-Bd8xNRKW.mjs +7 -0
  146. package/dist/logpush-BYk3qqwY.mjs +46 -0
  147. package/dist/logs-Jcj2NN8H.mjs +36 -0
  148. package/dist/magic-cloud-networking-Dgdb9H0f.mjs +71 -0
  149. package/dist/magic-network-monitoring-CxVU4MZB.mjs +36 -0
  150. package/dist/magic-transit-KDyfUgTv.mjs +383 -0
  151. package/dist/managed-defense-CxaDeNUd.mjs +18 -0
  152. package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-C7rT5E-x.mjs} +5 -5
  153. package/dist/{matches-BSiYXs99.mjs → matches-BtKqG8T9.mjs} +3 -3
  154. package/dist/{mcp-CCMiS75R.mjs → mcp-QDd1Iyc0.mjs} +17 -17
  155. package/dist/mesh-DtrIzl5z.mjs +26 -0
  156. package/dist/metadata-Df5kCWJv.mjs +2 -0
  157. package/dist/{migrate-BJ9Go_wP.mjs → migrate-DHlfR_gZ.mjs} +1 -1
  158. package/dist/{monetization-CFf_lb6x.mjs → monetization-pLalYYMI.mjs} +11 -11
  159. package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
  160. package/dist/network-DrJxPWXQ.mjs +50 -0
  161. package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
  162. package/dist/{oauth-cNZUky3h.mjs → oauth-B08YQ4xq.mjs} +2 -2
  163. package/dist/{oauth-DxGgIwFc.mjs → oauth-TGbM1Q0V.mjs} +1 -1
  164. package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
  165. package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
  166. package/dist/observability-CvN9oxAo.mjs +80 -0
  167. package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
  168. package/dist/{organization-Dbom1gTR.mjs → organization-DIwqRBBV.mjs} +16 -16
  169. package/dist/{organizations-OUMVsuen.mjs → organizations-Dk0D9ukm.mjs} +2 -2
  170. package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
  171. package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
  172. package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +16 -16
  173. package/dist/output-BGqhvqe2.mjs +2 -0
  174. package/dist/{page-rules-B9BQKU4_.mjs → page-rules-BKaU37cM.mjs} +8 -8
  175. package/dist/pages-2Xg-lrMf.mjs +54 -0
  176. package/dist/pay-per-crawl-5-KTQXRr.mjs +65 -0
  177. package/dist/pay-per-use-sGebKzNK.mjs +6 -0
  178. package/dist/pipelines-BM-T7mMK.mjs +44 -0
  179. package/dist/precursor-DmQ32-Sp.mjs +4 -0
  180. package/dist/previews-DDQ9ACDJ.mjs +4 -0
  181. package/dist/{progress-A61dRbXl.mjs → progress-BYVZuEcG.mjs} +1 -1
  182. package/dist/{prompt-CGUzvBgY.mjs → prompt-F5wxc8zq.mjs} +1 -1
  183. package/dist/queries-DPBkVynK.mjs +9 -0
  184. package/dist/queues-CCXRs98q.mjs +57 -0
  185. package/dist/r2-BKuBSW8h.mjs +125 -0
  186. package/dist/{radar-CU4T02Ag.mjs → radar-Gv1yFoRX.mjs} +150 -150
  187. package/dist/raw-fetch-DyYWa923.mjs +2 -0
  188. package/dist/realtime-CVl-rvgx.mjs +172 -0
  189. package/dist/registrar-sandbox-cmOYDnkp.mjs +56 -0
  190. package/dist/registrar-swlnh22i.mjs +43 -0
  191. package/dist/{registry-Cg5lP8oo.mjs → registry-C20J1MW0.mjs} +1 -1
  192. package/dist/reporting-Bgwsvol1.mjs +14 -0
  193. package/dist/request-headers-CUee83pa.mjs +2 -0
  194. package/dist/request-tracers-BBiJvVDz.mjs +4 -0
  195. package/dist/resolve-DvxgnWjL.mjs +2 -0
  196. package/dist/resolve-qwL1LmKN.mjs +2 -0
  197. package/dist/resource-sharing-C1JiYLbl.mjs +40 -0
  198. package/dist/resource-tagging-C9VOSlDR.mjs +4 -0
  199. package/dist/rules-BDunCGMj.mjs +18 -0
  200. package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-BMGxrnv9.mjs} +20 -20
  201. package/dist/rum-B7XiECe9.mjs +30 -0
  202. package/dist/run-CrZgB8L_.mjs +2 -0
  203. package/dist/run-nNxXb_Cv.mjs +2 -0
  204. package/dist/schema-DC0kdqgV.mjs +2 -0
  205. package/dist/schema-flags-BUZR9SLd.mjs +5 -0
  206. package/dist/scim-CORcs2wK.mjs +18 -0
  207. package/dist/secrets-store-BoZQaFey.mjs +24 -0
  208. package/dist/security-insights-DblK_6sg.mjs +40 -0
  209. package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-Dl7RPnRb.mjs} +5 -5
  210. package/dist/{session-CZTuHcbm.mjs → session-BWe9et4K.mjs} +1 -1
  211. package/dist/shared-0N31BXkY.mjs +2 -0
  212. package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-DX0-8ruu.mjs} +13 -13
  213. package/dist/snippets-BFN-Lg3K.mjs +20 -0
  214. package/dist/source-mXUcrTVw.mjs +6 -0
  215. package/dist/spawn-DZ9A-xXb.mjs +10 -0
  216. package/dist/{spectrum-DtG0jYjE.mjs → spectrum-HYWLWB0X.mjs} +12 -12
  217. package/dist/{speed-B-RiNHGK.mjs → speed-Dj0YhfRe.mjs} +13 -13
  218. package/dist/src-CAiZlihY.mjs +117 -0
  219. package/dist/{ssl-DBVpCZAM.mjs → ssl-BQL1fNtD.mjs} +17 -17
  220. package/dist/startup-profile-0X5ebbng.mjs +29 -0
  221. package/dist/startup-profile-CXnsF4c7.mjs +2 -0
  222. package/dist/state-BA2CanJ_.mjs +2 -0
  223. package/dist/{state-BaGRaYow.mjs → state-Dy6-rKNd.mjs} +1 -1
  224. package/dist/stream-DKv2TtZN.mjs +102 -0
  225. package/dist/submit-Byt2KBGI.mjs +4 -0
  226. package/dist/{tags--eph7JbN.mjs → tags-BIBsdG68.mjs} +2 -2
  227. package/dist/telemetry-DBXOMuLh.mjs +2 -0
  228. package/dist/{telemetry-51etasAu.mjs → telemetry-bu3txnIR.mjs} +1 -1
  229. package/dist/{tenant-Bj-He2xO.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
  230. package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
  231. package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
  232. package/dist/{tools-BJZ0DDlL.mjs → tools-BbTX7rlM.mjs} +1 -1
  233. package/dist/tunnels-DWcrz9Sf.mjs +29 -0
  234. package/dist/turnstile-2MIGp2ce.mjs +33 -0
  235. package/dist/{ui-BQxRjahW.mjs → ui-YmjF66Ct.mjs} +1 -1
  236. package/dist/update-check-B-CvDAUz.mjs +2 -0
  237. package/dist/update-check-CfB0PNTY.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/url-info-B8udoxlx.mjs +4 -0
  240. package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-C6AdWtaE.mjs} +5 -5
  241. package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
  242. package/dist/{user-B6P5_OjP.mjs → user-BLZ-0Bgv.mjs} +51 -51
  243. package/dist/values-BUK-m0Jg.mjs +4 -0
  244. package/dist/vectorize-DEUSEQXY.mjs +32 -0
  245. package/dist/version-BZNc7Y3t.mjs +2 -0
  246. package/dist/waiting-rooms-BycGk2Y0.mjs +53 -0
  247. package/dist/{web-assets-yaKxN4w_.mjs → web-assets-CLZdWOmN.mjs} +35 -35
  248. package/dist/{web3-Bu9c_QAt.mjs → web3-DjeavuLg.mjs} +15 -15
  249. package/dist/workers-C_SfyU-v.mjs +38 -0
  250. package/dist/workers-builds-COn5Ne5G.mjs +14 -0
  251. package/dist/workers-for-platforms-tchCXwNF.mjs +42 -0
  252. package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
  253. package/dist/workflows-BibtWuOx.mjs +43 -0
  254. package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
  255. package/dist/zaraz-BvQZB0YY.mjs +22 -0
  256. package/dist/zero-trust-FStq4uhn.mjs +821 -0
  257. package/dist/{zone-uJwRLSnn.mjs → zone-tymlghWb.mjs} +2 -2
  258. package/dist/{zones-Dpofsnth.mjs → zones-Bz6dgT9_.mjs} +47 -47
  259. package/package.json +25 -21
  260. package/dist/abuse-reports-BhSTEz7h.mjs +0 -24
  261. package/dist/account-tags-BWEIZLID.mjs +0 -15
  262. package/dist/accounts-ZQvIqGJz.mjs +0 -138
  263. package/dist/addressing-DCFm17JQ.mjs +0 -93
  264. package/dist/agent-context-GRiQ4zRU.mjs +0 -2
  265. package/dist/agent-memory-BtfPt2me.mjs +0 -34
  266. package/dist/ai-B0_sZbmy.mjs +0 -29
  267. package/dist/ai-audit-DaubuhYF.mjs +0 -6
  268. package/dist/ai-gateway-CJ-1Dzzr.mjs +0 -82
  269. package/dist/ai-search-Dywa1kqX.mjs +0 -79
  270. package/dist/ai-security-2wxMPqKS.mjs +0 -10
  271. package/dist/alerting-yad9DYRv.mjs +0 -56
  272. package/dist/analytics-DKNw2fVc.mjs +0 -20
  273. package/dist/analytics_engine-BA3kF46s.mjs +0 -4
  274. package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
  275. package/dist/artifacts-Cb3hwClm.mjs +0 -43
  276. package/dist/auth-BBlAI8HG.mjs +0 -2
  277. package/dist/auth-BIr56Mbx.mjs +0 -8
  278. package/dist/autoconfig-DPUztTL2.mjs +0 -511
  279. package/dist/basin-catalog-BLsQhJP4.mjs +0 -46
  280. package/dist/billing-CRwD7oQS.mjs +0 -23
  281. package/dist/bot-management-CyW8F8Wm.mjs +0 -9
  282. package/dist/botnet-feed-BBKsxf3Y.mjs +0 -11
  283. package/dist/brand-protection-DSeD8LXl.mjs +0 -27
  284. package/dist/browser-run-BAcUTwB4.mjs +0 -46
  285. package/dist/build-B5UYMEQH.mjs +0 -2
  286. package/dist/build-DLZ9gBNA.mjs +0 -2
  287. package/dist/builds-W1HEG7Bv.mjs +0 -71
  288. package/dist/cache-B7E_PXUp.mjs +0 -45
  289. package/dist/cf-Bh_fTFIj.mjs +0 -18
  290. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +0 -97
  291. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +0 -2
  292. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
  293. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +0 -2
  294. package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
  295. package/dist/cloud-connector-Czg1GdQi.mjs +0 -6
  296. package/dist/cloudflared-DGuau-lC.mjs +0 -2
  297. package/dist/cloudforce-one-B1IhIZcp.mjs +0 -447
  298. package/dist/command-CAtsHc1V.mjs +0 -2
  299. package/dist/command-DfffeX-k.mjs +0 -2
  300. package/dist/command-TCklVvOY.mjs +0 -2
  301. package/dist/connector-interrupts-D93KTMkw.mjs +0 -6
  302. package/dist/connector-telemetry-events-D6CmKR14.mjs +0 -6
  303. package/dist/connector-telemetry-snapshots-WO9IUk0e.mjs +0 -6
  304. package/dist/connectors-DNT6GTW3.mjs +0 -15
  305. package/dist/containers-Btx7vCDP.mjs +0 -78
  306. package/dist/containers-Ce7IO-Ia.mjs +0 -239
  307. package/dist/ct-alerting-CnTRE1Fb.mjs +0 -5
  308. package/dist/custom-nameservers-B0CpnUVg.mjs +0 -9
  309. package/dist/custom-pages-DcoSGN56.mjs +0 -21
  310. package/dist/d1-m7UfzBzl.mjs +0 -41
  311. package/dist/diagnostics-hOvnx5DT.mjs +0 -15
  312. package/dist/discover-C5aiI6u0.mjs +0 -2
  313. package/dist/discover-DwczTkRX.mjs +0 -2
  314. package/dist/dist-BuCJ_55d.mjs +0 -366
  315. package/dist/dist-C3s9SXTd.mjs +0 -48
  316. package/dist/dls-v6DyEWTd.mjs +0 -17
  317. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +0 -2
  318. package/dist/dotenv-CcQjGlV0.mjs +0 -4
  319. package/dist/dry-run-Bq0JAsbX.mjs +0 -2
  320. package/dist/durable-objects-C01phVwL.mjs +0 -6
  321. package/dist/email-sending-_dKCs2VF.mjs +0 -47
  322. package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
  323. package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
  324. package/dist/fieldExtractors-Cm5QnkE0.mjs +0 -9
  325. package/dist/flagship-B_SAI_ZL.mjs +0 -28
  326. package/dist/generate-BPqoDbck.mjs +0 -2
  327. package/dist/gt-DmcMNPX6.mjs +0 -2
  328. package/dist/iam-DUW7neMx.mjs +0 -52
  329. package/dist/images-B9dnr1z0.mjs +0 -71
  330. package/dist/init-BGcAIvV7.mjs +0 -39
  331. package/dist/intel-BQpZMck3.mjs +0 -76
  332. package/dist/interactive-C-o16XQs.mjs +0 -32
  333. package/dist/interactive-SgAjen2z.mjs +0 -2
  334. package/dist/k2-nPYti7Y0.mjs +0 -13
  335. package/dist/keys-O5kAW9ox.mjs +0 -4
  336. package/dist/kv-BUP_ZLM_.mjs +0 -15
  337. package/dist/lifecycle-C7tAC1Mn.mjs +0 -2
  338. package/dist/local-Bj-l0TP6.mjs +0 -2
  339. package/dist/login-C5nSIS-T.mjs +0 -2
  340. package/dist/login-CUup7w0e.mjs +0 -5
  341. package/dist/logo-matches-BkQKdu4Z.mjs +0 -6
  342. package/dist/logos-C_sv-boo.mjs +0 -7
  343. package/dist/logpush-NUcyMKHi.mjs +0 -46
  344. package/dist/logs-BZT4PlqZ.mjs +0 -36
  345. package/dist/magic-cloud-networking-DQnSdmgA.mjs +0 -71
  346. package/dist/magic-network-monitoring-pHTU6aS8.mjs +0 -36
  347. package/dist/magic-transit-5302bQNh.mjs +0 -383
  348. package/dist/managed-defense-8OEfDzuO.mjs +0 -18
  349. package/dist/mesh-DKBGTlCD.mjs +0 -26
  350. package/dist/metadata-C33s4rc-.mjs +0 -2
  351. package/dist/mtls-certificates-DsF3NFNs.mjs +0 -13
  352. package/dist/network-Bm0qYRqY.mjs +0 -50
  353. package/dist/oauth-clients-CP6alY0_.mjs +0 -16
  354. package/dist/observability-Bp71PtlD.mjs +0 -80
  355. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +0 -4
  356. package/dist/output-CvQFJkvi.mjs +0 -2
  357. package/dist/pages-DZPdyuT4.mjs +0 -54
  358. package/dist/pay-per-crawl-CnveMVDi.mjs +0 -65
  359. package/dist/pay-per-use-Bpxe8PHv.mjs +0 -6
  360. package/dist/pipelines-CHev3o5G.mjs +0 -44
  361. package/dist/precursor-C9PK9Bue.mjs +0 -4
  362. package/dist/previews-BIMI1dTz.mjs +0 -4
  363. package/dist/queries-f-btyefs.mjs +0 -9
  364. package/dist/queues-kLNdeb3q.mjs +0 -57
  365. package/dist/r2-D_awYx2p.mjs +0 -125
  366. package/dist/raw-fetch-CvkmFO23.mjs +0 -2
  367. package/dist/realtime-C0dvcBBM.mjs +0 -172
  368. package/dist/registrar-CHc-4vcf.mjs +0 -43
  369. package/dist/registrar-sandbox-Dq8LV2AI.mjs +0 -56
  370. package/dist/reporting-4u21g6Dk.mjs +0 -14
  371. package/dist/request-headers-D31kdxrQ.mjs +0 -2
  372. package/dist/request-tracers-CupJ_83j.mjs +0 -4
  373. package/dist/resolve-BCTrtcx7.mjs +0 -2
  374. package/dist/resolve-PZuJ878-.mjs +0 -2
  375. package/dist/resource-sharing-CO-Lh-u7.mjs +0 -40
  376. package/dist/resource-tagging-D0R5SzR6.mjs +0 -4
  377. package/dist/rules-BsmKzB9H.mjs +0 -18
  378. package/dist/rum-wcLEvVJl.mjs +0 -30
  379. package/dist/run-CIJTelJL.mjs +0 -2
  380. package/dist/run-quhbAvQi.mjs +0 -2
  381. package/dist/schema-GdBsV4P7.mjs +0 -2
  382. package/dist/schema-flags-D8vL2oiF.mjs +0 -5
  383. package/dist/scim-BkdJmAS8.mjs +0 -18
  384. package/dist/sdk-BCzcRJCi.mjs +0 -3
  385. package/dist/secrets-store-CHs0oYA0.mjs +0 -24
  386. package/dist/security-insights-vsl-4xFa.mjs +0 -40
  387. package/dist/shared-BS30oCf8.mjs +0 -2
  388. package/dist/snippets-CFaF_NyG.mjs +0 -20
  389. package/dist/source-38bULAR8.mjs +0 -6
  390. package/dist/spawn-B0Sl8lUu.mjs +0 -10
  391. package/dist/src-CM3XaB4p.mjs +0 -109
  392. package/dist/startup-profile-CLmojOrn.mjs +0 -2
  393. package/dist/startup-profile-CR7GMuLx.mjs +0 -17
  394. package/dist/state-CpXhcMdX.mjs +0 -2
  395. package/dist/stream-cAdBvpS1.mjs +0 -102
  396. package/dist/submit-Bkd7l2rK.mjs +0 -4
  397. package/dist/telemetry-Q3_UmwHj.mjs +0 -2
  398. package/dist/tunnels-CgtuRpcD.mjs +0 -29
  399. package/dist/turnstile-Bmcnrzw7.mjs +0 -33
  400. package/dist/update-check-BqSpgzHk.mjs +0 -2
  401. package/dist/update-check-DC0qP_8z.mjs +0 -2
  402. package/dist/url-info-DhVehaT8.mjs +0 -4
  403. package/dist/url-scanner-DiLdqsQk.mjs +0 -16
  404. package/dist/values-Cxx4Lxrd.mjs +0 -4
  405. package/dist/vectorize-YyxVpql-.mjs +0 -32
  406. package/dist/version-C0pInAZ9.mjs +0 -2
  407. package/dist/waiting-rooms-BdahlCdD.mjs +0 -53
  408. package/dist/workers-5GgoGA2e.mjs +0 -38
  409. package/dist/workers-builds-h-1FJjE1.mjs +0 -14
  410. package/dist/workers-for-platforms-CV9iRrp9.mjs +0 -42
  411. package/dist/workflows-dtMlkj1-.mjs +0 -43
  412. package/dist/zaraz-838AbMEX.mjs +0 -22
  413. package/dist/zero-trust-CYt-eELJ.mjs +0 -821
  414. /package/dist/{Page-CjJht2qT.mjs → Page-BShsqCXr.mjs} +0 -0
  415. /package/dist/{alerts-DY_7Nknx.mjs → alerts-BSON-vFh.mjs} +0 -0
  416. /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
  417. /package/dist/{autorag-K396-M2S.mjs → autorag-kNrLiqDX.mjs} +0 -0
  418. /package/dist/{body-parser-hh2avzkz.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
  419. /package/dist/{brands-DeLbFxSt.mjs → brands-bBJgbbOH.mjs} +0 -0
  420. /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
  421. /package/dist/{clear-CRfI7WS7.mjs → clear-BW9vLgI3.mjs} +0 -0
  422. /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
  423. /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
  424. /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
  425. /package/dist/{delegate-B6LetRpZ.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
  426. /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BkcBcyfF.mjs} +0 -0
  427. /package/dist/{health-Bz33n-_F.mjs → health-CTaCeVyC.mjs} +0 -0
  428. /package/dist/{input-validation-Dk52b0me.mjs → input-validation-D7z60HJH.mjs} +0 -0
  429. /package/dist/{internal-BHrJbbdA.mjs → internal-BYS7hO8c.mjs} +0 -0
  430. /package/dist/{live-MeJQXIei.mjs → live-BJE_YWE1.mjs} +0 -0
  431. /package/dist/{project-settings-DO6njFg_.mjs → project-settings-nBMEx1f-.mjs} +0 -0
  432. /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
  433. /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
  434. /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
  435. /package/dist/{ready-BOpbZ1pN.mjs → ready-B3pLxnjc.mjs} +0 -0
  436. /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
  437. /package/dist/{refute-DkF4XIMw.mjs → refute-Dp3VodMn.mjs} +0 -0
  438. /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
  439. /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-CxeudOzj.mjs} +0 -0
  440. /package/dist/{search-Bre1Zwn3.mjs → search-B_P5ZTQj.mjs} +0 -0
  441. /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-D5RwvrQq.mjs} +0 -0
  442. /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-_t78q2OE.mjs} +0 -0
  443. /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-CPrKEciQ.mjs} +0 -0
  444. /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
  445. /package/dist/{verify-CKgZYvln.mjs → verify-5KcvRk-q.mjs} +0 -0
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C0lQ9sTg.mjs";import{i as t,n}from"./auth-AobvBmz4.mjs";import{a as r,i,t as a}from"./context-Bwkz4Lm_.mjs";import{t as o}from"./output-BGqhvqe2.mjs";import{t as s}from"./dry-run-DmsbOMF1.mjs";import{t as c}from"./progress-BYVZuEcG.mjs";import{t as l}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g}from"./prompt-F5wxc8zq.mjs";function _(e){return e.usage(`$0 analytics latency colos get
3
+
4
+ Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:_,handler:async e=>l({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.analytics.latency.colos.get({zone_id:r}));o(a,{successLabel:`Loaded`})})},y={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 analytics latency get
5
+
6
+ Retrieves aggregate Argo Smart Routing analytics for a zone, including latency improvements, bandwidth savings, and routing statistics.`).option(`bins`,{type:`string`,description:`Bins`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Argo Analytics for a zone`,builder:b,handler:async e=>l({command:`analytics latency get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={bins:e.bins};if(e.dryRun){s({command:`cf analytics latency get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.analytics.latency.get({zone_id:a,...t}));o(l,{successLabel:`Loaded`})})},S={command:`latency`,describe:`Argo Smart Routing latency analytics showing time-to-first-byte improvements`,builder:e=>e.command(x).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 analytics query data-security content-findings top-n
7
+
8
+ Returns the top N integrations ranked by total content findings.`).option(`filters`,{type:`string`,description:"Filters to apply. `findingType = content` is applied automatically for CASB data. Provide as a JSON array of objects or @path/to/file.json."}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`n`,{type:`number`,description:`Maximum number of integrations to return.`}).option(`to`,{type:`string`,description:`End of the query time range (exclusive). RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Returns the top N integrations for content findings.`})}const w={command:`top-n`,describe:`Top integrations by content findings`,builder:C,handler:async t=>l({command:`analytics query data-security content-findings top-n`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query data-security content-findings top-n`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/data-security/content-findings/top-n`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),n:t.n,to:m(t.to,`to`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.dataSecurity.contentFindings.topN({...e,account_id:l}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(t.from===void 0&&(t.from=await g(`from`,`Start of the query time range (inclusive). RFC3339.`)),t.n===void 0)throw Error(`--n is required (or pass --body with this field set).`);t.to===void 0&&(t.to=await g(`to`,`End of the query time range (exclusive). RFC3339.`));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),n:t.n,to:m(t.to,`to`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.dataSecurity.contentFindings.topN({...u,account_id:l}));o(h,{successLabel:`Created`})})},T={command:`content-findings`,describe:`Operations for query.data-security.content-findings`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 analytics query data-security findings summary
9
+
10
+ Returns aggregate current-period and previous-period totals for CASB findings.`).option(`filters`,{type:`string`,description:`Filters to apply. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`to`,{type:`string`,description:`End of the query time range (exclusive). RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Query for aggregate findings summary.`})}const D={command:`summary`,describe:`Data security findings summary`,builder:E,handler:async t=>l({command:`analytics query data-security findings summary`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query data-security findings summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/data-security/findings/summary`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),to:m(t.to,`to`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.dataSecurity.findings.summary({...e,account_id:l}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);t.from===void 0&&(t.from=await g(`from`,`Start of the query time range (inclusive). RFC3339.`)),t.to===void 0&&(t.to=await g(`to`,`End of the query time range (exclusive). RFC3339.`));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),to:m(t.to,`to`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.dataSecurity.findings.summary({...u,account_id:l}));o(h,{successLabel:`Created`})})};function O(e){return e.usage(`$0 analytics query data-security findings timeseries
11
+
12
+ Returns merged time-bucketed CASB findings.`).option(`filters`,{type:`string`,description:`Filters to apply. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`to`,{type:`string`,description:`End of the query time range (exclusive). RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Query for findings timeseries.`})}const k={command:`timeseries`,describe:`Data security findings timeseries`,builder:O,handler:async t=>l({command:`analytics query data-security findings timeseries`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query data-security findings timeseries`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/data-security/findings/timeseries`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),to:m(t.to,`to`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.dataSecurity.findings.timeseries({...e,account_id:l}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);t.from===void 0&&(t.from=await g(`from`,`Start of the query time range (inclusive). RFC3339.`)),t.to===void 0&&(t.to=await g(`to`,`End of the query time range (exclusive). RFC3339.`));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),to:m(t.to,`to`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.dataSecurity.findings.timeseries({...u,account_id:l}));o(h,{successLabel:`Created`})})},A={command:`findings`,describe:`Operations for query.data-security.findings`,builder:e=>e.command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},j={command:`data-security`,describe:`Operations for query.data-security`,builder:e=>e.command(T).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 analytics query summary <dataset>
13
+
14
+ Returns aggregate summary stats for a dataset. Includes current-period and previous-period totals for trend comparison.`).positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const N={command:`summary <dataset>`,describe:`Query analytics summary`,builder:M,handler:async t=>l({command:`analytics query summary`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${t.dataset==null?`<dataset>`:encodeURIComponent(String(t.dataset))}/summary`,pathParams:{dataset:String(t.dataset??``)},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.summary({...e,account_id:l,dataset:t.dataset}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(t.from===void 0&&(t.from=await g(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),t[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(t.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);t.to===void 0&&(t.to=await g(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.summary({...u,account_id:l,dataset:t.dataset}));o(h,{successLabel:`Created`})})};function P(e){return e.usage("$0 analytics query timeseries <dataset>\n\nReturns time-bucketed analytics data for a dataset. Includes time slots, each containing the requested stats, group-by dimensions, and resolution-controlled bucket size (e.g. `hour`, `day`).").positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`resolution`,{type:`string`,description:`Time bucket size for grouping results. Controls the granularity of the returned time slots.
15
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const F={command:`timeseries <dataset>`,describe:`Query analytics timeseries`,builder:P,handler:async t=>l({command:`analytics query timeseries`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query timeseries`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${t.dataset==null?`<dataset>`:encodeURIComponent(String(t.dataset))}/timeseries`,pathParams:{dataset:String(t.dataset??``)},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`),resolution:m(t.resolution,`resolution`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.timeseries({...e,account_id:l,dataset:t.dataset}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(t.from===void 0&&(t.from=await g(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),t[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(t.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);t.to===void 0&&(t.to=await g(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`)),t.resolution===void 0&&(t.resolution=await g(`resolution`,`Time bucket size for grouping results. Controls the granularity of the returned time slots. `));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`),resolution:m(t.resolution,`resolution`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.timeseries({...u,account_id:l,dataset:t.dataset}));o(h,{successLabel:`Created`})})};function I(e){return e.usage(`$0 analytics query top-n <dataset>
16
+
17
+ Returns the top N results for a dataset by a specified stat. Includes an array of result rows, each containing the requested stats and group-by dimensions.`).positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`n`,{type:`number`,description:`Maximum number of results to return.`}).option(`order-by`,{type:`string`,description:`Specifies the stat name for sorting results in descending order. Requires a valid stat for the target dataset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const L={command:`top-n <dataset>`,describe:`Query analytics top-N`,builder:I,handler:async t=>l({command:`analytics query top-n`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf analytics query top-n`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${t.dataset==null?`<dataset>`:encodeURIComponent(String(t.dataset))}/top-n`,pathParams:{dataset:String(t.dataset??``)},bodyKind:`json`,body:t.body===void 0?p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`),n:t.n,orderBy:m(t[`order-by`],`order-by`,`text`)}):d(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=d(t.body),n=await c(`Creating`,async()=>i.analytics.query.topN({...e,account_id:l,dataset:t.dataset}));o(n,{successLabel:`Created`});return}if(t.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(t.from===void 0&&(t.from=await g(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),t[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(t.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);if(t.to===void 0&&(t.to=await g(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`)),t.n===void 0)throw Error(`--n is required (or pass --body with this field set).`);t[`order-by`]===void 0&&(t[`order-by`]=await g(`order-by`,`Specifies the stat name for sorting results in descending order. Requires a valid stat for the target dataset.`));let u=p({filters:f(t.filters,`filters`),from:m(t.from,`from`,`text`),groupBy:t[`group-by`],stats:t.stats,to:m(t.to,`to`,`text`),n:t.n,orderBy:m(t[`order-by`],`order-by`,`text`)}),h=await c(`Creating`,async()=>i.analytics.query.topN({...u,account_id:l,dataset:t.dataset}));o(h,{successLabel:`Created`})})},R={command:`query`,describe:`Operations for query`,builder:e=>e.command(N).command(F).command(L).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage("$0 analytics sql get\n\nExecutes a SQL query against the analytics datasets available to the caller. SQL placeholders can be bound with query parameters named `param_<name>`, such as `param_status=404` for `$status`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").option(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get`,describe:`Query analytics datasets`,builder:z,handler:async e=>l({command:`analytics sql get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={query:e.query};if(e.dryRun){s({command:`cf analytics sql get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=await c(`Loading`,async()=>r.analytics.sql.get(t));o(i,{successLabel:`Loaded`})})};function V(e){return e.usage("$0 analytics sql introspection get\n\nReturns the analytics dataset catalogue. By default, the response contains dataset names, titles, descriptions, and kinds. Set `include_columns` to include each dataset's column names, descriptions, and data types. The caller must have Account Analytics Read permission on the account identified by `account_tag`. Dataset names, descriptions, and columns are the same for every authorized account. When `include_custom_attributes` is set, the response also includes custom attribute names and types discovered from that account's own data, which legitimately differs per caller. The catalogue lists the datasets this deployment is able to describe, which is not a fixed list. Some datasets are described by the service that owns them and are listed only where that service is available, so the same account may see a different catalogue in different environments, and datasets may appear or disappear without a change to this API. Clients should query the catalogue rather than hard-coding it, and should not treat a dataset's absence as proof that it does not exist. Workers Analytics Engine datasets are named by the account that writes them, so they are discovered from that account's own data rather than from a fixed list. They appear as `events.analyticsEngine.<dataset_name>` and differ per account. A dataset is listed for as long as any of its data is retained, so it does not disappear from the catalogue merely because writes have stopped. An account with a very large number of datasets may receive a truncated list. Set `include_wae=false` to omit them. Log Explorer datasets are listed only where the account has them, so they differ per account and are not part of the static catalogue. Set `include_lex=false` to omit them.").option(`account-tag`,{type:`string`,description:`Account whose available analytics datasets are returned.`,demandOption:!0}).option(`include-columns`,{type:`boolean`,description:`Include column metadata for each returned dataset.`}).option(`include-custom-attributes`,{type:`boolean`,description:`Include a capped set of custom attribute names and types observed during the preceding seven days. Requires a nonempty dataset_name.`}).option(`include-wae`,{type:`boolean`,description:"Include Workers Analytics Engine datasets, which are discovered from the account's own data. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`include-lex`,{type:`boolean`,description:"Include Log Explorer datasets, which are listed only where the account has them. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`dataset-name`,{type:`string`,description:"Return only the dataset with this exact name. An empty value is treated as if the parameter had been omitted, and does not filter the catalogue. A name that matches no dataset in this deployment's catalogue is rejected with `422`; a dataset that exists but is not describable here is rejected identically, so the two cases cannot be told apart.\n\nA Workers Analytics Engine dataset is named in full, as `events.analyticsEngine.<dataset_name>`; the namespace on its own returns every such dataset the account has. A `dataset_name` the account does not have is rejected with `422` like any other unknown name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`List available analytics datasets`,builder:V,handler:async e=>l({command:`analytics sql introspection get`,classification:{safeFlags:[`include-columns`,`include-custom-attributes`,`include-wae`,`include-lex`,`dry-run`]}},e,async()=>{let t={account_tag:e[`account-tag`],include_columns:e[`include-columns`],include_custom_attributes:e[`include-custom-attributes`],include_wae:e[`include-wae`],include_lex:e[`include-lex`],dataset_name:e[`dataset-name`]};if(e.dryRun){s({command:`cf analytics sql introspection get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql/introspection`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=await c(`Loading`,async()=>r.analytics.sql.introspection.get(t));o(i,{successLabel:`Loaded`})})},U={command:`introspection`,describe:`Operations for sql.introspection`,builder:e=>e.command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function W(e){return e.usage("$0 analytics sql post\n\nExecutes a SQL query against the analytics datasets available to the caller. Send either raw SQL or a JSON object containing the query and optional positional or named parameters, time range, and account or zone scope. Raw SQL placeholders can also be bound with query parameters named `param_<name>`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").option(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset.
18
+ `}).option(`scope-account-tag`,{type:`string`,description:`Account tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
19
+ `}).option(`scope-zone-tag`,{type:`string`,description:`Zone tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
20
+ `}).option(`time-range-end`,{type:`string`,description:`Inclusive upper bound for the dataset's timestamp column.`}).option(`time-range-start`,{type:`string`,description:`Inclusive lower bound for the dataset's timestamp column.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).conflicts(`scope-account-tag`,[`scope-zone-tag`]).conflicts(`scope-zone-tag`,[`scope-account-tag`]).check(e=>{if([`time-range-end`,`time-range-start`].some(t=>e[t]!==void 0)){let t=[`time-range-start`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --time_range-* flag is set`)}return!0})}const G={command:`post`,describe:`Query analytics datasets`,builder:W,handler:async e=>l({command:`analytics sql post`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf analytics sql post`,method:`POST`,url:`https://api.cloudflare.com/client/v4/analytics/sql`,pathParams:{},bodyKind:e.file===void 0?`json`:`octet-stream`,body:e.file===void 0?e.body===void 0?p({query:m(e.query,`query`,`text`),scope:{accountTag:m(e[`scope-account-tag`],`scope-account-tag`,`text`),zoneTag:m(e[`scope-zone-tag`],`scope-zone-tag`,`text`)},time_range:{end:m(e[`time-range-end`],`time-range-end`,`text`),start:m(e[`time-range-start`],`time-range-start`,`text`)}}):d(e.body):{file:e.file}});return}let r=await n(e);if(e.file){let n=h(e.file),i=await c(`Creating`,async()=>t(r,`POST`,`/analytics/sql`,{body:n,headers:{"Content-Type":`text/plain`}}));o(i,{successLabel:`Created`});return}if(e.body){let n=d(e.body),i=await c(`Creating`,async()=>t(r,`POST`,`/analytics/sql`,{body:n}));o(i,{successLabel:`Created`});return}e.query===void 0&&(e.query=await g(`query`,`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset. `));let i={};e.query!==void 0&&u(i,[`query`],m(e.query,`query`,`text`)),e[`scope-account-tag`]!==void 0&&u(i,[`scope`,`accountTag`],m(e[`scope-account-tag`],`scope-account-tag`,`text`)),e[`scope-zone-tag`]!==void 0&&u(i,[`scope`,`zoneTag`],m(e[`scope-zone-tag`],`scope-zone-tag`,`text`)),e[`time-range-end`]!==void 0&&u(i,[`time_range`,`end`],m(e[`time-range-end`],`time-range-end`,`text`)),e[`time-range-start`]!==void 0&&u(i,[`time_range`,`start`],m(e[`time-range-start`],`time-range-start`,`text`));let a=await c(`Creating`,async()=>t(r,`POST`,`/analytics/sql`,{body:Object.keys(i).length>0?i:void 0}));o(a,{successLabel:`Created`})})},K={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(B).command(G).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`analytics`,describe:`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,builder:e=>e.command(S).command(R).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{q as default};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C0lQ9sTg.mjs";import{i as t,n}from"./auth-AobvBmz4.mjs";import{a as r,t as i}from"./context-Bwkz4Lm_.mjs";import{t as a}from"./output-BGqhvqe2.mjs";import{t as o}from"./dry-run-DmsbOMF1.mjs";import{t as s}from"./progress-BYVZuEcG.mjs";import{t as c}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as l,t as u}from"./input-validation-D7z60HJH.mjs";function d(e){return e.usage(`$0 analytics_engine sql query
3
+
4
+ Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const f={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:d,handler:async d=>c({command:`analytics_engine sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){let e=await r();o({command:`cf analytics_engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:d.body});return}let c=await n(d),f=d.local?e:await i();if(d.accountId=f,d.file){let e=u(d.file),n=await s(`Loading`,async()=>t(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));a(n,{successLabel:`Loaded`});return}if(d.body){let e=l(d.body,`body`,`binary`),n=await s(`Loading`,async()=>t(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));a(n,{successLabel:`Loaded`});return}let p=await s(`Loading`,async()=>c.analyticsEngine.sql.query({account_id:f}));a(p,{successLabel:`Loaded`})})},p={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},m={command:`analytics_engine`,describe:`analytics_engine`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ function e({onlyFirst:e=!1}={}){return RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,e?void 0:`g`)}const t=e();function n(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes(`\x1B`)&&!e.includes(`›`)?e:e.replace(t,``)}const r=(e=0)=>t=>`\u001B[${t+e}m`,i=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,a=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(o.modifier);const s=Object.keys(o.color),c=Object.keys(o.bgColor);[...s,...c];function l(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(o)){for(let[t,r]of Object.entries(n))o[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=o[t],e.set(r[0],r[1]);Object.defineProperty(o,t,{value:n,enumerable:!1})}return Object.defineProperty(o,"codes",{value:e,enumerable:!1}),o.color.close=`\x1B[39m`,o.bgColor.close=`\x1B[49m`,o.color.ansi=r(),o.color.ansi256=i(),o.color.ansi16m=a(),o.bgColor.ansi=r(10),o.bgColor.ansi256=i(10),o.bgColor.ansi16m=a(10),Object.defineProperties(o,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>o.rgbToAnsi256(...o.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>o.ansi256ToAnsi(o.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>o.ansi256ToAnsi(o.hexToAnsi256(e)),enumerable:!1}}),o}const u=l();export{n,u as t};